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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSpecifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload.static interfaceSpecifies default encryption for a bucket using server-side encryption with Amazon S3 managed keys (SSE-S3) or AWS KMS keys (SSE-KMS).static final classA fluent builder forCfnDirectoryBucketPropsMixin.static interfaceContainer for lifecycle rules.static interfaceSpecifies lifecycle rules for an Amazon S3 bucket.static interfaceDescribes the default server-side encryption to apply to new objects in the bucket.static interfaceSpecifies the default server-side encryption configuration.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::S3Express::DirectoryBucket.Create a mixin to apply properties toAWS::S3Express::DirectoryBucket.protectedCfnDirectoryBucketPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDirectoryBucketPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnDirectoryBucketMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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 toAWS::S3Express::DirectoryBucket.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnDirectoryBucketPropsMixin
Create a mixin to apply properties toAWS::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. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-