Class CfnBucketPolicyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3outposts.CfnBucketPolicyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketPolicyMixinProps>
- Enclosing interface:
CfnBucketPolicyMixinProps
@Stability(Stable)
public static final class CfnBucketPolicyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucketPolicyMixinProps>
A builder for
CfnBucketPolicyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnBucketPolicyMixinProps.getBucket()build()Builds the configured instance.policyDocument(Object policyDocument) Sets the value ofCfnBucketPolicyMixinProps.getPolicyDocument()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnBucketPolicyMixinProps.getBucket()- Parameters:
bucket- The name of the Amazon S3 Outposts bucket to which the policy applies.- Returns:
this
-
policyDocument
Sets the value ofCfnBucketPolicyMixinProps.getPolicyDocument()- Parameters:
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 .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucketPolicyMixinProps>- Returns:
- a new instance of
CfnBucketPolicyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-