Viewing metadata table configurations
If you've created a metadata table configuration for a general purpose bucket, you can view information about the configuration, such as whether an inventory table has been enabled, or whether journal table record expiration has been enabled. You can also view the status of your journal and inventory tables.
You can view your metadata table configuration for a general purpose bucket by using the Amazon S3 console, the Amazon Command Line Interface (Amazon CLI), the Amazon SDKs, or the Amazon S3 REST API.
View a metadata table configuration
To view a metadata table configuration
Sign in to the Amazon Web Services Management Console and open the Amazon S3 console at https://console.amazonaws.cn/s3/
. -
In the left navigation pane, choose General purpose buckets.
-
Choose the general purpose bucket that contains the metadata table configuration that you want to view.
-
On the bucket's details page, choose the Metadata tab.
-
On the Metadata tab, scroll down to the Metadata configuration section. In the Journal table and Inventory table sections, you can view various information for these configurations, such as their Amazon Resource Names (ARNs), the status of your tables, and whether you've enabled journal table record expiration or an inventory table.
To run the following commands, you must have the Amazon CLI installed and configured. If you don’t have the Amazon CLI installed, see Install or update to the latest version of the Amazon CLI in the Amazon Command Line Interface User Guide.
Alternatively, you can run Amazon CLI commands from the console by using Amazon CloudShell. Amazon CloudShell is a browser-based, pre-authenticated shell that you can launch directly from the Amazon Web Services Management Console. For more information, see What is CloudShell? and Getting started with Amazon CloudShell in the Amazon CloudShell User Guide.
To view a metadata table configuration by using the Amazon CLI
To use the following example command, replace the
with your own information. user input
placeholders
-
Use the following command to view the metadata table configuration for your general purpose bucket (for example,
):amzn-s3-demo-bucket
aws s3api get-bucket-metadata-configuration \ --bucket
amzn-s3-demo-bucket
\ --regionus-east-2
-
View the output of this command to see the status of your metadata table configuration. For example:
{ "GetBucketMetadataConfigurationResult": { "MetadataConfigurationResult": { "DestinationResult": { "TableBucketType": "aws", "TableBucketArn": "arn:aws-cn:s3tables:us-east-2:111122223333:bucket/aws-managed-s3-111122223333-us-east-2", "TableNamespace": "
b_general-purpose-bucket-name
" }, "JournalTableConfigurationResult": { "TableStatus": "ACTIVE", "TableName": "journal", "TableArn": "arn:aws-cn:s3tables:us-east-2:111122223333:bucket/aws-managed-s3-111122223333-us-east-2/table/0f01234c-fe7a-492f-a4c7-adec3864ea85", "EncryptionConfiguration": { "SseAlgorithm": "AES256" }, "RecordExpiration": { "Expiration": "ENABLED", "Days": 10 } }, "InventoryTableConfigurationResult": { "ConfigurationState": "ENABLED", "TableStatus": "BACKFILL_COMPLETE", "TableName": "inventory", "TableArn": "arn:aws-cn:s3tables:us-east-2:111122223333:bucket/aws-managed-s3-111122223333-us-east-2/table/e123456-b876-4e5e-af29-bb055922ee4d", "EncryptionConfiguration": { "SseAlgorithm": "AES256" } } } } }
You can send REST requests to view a metadata table configuration. For more information, see GetBucketMetadataTableConfiguration.
Note
You can use the V2 GetBucketMetadataConfiguration
API operation with V1 or V2
metadata table configurations. However, if you try to use the V1
GetBucketMetadataTableConfiguration
API operation with V2 configurations, you
will receive an HTTP 405 Method Not Allowed
error.
You can use the Amazon SDKs to view a metadata table configuration in Amazon S3. For information, see the list of supported SDKs.