Class BucketBlockPublicAccess

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.services.s3.mixins.BucketBlockPublicAccess
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-19T12:55:12.375Z") @Stability(Stable) public class BucketBlockPublicAccess extends Mixin
S3-specific mixin for blocking public-access.

Example:

 // Applies an Aspect immediately as a Mixin
 IMixin versioningMixin = Shims.asMixin(new EnableBucketVersioning());
 Mixins.of(scope).apply(versioningMixin);
 // Delays application of a Mixin to the synthesis phase
 IAspect publicAccessAspect = Shims.asAspect(new BucketBlockPublicAccess());
 Aspects.of(scope).add(publicAccessAspect);
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.constructs.IMixin

    software.constructs.IMixin.Jsii$Default
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
     
     
    protected
    BucketBlockPublicAccess(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    BucketBlockPublicAccess(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyTo(software.constructs.IConstruct construct)
    Applies the mixin functionality to the target construct.
    supports(software.constructs.IConstruct construct)
    Determines whether this mixin can be applied to the given construct.

    Methods inherited from class software.amazon.awscdk.Mixin

    isMixin

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • BucketBlockPublicAccess

      protected BucketBlockPublicAccess(software.amazon.jsii.JsiiObjectRef objRef)
    • BucketBlockPublicAccess

      protected BucketBlockPublicAccess(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • BucketBlockPublicAccess

      @Stability(Stable) public BucketBlockPublicAccess(@Nullable BlockPublicAccess publicAccessConfig)
      Parameters:
      publicAccessConfig -
    • BucketBlockPublicAccess

      @Stability(Stable) public BucketBlockPublicAccess()
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Applies the mixin functionality to the target construct.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Determines whether this mixin can be applied to the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.