Class CfnBucketPolicyPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3outposts.CfnBucketPolicyPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketPolicyPropsMixin>
- Enclosing class:
CfnBucketPolicyPropsMixin
@Stability(Stable)
public static final class CfnBucketPolicyPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucketPolicyPropsMixin>
A fluent builder for
CfnBucketPolicyPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionThe name of the Amazon S3 Outposts bucket to which the policy applies.build()create()create(CfnPropertyMixinOptions options) policyDocument(Object policyDocument) A policy document containing permissions to add to the specified bucket.
-
Method Details
-
create
@Stability(Stable) public static CfnBucketPolicyPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnBucketPolicyPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnBucketPolicyPropsMixin.Builder.
-
bucket
The name of the Amazon S3 Outposts bucket to which the policy applies.- Parameters:
bucket- The name of the Amazon S3 Outposts bucket to which the policy applies. This parameter is required.- Returns:
this- See Also:
-
policyDocument
A policy document containing permissions to add to the specified bucket.In IAM, you must provide policy documents in JSON format. However, in CloudFormation, you can provide the policy in JSON or YAML format because CloudFormation converts YAML to JSON before submitting it to IAM. For more information, see the AWS::IAM::Policy PolicyDocument resource description in this guide and Access Policy Language Overview .
- Parameters:
policyDocument- A policy document containing permissions to add to the specified bucket. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucketPolicyPropsMixin>- Returns:
- a newly built instance of
CfnBucketPolicyPropsMixin.
-