class CfnBucketPolicyPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.S3Outposts.Mixins.CfnBucketPolicyPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awss3outposts/mixins#CfnBucketPolicyPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.s3outposts.mixins.CfnBucketPolicyPropsMixin |
Python | aws_cdk.mixins_preview.aws_s3outposts.mixins.CfnBucketPolicyPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_s3outposts » mixins » CfnBucketPolicyPropsMixin |
Implements
IMixin
Extends
Mixin
This resource applies a bucket policy to an Amazon S3 on Outposts bucket.
If you are using an identity other than the root user of the AWS account that owns the S3 on Outposts bucket, the calling identity must have the s3-outposts:PutBucketPolicy permissions on the specified Outposts bucket and belong to the bucket owner's account in order to use this resource.
If you don't have s3-outposts:PutBucketPolicy permissions, S3 on Outposts returns a 403 Access Denied error.
The root user of the AWS account that owns an Outposts bucket can always use this resource, even if the policy explicitly denies the root user the ability to perform actions on this resource.
For more information, see the AWS::IAM::Policy PolicyDocument resource description in this guide and Access Policy Language Overview .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as s3outposts_mixins } from '@aws-cdk/mixins-preview/aws-s3outposts';
declare const policyDocument: any;
const cfnBucketPolicyPropsMixin = new s3outposts_mixins.CfnBucketPolicyPropsMixin({
bucket: 'bucket',
policyDocument: policyDocument,
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnBucketPolicyPropsMixin(props: CfnBucketPolicyMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Bucket Policy Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::S3Outposts::BucketPolicy.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript