Class CfnTablePropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTablePropsMixin>
- Enclosing class:
CfnTablePropsMixin
CfnTablePropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionattributeDefinitions(List<? extends Object> attributeDefinitions) A list of attributes that describe the key schema for the table and indexes.attributeDefinitions(IResolvable attributeDefinitions) A list of attributes that describe the key schema for the table and indexes.billingMode(String billingMode) Specify how you are charged for read and write throughput and how you manage capacity.build()contributorInsightsSpecification(CfnTablePropsMixin.ContributorInsightsSpecificationProperty contributorInsightsSpecification) The settings used to specify whether to enable CloudWatch Contributor Insights for the table and define which events to monitor.contributorInsightsSpecification(IResolvable contributorInsightsSpecification) The settings used to specify whether to enable CloudWatch Contributor Insights for the table and define which events to monitor.static CfnTablePropsMixin.Buildercreate()static CfnTablePropsMixin.Buildercreate(CfnPropertyMixinOptions options) deletionProtectionEnabled(Boolean deletionProtectionEnabled) Determines if a table is protected from deletion.deletionProtectionEnabled(IResolvable deletionProtectionEnabled) Determines if a table is protected from deletion.globalSecondaryIndexes(List<? extends Object> globalSecondaryIndexes) Global secondary indexes to be created on the table.globalSecondaryIndexes(IResolvable globalSecondaryIndexes) Global secondary indexes to be created on the table.importSourceSpecification(CfnTablePropsMixin.ImportSourceSpecificationProperty importSourceSpecification) Specifies the properties of data being imported from the S3 bucket source to the" table.importSourceSpecification(IResolvable importSourceSpecification) Specifies the properties of data being imported from the S3 bucket source to the" table.Specifies the attributes that make up the primary key for the table.keySchema(IResolvable keySchema) Specifies the attributes that make up the primary key for the table.kinesisStreamSpecification(CfnTablePropsMixin.KinesisStreamSpecificationProperty kinesisStreamSpecification) The Kinesis Data Streams configuration for the specified table.kinesisStreamSpecification(IResolvable kinesisStreamSpecification) The Kinesis Data Streams configuration for the specified table.localSecondaryIndexes(List<? extends Object> localSecondaryIndexes) Local secondary indexes to be created on the table.localSecondaryIndexes(IResolvable localSecondaryIndexes) Local secondary indexes to be created on the table.onDemandThroughput(CfnTablePropsMixin.OnDemandThroughputProperty onDemandThroughput) Sets the maximum number of read and write units for the specified on-demand table.onDemandThroughput(IResolvable onDemandThroughput) Sets the maximum number of read and write units for the specified on-demand table.pointInTimeRecoverySpecification(CfnTablePropsMixin.PointInTimeRecoverySpecificationProperty pointInTimeRecoverySpecification) The settings used to enable point in time recovery.pointInTimeRecoverySpecification(IResolvable pointInTimeRecoverySpecification) The settings used to enable point in time recovery.provisionedThroughput(CfnTablePropsMixin.ProvisionedThroughputProperty provisionedThroughput) Throughput for the specified table, which consists of values forReadCapacityUnitsandWriteCapacityUnits.provisionedThroughput(IResolvable provisionedThroughput) Throughput for the specified table, which consists of values forReadCapacityUnitsandWriteCapacityUnits.resourcePolicy(CfnTablePropsMixin.ResourcePolicyProperty resourcePolicy) An AWS resource-based policy document in JSON format that will be attached to the table.resourcePolicy(IResolvable resourcePolicy) An AWS resource-based policy document in JSON format that will be attached to the table.sseSpecification(CfnTablePropsMixin.SSESpecificationProperty sseSpecification) Specifies the settings to enable server-side encryption.sseSpecification(IResolvable sseSpecification) Specifies the settings to enable server-side encryption.streamSpecification(CfnTablePropsMixin.StreamSpecificationProperty streamSpecification) The settings for the DynamoDB table stream, which captures changes to items stored in the table.streamSpecification(IResolvable streamSpecification) The settings for the DynamoDB table stream, which captures changes to items stored in the table.tableClass(String tableClass) The table class of the new table.A name for the table.An array of key-value pairs to apply to this resource.timeToLiveSpecification(CfnTablePropsMixin.TimeToLiveSpecificationProperty timeToLiveSpecification) Specifies the Time to Live (TTL) settings for the table.timeToLiveSpecification(IResolvable timeToLiveSpecification) Specifies the Time to Live (TTL) settings for the table.warmThroughput(CfnTablePropsMixin.WarmThroughputProperty warmThroughput) Represents the warm throughput (in read units per second and write units per second) for creating a table.warmThroughput(IResolvable warmThroughput) Represents the warm throughput (in read units per second and write units per second) for creating a table.
-
Method Details
-
create
- Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnTablePropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnTablePropsMixin.Builder.
-
attributeDefinitions
@Stability(Stable) public CfnTablePropsMixin.Builder attributeDefinitions(IResolvable attributeDefinitions) A list of attributes that describe the key schema for the table and indexes.This property is required to create a DynamoDB table.
Update requires: Some interruptions . Replacement if you edit an existing AttributeDefinition.
- Parameters:
attributeDefinitions- A list of attributes that describe the key schema for the table and indexes. This parameter is required.- Returns:
this- See Also:
-
attributeDefinitions
@Stability(Stable) public CfnTablePropsMixin.Builder attributeDefinitions(List<? extends Object> attributeDefinitions) A list of attributes that describe the key schema for the table and indexes.This property is required to create a DynamoDB table.
Update requires: Some interruptions . Replacement if you edit an existing AttributeDefinition.
- Parameters:
attributeDefinitions- A list of attributes that describe the key schema for the table and indexes. This parameter is required.- Returns:
this- See Also:
-
billingMode
Specify how you are charged for read and write throughput and how you manage capacity.Valid values include:
PAY_PER_REQUEST- We recommend usingPAY_PER_REQUESTfor most DynamoDB workloads.PAY_PER_REQUESTsets the billing mode to On-demand capacity mode .PROVISIONED- We recommend usingPROVISIONEDfor steady workloads with predictable growth where capacity requirements can be reliably forecasted.PROVISIONEDsets the billing mode to Provisioned capacity mode .
If not specified, the default is
PROVISIONED.- Parameters:
billingMode- Specify how you are charged for read and write throughput and how you manage capacity. This parameter is required.- Returns:
this- See Also:
-
contributorInsightsSpecification
@Stability(Stable) public CfnTablePropsMixin.Builder contributorInsightsSpecification(IResolvable contributorInsightsSpecification) The settings used to specify whether to enable CloudWatch Contributor Insights for the table and define which events to monitor.- Parameters:
contributorInsightsSpecification- The settings used to specify whether to enable CloudWatch Contributor Insights for the table and define which events to monitor. This parameter is required.- Returns:
this- See Also:
-
contributorInsightsSpecification
@Stability(Stable) public CfnTablePropsMixin.Builder contributorInsightsSpecification(CfnTablePropsMixin.ContributorInsightsSpecificationProperty contributorInsightsSpecification) The settings used to specify whether to enable CloudWatch Contributor Insights for the table and define which events to monitor.- Parameters:
contributorInsightsSpecification- The settings used to specify whether to enable CloudWatch Contributor Insights for the table and define which events to monitor. This parameter is required.- Returns:
this- See Also:
-
deletionProtectionEnabled
@Stability(Stable) public CfnTablePropsMixin.Builder deletionProtectionEnabled(Boolean deletionProtectionEnabled) Determines if a table is protected from deletion.When enabled, the table cannot be deleted by any user or process. This setting is disabled by default. For more information, see Using deletion protection in the Amazon DynamoDB Developer Guide .
- Parameters:
deletionProtectionEnabled- Determines if a table is protected from deletion. This parameter is required.- Returns:
this- See Also:
-
deletionProtectionEnabled
@Stability(Stable) public CfnTablePropsMixin.Builder deletionProtectionEnabled(IResolvable deletionProtectionEnabled) Determines if a table is protected from deletion.When enabled, the table cannot be deleted by any user or process. This setting is disabled by default. For more information, see Using deletion protection in the Amazon DynamoDB Developer Guide .
- Parameters:
deletionProtectionEnabled- Determines if a table is protected from deletion. This parameter is required.- Returns:
this- See Also:
-
globalSecondaryIndexes
@Stability(Stable) public CfnTablePropsMixin.Builder globalSecondaryIndexes(IResolvable globalSecondaryIndexes) Global secondary indexes to be created on the table. You can create up to 20 global secondary indexes.If you update a table to include a new global secondary index, AWS CloudFormation initiates the index creation and then proceeds with the stack update. AWS CloudFormation doesn't wait for the index to complete creation because the backfilling phase can take a long time, depending on the size of the table. You can't use the index or update the table until the index's status is
ACTIVE. You can track its status by using the DynamoDB DescribeTable command.If you add or delete an index during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new index, you must manually delete the index.
Updates are not supported. The following are exceptions:
- If you update either the contributor insights specification or the provisioned throughput values of global secondary indexes, you can update the table without interruption.
- You can delete or add one global secondary index without interruption. If you do both in the same update (for example, by changing the index's logical ID), the update fails.
- Parameters:
globalSecondaryIndexes- Global secondary indexes to be created on the table. You can create up to 20 global secondary indexes. This parameter is required.- Returns:
this- See Also:
-
globalSecondaryIndexes
@Stability(Stable) public CfnTablePropsMixin.Builder globalSecondaryIndexes(List<? extends Object> globalSecondaryIndexes) Global secondary indexes to be created on the table. You can create up to 20 global secondary indexes.If you update a table to include a new global secondary index, AWS CloudFormation initiates the index creation and then proceeds with the stack update. AWS CloudFormation doesn't wait for the index to complete creation because the backfilling phase can take a long time, depending on the size of the table. You can't use the index or update the table until the index's status is
ACTIVE. You can track its status by using the DynamoDB DescribeTable command.If you add or delete an index during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new index, you must manually delete the index.
Updates are not supported. The following are exceptions:
- If you update either the contributor insights specification or the provisioned throughput values of global secondary indexes, you can update the table without interruption.
- You can delete or add one global secondary index without interruption. If you do both in the same update (for example, by changing the index's logical ID), the update fails.
- Parameters:
globalSecondaryIndexes- Global secondary indexes to be created on the table. You can create up to 20 global secondary indexes. This parameter is required.- Returns:
this- See Also:
-
importSourceSpecification
@Stability(Stable) public CfnTablePropsMixin.Builder importSourceSpecification(IResolvable importSourceSpecification) Specifies the properties of data being imported from the S3 bucket source to the" table.If you specify the
ImportSourceSpecificationproperty, and also specify either theStreamSpecification, theTableClassproperty, theDeletionProtectionEnabledproperty, or theWarmThroughputproperty, the IAM entity creating/updating stack must haveUpdateTablepermission.- Parameters:
importSourceSpecification- Specifies the properties of data being imported from the S3 bucket source to the" table. This parameter is required.- Returns:
this- See Also:
-
importSourceSpecification
@Stability(Stable) public CfnTablePropsMixin.Builder importSourceSpecification(CfnTablePropsMixin.ImportSourceSpecificationProperty importSourceSpecification) Specifies the properties of data being imported from the S3 bucket source to the" table.If you specify the
ImportSourceSpecificationproperty, and also specify either theStreamSpecification, theTableClassproperty, theDeletionProtectionEnabledproperty, or theWarmThroughputproperty, the IAM entity creating/updating stack must haveUpdateTablepermission.- Parameters:
importSourceSpecification- Specifies the properties of data being imported from the S3 bucket source to the" table. This parameter is required.- Returns:
this- See Also:
-
keySchema
Specifies the attributes that make up the primary key for the table.The attributes in the
KeySchemaproperty must also be defined in theAttributeDefinitionsproperty.- Parameters:
keySchema- Specifies the attributes that make up the primary key for the table. This parameter is required.- Returns:
this- See Also:
-
keySchema
Specifies the attributes that make up the primary key for the table.The attributes in the
KeySchemaproperty must also be defined in theAttributeDefinitionsproperty.- Parameters:
keySchema- Specifies the attributes that make up the primary key for the table. This parameter is required.- Returns:
this- See Also:
-
kinesisStreamSpecification
@Stability(Stable) public CfnTablePropsMixin.Builder kinesisStreamSpecification(IResolvable kinesisStreamSpecification) The Kinesis Data Streams configuration for the specified table.- Parameters:
kinesisStreamSpecification- The Kinesis Data Streams configuration for the specified table. This parameter is required.- Returns:
this- See Also:
-
kinesisStreamSpecification
@Stability(Stable) public CfnTablePropsMixin.Builder kinesisStreamSpecification(CfnTablePropsMixin.KinesisStreamSpecificationProperty kinesisStreamSpecification) The Kinesis Data Streams configuration for the specified table.- Parameters:
kinesisStreamSpecification- The Kinesis Data Streams configuration for the specified table. This parameter is required.- Returns:
this- See Also:
-
localSecondaryIndexes
@Stability(Stable) public CfnTablePropsMixin.Builder localSecondaryIndexes(IResolvable localSecondaryIndexes) Local secondary indexes to be created on the table.You can create up to 5 local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes.
- Parameters:
localSecondaryIndexes- Local secondary indexes to be created on the table. This parameter is required.- Returns:
this- See Also:
-
localSecondaryIndexes
@Stability(Stable) public CfnTablePropsMixin.Builder localSecondaryIndexes(List<? extends Object> localSecondaryIndexes) Local secondary indexes to be created on the table.You can create up to 5 local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes.
- Parameters:
localSecondaryIndexes- Local secondary indexes to be created on the table. This parameter is required.- Returns:
this- See Also:
-
onDemandThroughput
@Stability(Stable) public CfnTablePropsMixin.Builder onDemandThroughput(IResolvable onDemandThroughput) Sets the maximum number of read and write units for the specified on-demand table.If you use this property, you must specify
MaxReadRequestUnits,MaxWriteRequestUnits, or both.- Parameters:
onDemandThroughput- Sets the maximum number of read and write units for the specified on-demand table. This parameter is required.- Returns:
this- See Also:
-
onDemandThroughput
@Stability(Stable) public CfnTablePropsMixin.Builder onDemandThroughput(CfnTablePropsMixin.OnDemandThroughputProperty onDemandThroughput) Sets the maximum number of read and write units for the specified on-demand table.If you use this property, you must specify
MaxReadRequestUnits,MaxWriteRequestUnits, or both.- Parameters:
onDemandThroughput- Sets the maximum number of read and write units for the specified on-demand table. This parameter is required.- Returns:
this- See Also:
-
pointInTimeRecoverySpecification
@Stability(Stable) public CfnTablePropsMixin.Builder pointInTimeRecoverySpecification(IResolvable pointInTimeRecoverySpecification) The settings used to enable point in time recovery.- Parameters:
pointInTimeRecoverySpecification- The settings used to enable point in time recovery. This parameter is required.- Returns:
this- See Also:
-
pointInTimeRecoverySpecification
@Stability(Stable) public CfnTablePropsMixin.Builder pointInTimeRecoverySpecification(CfnTablePropsMixin.PointInTimeRecoverySpecificationProperty pointInTimeRecoverySpecification) The settings used to enable point in time recovery.- Parameters:
pointInTimeRecoverySpecification- The settings used to enable point in time recovery. This parameter is required.- Returns:
this- See Also:
-
provisionedThroughput
@Stability(Stable) public CfnTablePropsMixin.Builder provisionedThroughput(IResolvable provisionedThroughput) Throughput for the specified table, which consists of values forReadCapacityUnitsandWriteCapacityUnits.For more information about the contents of a provisioned throughput structure, see Amazon DynamoDB Table ProvisionedThroughput .
If you set
BillingModeasPROVISIONED, you must specify this property. If you setBillingModeasPAY_PER_REQUEST, you cannot specify this property.- Parameters:
provisionedThroughput- Throughput for the specified table, which consists of values forReadCapacityUnitsandWriteCapacityUnits. This parameter is required.- Returns:
this- See Also:
-
provisionedThroughput
@Stability(Stable) public CfnTablePropsMixin.Builder provisionedThroughput(CfnTablePropsMixin.ProvisionedThroughputProperty provisionedThroughput) Throughput for the specified table, which consists of values forReadCapacityUnitsandWriteCapacityUnits.For more information about the contents of a provisioned throughput structure, see Amazon DynamoDB Table ProvisionedThroughput .
If you set
BillingModeasPROVISIONED, you must specify this property. If you setBillingModeasPAY_PER_REQUEST, you cannot specify this property.- Parameters:
provisionedThroughput- Throughput for the specified table, which consists of values forReadCapacityUnitsandWriteCapacityUnits. This parameter is required.- Returns:
this- See Also:
-
resourcePolicy
An AWS resource-based policy document in JSON format that will be attached to the table.When you attach a resource-based policy while creating a table, the policy application is strongly consistent .
The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit. For a full list of all considerations that apply for resource-based policies, see Resource-based policy considerations .
You need to specify the
CreateTableandPutResourcePolicyIAM actions for authorizing a user to create a table with a resource-based policy.- Parameters:
resourcePolicy- An AWS resource-based policy document in JSON format that will be attached to the table. This parameter is required.- Returns:
this- See Also:
-
resourcePolicy
@Stability(Stable) public CfnTablePropsMixin.Builder resourcePolicy(CfnTablePropsMixin.ResourcePolicyProperty resourcePolicy) An AWS resource-based policy document in JSON format that will be attached to the table.When you attach a resource-based policy while creating a table, the policy application is strongly consistent .
The maximum size supported for a resource-based policy document is 20 KB. DynamoDB counts whitespaces when calculating the size of a policy against this limit. For a full list of all considerations that apply for resource-based policies, see Resource-based policy considerations .
You need to specify the
CreateTableandPutResourcePolicyIAM actions for authorizing a user to create a table with a resource-based policy.- Parameters:
resourcePolicy- An AWS resource-based policy document in JSON format that will be attached to the table. This parameter is required.- Returns:
this- See Also:
-
sseSpecification
Specifies the settings to enable server-side encryption.- Parameters:
sseSpecification- Specifies the settings to enable server-side encryption. This parameter is required.- Returns:
this- See Also:
-
sseSpecification
@Stability(Stable) public CfnTablePropsMixin.Builder sseSpecification(CfnTablePropsMixin.SSESpecificationProperty sseSpecification) Specifies the settings to enable server-side encryption.- Parameters:
sseSpecification- Specifies the settings to enable server-side encryption. This parameter is required.- Returns:
this- See Also:
-
streamSpecification
@Stability(Stable) public CfnTablePropsMixin.Builder streamSpecification(IResolvable streamSpecification) The settings for the DynamoDB table stream, which captures changes to items stored in the table.Including this property in your AWS CloudFormation template automatically enables streaming.
- Parameters:
streamSpecification- The settings for the DynamoDB table stream, which captures changes to items stored in the table. This parameter is required.- Returns:
this- See Also:
-
streamSpecification
@Stability(Stable) public CfnTablePropsMixin.Builder streamSpecification(CfnTablePropsMixin.StreamSpecificationProperty streamSpecification) The settings for the DynamoDB table stream, which captures changes to items stored in the table.Including this property in your AWS CloudFormation template automatically enables streaming.
- Parameters:
streamSpecification- The settings for the DynamoDB table stream, which captures changes to items stored in the table. This parameter is required.- Returns:
this- See Also:
-
tableClass
The table class of the new table.Valid values are
STANDARDandSTANDARD_INFREQUENT_ACCESS.- Parameters:
tableClass- The table class of the new table. This parameter is required.- Returns:
this- See Also:
-
tableName
A name for the table.If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the table name. For more information, see Name Type .
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
- Parameters:
tableName- A name for the table. This parameter is required.- Returns:
this- See Also:
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag .
- Parameters:
tags- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this- See Also:
-
timeToLiveSpecification
@Stability(Stable) public CfnTablePropsMixin.Builder timeToLiveSpecification(IResolvable timeToLiveSpecification) Specifies the Time to Live (TTL) settings for the table.For detailed information about the limits in DynamoDB, see Limits in Amazon DynamoDB in the Amazon DynamoDB Developer Guide.
- Parameters:
timeToLiveSpecification- Specifies the Time to Live (TTL) settings for the table. This parameter is required.- Returns:
this- See Also:
-
timeToLiveSpecification
@Stability(Stable) public CfnTablePropsMixin.Builder timeToLiveSpecification(CfnTablePropsMixin.TimeToLiveSpecificationProperty timeToLiveSpecification) Specifies the Time to Live (TTL) settings for the table.For detailed information about the limits in DynamoDB, see Limits in Amazon DynamoDB in the Amazon DynamoDB Developer Guide.
- Parameters:
timeToLiveSpecification- Specifies the Time to Live (TTL) settings for the table. This parameter is required.- Returns:
this- See Also:
-
warmThroughput
Represents the warm throughput (in read units per second and write units per second) for creating a table.- Parameters:
warmThroughput- Represents the warm throughput (in read units per second and write units per second) for creating a table. This parameter is required.- Returns:
this- See Also:
-
warmThroughput
@Stability(Stable) public CfnTablePropsMixin.Builder warmThroughput(CfnTablePropsMixin.WarmThroughputProperty warmThroughput) Represents the warm throughput (in read units per second and write units per second) for creating a table.- Parameters:
warmThroughput- Represents the warm throughput (in read units per second and write units per second) for creating a table. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTablePropsMixin>- Returns:
- a newly built instance of
CfnTablePropsMixin.
-