interface CfnBucketPolicyMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.S3Express.Mixins.CfnBucketPolicyMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awss3express/mixins#CfnBucketPolicyMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.s3express.mixins.CfnBucketPolicyMixinProps |
Python | aws_cdk.mixins_preview.aws_s3express.mixins.CfnBucketPolicyMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_s3express » mixins » CfnBucketPolicyMixinProps |
Properties for CfnBucketPolicyPropsMixin.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as s3express_mixins } from '@aws-cdk/mixins-preview/aws-s3express';
declare const policyDocument: any;
const cfnBucketPolicyMixinProps: s3express_mixins.CfnBucketPolicyMixinProps = {
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
(optional)
The name of the S3 directory bucket to which the policy applies.
policyDocument?
Type:
any
(optional)
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 .

.NET
Go
Java
Python
TypeScript