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.98.0 (build 00b106d)", date="2024-05-24T02:42:43.965Z") @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)