Class CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.dynamodb.CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalTablePropsMixin.ReplicaSpecificationProperty>
- Enclosing interface:
CfnGlobalTablePropsMixin.ReplicaSpecificationProperty
@Stability(Stable)
public static final class CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGlobalTablePropsMixin.ReplicaSpecificationProperty>
A builder for
CfnGlobalTablePropsMixin.ReplicaSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.contributorInsightsSpecification(CfnGlobalTablePropsMixin.ContributorInsightsSpecificationProperty contributorInsightsSpecification) contributorInsightsSpecification(IResolvable contributorInsightsSpecification) deletionProtectionEnabled(Boolean deletionProtectionEnabled) deletionProtectionEnabled(IResolvable deletionProtectionEnabled) globalSecondaryIndexes(List<? extends Object> globalSecondaryIndexes) globalSecondaryIndexes(IResolvable globalSecondaryIndexes) globalTableSettingsReplicationMode(String globalTableSettingsReplicationMode) kinesisStreamSpecification(CfnGlobalTablePropsMixin.KinesisStreamSpecificationProperty kinesisStreamSpecification) kinesisStreamSpecification(IResolvable kinesisStreamSpecification) pointInTimeRecoverySpecification(CfnGlobalTablePropsMixin.PointInTimeRecoverySpecificationProperty pointInTimeRecoverySpecification) pointInTimeRecoverySpecification(IResolvable pointInTimeRecoverySpecification) readOnDemandThroughputSettings(CfnGlobalTablePropsMixin.ReadOnDemandThroughputSettingsProperty readOnDemandThroughputSettings) readOnDemandThroughputSettings(IResolvable readOnDemandThroughputSettings) readProvisionedThroughputSettings(CfnGlobalTablePropsMixin.ReadProvisionedThroughputSettingsProperty readProvisionedThroughputSettings) readProvisionedThroughputSettings(IResolvable readProvisionedThroughputSettings) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getRegion()replicaStreamSpecification(CfnGlobalTablePropsMixin.ReplicaStreamSpecificationProperty replicaStreamSpecification) replicaStreamSpecification(IResolvable replicaStreamSpecification) resourcePolicy(CfnGlobalTablePropsMixin.ResourcePolicyProperty resourcePolicy) resourcePolicy(IResolvable resourcePolicy) sseSpecification(CfnGlobalTablePropsMixin.ReplicaSSESpecificationProperty sseSpecification) sseSpecification(IResolvable sseSpecification) tableClass(String tableClass) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getTableClass()Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contributorInsightsSpecification
@Stability(Stable) public CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder contributorInsightsSpecification(IResolvable contributorInsightsSpecification) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getContributorInsightsSpecification()- 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 CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder contributorInsightsSpecification(CfnGlobalTablePropsMixin.ContributorInsightsSpecificationProperty contributorInsightsSpecification) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getContributorInsightsSpecification()- 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 CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder deletionProtectionEnabled(Boolean deletionProtectionEnabled) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getDeletionProtectionEnabled()- 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 CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder deletionProtectionEnabled(IResolvable deletionProtectionEnabled) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getDeletionProtectionEnabled()- 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 CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder globalSecondaryIndexes(IResolvable globalSecondaryIndexes) - Parameters:
globalSecondaryIndexes- Defines additional settings for the global secondary indexes of this replica.- Returns:
this
-
globalSecondaryIndexes
@Stability(Stable) public CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder globalSecondaryIndexes(List<? extends Object> globalSecondaryIndexes) - Parameters:
globalSecondaryIndexes- Defines additional settings for the global secondary indexes of this replica.- Returns:
this
-
globalTableSettingsReplicationMode
@Stability(Stable) public CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder globalTableSettingsReplicationMode(String globalTableSettingsReplicationMode) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getGlobalTableSettingsReplicationMode()- Parameters:
globalTableSettingsReplicationMode- the value to be set.- Returns:
this
-
kinesisStreamSpecification
@Stability(Stable) public CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder kinesisStreamSpecification(IResolvable kinesisStreamSpecification) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getKinesisStreamSpecification()- Parameters:
kinesisStreamSpecification- Defines the Kinesis Data Streams configuration for the specified replica.- Returns:
this
-
kinesisStreamSpecification
@Stability(Stable) public CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder kinesisStreamSpecification(CfnGlobalTablePropsMixin.KinesisStreamSpecificationProperty kinesisStreamSpecification) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getKinesisStreamSpecification()- Parameters:
kinesisStreamSpecification- Defines the Kinesis Data Streams configuration for the specified replica.- Returns:
this
-
pointInTimeRecoverySpecification
@Stability(Stable) public CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder pointInTimeRecoverySpecification(IResolvable pointInTimeRecoverySpecification) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getPointInTimeRecoverySpecification()- 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 CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder pointInTimeRecoverySpecification(CfnGlobalTablePropsMixin.PointInTimeRecoverySpecificationProperty pointInTimeRecoverySpecification) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getPointInTimeRecoverySpecification()- 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 CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder readOnDemandThroughputSettings(IResolvable readOnDemandThroughputSettings) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getReadOnDemandThroughputSettings()- Parameters:
readOnDemandThroughputSettings- Sets read request settings for the replica table.- Returns:
this
-
readOnDemandThroughputSettings
@Stability(Stable) public CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder readOnDemandThroughputSettings(CfnGlobalTablePropsMixin.ReadOnDemandThroughputSettingsProperty readOnDemandThroughputSettings) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getReadOnDemandThroughputSettings()- Parameters:
readOnDemandThroughputSettings- Sets read request settings for the replica table.- Returns:
this
-
readProvisionedThroughputSettings
@Stability(Stable) public CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder readProvisionedThroughputSettings(IResolvable readProvisionedThroughputSettings) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getReadProvisionedThroughputSettings()- Parameters:
readProvisionedThroughputSettings- Defines read capacity settings for the replica table.- Returns:
this
-
readProvisionedThroughputSettings
@Stability(Stable) public CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder readProvisionedThroughputSettings(CfnGlobalTablePropsMixin.ReadProvisionedThroughputSettingsProperty readProvisionedThroughputSettings) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getReadProvisionedThroughputSettings()- Parameters:
readProvisionedThroughputSettings- Defines read capacity settings for the replica table.- Returns:
this
-
region
@Stability(Stable) public CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder region(String region) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getRegion()- Parameters:
region- The region in which this replica exists.- Returns:
this
-
replicaStreamSpecification
@Stability(Stable) public CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder replicaStreamSpecification(IResolvable replicaStreamSpecification) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getReplicaStreamSpecification()- Parameters:
replicaStreamSpecification- Represents the DynamoDB Streams configuration for a global table replica.- Returns:
this
-
replicaStreamSpecification
@Stability(Stable) public CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder replicaStreamSpecification(CfnGlobalTablePropsMixin.ReplicaStreamSpecificationProperty replicaStreamSpecification) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getReplicaStreamSpecification()- Parameters:
replicaStreamSpecification- Represents the DynamoDB Streams configuration for a global table replica.- Returns:
this
-
resourcePolicy
@Stability(Stable) public CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder resourcePolicy(IResolvable resourcePolicy) - 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 CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder resourcePolicy(CfnGlobalTablePropsMixin.ResourcePolicyProperty resourcePolicy) - 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 CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder sseSpecification(IResolvable sseSpecification) - 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 CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder sseSpecification(CfnGlobalTablePropsMixin.ReplicaSSESpecificationProperty sseSpecification) - 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 CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder tableClass(String tableClass) Sets the value ofCfnGlobalTablePropsMixin.ReplicaSpecificationProperty.getTableClass()- Parameters:
tableClass- The table class of the specified table. Valid values areSTANDARDandSTANDARD_INFREQUENT_ACCESS.- Returns:
this
-
tags
@Stability(Stable) public CfnGlobalTablePropsMixin.ReplicaSpecificationProperty.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnGlobalTablePropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnGlobalTablePropsMixin.ReplicaSpecificationProperty>- Returns:
- a new instance of
CfnGlobalTablePropsMixin.ReplicaSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-