S3 / Client / update_bucket_metadata_inventory_table_configuration
update_bucket_metadata_inventory_table_configuration¶
- S3.Client.update_bucket_metadata_inventory_table_configuration(**kwargs)¶
Enables or disables a live inventory table for an S3 Metadata configuration on a general purpose bucket. For more information, see Accelerating data discovery with S3 Metadata in the Amazon S3 User Guide.
Permissions
To use this operation, you must have the following permissions. For more information, see Setting up permissions for configuring metadata tables in the Amazon S3 User Guide.
If you want to encrypt your inventory table with server-side encryption with Key Management Service (KMS) keys (SSE-KMS), you need additional permissions in your KMS key policy. For more information, see Setting up permissions for configuring metadata tables in the Amazon S3 User Guide.
s3:UpdateBucketMetadataInventoryTableConfigurations3tables:CreateTableBuckets3tables:CreateNamespaces3tables:GetTables3tables:CreateTables3tables:PutTablePolicys3tables:PutTableEncryptionkms:DescribeKey
The following operations are related to
UpdateBucketMetadataInventoryTableConfiguration:Warning
You must URL encode any signed header values that contain spaces. For example, if your header value is
my file.txt, containing two spaces aftermy, you must URL encode this value tomy%20%20file.txt.See also: AWS API Documentation
Request Syntax
response = client.update_bucket_metadata_inventory_table_configuration( Bucket='string', ContentMD5='string', ChecksumAlgorithm='CRC32'|'CRC32C'|'SHA1'|'SHA256'|'CRC64NVME', InventoryTableConfiguration={ 'ConfigurationState': 'ENABLED'|'DISABLED', 'EncryptionConfiguration': { 'SseAlgorithm': 'aws:kms'|'AES256', 'KmsKeyArn': 'string' } }, ExpectedBucketOwner='string' )
- Parameters:
Bucket (string) –
[REQUIRED]
The general purpose bucket that corresponds to the metadata configuration that you want to enable or disable an inventory table for.
ContentMD5 (string) – The
Content-MD5header for the inventory table configuration.ChecksumAlgorithm (string) – The checksum algorithm to use with your inventory table configuration.
InventoryTableConfiguration (dict) –
[REQUIRED]
The contents of your inventory table configuration.
ConfigurationState (string) – [REQUIRED]
The configuration state of the inventory table, indicating whether the inventory table is enabled or disabled.
EncryptionConfiguration (dict) –
The encryption configuration for the inventory table.
SseAlgorithm (string) – [REQUIRED]
The encryption type specified for a metadata table. To specify server-side encryption with Key Management Service (KMS) keys (SSE-KMS), use the
aws:kmsvalue. To specify server-side encryption with Amazon S3 managed keys (SSE-S3), use theAES256value.KmsKeyArn (string) –
If server-side encryption with Key Management Service (KMS) keys (SSE-KMS) is specified, you must also specify the KMS key Amazon Resource Name (ARN). You must specify a customer-managed KMS key that’s located in the same Region as the general purpose bucket that corresponds to the metadata table configuration.
ExpectedBucketOwner (string) – The expected owner of the general purpose bucket that corresponds to the metadata table configuration that you want to enable or disable an inventory table for.
- Returns:
None