interface CfnBucketPolicyProps
Language | Type name |
---|---|
![]() | Amazon.CDK.aws_s3express.CfnBucketPolicyProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awss3express#CfnBucketPolicyProps |
![]() | software.amazon.awscdk.services.s3express.CfnBucketPolicyProps |
![]() | aws_cdk.aws_s3express.CfnBucketPolicyProps |
![]() | aws-cdk-lib » aws_s3express » CfnBucketPolicyProps |
Properties for defining a CfnBucketPolicy
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3express as s3express } from 'aws-cdk-lib';
declare const policyDocument: any;
const cfnBucketPolicyProps: s3express.CfnBucketPolicyProps = {
bucket: 'bucket',
policyDocument: policyDocument,
};
Properties
Name | Type | Description |
---|---|---|
bucket | string | The name of the S3 directory bucket to which the policy applies. |
policy | any | A policy document containing permissions to add to the specified bucket. |
bucket
Type:
string
The name of the S3 directory bucket to which the policy applies.
policyDocument
Type:
any
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 Policies and Permissions in Amazon S3 in the Amazon S3 User Guide .