Viewing the tags of an access point for directory buckets
You can view or list tags applied to Amazon S3 Access Points for directory buckets. For additional information, see Using tags with S3 directory buckets.
Permissions
To view tags applied to an access point, you must have the following permission:
s3express:ListTagsForResource
Troubleshooting errors
If you encounter an error when attempting to list or view the tags of an access point for directory buckets, you can do the following:
Verify that you have the required Permissions to view or list the tags of the access point for directory buckets.
Steps
You can view tags applied to access points for directory buckets by using the Amazon S3 console, the Amazon Command Line Interface (Amazon CLI), the Amazon S3 REST API, and Amazon SDKs.
To view tags applied to an access point for directory buckets using the Amazon S3 console:
Sign in to Amazon S3 console at https://console.amazonaws.cn/s3/
. In the left navigation pane, choose Access Points (Directory Buckets).
Choose the access point name.
Choose the Properties tab.
Scroll to the Tags section to view all of the tags applied to the access point for directory buckets.
The Tags section shows the User-defined tags by default. You can select the Amazon-generated tags tab to view tags applied to your access point by Amazon services.
This section provides an example of how to view tags applied to an access point for directory buckets by using the Amazon SDKs.
For information about the Amazon S3 REST API support for viewing the tags applied to a directory bucket, see the following section in the Amazon Simple Storage Service API Reference:
To install the Amazon CLI, see Installing the Amazon CLI in the Amazon Command Line Interface User Guide.
The following CLI example shows you how to view tags applied to an access point for directory buckets. To use the command replace the user input placeholders
with your own information.
Request:
aws s3control list-tags-for-resource \ --account-id
111122223333
\ --resource-arn arn:aws-cn::s3express:region
:444455556666
:bucket/prefix--use1-az4
--x-s3 \
Response - tags present:
{ "Tags": [ { "Key": "
MyKey1
", "Value": "MyValue1
" }, { "Key": "MyKey2
", "Value": "MyValue2
" }, { "Key": "MyKey3
", "Value": "MyValue3
" } ] }
Response - no tags present:
{ "Tags": [] }