Class CfnDirectoryBucketPropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.s3express.CfnDirectoryBucketPropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:20:04.809Z") @Stability(Stable) public class CfnDirectoryBucketPropsMixin extends Mixin implements software.constructs.IMixin
The AWS::S3Express::DirectoryBucket resource defines an Amazon S3 directory bucket in the same AWS Region where you create the AWS CloudFormation stack.

To control how AWS CloudFormation handles the bucket when the stack is deleted, you can set a deletion policy for your bucket. You can choose to retain the bucket or to delete the bucket. For more information, see DeletionPolicy attribute .

You can only delete empty buckets. Deletion fails for buckets that have contents.

  • Permissions - The required permissions for CloudFormation to use are based on the operations that are performed on the stack.
  • Create
  • s3express:CreateBucket
  • s3express:ListAllMyDirectoryBuckets
  • Read
  • s3express:ListAllMyDirectoryBuckets
  • ec2:DescribeAvailabilityZones
  • Delete
  • s3express:DeleteBucket
  • s3express:ListAllMyDirectoryBuckets
  • List
  • s3express:ListAllMyDirectoryBuckets
  • PutBucketEncryption
  • s3express:PutEncryptionConfiguration
  • To set a directory bucket default encryption with SSE-KMS, you must also have the kms:GenerateDataKey and kms:Decrypt permissions in IAM identity-based policies and AWS KMS key policies for the target AWS KMS key.
  • GetBucketEncryption
  • s3express:GetBucketEncryption
  • DeleteBucketEncryption
  • s3express:PutEncryptionConfiguration

The following operations are related to AWS::S3Express::DirectoryBucket :

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.s3express.*;
 import software.amazon.awscdk.*;
 IMergeStrategy mergeStrategy;
 CfnDirectoryBucketPropsMixin cfnDirectoryBucketPropsMixin = CfnDirectoryBucketPropsMixin.Builder.create(CfnDirectoryBucketMixinProps.builder()
         .bucketEncryption(BucketEncryptionProperty.builder()
                 .serverSideEncryptionConfiguration(List.of(ServerSideEncryptionRuleProperty.builder()
                         .bucketKeyEnabled(false)
                         .serverSideEncryptionByDefault(ServerSideEncryptionByDefaultProperty.builder()
                                 .kmsMasterKeyId("kmsMasterKeyId")
                                 .sseAlgorithm("sseAlgorithm")
                                 .build())
                         .build()))
                 .build())
         .bucketName("bucketName")
         .dataRedundancy("dataRedundancy")
         .lifecycleConfiguration(LifecycleConfigurationProperty.builder()
                 .rules(List.of(RuleProperty.builder()
                         .abortIncompleteMultipartUpload(AbortIncompleteMultipartUploadProperty.builder()
                                 .daysAfterInitiation(123)
                                 .build())
                         .expirationInDays(123)
                         .id("id")
                         .objectSizeGreaterThan("objectSizeGreaterThan")
                         .objectSizeLessThan("objectSizeLessThan")
                         .prefix("prefix")
                         .status("status")
                         .build()))
                 .build())
         .locationName("locationName")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnDirectoryBucketPropsMixin

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

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

      @Stability(Stable) public CfnDirectoryBucketPropsMixin(@NotNull CfnDirectoryBucketMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::S3Express::DirectoryBucket.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnDirectoryBucketPropsMixin

      @Stability(Stable) public CfnDirectoryBucketPropsMixin(@NotNull CfnDirectoryBucketMixinProps props)
      Create a mixin to apply properties to AWS::S3Express::DirectoryBucket.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the 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)
      Check if this mixin supports the given construct.

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

      @Stability(Stable) @NotNull protected CfnDirectoryBucketMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()