Class CfnGlobalTable.ReplicaStreamSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalTable.ReplicaStreamSpecificationProperty>
- Enclosing interface:
CfnGlobalTable.ReplicaStreamSpecificationProperty
CfnGlobalTable.ReplicaStreamSpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.resourcePolicy
(IResolvable resourcePolicy) Sets the value ofCfnGlobalTable.ReplicaStreamSpecificationProperty.getResourcePolicy()
resourcePolicy
(CfnGlobalTable.ResourcePolicyProperty resourcePolicy) Sets the value ofCfnGlobalTable.ReplicaStreamSpecificationProperty.getResourcePolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourcePolicy
@Stability(Stable) public CfnGlobalTable.ReplicaStreamSpecificationProperty.Builder resourcePolicy(IResolvable resourcePolicy) Sets the value ofCfnGlobalTable.ReplicaStreamSpecificationProperty.getResourcePolicy()
- Parameters:
resourcePolicy
- A resource-based policy document that contains the permissions for the specified stream of a DynamoDB global table replica. This parameter is required. Resource-based policies let you define access permissions by specifying who has access to each resource, and the actions they are allowed to perform on each resource.In a CloudFormation template, you can provide the policy in JSON or YAML format because CloudFormation converts YAML to JSON before submitting it to DynamoDB . For more information about resource-based policies, see Using resource-based policies for DynamoDB and Resource-based policy examples .
You can update the
ResourcePolicy
property if you've specified more than one table using the AWS ::DynamoDB::GlobalTable resource.- Returns:
this
-
resourcePolicy
@Stability(Stable) public CfnGlobalTable.ReplicaStreamSpecificationProperty.Builder resourcePolicy(CfnGlobalTable.ResourcePolicyProperty resourcePolicy) Sets the value ofCfnGlobalTable.ReplicaStreamSpecificationProperty.getResourcePolicy()
- Parameters:
resourcePolicy
- A resource-based policy document that contains the permissions for the specified stream of a DynamoDB global table replica. This parameter is required. Resource-based policies let you define access permissions by specifying who has access to each resource, and the actions they are allowed to perform on each resource.In a CloudFormation template, you can provide the policy in JSON or YAML format because CloudFormation converts YAML to JSON before submitting it to DynamoDB . For more information about resource-based policies, see Using resource-based policies for DynamoDB and Resource-based policy examples .
You can update the
ResourcePolicy
property if you've specified more than one table using the AWS ::DynamoDB::GlobalTable resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGlobalTable.ReplicaStreamSpecificationProperty>
- Returns:
- a new instance of
CfnGlobalTable.ReplicaStreamSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-