Class CfnBucketPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.s3.CfnBucketPropsMixin
- 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.709Z")
@Stability(Stable)
public class CfnBucketPropsMixin
extends Mixin
implements software.constructs.IMixin
The
AWS::S3::Bucket resource creates an Amazon S3 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.
Example:
CfnBucket combineBucket = new CfnBucket(scope, "CombineBucket");
combineBucket.getPublicAccessBlockConfiguration() = PublicAccessBlockConfigurationProperty.builder().blockPublicAcls(true).build();
// Adds blockPublicPolicy while preserving the existing blockPublicAcls
combineBucket.with(CfnBucketPropsMixin.Builder.create()
.publicAccessBlockConfiguration(PublicAccessBlockConfigurationProperty.builder().blockPublicPolicy(true).build())
.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 interfaceConfigures the transfer acceleration state for an Amazon S3 bucket.static interfaceSpecify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the AWS account that owns the destination bucket.static interfaceSpecifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.static interfaceA bucket-level setting for Amazon S3 general purpose buckets used to prevent the upload of new objects encrypted with the specified server-side encryption type.static interfaceSpecifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3), AWS KMS-managed keys (SSE-KMS), or dual-layer server-side encryption with KMS-managed keys (DSSE-KMS).static final classA fluent builder forCfnBucketPropsMixin.static interfaceDescribes the cross-origin access configuration for objects in an Amazon S3 bucket.static interfaceSpecifies a cross-origin access rule for an Amazon S3 bucket.static interfaceSpecifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.static interfaceThe container element for optionally specifying the default Object Lock retention settings for new objects placed in the specified bucket.static interfaceSpecifies whether Amazon S3 replicates delete markers.static interfaceSpecifies information about where to publish analysis or configuration results for an Amazon S3 bucket.static interfaceSpecifies encryption-related information for an Amazon S3 bucket that is a destination for replicated objects.static interfaceAmazon S3 can send events to Amazon EventBridge whenever certain events happen in your bucket, see Using EventBridge in the Amazon S3 User Guide .static interfaceSpecifies the Amazon S3 object key name to filter on.static interfaceSpecifies the S3 Intelligent-Tiering configuration for an Amazon S3 bucket.static interfaceSpecifies the S3 Inventory configuration for an Amazon S3 bucket.static interfaceThe inventory table configuration for an S3 Metadata configuration.static interfaceThe journal table configuration for an S3 Metadata configuration.static interfaceDescribes the AWS Lambda functions to invoke and the events for which to invoke them.static interfaceSpecifies the lifecycle configuration for objects in an Amazon S3 bucket.static interfaceDescribes where logs are stored and the prefix that Amazon S3 assigns to all log object keys for a bucket.static interfaceCreates a V2 Amazon S3 Metadata configuration of a general purpose bucket.static interfaceThe destination information for the S3 Metadata configuration.static interfacestatic interfaceThe encryption settings for an S3 Metadata journal table or inventory table configuration.static interfaceSpecifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket.static interfaceA container specifying replication metrics-related settings enabling replication metrics and events.static interfaceSpecifies when noncurrent object versions expire.static interfaceContainer for the transition rule that describes when noncurrent objects transition to theSTANDARD_IA,ONEZONE_IA,INTELLIGENT_TIERING,GLACIER_IR,GLACIER, orDEEP_ARCHIVEstorage class.static interfaceDescribes the notification configuration for an Amazon S3 bucket.static interfaceSpecifies object key name filtering rules.static interfacePlaces an Object Lock configuration on the specified bucket.static interfaceSpecifies the Object Lock rule for the specified object.static interfaceSpecifies the container element for Object Ownership rules.static interfaceSpecifies an Object Ownership rule.static interfaceAmazon S3 keys for log objects are partitioned in the following format:.static interfaceThe PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket.static interfaceSpecifies the configuration for publishing messages to an Amazon Simple Queue Service (Amazon SQS) queue when Amazon S3 detects specified events.static interfaceThe journal table record expiration settings for a journal table in an S3 Metadata configuration.static interfaceSpecifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.static interfaceSpecifies how requests are redirected.static interfaceA filter that you can specify for selection for modifications on replicas.static interfaceA container for replication rules.static interfaceA container for information about the replication destination and its configurations including enabling the S3 Replication Time Control (S3 RTC).static interfaceA container for specifying rule filters.static interfaceA filter that identifies the subset of objects to which the replication rule applies.static interfaceSpecifies which Amazon S3 objects to replicate and where to store the replicas.static interfaceA container specifying S3 Replication Time Control (S3 RTC) related information, including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated.static interfaceA container specifying the time value for S3 Replication Time Control (S3 RTC) and replication metricsEventThreshold.static interfaceA container for describing a condition that must be met for the specified redirect to apply.static interfaceSpecifies the redirect behavior and when a redirect is applied.static interfaceSpecifies lifecycle rules for an Amazon S3 bucket.static interfaceA container for object key name prefix and suffix filtering rules.static interfaceThe destination information for a V1 S3 Metadata configuration.static interfaceDescribes the default server-side encryption to apply to new objects in the bucket.static interfaceSpecifies the default server-side encryption configuration.static interfaceA container that describes additional filters for identifying the source objects that you want to replicate.static interfaceA container for filter information for the selection of S3 objects encrypted with AWS KMS.static interfaceSpecifies data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes for an Amazon S3 bucket.static interfaceSpecifies tags to use to identify a subset of objects for an Amazon S3 bucket.static interfaceAmazon S3 key format for log objects.static interfaceThe S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without additional operational overhead.static interfaceA container for specifying the configuration for publication of messages to an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3 detects specified events.static interfaceSpecifies when an object transitions to a specified storage class.static interfaceDescribes the versioning state of an Amazon S3 bucket.static interfaceSpecifies website configuration parameters for an Amazon S3 bucket.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::S3::Bucket.CfnBucketPropsMixin(CfnBucketMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::S3::Bucket.protectedCfnBucketPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnBucketPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnBucketMixinPropsgetProps()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
-
CfnBucketPropsMixin
protected CfnBucketPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnBucketPropsMixin
protected CfnBucketPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnBucketPropsMixin
@Stability(Stable) public CfnBucketPropsMixin(@NotNull CfnBucketMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::S3::Bucket.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnBucketPropsMixin
Create a mixin to apply properties toAWS::S3::Bucket.- 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
-