Class CfnGlobalTable.ReplicaSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ReplicaSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalTable.ReplicaSpecificationProperty>
- Enclosing interface:
CfnGlobalTable.ReplicaSpecificationProperty
@Stability(Stable)
public static final class CfnGlobalTable.ReplicaSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGlobalTable.ReplicaSpecificationProperty>
A builder for
CfnGlobalTable.ReplicaSpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.contributorInsightsSpecification
(IResolvable contributorInsightsSpecification) contributorInsightsSpecification
(CfnGlobalTable.ContributorInsightsSpecificationProperty contributorInsightsSpecification) deletionProtectionEnabled
(Boolean deletionProtectionEnabled) deletionProtectionEnabled
(IResolvable deletionProtectionEnabled) globalSecondaryIndexes
(List<? extends Object> globalSecondaryIndexes) Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getGlobalSecondaryIndexes()
globalSecondaryIndexes
(IResolvable globalSecondaryIndexes) Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getGlobalSecondaryIndexes()
kinesisStreamSpecification
(IResolvable kinesisStreamSpecification) kinesisStreamSpecification
(CfnGlobalTable.KinesisStreamSpecificationProperty kinesisStreamSpecification) pointInTimeRecoverySpecification
(IResolvable pointInTimeRecoverySpecification) pointInTimeRecoverySpecification
(CfnGlobalTable.PointInTimeRecoverySpecificationProperty pointInTimeRecoverySpecification) readOnDemandThroughputSettings
(IResolvable readOnDemandThroughputSettings) readOnDemandThroughputSettings
(CfnGlobalTable.ReadOnDemandThroughputSettingsProperty readOnDemandThroughputSettings) readProvisionedThroughputSettings
(IResolvable readProvisionedThroughputSettings) readProvisionedThroughputSettings
(CfnGlobalTable.ReadProvisionedThroughputSettingsProperty readProvisionedThroughputSettings) Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getRegion()
replicaStreamSpecification
(IResolvable replicaStreamSpecification) replicaStreamSpecification
(CfnGlobalTable.ReplicaStreamSpecificationProperty replicaStreamSpecification) resourcePolicy
(IResolvable resourcePolicy) Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getResourcePolicy()
resourcePolicy
(CfnGlobalTable.ResourcePolicyProperty resourcePolicy) Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getResourcePolicy()
sseSpecification
(IResolvable sseSpecification) Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getSseSpecification()
sseSpecification
(CfnGlobalTable.ReplicaSSESpecificationProperty sseSpecification) Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getSseSpecification()
tableClass
(String tableClass) Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getTableClass()
Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
region
Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getRegion()
- Parameters:
region
- The region in which this replica exists. This parameter is required.- Returns:
this
-
contributorInsightsSpecification
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder contributorInsightsSpecification(IResolvable contributorInsightsSpecification) - Parameters:
contributorInsightsSpecification
- The settings used to enable or disable CloudWatch Contributor Insights for the specified replica. When not specified, defaults to contributor insights disabled for the replica.- Returns:
this
-
contributorInsightsSpecification
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder contributorInsightsSpecification(CfnGlobalTable.ContributorInsightsSpecificationProperty contributorInsightsSpecification) - Parameters:
contributorInsightsSpecification
- The settings used to enable or disable CloudWatch Contributor Insights for the specified replica. When not specified, defaults to contributor insights disabled for the replica.- Returns:
this
-
deletionProtectionEnabled
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder deletionProtectionEnabled(Boolean deletionProtectionEnabled) - Parameters:
deletionProtectionEnabled
- Determines if a replica 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 .- Returns:
this
-
deletionProtectionEnabled
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder deletionProtectionEnabled(IResolvable deletionProtectionEnabled) - Parameters:
deletionProtectionEnabled
- Determines if a replica 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 .- Returns:
this
-
globalSecondaryIndexes
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder globalSecondaryIndexes(IResolvable globalSecondaryIndexes) Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getGlobalSecondaryIndexes()
- Parameters:
globalSecondaryIndexes
- Defines additional settings for the global secondary indexes of this replica.- Returns:
this
-
globalSecondaryIndexes
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder globalSecondaryIndexes(List<? extends Object> globalSecondaryIndexes) Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getGlobalSecondaryIndexes()
- Parameters:
globalSecondaryIndexes
- Defines additional settings for the global secondary indexes of this replica.- Returns:
this
-
kinesisStreamSpecification
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder kinesisStreamSpecification(IResolvable kinesisStreamSpecification) - Parameters:
kinesisStreamSpecification
- Defines the Kinesis Data Streams configuration for the specified replica.- Returns:
this
-
kinesisStreamSpecification
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder kinesisStreamSpecification(CfnGlobalTable.KinesisStreamSpecificationProperty kinesisStreamSpecification) - Parameters:
kinesisStreamSpecification
- Defines the Kinesis Data Streams configuration for the specified replica.- Returns:
this
-
pointInTimeRecoverySpecification
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder pointInTimeRecoverySpecification(IResolvable pointInTimeRecoverySpecification) - Parameters:
pointInTimeRecoverySpecification
- The settings used to enable point in time recovery. When not specified, defaults to point in time recovery disabled for the replica.- Returns:
this
-
pointInTimeRecoverySpecification
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder pointInTimeRecoverySpecification(CfnGlobalTable.PointInTimeRecoverySpecificationProperty pointInTimeRecoverySpecification) - Parameters:
pointInTimeRecoverySpecification
- The settings used to enable point in time recovery. When not specified, defaults to point in time recovery disabled for the replica.- Returns:
this
-
readOnDemandThroughputSettings
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder readOnDemandThroughputSettings(IResolvable readOnDemandThroughputSettings) - Parameters:
readOnDemandThroughputSettings
- Sets read request settings for the replica table.- Returns:
this
-
readOnDemandThroughputSettings
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder readOnDemandThroughputSettings(CfnGlobalTable.ReadOnDemandThroughputSettingsProperty readOnDemandThroughputSettings) - Parameters:
readOnDemandThroughputSettings
- Sets read request settings for the replica table.- Returns:
this
-
readProvisionedThroughputSettings
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder readProvisionedThroughputSettings(IResolvable readProvisionedThroughputSettings) Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getReadProvisionedThroughputSettings()
- Parameters:
readProvisionedThroughputSettings
- Defines read capacity settings for the replica table.- Returns:
this
-
readProvisionedThroughputSettings
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder readProvisionedThroughputSettings(CfnGlobalTable.ReadProvisionedThroughputSettingsProperty readProvisionedThroughputSettings) Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getReadProvisionedThroughputSettings()
- Parameters:
readProvisionedThroughputSettings
- Defines read capacity settings for the replica table.- Returns:
this
-
replicaStreamSpecification
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder replicaStreamSpecification(IResolvable replicaStreamSpecification) - Parameters:
replicaStreamSpecification
- Represents the DynamoDB Streams configuration for a global table replica.- Returns:
this
-
replicaStreamSpecification
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder replicaStreamSpecification(CfnGlobalTable.ReplicaStreamSpecificationProperty replicaStreamSpecification) - Parameters:
replicaStreamSpecification
- Represents the DynamoDB Streams configuration for a global table replica.- Returns:
this
-
resourcePolicy
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder resourcePolicy(IResolvable resourcePolicy) Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getResourcePolicy()
- Parameters:
resourcePolicy
- A resource-based policy document that contains permissions to add to the specified replica of a DynamoDB global table. Resource-based policies let you define access permissions by specifying who has access to each resource, and the actions they are allowed to perform on each resource.In a CloudFormation template, you can provide the policy in JSON or YAML format because CloudFormation converts YAML to JSON before submitting it to DynamoDB . For more information about resource-based policies, see Using resource-based policies for DynamoDB and Resource-based policy examples .
- Returns:
this
-
resourcePolicy
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder resourcePolicy(CfnGlobalTable.ResourcePolicyProperty resourcePolicy) Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getResourcePolicy()
- Parameters:
resourcePolicy
- A resource-based policy document that contains permissions to add to the specified replica of a DynamoDB global table. Resource-based policies let you define access permissions by specifying who has access to each resource, and the actions they are allowed to perform on each resource.In a CloudFormation template, you can provide the policy in JSON or YAML format because CloudFormation converts YAML to JSON before submitting it to DynamoDB . For more information about resource-based policies, see Using resource-based policies for DynamoDB and Resource-based policy examples .
- Returns:
this
-
sseSpecification
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder sseSpecification(IResolvable sseSpecification) Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getSseSpecification()
- Parameters:
sseSpecification
- Allows you to specify a customer-managed key for the replica. When using customer-managed keys for server-side encryption, this property must have a value in all replicas.- Returns:
this
-
sseSpecification
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder sseSpecification(CfnGlobalTable.ReplicaSSESpecificationProperty sseSpecification) Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getSseSpecification()
- Parameters:
sseSpecification
- Allows you to specify a customer-managed key for the replica. When using customer-managed keys for server-side encryption, this property must have a value in all replicas.- Returns:
this
-
tableClass
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder tableClass(String tableClass) Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getTableClass()
- Parameters:
tableClass
- The table class of the specified table. Valid values areSTANDARD
andSTANDARD_INFREQUENT_ACCESS
.- Returns:
this
-
tags
@Stability(Stable) public CfnGlobalTable.ReplicaSpecificationProperty.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnGlobalTable.ReplicaSpecificationProperty.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to this replica. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGlobalTable.ReplicaSpecificationProperty>
- Returns:
- a new instance of
CfnGlobalTable.ReplicaSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-