@Stability(value=Stable) public static final class CfnBucketPolicyProps.Builder extends Object implements software.amazon.jsii.Builder<CfnBucketPolicyProps>
CfnBucketPolicyProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnBucketPolicyProps.Builder |
bucket(String bucket)
Sets the value of
CfnBucketPolicyProps.getBucket() |
CfnBucketPolicyProps |
build()
Builds the configured instance.
|
CfnBucketPolicyProps.Builder |
policyDocument(Object policyDocument)
Sets the value of
CfnBucketPolicyProps.getPolicyDocument() |
@Stability(value=Stable) public CfnBucketPolicyProps.Builder bucket(String bucket)
CfnBucketPolicyProps.getBucket()bucket - The name of the Amazon S3 bucket to which the policy applies. This parameter is required.this@Stability(value=Stable) public CfnBucketPolicyProps.Builder policyDocument(Object policyDocument)
CfnBucketPolicyProps.getPolicyDocument()policyDocument - A policy document containing permissions to add to the specified bucket. This parameter is required.
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 in the Amazon S3 User Guide .this@Stability(value=Stable) public CfnBucketPolicyProps build()
build in interface software.amazon.jsii.Builder<CfnBucketPolicyProps>CfnBucketPolicyPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.