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.cassandra.CfnTable
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-11T15:55:54.253Z")
@Stability(Stable)
public class CfnTable
extends CfnResource
implements IInspectable, ITaggable
You can use the
AWS::Cassandra::Table
resource to create a new table in Amazon Keyspaces (for Apache Cassandra).
For more information, see Create a keyspace and 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()) .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
Modifier and TypeClassDescriptionstatic interface
The optional auto scaling settings for a table with provisioned throughput capacity.static interface
The optional auto scaling capacity settings for a table in provisioned capacity mode.static interface
Determines the billing mode for the table - on-demand or provisioned.static final class
A fluent builder forCfnTable
.static interface
Defines an individual column within the clustering key.static interface
The name and data type of an individual column in a table.static interface
Specifies the encryption at rest option selected for the table.static interface
The provisioned throughput for the table, which consists ofReadCapacityUnits
andWriteCapacityUnits
.static interface
The AWS Region specific settings of a multi-Region table.static interface
Amazon Keyspaces supports thetarget tracking
auto scaling policy.static interface
Amazon Keyspaces supports thetarget tracking
auto scaling policy for a provisioned table.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnTable
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnTable
(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:.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.getTags()
Tag Manager which manages the tags for this resource.An array of key-value pairs to apply to this resource.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
The optional auto scaling capacity settings for a table in provisioned capacity mode.void
The optional auto scaling capacity settings for a table in provisioned capacity mode.void
setBillingMode
(IResolvable value) The billing mode for the table, which determines how you'll be charged for reads and writes:.void
The billing mode for the table, which determines how you'll be charged for reads and writes:.void
Enables client-side timestamps for the table.void
Enables client-side timestamps for the table.void
setClusteringKeyColumns
(List<Object> value) One or more columns that determine how the table data is sorted.void
One or more columns that determine how the table data is sorted.void
setDefaultTimeToLive
(Number value) The default Time To Live (TTL) value for all rows in a table in seconds.void
The encryption at rest options for the table.void
The encryption at rest options for the table.void
setKeyspaceName
(String value) The name of the keyspace to create the table in.void
setPartitionKeyColumns
(List<Object> value) One or more columns that uniquely identify every row in the table.void
One or more columns that uniquely identify every row in the table.void
Specifies if point-in-time recovery is enabled or disabled for the table.void
Specifies if point-in-time recovery is enabled or disabled for the table.void
setRegularColumns
(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.void
setRegularColumns
(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.void
setReplicaSpecifications
(List<Object> value) The AWS Region specific settings of a multi-Region table.void
The AWS Region specific settings of a multi-Region table.void
setTableName
(String value) The name of the table to be created.void
setTagsRaw
(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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
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. -
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. -
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:. -
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:. -
getClientSideTimestampsEnabled
Enables client-side timestamps for the table. -
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. -
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. -
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. -
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. -
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. -
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.
-