Interface CfnBucketProps

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:59.711Z") @Stability(Stable) public interface CfnBucketProps extends
Properties for defining a CfnBucket.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 CfnBucketProps cfnBucketProps = CfnBucketProps.builder()
         // the properties below are optional
  • Method Details

    • getBucketName

      @Stability(Stable) @NotNull String getBucketName()
      The name of the bucket.
    • getBundleId

      @Stability(Stable) @NotNull String getBundleId()
      The bundle ID for the bucket (for example, small_1_0 ).

      A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.

    • getAccessRules

      @Stability(Stable) @Nullable default Object getAccessRules()
      An object that describes the access rules for the bucket.
    • getObjectVersioning

      @Stability(Stable) @Nullable default Object getObjectVersioning()
      Indicates whether object versioning is enabled for the bucket.

      The following options can be configured:

      • Enabled - Object versioning is enabled.
      • Suspended - Object versioning was previously enabled but is currently suspended. Existing object versions are retained.
      • NeverEnabled - Object versioning has never been enabled.
    • getReadOnlyAccessAccounts

      @Stability(Stable) @Nullable default List<String> getReadOnlyAccessAccounts()
      An array of AWS account IDs that have read-only access to the bucket.
    • getResourcesReceivingAccess

      @Stability(Stable) @Nullable default List<String> getResourcesReceivingAccess()
      An array of Lightsail instances that have access to the bucket.
    • getTags

      @Stability(Stable) @Nullable default List<CfnTag> getTags()
      An array of key-value pairs to apply to this resource.

      For more information, see Tag in the AWS CloudFormation User Guide .

      The Value of Tags is optional for Lightsail resources.

    • builder

      @Stability(Stable) static CfnBucketProps.Builder builder()
      a CfnBucketProps.Builder of CfnBucketProps