Class TableGrantsProps.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.TableGrantsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TableGrantsProps>
- Enclosing interface:
TableGrantsProps
@Stability(Stable)
public static final class TableGrantsProps.Builder
extends Object
implements software.amazon.jsii.Builder<TableGrantsProps>
A builder for
TableGrantsProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encryptedResource(IEncryptedResource encryptedResource) Sets the value ofTableGrantsProps.getEncryptedResource()Sets the value ofTableGrantsProps.getHasIndex()policyResource(IResourceWithPolicyV2 policyResource) Sets the value ofTableGrantsProps.getPolicyResource()Sets the value ofTableGrantsProps.getRegions()Sets the value ofTableGrantsProps.getTable()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
table
Sets the value ofTableGrantsProps.getTable()- Parameters:
table- The table to grant permissions on. This parameter is required.- Returns:
this
-
encryptedResource
@Stability(Stable) public TableGrantsProps.Builder encryptedResource(IEncryptedResource encryptedResource) Sets the value ofTableGrantsProps.getEncryptedResource()- Parameters:
encryptedResource- The encrypted resource on which actions will be allowed.- Returns:
this
-
hasIndex
Sets the value ofTableGrantsProps.getHasIndex()- Parameters:
hasIndex- Whether this table has indexes. If so, permissions are granted on all table indexes as well.- Returns:
this
-
policyResource
@Stability(Stable) public TableGrantsProps.Builder policyResource(IResourceWithPolicyV2 policyResource) Sets the value ofTableGrantsProps.getPolicyResource()- Parameters:
policyResource- The resource with policy on which actions will be allowed.- Returns:
this
-
regions
Sets the value ofTableGrantsProps.getRegions()- Parameters:
regions- Additional regions other than the main one that this table is replicated to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TableGrantsProps>- Returns:
- a new instance of
TableGrantsProps - Throws:
NullPointerException- if any required attribute was not provided
-