Class TablePolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.s3tables.alpha.TablePolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TablePolicyProps>
- Enclosing interface:
TablePolicyProps
@Stability(Experimental)
public static final class TablePolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<TablePolicyProps>
A builder for
TablePolicyProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.removalPolicy
(RemovalPolicy removalPolicy) Sets the value ofTablePolicyProps.getRemovalPolicy()
resourcePolicy
(PolicyDocument resourcePolicy) Sets the value ofTablePolicyProps.getResourcePolicy()
Sets the value ofTablePolicyProps.getTable()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
table
Sets the value ofTablePolicyProps.getTable()
- Parameters:
table
- The associated table. This parameter is required.- Returns:
this
-
removalPolicy
Sets the value ofTablePolicyProps.getRemovalPolicy()
- Parameters:
removalPolicy
- Policy to apply when the policy is removed from this stack.- Returns:
this
-
resourcePolicy
@Stability(Experimental) public TablePolicyProps.Builder resourcePolicy(PolicyDocument resourcePolicy) Sets the value ofTablePolicyProps.getResourcePolicy()
- Parameters:
resourcePolicy
- The policy document for the table's resource policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TablePolicyProps>
- Returns:
- a new instance of
TablePolicyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-