Class TableAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.TableAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TableAttributes>
- Enclosing interface:
- TableAttributes
@Stability(Stable)
public static final class TableAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<TableAttributes>
A builder for
TableAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encryptionKey(IKey encryptionKey) Sets the value ofTableAttributes.getEncryptionKey()globalIndexes(List<String> globalIndexes) Sets the value ofTableAttributes.getGlobalIndexes()localIndexes(List<String> localIndexes) Sets the value ofTableAttributes.getLocalIndexes()Sets the value ofTableAttributes.getTableArn()Sets the value ofTableAttributes.getTableName()tableStreamArn(String tableStreamArn) Sets the value ofTableAttributes.getTableStreamArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryptionKey
Sets the value ofTableAttributes.getEncryptionKey()- Parameters:
encryptionKey- KMS encryption key, if this table uses a customer-managed encryption key.- Returns:
this
-
globalIndexes
Sets the value ofTableAttributes.getGlobalIndexes()- Parameters:
globalIndexes- The name of the global indexes set for this Table. Note that you need to set either this property, orlocalIndexes, if you want methods like grantReadData() to grant permissions for indexes as well as the table itself.- Returns:
this
-
localIndexes
Sets the value ofTableAttributes.getLocalIndexes()- Parameters:
localIndexes- The name of the local indexes set for this Table. Note that you need to set either this property, orglobalIndexes, if you want methods like grantReadData() to grant permissions for indexes as well as the table itself.- Returns:
this
-
tableArn
Sets the value ofTableAttributes.getTableArn()- Parameters:
tableArn- The ARN of the dynamodb table. One of this, ortableName, is required.- Returns:
this
-
tableName
Sets the value ofTableAttributes.getTableName()- Parameters:
tableName- The table name of the dynamodb table. One of this, ortableArn, is required.- Returns:
this
-
tableStreamArn
Sets the value ofTableAttributes.getTableStreamArn()- Parameters:
tableStreamArn- The ARN of the table's stream.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TableAttributes>- Returns:
- a new instance of
TableAttributes - Throws:
NullPointerException- if any required attribute was not provided
-