enum Status
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.S3Tables.Alpha.Status |
![]() | software.amazon.awscdk.services.s3tables.alpha.Status |
![]() | aws_cdk.aws_s3tables_alpha.Status |
![]() | @aws-cdk/aws-s3tables-alpha » Status |
Status values for maintenance actions.
Example
// Build a table
const sampleTable = new Table(scope, 'ExampleTable', {
tableName: 'example_table',
namespace: namespace,
openTableFormat: OpenTableFormat.ICEBERG,
withoutMetadata: true,
});
// Build a table with an Iceberg Schema
const sampleTableWithSchema = new Table(scope, 'ExampleSchemaTable', {
tableName: 'example_table_with_schema',
namespace: namespace,
openTableFormat: OpenTableFormat.ICEBERG,
icebergMetadata: {
icebergSchema: {
schemaFieldList: [
{
name: 'id',
type: 'int',
required: true,
},
{
name: 'name',
type: 'string',
},
],
},
},
compaction: {
status: Status.ENABLED,
targetFileSizeMb: 128,
},
snapshotManagement: {
status: Status.ENABLED,
maxSnapshotAgeHours: 48,
minSnapshotsToKeep: 5,
},
});
Members
Name | Description |
---|---|
ENABLED | Enable the maintenance action. |
DISABLED | Disable the maintenance action. |
ENABLED
Enable the maintenance action.
DISABLED
Disable the maintenance action.