Class CfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty>
- Enclosing interface:
CfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty
@Stability(Stable)
public static final class CfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.contributorInsightsSpecification
(IResolvable contributorInsightsSpecification) contributorInsightsSpecification
(CfnGlobalTable.ContributorInsightsSpecificationProperty contributorInsightsSpecification) readOnDemandThroughputSettings
(IResolvable readOnDemandThroughputSettings) readOnDemandThroughputSettings
(CfnGlobalTable.ReadOnDemandThroughputSettingsProperty readOnDemandThroughputSettings) readProvisionedThroughputSettings
(IResolvable readProvisionedThroughputSettings) readProvisionedThroughputSettings
(CfnGlobalTable.ReadProvisionedThroughputSettingsProperty readProvisionedThroughputSettings)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
indexName
@Stability(Stable) public CfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty.Builder indexName(String indexName) - Parameters:
indexName
- The name of the global secondary index. This parameter is required. The name must be unique among all other indexes on this table.- Returns:
this
-
contributorInsightsSpecification
@Stability(Stable) public CfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty.Builder contributorInsightsSpecification(IResolvable contributorInsightsSpecification) Sets the value ofCfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty.getContributorInsightsSpecification()
- Parameters:
contributorInsightsSpecification
- Updates the status for contributor insights for a specific table or index. CloudWatch Contributor Insights for DynamoDB graphs display the partition key and (if applicable) sort key of frequently accessed items and frequently throttled items in plaintext. If you require the use of AWS Key Management Service (KMS) to encrypt this table’s partition key and sort key data with an AWS managed key or customer managed key, you should not enable CloudWatch Contributor Insights for DynamoDB for this table.- Returns:
this
-
contributorInsightsSpecification
@Stability(Stable) public CfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty.Builder contributorInsightsSpecification(CfnGlobalTable.ContributorInsightsSpecificationProperty contributorInsightsSpecification) Sets the value ofCfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty.getContributorInsightsSpecification()
- Parameters:
contributorInsightsSpecification
- Updates the status for contributor insights for a specific table or index. CloudWatch Contributor Insights for DynamoDB graphs display the partition key and (if applicable) sort key of frequently accessed items and frequently throttled items in plaintext. If you require the use of AWS Key Management Service (KMS) to encrypt this table’s partition key and sort key data with an AWS managed key or customer managed key, you should not enable CloudWatch Contributor Insights for DynamoDB for this table.- Returns:
this
-
readOnDemandThroughputSettings
@Stability(Stable) public CfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty.Builder readOnDemandThroughputSettings(IResolvable readOnDemandThroughputSettings) Sets the value ofCfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty.getReadOnDemandThroughputSettings()
- Parameters:
readOnDemandThroughputSettings
- Sets the read request settings for a replica global secondary index. You can only specify this setting if your resource uses thePAY_PER_REQUEST
BillingMode
.- Returns:
this
-
readOnDemandThroughputSettings
@Stability(Stable) public CfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty.Builder readOnDemandThroughputSettings(CfnGlobalTable.ReadOnDemandThroughputSettingsProperty readOnDemandThroughputSettings) Sets the value ofCfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty.getReadOnDemandThroughputSettings()
- Parameters:
readOnDemandThroughputSettings
- Sets the read request settings for a replica global secondary index. You can only specify this setting if your resource uses thePAY_PER_REQUEST
BillingMode
.- Returns:
this
-
readProvisionedThroughputSettings
@Stability(Stable) public CfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty.Builder readProvisionedThroughputSettings(IResolvable readProvisionedThroughputSettings) Sets the value ofCfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty.getReadProvisionedThroughputSettings()
- Parameters:
readProvisionedThroughputSettings
- Allows you to specify the read capacity settings for a replica global secondary index when theBillingMode
is set toPROVISIONED
.- Returns:
this
-
readProvisionedThroughputSettings
@Stability(Stable) public CfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty.Builder readProvisionedThroughputSettings(CfnGlobalTable.ReadProvisionedThroughputSettingsProperty readProvisionedThroughputSettings) Sets the value ofCfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty.getReadProvisionedThroughputSettings()
- Parameters:
readProvisionedThroughputSettings
- Allows you to specify the read capacity settings for a replica global secondary index when theBillingMode
is set toPROVISIONED
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty>
- Returns:
- a new instance of
CfnGlobalTable.ReplicaGlobalSecondaryIndexSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-