@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:41.638Z")
public interface CfnBucketPolicyProps
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.s3.*; Object policyDocument; CfnBucketPolicyProps cfnBucketPolicyProps = CfnBucketPolicyProps.builder() .bucket("bucket") .policyDocument(policyDocument) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnBucketPolicyProps.Builder
A builder for
CfnBucketPolicyProps |
static class |
CfnBucketPolicyProps.Jsii$Proxy
An implementation for
CfnBucketPolicyProps |
Modifier and Type | Method and Description |
---|---|
static CfnBucketPolicyProps.Builder |
builder() |
java.lang.String |
getBucket()
The name of the Amazon S3 bucket to which the policy applies.
|
java.lang.Object |
getPolicyDocument()
A policy document containing permissions to add to the specified bucket.
|
java.lang.String getBucket()
java.lang.Object getPolicyDocument()
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 .
static CfnBucketPolicyProps.Builder builder()
CfnBucketPolicyProps.Builder
of CfnBucketPolicyProps