Class CfnGlobalTableMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalTableMixinProps>
- Enclosing interface:
CfnGlobalTableMixinProps
CfnGlobalTableMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributeDefinitions(List<? extends Object> attributeDefinitions) Sets the value ofCfnGlobalTableMixinProps.getAttributeDefinitions()attributeDefinitions(IResolvable attributeDefinitions) Sets the value ofCfnGlobalTableMixinProps.getAttributeDefinitions()billingMode(String billingMode) Sets the value ofCfnGlobalTableMixinProps.getBillingMode()build()Builds the configured instance.globalSecondaryIndexes(List<? extends Object> globalSecondaryIndexes) Sets the value ofCfnGlobalTableMixinProps.getGlobalSecondaryIndexes()globalSecondaryIndexes(IResolvable globalSecondaryIndexes) Sets the value ofCfnGlobalTableMixinProps.getGlobalSecondaryIndexes()globalTableSourceArn(String globalTableSourceArn) Sets the value ofCfnGlobalTableMixinProps.getGlobalTableSourceArn()globalTableWitnesses(List<? extends Object> globalTableWitnesses) Sets the value ofCfnGlobalTableMixinProps.getGlobalTableWitnesses()globalTableWitnesses(IResolvable globalTableWitnesses) Sets the value ofCfnGlobalTableMixinProps.getGlobalTableWitnesses()Sets the value ofCfnGlobalTableMixinProps.getKeySchema()keySchema(IResolvable keySchema) Sets the value ofCfnGlobalTableMixinProps.getKeySchema()localSecondaryIndexes(List<? extends Object> localSecondaryIndexes) Sets the value ofCfnGlobalTableMixinProps.getLocalSecondaryIndexes()localSecondaryIndexes(IResolvable localSecondaryIndexes) Sets the value ofCfnGlobalTableMixinProps.getLocalSecondaryIndexes()multiRegionConsistency(String multiRegionConsistency) Sets the value ofCfnGlobalTableMixinProps.getMultiRegionConsistency()readOnDemandThroughputSettings(CfnGlobalTablePropsMixin.ReadOnDemandThroughputSettingsProperty readOnDemandThroughputSettings) Sets the value ofCfnGlobalTableMixinProps.getReadOnDemandThroughputSettings()readOnDemandThroughputSettings(IResolvable readOnDemandThroughputSettings) Sets the value ofCfnGlobalTableMixinProps.getReadOnDemandThroughputSettings()readProvisionedThroughputSettings(CfnGlobalTablePropsMixin.GlobalReadProvisionedThroughputSettingsProperty readProvisionedThroughputSettings) Sets the value ofCfnGlobalTableMixinProps.getReadProvisionedThroughputSettings()readProvisionedThroughputSettings(IResolvable readProvisionedThroughputSettings) Sets the value ofCfnGlobalTableMixinProps.getReadProvisionedThroughputSettings()Sets the value ofCfnGlobalTableMixinProps.getReplicas()replicas(IResolvable replicas) Sets the value ofCfnGlobalTableMixinProps.getReplicas()sseSpecification(CfnGlobalTablePropsMixin.SSESpecificationProperty sseSpecification) Sets the value ofCfnGlobalTableMixinProps.getSseSpecification()sseSpecification(IResolvable sseSpecification) Sets the value ofCfnGlobalTableMixinProps.getSseSpecification()streamSpecification(CfnGlobalTablePropsMixin.StreamSpecificationProperty streamSpecification) Sets the value ofCfnGlobalTableMixinProps.getStreamSpecification()streamSpecification(IResolvable streamSpecification) Sets the value ofCfnGlobalTableMixinProps.getStreamSpecification()Sets the value ofCfnGlobalTableMixinProps.getTableName()timeToLiveSpecification(CfnGlobalTablePropsMixin.TimeToLiveSpecificationProperty timeToLiveSpecification) Sets the value ofCfnGlobalTableMixinProps.getTimeToLiveSpecification()timeToLiveSpecification(IResolvable timeToLiveSpecification) Sets the value ofCfnGlobalTableMixinProps.getTimeToLiveSpecification()warmThroughput(CfnGlobalTablePropsMixin.WarmThroughputProperty warmThroughput) Sets the value ofCfnGlobalTableMixinProps.getWarmThroughput()warmThroughput(IResolvable warmThroughput) Sets the value ofCfnGlobalTableMixinProps.getWarmThroughput()writeOnDemandThroughputSettings(CfnGlobalTablePropsMixin.WriteOnDemandThroughputSettingsProperty writeOnDemandThroughputSettings) Sets the value ofCfnGlobalTableMixinProps.getWriteOnDemandThroughputSettings()writeOnDemandThroughputSettings(IResolvable writeOnDemandThroughputSettings) Sets the value ofCfnGlobalTableMixinProps.getWriteOnDemandThroughputSettings()writeProvisionedThroughputSettings(CfnGlobalTablePropsMixin.WriteProvisionedThroughputSettingsProperty writeProvisionedThroughputSettings) Sets the value ofCfnGlobalTableMixinProps.getWriteProvisionedThroughputSettings()writeProvisionedThroughputSettings(IResolvable writeProvisionedThroughputSettings) Sets the value ofCfnGlobalTableMixinProps.getWriteProvisionedThroughputSettings()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributeDefinitions
@Stability(Stable) public CfnGlobalTableMixinProps.Builder attributeDefinitions(IResolvable attributeDefinitions) Sets the value ofCfnGlobalTableMixinProps.getAttributeDefinitions()- Parameters:
attributeDefinitions- A list of attributes that describe the key schema for the global table and indexes.- Returns:
this
-
attributeDefinitions
@Stability(Stable) public CfnGlobalTableMixinProps.Builder attributeDefinitions(List<? extends Object> attributeDefinitions) Sets the value ofCfnGlobalTableMixinProps.getAttributeDefinitions()- Parameters:
attributeDefinitions- A list of attributes that describe the key schema for the global table and indexes.- Returns:
this
-
billingMode
Sets the value ofCfnGlobalTableMixinProps.getBillingMode()- Parameters:
billingMode- Specifies how you are charged for read and write throughput and how you manage capacity. Valid values are:.PAY_PER_REQUESTPROVISIONED
All replicas in your global table will have the same billing mode. If you use
PROVISIONEDbilling mode, you must provide an auto scaling configuration via theWriteProvisionedThroughputSettingsproperty. The default value of this property isPROVISIONED.- Returns:
this
-
globalSecondaryIndexes
@Stability(Stable) public CfnGlobalTableMixinProps.Builder globalSecondaryIndexes(IResolvable globalSecondaryIndexes) Sets the value ofCfnGlobalTableMixinProps.getGlobalSecondaryIndexes()- Parameters:
globalSecondaryIndexes- Global secondary indexes to be created on the global table. You can create up to 20 global secondary indexes. Each replica in your global table will have the same global secondary index settings. You can only create or delete one global secondary index in a single stack operation.Since the backfilling of an index could take a long time, CloudFormation does not wait for the index to become active. If a stack operation rolls back, CloudFormation might not delete an index that has been added. In that case, you will need to delete the index manually.
- Returns:
this
-
globalSecondaryIndexes
@Stability(Stable) public CfnGlobalTableMixinProps.Builder globalSecondaryIndexes(List<? extends Object> globalSecondaryIndexes) Sets the value ofCfnGlobalTableMixinProps.getGlobalSecondaryIndexes()- Parameters:
globalSecondaryIndexes- Global secondary indexes to be created on the global table. You can create up to 20 global secondary indexes. Each replica in your global table will have the same global secondary index settings. You can only create or delete one global secondary index in a single stack operation.Since the backfilling of an index could take a long time, CloudFormation does not wait for the index to become active. If a stack operation rolls back, CloudFormation might not delete an index that has been added. In that case, you will need to delete the index manually.
- Returns:
this
-
globalTableSourceArn
@Stability(Stable) public CfnGlobalTableMixinProps.Builder globalTableSourceArn(String globalTableSourceArn) Sets the value ofCfnGlobalTableMixinProps.getGlobalTableSourceArn()- Parameters:
globalTableSourceArn- the value to be set.- Returns:
this
-
globalTableWitnesses
@Stability(Stable) public CfnGlobalTableMixinProps.Builder globalTableWitnesses(IResolvable globalTableWitnesses) Sets the value ofCfnGlobalTableMixinProps.getGlobalTableWitnesses()- Parameters:
globalTableWitnesses- The list of witnesses of the MRSC global table. Only one witness Region can be configured per MRSC global table.- Returns:
this
-
globalTableWitnesses
@Stability(Stable) public CfnGlobalTableMixinProps.Builder globalTableWitnesses(List<? extends Object> globalTableWitnesses) Sets the value ofCfnGlobalTableMixinProps.getGlobalTableWitnesses()- Parameters:
globalTableWitnesses- The list of witnesses of the MRSC global table. Only one witness Region can be configured per MRSC global table.- Returns:
this
-
keySchema
Sets the value ofCfnGlobalTableMixinProps.getKeySchema()- Parameters:
keySchema- Specifies the attributes that make up the primary key for the table. The attributes in theKeySchemaproperty must also be defined in theAttributeDefinitionsproperty.- Returns:
this
-
keySchema
@Stability(Stable) public CfnGlobalTableMixinProps.Builder keySchema(List<? extends Object> keySchema) Sets the value ofCfnGlobalTableMixinProps.getKeySchema()- Parameters:
keySchema- Specifies the attributes that make up the primary key for the table. The attributes in theKeySchemaproperty must also be defined in theAttributeDefinitionsproperty.- Returns:
this
-
localSecondaryIndexes
@Stability(Stable) public CfnGlobalTableMixinProps.Builder localSecondaryIndexes(IResolvable localSecondaryIndexes) Sets the value ofCfnGlobalTableMixinProps.getLocalSecondaryIndexes()- Parameters:
localSecondaryIndexes- Local secondary indexes to be created on the table. You can create up to five 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. Each replica in your global table will have the same local secondary index settings.- Returns:
this
-
localSecondaryIndexes
@Stability(Stable) public CfnGlobalTableMixinProps.Builder localSecondaryIndexes(List<? extends Object> localSecondaryIndexes) Sets the value ofCfnGlobalTableMixinProps.getLocalSecondaryIndexes()- Parameters:
localSecondaryIndexes- Local secondary indexes to be created on the table. You can create up to five 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. Each replica in your global table will have the same local secondary index settings.- Returns:
this
-
multiRegionConsistency
@Stability(Stable) public CfnGlobalTableMixinProps.Builder multiRegionConsistency(String multiRegionConsistency) Sets the value ofCfnGlobalTableMixinProps.getMultiRegionConsistency()- Parameters:
multiRegionConsistency- Specifies the consistency mode for a new global table. You can specify one of the following consistency modes:EVENTUAL: Configures a new global table for multi-Region eventual consistency (MREC).STRONG: Configures a new global table for multi-Region strong consistency (MRSC).
If you don't specify this field, the global table consistency mode defaults to
EVENTUAL. For more information about global tables consistency modes, see Consistency modes in DynamoDB developer guide.- Returns:
this
-
readOnDemandThroughputSettings
@Stability(Stable) public CfnGlobalTableMixinProps.Builder readOnDemandThroughputSettings(IResolvable readOnDemandThroughputSettings) Sets the value ofCfnGlobalTableMixinProps.getReadOnDemandThroughputSettings()- Parameters:
readOnDemandThroughputSettings- the value to be set.- Returns:
this
-
readOnDemandThroughputSettings
@Stability(Stable) public CfnGlobalTableMixinProps.Builder readOnDemandThroughputSettings(CfnGlobalTablePropsMixin.ReadOnDemandThroughputSettingsProperty readOnDemandThroughputSettings) Sets the value ofCfnGlobalTableMixinProps.getReadOnDemandThroughputSettings()- Parameters:
readOnDemandThroughputSettings- the value to be set.- Returns:
this
-
readProvisionedThroughputSettings
@Stability(Stable) public CfnGlobalTableMixinProps.Builder readProvisionedThroughputSettings(IResolvable readProvisionedThroughputSettings) Sets the value ofCfnGlobalTableMixinProps.getReadProvisionedThroughputSettings()- Parameters:
readProvisionedThroughputSettings- the value to be set.- Returns:
this
-
readProvisionedThroughputSettings
@Stability(Stable) public CfnGlobalTableMixinProps.Builder readProvisionedThroughputSettings(CfnGlobalTablePropsMixin.GlobalReadProvisionedThroughputSettingsProperty readProvisionedThroughputSettings) Sets the value ofCfnGlobalTableMixinProps.getReadProvisionedThroughputSettings()- Parameters:
readProvisionedThroughputSettings- the value to be set.- Returns:
this
-
replicas
Sets the value ofCfnGlobalTableMixinProps.getReplicas()- Parameters:
replicas- Specifies the list of replicas for your global table. The list must contain at least one element, the region where the stack defining the global table is deployed. For example, if you define your table in a stack deployed to us-east-1, you must have an entry inReplicaswith the region us-east-1. You cannot remove the replica in the stack region.Adding a replica might take a few minutes for an empty table, or up to several hours for large tables. If you want to add or remove a replica, we recommend submitting an
UpdateStackoperation containing only that change.If you add or delete a replica 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 replica, you might need to manually delete the replica.
You can create a new global table with as many replicas as needed. You can add or remove replicas after table creation, but you can only add or remove a single replica in each update. For Multi-Region Strong Consistency (MRSC), you can add or remove up to 3 replicas, or 2 replicas plus a witness Region.
- Returns:
this
-
replicas
@Stability(Stable) public CfnGlobalTableMixinProps.Builder replicas(List<? extends Object> replicas) Sets the value ofCfnGlobalTableMixinProps.getReplicas()- Parameters:
replicas- Specifies the list of replicas for your global table. The list must contain at least one element, the region where the stack defining the global table is deployed. For example, if you define your table in a stack deployed to us-east-1, you must have an entry inReplicaswith the region us-east-1. You cannot remove the replica in the stack region.Adding a replica might take a few minutes for an empty table, or up to several hours for large tables. If you want to add or remove a replica, we recommend submitting an
UpdateStackoperation containing only that change.If you add or delete a replica 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 replica, you might need to manually delete the replica.
You can create a new global table with as many replicas as needed. You can add or remove replicas after table creation, but you can only add or remove a single replica in each update. For Multi-Region Strong Consistency (MRSC), you can add or remove up to 3 replicas, or 2 replicas plus a witness Region.
- Returns:
this
-
sseSpecification
@Stability(Stable) public CfnGlobalTableMixinProps.Builder sseSpecification(IResolvable sseSpecification) Sets the value ofCfnGlobalTableMixinProps.getSseSpecification()- Parameters:
sseSpecification- Specifies the settings to enable server-side encryption. These settings will be applied to all replicas. If you plan to use customer-managed KMS keys, you must provide a key for each replica using theReplicaSpecification.ReplicaSSESpecificationproperty.- Returns:
this
-
sseSpecification
@Stability(Stable) public CfnGlobalTableMixinProps.Builder sseSpecification(CfnGlobalTablePropsMixin.SSESpecificationProperty sseSpecification) Sets the value ofCfnGlobalTableMixinProps.getSseSpecification()- Parameters:
sseSpecification- Specifies the settings to enable server-side encryption. These settings will be applied to all replicas. If you plan to use customer-managed KMS keys, you must provide a key for each replica using theReplicaSpecification.ReplicaSSESpecificationproperty.- Returns:
this
-
streamSpecification
@Stability(Stable) public CfnGlobalTableMixinProps.Builder streamSpecification(IResolvable streamSpecification) Sets the value ofCfnGlobalTableMixinProps.getStreamSpecification()- Parameters:
streamSpecification- Specifies the streams settings on your global table. You must provide a value for this property if your global table contains more than one replica. You can only change the streams settings if your global table has only one replica. For Multi-Region Strong Consistency (MRSC), you do not need to provide a value for this property and can change the settings at any time.- Returns:
this
-
streamSpecification
@Stability(Stable) public CfnGlobalTableMixinProps.Builder streamSpecification(CfnGlobalTablePropsMixin.StreamSpecificationProperty streamSpecification) Sets the value ofCfnGlobalTableMixinProps.getStreamSpecification()- Parameters:
streamSpecification- Specifies the streams settings on your global table. You must provide a value for this property if your global table contains more than one replica. You can only change the streams settings if your global table has only one replica. For Multi-Region Strong Consistency (MRSC), you do not need to provide a value for this property and can change the settings at any time.- Returns:
this
-
tableName
Sets the value ofCfnGlobalTableMixinProps.getTableName()- Parameters:
tableName- A name for the global table. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID as 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.
- Returns:
this
-
timeToLiveSpecification
@Stability(Stable) public CfnGlobalTableMixinProps.Builder timeToLiveSpecification(IResolvable timeToLiveSpecification) Sets the value ofCfnGlobalTableMixinProps.getTimeToLiveSpecification()- Parameters:
timeToLiveSpecification- Specifies the time to live (TTL) settings for the table. This setting will be applied to all replicas.- Returns:
this
-
timeToLiveSpecification
@Stability(Stable) public CfnGlobalTableMixinProps.Builder timeToLiveSpecification(CfnGlobalTablePropsMixin.TimeToLiveSpecificationProperty timeToLiveSpecification) Sets the value ofCfnGlobalTableMixinProps.getTimeToLiveSpecification()- Parameters:
timeToLiveSpecification- Specifies the time to live (TTL) settings for the table. This setting will be applied to all replicas.- Returns:
this
-
warmThroughput
@Stability(Stable) public CfnGlobalTableMixinProps.Builder warmThroughput(IResolvable warmThroughput) Sets the value ofCfnGlobalTableMixinProps.getWarmThroughput()- Parameters:
warmThroughput- Provides visibility into the number of read and write operations your table or secondary index can instantaneously support. The settings can be modified using theUpdateTableoperation to meet the throughput requirements of an upcoming peak event.- Returns:
this
-
warmThroughput
@Stability(Stable) public CfnGlobalTableMixinProps.Builder warmThroughput(CfnGlobalTablePropsMixin.WarmThroughputProperty warmThroughput) Sets the value ofCfnGlobalTableMixinProps.getWarmThroughput()- Parameters:
warmThroughput- Provides visibility into the number of read and write operations your table or secondary index can instantaneously support. The settings can be modified using theUpdateTableoperation to meet the throughput requirements of an upcoming peak event.- Returns:
this
-
writeOnDemandThroughputSettings
@Stability(Stable) public CfnGlobalTableMixinProps.Builder writeOnDemandThroughputSettings(IResolvable writeOnDemandThroughputSettings) Sets the value ofCfnGlobalTableMixinProps.getWriteOnDemandThroughputSettings()- Parameters:
writeOnDemandThroughputSettings- Sets the write request settings for a global table or a global secondary index. You can only specify this setting if your resource uses thePAY_PER_REQUESTBillingMode.- Returns:
this
-
writeOnDemandThroughputSettings
@Stability(Stable) public CfnGlobalTableMixinProps.Builder writeOnDemandThroughputSettings(CfnGlobalTablePropsMixin.WriteOnDemandThroughputSettingsProperty writeOnDemandThroughputSettings) Sets the value ofCfnGlobalTableMixinProps.getWriteOnDemandThroughputSettings()- Parameters:
writeOnDemandThroughputSettings- Sets the write request settings for a global table or a global secondary index. You can only specify this setting if your resource uses thePAY_PER_REQUESTBillingMode.- Returns:
this
-
writeProvisionedThroughputSettings
@Stability(Stable) public CfnGlobalTableMixinProps.Builder writeProvisionedThroughputSettings(IResolvable writeProvisionedThroughputSettings) Sets the value ofCfnGlobalTableMixinProps.getWriteProvisionedThroughputSettings()- Parameters:
writeProvisionedThroughputSettings- Specifies an auto scaling policy for write capacity. This policy will be applied to all replicas. This setting must be specified ifBillingModeis set toPROVISIONED.- Returns:
this
-
writeProvisionedThroughputSettings
@Stability(Stable) public CfnGlobalTableMixinProps.Builder writeProvisionedThroughputSettings(CfnGlobalTablePropsMixin.WriteProvisionedThroughputSettingsProperty writeProvisionedThroughputSettings) Sets the value ofCfnGlobalTableMixinProps.getWriteProvisionedThroughputSettings()- Parameters:
writeProvisionedThroughputSettings- Specifies an auto scaling policy for write capacity. This policy will be applied to all replicas. This setting must be specified ifBillingModeis set toPROVISIONED.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGlobalTableMixinProps>- Returns:
- a new instance of
CfnGlobalTableMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-