Class CfnTable
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.s3tables.CfnTable
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,ITableRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:44.740Z")
@Stability(Stable)
public class CfnTable
extends CfnResource
implements IInspectable, ITableRef, ITaggableV2
Creates a new table associated with the given namespace in a table bucket.
For more information, see Creating an Amazon S3 table in the Amazon Simple Storage Service User Guide .
- Permissions - - You must have the
s3tables:CreateTablepermission to use this operation. - If you use this operation with the optional
metadatarequest parameter you must have thes3tables:PutTableDatapermission. - If you use this operation with the optional
encryptionConfigurationrequest parameter you must have thes3tables:PutTableEncryptionpermission.
Additionally, If you choose SSE-KMS encryption you must grant the S3 Tables maintenance principal access to your KMS key. For more information, see Permissions requirements for S3 Tables SSE-KMS encryption .
- Cloud Development Kit - To use S3 Tables AWS CDK constructs, add the
@aws-cdk/aws-s3tables-alphadependency with one of the following options: - NPM: `npm i
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3tables.*;
CfnTable cfnTable = CfnTable.Builder.create(this, "MyCfnTable")
.namespace("namespace")
.openTableFormat("openTableFormat")
.tableBucketArn("tableBucketArn")
.tableName("tableName")
// the properties below are optional
.compaction(CompactionProperty.builder()
.status("status")
.targetFileSizeMb(123)
.build())
.icebergMetadata(IcebergMetadataProperty.builder()
.icebergSchema(IcebergSchemaProperty.builder()
.schemaFieldList(List.of(SchemaFieldProperty.builder()
.name("name")
.type("type")
// the properties below are optional
.required(false)
.build()))
.build())
.build())
.snapshotManagement(SnapshotManagementProperty.builder()
.maxSnapshotAgeHours(123)
.minSnapshotsToKeep(123)
.status("status")
.build())
.storageClassConfiguration(StorageClassConfigurationProperty.builder()
.storageClass("storageClass")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.withoutMetadata("withoutMetadata")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnTable.static interfaceContains details about the compaction settings for an Iceberg table.static interfaceContains details about the metadata for an Iceberg table.static interfaceContains details about the schema for an Iceberg table.static interfaceContains details about a schema field.static interfaceContains details about the snapshot management settings for an Iceberg table.static interfaceSpecifies storage class settings for the table.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.s3tables.ITableRef
ITableRef.Jsii$Default, ITableRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTable(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTable(software.amazon.jsii.JsiiObjectRef objRef) CfnTable(software.constructs.Construct scope, String id, CfnTableProps props) Create a newAWS::S3Tables::Table. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForTable(ITableRef resource) The Amazon Resource Name (ARN) of the table.The version token of the table.The warehouse location of the table.Tag Manager which manages the tags for this resource.Contains details about the compaction settings for an Iceberg table.Contains details about the metadata for an Iceberg table.The name of the namespace.The format of the table.Contains details about the Iceberg snapshot management settings for the table.Specifies storage class settings for the table.The Amazon Resource Name (ARN) of the table bucket to create the table in.The name for the table.A reference to a Table resource.getTags()User tags (key-value pairs) to associate with the table.Indicates that you don't want to specify a schema for the table.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanisCfnTable(Object x) Checks whether the given object is a CfnTable.renderProperties(Map<String, Object> props) voidsetCompaction(IResolvable value) Contains details about the compaction settings for an Iceberg table.voidContains details about the compaction settings for an Iceberg table.voidsetIcebergMetadata(IResolvable value) Contains details about the metadata for an Iceberg table.voidContains details about the metadata for an Iceberg table.voidsetNamespace(String value) The name of the namespace.voidsetOpenTableFormat(String value) The format of the table.voidsetSnapshotManagement(IResolvable value) Contains details about the Iceberg snapshot management settings for the table.voidContains details about the Iceberg snapshot management settings for the table.voidSpecifies storage class settings for the table.voidSpecifies storage class settings for the table.voidsetTableBucketArn(String value) The Amazon Resource Name (ARN) of the table bucket to create the table in.voidsetTableName(String value) The name for the table.voidUser tags (key-value pairs) to associate with the table.voidsetWithoutMetadata(String value) Indicates that you don't want to specify a schema for the table.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTable
protected CfnTable(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTable
protected CfnTable(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTable
@Stability(Stable) public CfnTable(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTableProps props) Create a newAWS::S3Tables::Table.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForTable
- Parameters:
resource- This parameter is required.
-
isCfnTable
Checks whether the given object is a CfnTable.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrTableArn
The Amazon Resource Name (ARN) of the table. -
getAttrVersionToken
The version token of the table. -
getAttrWarehouseLocation
The warehouse location of the table. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTableRef
A reference to a Table resource.- Specified by:
getTableRefin interfaceITableRef
-
getNamespace
The name of the namespace. -
setNamespace
The name of the namespace. -
getOpenTableFormat
The format of the table. -
setOpenTableFormat
The format of the table. -
getTableBucketArn
The Amazon Resource Name (ARN) of the table bucket to create the table in. -
setTableBucketArn
The Amazon Resource Name (ARN) of the table bucket to create the table in. -
getTableName
The name for the table. -
setTableName
The name for the table. -
getCompaction
Contains details about the compaction settings for an Iceberg table.Returns union: either
IResolvableorCfnTable.CompactionProperty -
setCompaction
Contains details about the compaction settings for an Iceberg table. -
setCompaction
Contains details about the compaction settings for an Iceberg table. -
getIcebergMetadata
Contains details about the metadata for an Iceberg table.Returns union: either
IResolvableorCfnTable.IcebergMetadataProperty -
setIcebergMetadata
Contains details about the metadata for an Iceberg table. -
setIcebergMetadata
Contains details about the metadata for an Iceberg table. -
getSnapshotManagement
Contains details about the Iceberg snapshot management settings for the table.Returns union: either
IResolvableorCfnTable.SnapshotManagementProperty -
setSnapshotManagement
Contains details about the Iceberg snapshot management settings for the table. -
setSnapshotManagement
@Stability(Stable) public void setSnapshotManagement(@Nullable CfnTable.SnapshotManagementProperty value) Contains details about the Iceberg snapshot management settings for the table. -
getStorageClassConfiguration
Specifies storage class settings for the table.Returns union: either
IResolvableorCfnTable.StorageClassConfigurationProperty -
setStorageClassConfiguration
Specifies storage class settings for the table. -
setStorageClassConfiguration
@Stability(Stable) public void setStorageClassConfiguration(@Nullable CfnTable.StorageClassConfigurationProperty value) Specifies storage class settings for the table. -
getTags
User tags (key-value pairs) to associate with the table. -
setTags
User tags (key-value pairs) to associate with the table. -
getWithoutMetadata
Indicates that you don't want to specify a schema for the table. -
setWithoutMetadata
Indicates that you don't want to specify a schema for the table.
-