Class BlockPublicAccess

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.s3.BlockPublicAccess
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:37.486Z") @Stability(Stable) public class BlockPublicAccess extends software.amazon.jsii.JsiiObject
Example:

 Bucket bucket = Bucket.Builder.create(this, "MyBlockedBucket")
         .blockPublicAccess(BlockPublicAccess.BLOCK_ALL)
         .build();
 
  • Field Details

  • Constructor Details

    • BlockPublicAccess

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

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

      @Stability(Stable) public BlockPublicAccess(@NotNull BlockPublicAccessOptions options)
      Parameters:
      options - This parameter is required.
  • Method Details

    • getBlockPublicAcls

      @Stability(Stable) @Nullable public Boolean getBlockPublicAcls()
    • setBlockPublicAcls

      @Stability(Stable) public void setBlockPublicAcls(@Nullable Boolean value)
    • getBlockPublicPolicy

      @Stability(Stable) @Nullable public Boolean getBlockPublicPolicy()
    • setBlockPublicPolicy

      @Stability(Stable) public void setBlockPublicPolicy(@Nullable Boolean value)
    • getIgnorePublicAcls

      @Stability(Stable) @Nullable public Boolean getIgnorePublicAcls()
    • setIgnorePublicAcls

      @Stability(Stable) public void setIgnorePublicAcls(@Nullable Boolean value)
    • getRestrictPublicBuckets

      @Stability(Stable) @Nullable public Boolean getRestrictPublicBuckets()
    • setRestrictPublicBuckets

      @Stability(Stable) public void setRestrictPublicBuckets(@Nullable Boolean value)