BucketBlockPublicAccess
- class aws_cdk.mixins_preview.aws_s3.mixins.BucketBlockPublicAccess(public_access_config=None)
Bases:
object(experimental) S3-specific mixin for blocking public-access.
- Stability:
experimental
- Mixin:
true
- ExampleMetadata:
infused
Example:
bucket = s3.CfnBucket(scope, "Bucket") Mixins.of(bucket).apply(BucketBlockPublicAccess())
- Parameters:
public_access_config (
Optional[BlockPublicAccess])- Stability:
experimental
Methods
- apply_to(construct)
(experimental) Applies the mixin functionality to the target construct.
- Parameters:
construct (
IConstruct)- Stability:
experimental
- Return type:
None
- supports(construct)
(experimental) Determines whether this mixin can be applied to the given construct.
- Parameters:
construct (
IConstruct)- Stability:
experimental
- Return type:
bool