Class CfnTablePropsMixin.GlobalSecondaryIndexProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTablePropsMixin.GlobalSecondaryIndexProperty>
- Enclosing interface:
CfnTablePropsMixin.GlobalSecondaryIndexProperty
CfnTablePropsMixin.GlobalSecondaryIndexProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.contributorInsightsSpecification(CfnTablePropsMixin.ContributorInsightsSpecificationProperty contributorInsightsSpecification) contributorInsightsSpecification(IResolvable contributorInsightsSpecification) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getIndexName()Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getKeySchema()keySchema(IResolvable keySchema) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getKeySchema()onDemandThroughput(CfnTablePropsMixin.OnDemandThroughputProperty onDemandThroughput) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getOnDemandThroughput()onDemandThroughput(IResolvable onDemandThroughput) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getOnDemandThroughput()projection(CfnTablePropsMixin.ProjectionProperty projection) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getProjection()projection(IResolvable projection) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getProjection()provisionedThroughput(CfnTablePropsMixin.ProvisionedThroughputProperty provisionedThroughput) provisionedThroughput(IResolvable provisionedThroughput) warmThroughput(CfnTablePropsMixin.WarmThroughputProperty warmThroughput) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getWarmThroughput()warmThroughput(IResolvable warmThroughput) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getWarmThroughput()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contributorInsightsSpecification
@Stability(Stable) public CfnTablePropsMixin.GlobalSecondaryIndexProperty.Builder contributorInsightsSpecification(IResolvable contributorInsightsSpecification) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getContributorInsightsSpecification()- Parameters:
contributorInsightsSpecification- The settings used to specify whether to enable CloudWatch Contributor Insights for the global table and define which events to monitor.- Returns:
this
-
contributorInsightsSpecification
@Stability(Stable) public CfnTablePropsMixin.GlobalSecondaryIndexProperty.Builder contributorInsightsSpecification(CfnTablePropsMixin.ContributorInsightsSpecificationProperty contributorInsightsSpecification) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getContributorInsightsSpecification()- Parameters:
contributorInsightsSpecification- The settings used to specify whether to enable CloudWatch Contributor Insights for the global table and define which events to monitor.- Returns:
this
-
indexName
@Stability(Stable) public CfnTablePropsMixin.GlobalSecondaryIndexProperty.Builder indexName(String indexName) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getIndexName()- Parameters:
indexName- The name of the global secondary index. The name must be unique among all other indexes on this table.- Returns:
this
-
keySchema
@Stability(Stable) public CfnTablePropsMixin.GlobalSecondaryIndexProperty.Builder keySchema(IResolvable keySchema) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getKeySchema()- Parameters:
keySchema- The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types: -HASH- partition key -RANGE- sort key > The partition key of an item is also known as its hash attribute . The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.The sort key of an item is also known as its range attribute . The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
- Returns:
this
-
keySchema
@Stability(Stable) public CfnTablePropsMixin.GlobalSecondaryIndexProperty.Builder keySchema(List<? extends Object> keySchema) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getKeySchema()- Parameters:
keySchema- The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types: -HASH- partition key -RANGE- sort key > The partition key of an item is also known as its hash attribute . The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.The sort key of an item is also known as its range attribute . The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
- Returns:
this
-
onDemandThroughput
@Stability(Stable) public CfnTablePropsMixin.GlobalSecondaryIndexProperty.Builder onDemandThroughput(IResolvable onDemandThroughput) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getOnDemandThroughput()- Parameters:
onDemandThroughput- The maximum number of read and write units for the specified global secondary index. If you use this parameter, you must specifyMaxReadRequestUnits,MaxWriteRequestUnits, or both. You must use eitherOnDemandThroughputorProvisionedThroughputbased on your table's capacity mode.- Returns:
this
-
onDemandThroughput
@Stability(Stable) public CfnTablePropsMixin.GlobalSecondaryIndexProperty.Builder onDemandThroughput(CfnTablePropsMixin.OnDemandThroughputProperty onDemandThroughput) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getOnDemandThroughput()- Parameters:
onDemandThroughput- The maximum number of read and write units for the specified global secondary index. If you use this parameter, you must specifyMaxReadRequestUnits,MaxWriteRequestUnits, or both. You must use eitherOnDemandThroughputorProvisionedThroughputbased on your table's capacity mode.- Returns:
this
-
projection
@Stability(Stable) public CfnTablePropsMixin.GlobalSecondaryIndexProperty.Builder projection(IResolvable projection) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getProjection()- Parameters:
projection- Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.- Returns:
this
-
projection
@Stability(Stable) public CfnTablePropsMixin.GlobalSecondaryIndexProperty.Builder projection(CfnTablePropsMixin.ProjectionProperty projection) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getProjection()- Parameters:
projection- Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.- Returns:
this
-
provisionedThroughput
@Stability(Stable) public CfnTablePropsMixin.GlobalSecondaryIndexProperty.Builder provisionedThroughput(IResolvable provisionedThroughput) - Parameters:
provisionedThroughput- Represents the provisioned throughput settings for the specified global secondary index. You must use eitherOnDemandThroughputorProvisionedThroughputbased on your table's capacity mode.For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide .
- Returns:
this
-
provisionedThroughput
@Stability(Stable) public CfnTablePropsMixin.GlobalSecondaryIndexProperty.Builder provisionedThroughput(CfnTablePropsMixin.ProvisionedThroughputProperty provisionedThroughput) - Parameters:
provisionedThroughput- Represents the provisioned throughput settings for the specified global secondary index. You must use eitherOnDemandThroughputorProvisionedThroughputbased on your table's capacity mode.For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide .
- Returns:
this
-
warmThroughput
@Stability(Stable) public CfnTablePropsMixin.GlobalSecondaryIndexProperty.Builder warmThroughput(IResolvable warmThroughput) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getWarmThroughput()- Parameters:
warmThroughput- Represents the warm throughput value (in read units per second and write units per second) for the specified secondary index. If you use this parameter, you must specifyReadUnitsPerSecond,WriteUnitsPerSecond, or both.- Returns:
this
-
warmThroughput
@Stability(Stable) public CfnTablePropsMixin.GlobalSecondaryIndexProperty.Builder warmThroughput(CfnTablePropsMixin.WarmThroughputProperty warmThroughput) Sets the value ofCfnTablePropsMixin.GlobalSecondaryIndexProperty.getWarmThroughput()- Parameters:
warmThroughput- Represents the warm throughput value (in read units per second and write units per second) for the specified secondary index. If you use this parameter, you must specifyReadUnitsPerSecond,WriteUnitsPerSecond, or both.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTablePropsMixin.GlobalSecondaryIndexProperty>- Returns:
- a new instance of
CfnTablePropsMixin.GlobalSecondaryIndexProperty - Throws:
NullPointerException- if any required attribute was not provided
-