Class CfnBucket.AccessRulesProperty.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lightsail.CfnBucket.AccessRulesProperty.Jsii$Proxy
All Implemented Interfaces:
CfnBucket.AccessRulesProperty, software.amazon.jsii.JsiiSerializable
Enclosing interface:
CfnBucket.AccessRulesProperty

@Stability(Stable) @Internal public static final class CfnBucket.AccessRulesProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnBucket.AccessRulesProperty
An implementation for CfnBucket.AccessRulesProperty
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(CfnBucket.AccessRulesProperty.Builder builder)
      Constructor that initializes the object based on literal property values passed by the CfnBucket.AccessRulesProperty.Builder.
  • Method Details

    • getAllowPublicOverrides

      public final Object getAllowPublicOverrides()
      Description copied from interface: CfnBucket.AccessRulesProperty
      A Boolean value indicating whether the access control list (ACL) permissions that are applied to individual objects override the `GetObject` option that is currently specified.

      When this is true, you can use the PutObjectAcl Amazon S3 API operation to set individual objects to public (read-only) or private, using either the public-read ACL or the private ACL.

      Specified by:
      getAllowPublicOverrides in interface CfnBucket.AccessRulesProperty
    • getObjectAccess

      public final String getObjectAccess()
      Description copied from interface: CfnBucket.AccessRulesProperty
      Specifies the anonymous access to all objects in a bucket.

      The following options can be specified:

      • public - Sets all objects in the bucket to public (read-only), making them readable by everyone on the internet.

      If the GetObject value is set to public , then all objects in the bucket default to public regardless of the allowPublicOverrides value.

      • private - Sets all objects in the bucket to private, making them readable only by you and anyone that you grant access to.

      If the GetObject value is set to private , and the allowPublicOverrides value is set to true , then all objects in the bucket default to private unless they are configured with a public-read ACL. Individual objects with a public-read ACL are readable by everyone on the internet.

      Specified by:
      getObjectAccess in interface CfnBucket.AccessRulesProperty
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object