class BucketBlockPublicAccess
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.S3.Mixins.BucketBlockPublicAccess |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awss3/mixins#BucketBlockPublicAccess |
Java | software.amazon.awscdk.mixins.preview.services.s3.mixins.BucketBlockPublicAccess |
Python | aws_cdk.mixins_preview.aws_s3.mixins.BucketBlockPublicAccess |
TypeScript (source) | @aws-cdk/mixins-preview ยป aws_s3 ยป mixins ยป BucketBlockPublicAccess |
Implements
IMixin
S3-specific mixin for blocking public-access.
Example
const bucket = new s3.CfnBucket(scope, "Bucket");
Mixins.of(bucket).apply(new BucketBlockPublicAccess());
Initializer
new BucketBlockPublicAccess(publicAccessConfig?: BlockPublicAccess)
Parameters
- publicAccessConfig
BlockPublic Access
Methods
| Name | Description |
|---|---|
| apply | Applies the mixin functionality to the target construct. |
| supports(construct) | Determines whether this mixin can be applied to the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): void
Parameters
- construct
IConstruct
Applies the mixin functionality to the target construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Determines whether this mixin can be applied to the given construct.

.NET
Go
Java
Python
TypeScript (