Class CfnTable
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggable,ITableRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
AWS::Cassandra::Table resource to create a new table in Amazon Keyspaces (for Apache Cassandra).
For more information, see Create a table in the Amazon Keyspaces Developer Guide .
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.cassandra.*;
CfnTable cfnTable = CfnTable.Builder.create(this, "MyCfnTable")
.keyspaceName("keyspaceName")
.partitionKeyColumns(List.of(ColumnProperty.builder()
.columnName("columnName")
.columnType("columnType")
.build()))
// the properties below are optional
.autoScalingSpecifications(AutoScalingSpecificationProperty.builder()
.readCapacityAutoScaling(AutoScalingSettingProperty.builder()
.autoScalingDisabled(false)
.maximumUnits(123)
.minimumUnits(123)
.scalingPolicy(ScalingPolicyProperty.builder()
.targetTrackingScalingPolicyConfiguration(TargetTrackingScalingPolicyConfigurationProperty.builder()
.targetValue(123)
// the properties below are optional
.disableScaleIn(false)
.scaleInCooldown(123)
.scaleOutCooldown(123)
.build())
.build())
.build())
.writeCapacityAutoScaling(AutoScalingSettingProperty.builder()
.autoScalingDisabled(false)
.maximumUnits(123)
.minimumUnits(123)
.scalingPolicy(ScalingPolicyProperty.builder()
.targetTrackingScalingPolicyConfiguration(TargetTrackingScalingPolicyConfigurationProperty.builder()
.targetValue(123)
// the properties below are optional
.disableScaleIn(false)
.scaleInCooldown(123)
.scaleOutCooldown(123)
.build())
.build())
.build())
.build())
.billingMode(BillingModeProperty.builder()
.mode("mode")
// the properties below are optional
.provisionedThroughput(ProvisionedThroughputProperty.builder()
.readCapacityUnits(123)
.writeCapacityUnits(123)
.build())
.build())
.cdcSpecification(CdcSpecificationProperty.builder()
.status("status")
// the properties below are optional
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.viewType("viewType")
.build())
.clientSideTimestampsEnabled(false)
.clusteringKeyColumns(List.of(ClusteringKeyColumnProperty.builder()
.column(ColumnProperty.builder()
.columnName("columnName")
.columnType("columnType")
.build())
// the properties below are optional
.orderBy("orderBy")
.build()))
.defaultTimeToLive(123)
.encryptionSpecification(EncryptionSpecificationProperty.builder()
.encryptionType("encryptionType")
// the properties below are optional
.kmsKeyIdentifier("kmsKeyIdentifier")
.build())
.pointInTimeRecoveryEnabled(false)
.regularColumns(List.of(ColumnProperty.builder()
.columnName("columnName")
.columnType("columnType")
.build()))
.replicaSpecifications(List.of(ReplicaSpecificationProperty.builder()
.region("region")
// the properties below are optional
.readCapacityAutoScaling(AutoScalingSettingProperty.builder()
.autoScalingDisabled(false)
.maximumUnits(123)
.minimumUnits(123)
.scalingPolicy(ScalingPolicyProperty.builder()
.targetTrackingScalingPolicyConfiguration(TargetTrackingScalingPolicyConfigurationProperty.builder()
.targetValue(123)
// the properties below are optional
.disableScaleIn(false)
.scaleInCooldown(123)
.scaleOutCooldown(123)
.build())
.build())
.build())
.readCapacityUnits(123)
.build()))
.tableName("tableName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe optional auto scaling settings for a table with provisioned throughput capacity.static interfaceThe optional auto scaling capacity settings for a table in provisioned capacity mode.static interfaceDetermines the billing mode for the table - on-demand or provisioned.static final classA fluent builder forCfnTable.static interfaceThe settings for the CDC stream of a table.static interfaceDefines an individual column within the clustering key.static interfaceThe name and data type of an individual column in a table.static interfaceSpecifies the encryption at rest option selected for the table.static interfaceThe provisioned throughput for the table, which consists ofReadCapacityUnitsandWriteCapacityUnits.static interfaceThe AWS Region specific settings of a multi-Region table.static interfaceAmazon Keyspaces supports thetarget trackingauto scaling policy.static interfaceAmazon Keyspaces supports thetarget trackingauto scaling policy for a provisioned 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.services.cassandra.ITableRef
ITableRef.Jsii$Default, ITableRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.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) -
Method Summary
Modifier and TypeMethodDescriptionThe optional auto scaling capacity settings for a table in provisioned capacity mode.The billing mode for the table, which determines how you'll be charged for reads and writes:.The settings for the CDC stream of a table.Enables client-side timestamps for the table.One or more columns that determine how the table data is sorted.The default Time To Live (TTL) value for all rows in a table in seconds.The encryption at rest options for the table.The name of the keyspace to create the table in.One or more columns that uniquely identify every row in the table.Specifies if point-in-time recovery is enabled or disabled for the table.One or more columns that are not part of the primary key - that is, columns that are not defined as partition key columns or clustering key columns.The AWS Region specific settings of a multi-Region table.The name of the table to be created.A reference to a Table resource.getTags()Tag Manager which manages the tags for this resource.An array of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe optional auto scaling capacity settings for a table in provisioned capacity mode.voidThe optional auto scaling capacity settings for a table in provisioned capacity mode.voidsetBillingMode(IResolvable value) The billing mode for the table, which determines how you'll be charged for reads and writes:.voidThe billing mode for the table, which determines how you'll be charged for reads and writes:.voidsetCdcSpecification(IResolvable value) The settings for the CDC stream of a table.voidThe settings for the CDC stream of a table.voidEnables client-side timestamps for the table.voidEnables client-side timestamps for the table.voidsetClusteringKeyColumns(List<Object> value) One or more columns that determine how the table data is sorted.voidOne or more columns that determine how the table data is sorted.voidsetDefaultTimeToLive(Number value) The default Time To Live (TTL) value for all rows in a table in seconds.voidThe encryption at rest options for the table.voidThe encryption at rest options for the table.voidsetKeyspaceName(String value) The name of the keyspace to create the table in.voidsetPartitionKeyColumns(List<Object> value) One or more columns that uniquely identify every row in the table.voidOne or more columns that uniquely identify every row in the table.voidSpecifies if point-in-time recovery is enabled or disabled for the table.voidSpecifies if point-in-time recovery is enabled or disabled for the table.voidsetRegularColumns(List<Object> value) One or more columns that are not part of the primary key - that is, columns that are not defined as partition key columns or clustering key columns.voidsetRegularColumns(IResolvable value) One or more columns that are not part of the primary key - that is, columns that are not defined as partition key columns or clustering key columns.voidsetReplicaSpecifications(List<Object> value) The AWS Region specific settings of a multi-Region table.voidThe AWS Region specific settings of a multi-Region table.voidsetTableName(String value) The name of the table to be created.voidsetTagsRaw(List<CfnTag> value) An array of key-value pairs to apply to this resource.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.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) - 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
-
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.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTableRef
A reference to a Table resource.- Specified by:
getTableRefin interfaceITableRef
-
getTags
Tag Manager which manages the tags for this resource. -
getKeyspaceName
The name of the keyspace to create the table in. -
setKeyspaceName
The name of the keyspace to create the table in. -
getPartitionKeyColumns
One or more columns that uniquely identify every row in the table.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTable.ColumnProperty> -
setPartitionKeyColumns
One or more columns that uniquely identify every row in the table. -
setPartitionKeyColumns
One or more columns that uniquely identify every row in the table. -
getAutoScalingSpecifications
The optional auto scaling capacity settings for a table in provisioned capacity mode.Returns union: either
IResolvableorCfnTable.AutoScalingSpecificationProperty -
setAutoScalingSpecifications
The optional auto scaling capacity settings for a table in provisioned capacity mode. -
setAutoScalingSpecifications
@Stability(Stable) public void setAutoScalingSpecifications(@Nullable CfnTable.AutoScalingSpecificationProperty value) The optional auto scaling capacity settings for a table in provisioned capacity mode. -
getBillingMode
The billing mode for the table, which determines how you'll be charged for reads and writes:.Returns union: either
IResolvableorCfnTable.BillingModeProperty -
setBillingMode
The billing mode for the table, which determines how you'll be charged for reads and writes:. -
setBillingMode
The billing mode for the table, which determines how you'll be charged for reads and writes:. -
getCdcSpecification
The settings for the CDC stream of a table.Returns union: either
IResolvableorCfnTable.CdcSpecificationProperty -
setCdcSpecification
The settings for the CDC stream of a table. -
setCdcSpecification
@Stability(Stable) public void setCdcSpecification(@Nullable CfnTable.CdcSpecificationProperty value) The settings for the CDC stream of a table. -
getClientSideTimestampsEnabled
Enables client-side timestamps for the table.Returns union: either
BooleanorIResolvable -
setClientSideTimestampsEnabled
Enables client-side timestamps for the table. -
setClientSideTimestampsEnabled
Enables client-side timestamps for the table. -
getClusteringKeyColumns
One or more columns that determine how the table data is sorted.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTable.ClusteringKeyColumnProperty> -
setClusteringKeyColumns
One or more columns that determine how the table data is sorted. -
setClusteringKeyColumns
One or more columns that determine how the table data is sorted. -
getDefaultTimeToLive
The default Time To Live (TTL) value for all rows in a table in seconds. -
setDefaultTimeToLive
The default Time To Live (TTL) value for all rows in a table in seconds. -
getEncryptionSpecification
The encryption at rest options for the table.Returns union: either
IResolvableorCfnTable.EncryptionSpecificationProperty -
setEncryptionSpecification
The encryption at rest options for the table. -
setEncryptionSpecification
@Stability(Stable) public void setEncryptionSpecification(@Nullable CfnTable.EncryptionSpecificationProperty value) The encryption at rest options for the table. -
getPointInTimeRecoveryEnabled
Specifies if point-in-time recovery is enabled or disabled for the table.Returns union: either
BooleanorIResolvable -
setPointInTimeRecoveryEnabled
Specifies if point-in-time recovery is enabled or disabled for the table. -
setPointInTimeRecoveryEnabled
Specifies if point-in-time recovery is enabled or disabled for the table. -
getRegularColumns
One or more columns that are not part of the primary key - that is, columns that are not defined as partition key columns or clustering key columns.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTable.ColumnProperty> -
setRegularColumns
One or more columns that are not part of the primary key - that is, columns that are not defined as partition key columns or clustering key columns. -
setRegularColumns
One or more columns that are not part of the primary key - that is, columns that are not defined as partition key columns or clustering key columns. -
getReplicaSpecifications
The AWS Region specific settings of a multi-Region table.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTable.ReplicaSpecificationProperty> -
setReplicaSpecifications
The AWS Region specific settings of a multi-Region table. -
setReplicaSpecifications
The AWS Region specific settings of a multi-Region table. -
getTableName
The name of the table to be created. -
setTableName
The name of the table to be created. -
getTagsRaw
An array of key-value pairs to apply to this resource. -
setTagsRaw
An array of key-value pairs to apply to this resource.
-