@Stability(value=Stable) public static final class TableAttributes.Builder extends Object implements software.amazon.jsii.Builder<TableAttributes>
TableAttributes| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
TableAttributes |
build()
Builds the configured instance.
|
TableAttributes.Builder |
encryptionKey(IKey encryptionKey)
Sets the value of
TableAttributes.getEncryptionKey() |
TableAttributes.Builder |
globalIndexes(List<String> globalIndexes)
Sets the value of
TableAttributes.getGlobalIndexes() |
TableAttributes.Builder |
grantIndexPermissions(Boolean grantIndexPermissions)
Sets the value of
TableAttributes.getGrantIndexPermissions() |
TableAttributes.Builder |
localIndexes(List<String> localIndexes)
Sets the value of
TableAttributes.getLocalIndexes() |
TableAttributes.Builder |
tableArn(String tableArn)
Sets the value of
TableAttributes.getTableArn() |
TableAttributes.Builder |
tableName(String tableName)
Sets the value of
TableAttributes.getTableName() |
TableAttributes.Builder |
tableStreamArn(String tableStreamArn)
Sets the value of
TableAttributes.getTableStreamArn() |
@Stability(value=Stable) public TableAttributes.Builder encryptionKey(IKey encryptionKey)
TableAttributes.getEncryptionKey()encryptionKey - KMS encryption key, if this table uses a customer-managed encryption key.this@Stability(value=Stable) public TableAttributes.Builder globalIndexes(List<String> globalIndexes)
TableAttributes.getGlobalIndexes()globalIndexes - The name of the global indexes set for this Table.
Note that you need to set either this property,
or {@link localIndexes},
if you want methods like grantReadData()
to grant permissions for indexes as well as the table itself.this@Stability(value=Stable) public TableAttributes.Builder grantIndexPermissions(Boolean grantIndexPermissions)
TableAttributes.getGrantIndexPermissions()grantIndexPermissions - If set to true, grant methods always grant permissions for all indexes.
If false is provided, grant methods grant the permissions
only when {@link globalIndexes} or {@link localIndexes} is specified.this@Stability(value=Stable) public TableAttributes.Builder localIndexes(List<String> localIndexes)
TableAttributes.getLocalIndexes()localIndexes - The name of the local indexes set for this Table.
Note that you need to set either this property,
or {@link globalIndexes},
if you want methods like grantReadData()
to grant permissions for indexes as well as the table itself.this@Stability(value=Stable) public TableAttributes.Builder tableArn(String tableArn)
TableAttributes.getTableArn()tableArn - The ARN of the dynamodb table.
One of this, or {@link tableName}, is required.this@Stability(value=Stable) public TableAttributes.Builder tableName(String tableName)
TableAttributes.getTableName()tableName - The table name of the dynamodb table.
One of this, or {@link tableArn}, is required.this@Stability(value=Stable) public TableAttributes.Builder tableStreamArn(String tableStreamArn)
TableAttributes.getTableStreamArn()tableStreamArn - The ARN of the table's stream.this@Stability(value=Stable) public TableAttributes build()
build in interface software.amazon.jsii.Builder<TableAttributes>TableAttributesNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.