S3Tables / Client / put_table_maintenance_configuration
put_table_maintenance_configuration#
- S3Tables.Client.put_table_maintenance_configuration(**kwargs)#
Creates a new maintenance configuration or replaces an existing maintenance configuration for a table.
See also: AWS API Documentation
Request Syntax
response = client.put_table_maintenance_configuration( tableBucketARN='string', namespace='string', name='string', type='icebergCompaction'|'icebergSnapshotManagement', value={ 'status': 'enabled'|'disabled', 'settings': { 'icebergCompaction': { 'targetFileSizeMB': 123 }, 'icebergSnapshotManagement': { 'minSnapshotsToKeep': 123, 'maxSnapshotAgeHours': 123 } } } )
- Parameters:
tableBucketARN (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the table associated with the maintenance configuration.
namespace (string) –
[REQUIRED]
The namespace of the table.
name (string) –
[REQUIRED]
The name of the maintenance configuration.
type (string) –
[REQUIRED]
The type of the maintenance configuration.
value (dict) –
[REQUIRED]
Defines the values of the maintenance configuration for the table.
status (string) –
The status of the maintenance configuration.
settings (dict) –
Contains details about the settings for the maintenance configuration.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
icebergCompaction
,icebergSnapshotManagement
.icebergCompaction (dict) –
Contains details about the Iceberg compaction settings for the table.
targetFileSizeMB (integer) –
The target file size for the table in MB.
icebergSnapshotManagement (dict) –
Contains details about the Iceberg snapshot management settings for the table.
minSnapshotsToKeep (integer) –
The minimum number of snapshots to keep.
maxSnapshotAgeHours (integer) –
The maximum age of a snapshot before it can be expired.
- Returns:
None
Exceptions