class BucketBlockPublicAccess
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.S3.Mixins.BucketBlockPublicAccess |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awss3/mixins#BucketBlockPublicAccess |
Java | software.amazon.awscdk.services.s3.mixins.BucketBlockPublicAccess |
Python | aws_cdk.aws_s3.mixins.BucketBlockPublicAccess |
TypeScript (source) | aws-cdk-lib » aws_s3 » mixins » BucketBlockPublicAccess |
Implements
IMixin
Extends
Mixin
S3-specific mixin for blocking public-access.
Example
// Applies an Aspect immediately as a Mixin
const versioningMixin = Shims.asMixin(new EnableBucketVersioning());
Mixins.of(scope).apply(versioningMixin);
// Delays application of a Mixin to the synthesis phase
const publicAccessAspect = Shims.asAspect(new BucketBlockPublicAccess());
Aspects.of(scope).add(publicAccessAspect);
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 (