Class CfnBucket
- All Implemented Interfaces:
IInspectable,ITaggable,IBucketRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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:
CfnInclude cfnTemplate;
CfnBucket cfnBucket = (CfnBucket)cfnTemplate.getResource("Bucket");
Role role = Role.Builder.create(this, "Role")
.assumedBy(new AnyPrincipal())
.build();
role.addToPolicy(PolicyStatement.Builder.create()
.actions(List.of("s3:*"))
.resources(List.of(cfnBucket.getAttrArn()))
.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 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 forCfnBucket.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.amazon.awscdk.services.s3.IBucketRef
IBucketRef.Jsii$Default, IBucketRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnBucket(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnBucket(software.amazon.jsii.JsiiObjectRef objRef) CfnBucket(software.constructs.Construct scope, String id, CfnBucketProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IBucketReffromBucketArn(software.constructs.Construct scope, String id, String arn) Creates a new IBucketRef from an ARN.static IBucketReffromBucketName(software.constructs.Construct scope, String id, String bucketName) Creates a new IBucketRef from a bucketName.Configures the transfer acceleration state for an Amazon S3 bucket.Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.Returns the Amazon Resource Name (ARN) of the specified bucket.Returns the IPv4 DNS name of the specified bucket.Returns the IPv6 DNS name of the specified bucket.The destination information for the S3 Metadata configuration.The Amazon Resource Name (ARN) for the inventory table.The name of the inventory table.The Amazon Resource Name (ARN) for the journal table.The name of the journal table.The Amazon Resource Name (ARN) for the metadata table in the metadata table configuration.The table bucket namespace for the metadata table in your metadata table configuration.Returns the regional domain name of the specified bucket.Returns the Amazon S3 website endpoint for the specified bucket.Specifies 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).A name for the bucket.A reference to a Bucket resource.Describes the cross-origin access configuration for objects in an Amazon S3 bucket.Defines how Amazon S3 handles Intelligent-Tiering storage.Specifies the S3 Inventory configuration for an Amazon S3 bucket.Specifies the lifecycle configuration for objects in an Amazon S3 bucket.Settings that define where logs are stored.The S3 Metadata configuration for a general purpose bucket.The metadata table configuration of an Amazon S3 general purpose bucket.Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket.Configuration that defines how Amazon S3 handles bucket notifications.Indicates whether this bucket has an Object Lock configuration enabled.Configuration that defines how Amazon S3 handles Object Ownership rules.Configuration that defines how Amazon S3 handles public access.Configuration for replicating objects in an S3 bucket.getTags()Tag Manager which manages the tags for this resource.An arbitrary set of tags (key-value pairs) for this S3 bucket.Enables multiple versions of all objects in this bucket.Information used to configure the bucket as a static website.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidConfigures the transfer acceleration state for an Amazon S3 bucket.voidConfigures the transfer acceleration state for an Amazon S3 bucket.voidsetAccessControl(String value) voidsetAnalyticsConfigurations(List<Object> value) Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.voidSpecifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.voidsetBucketEncryption(IResolvable value) Specifies 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).voidSpecifies 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).voidsetBucketName(String value) A name for the bucket.voidsetCorsConfiguration(IResolvable value) Describes the cross-origin access configuration for objects in an Amazon S3 bucket.voidDescribes the cross-origin access configuration for objects in an Amazon S3 bucket.voidDefines how Amazon S3 handles Intelligent-Tiering storage.voidDefines how Amazon S3 handles Intelligent-Tiering storage.voidsetInventoryConfigurations(List<Object> value) Specifies the S3 Inventory configuration for an Amazon S3 bucket.voidSpecifies the S3 Inventory configuration for an Amazon S3 bucket.voidSpecifies the lifecycle configuration for objects in an Amazon S3 bucket.voidSpecifies the lifecycle configuration for objects in an Amazon S3 bucket.voidSettings that define where logs are stored.voidSettings that define where logs are stored.voidThe S3 Metadata configuration for a general purpose bucket.voidThe S3 Metadata configuration for a general purpose bucket.voidThe metadata table configuration of an Amazon S3 general purpose bucket.voidThe metadata table configuration of an Amazon S3 general purpose bucket.voidsetMetricsConfigurations(List<Object> value) Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket.voidSpecifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket.voidConfiguration that defines how Amazon S3 handles bucket notifications.voidConfiguration that defines how Amazon S3 handles bucket notifications.voidvoidvoidsetObjectLockEnabled(Boolean value) Indicates whether this bucket has an Object Lock configuration enabled.voidsetObjectLockEnabled(IResolvable value) Indicates whether this bucket has an Object Lock configuration enabled.voidsetOwnershipControls(IResolvable value) Configuration that defines how Amazon S3 handles Object Ownership rules.voidConfiguration that defines how Amazon S3 handles Object Ownership rules.voidConfiguration that defines how Amazon S3 handles public access.voidConfiguration that defines how Amazon S3 handles public access.voidConfiguration for replicating objects in an S3 bucket.voidConfiguration for replicating objects in an S3 bucket.voidsetTagsRaw(List<CfnTag> value) An arbitrary set of tags (key-value pairs) for this S3 bucket.voidEnables multiple versions of all objects in this bucket.voidEnables multiple versions of all objects in this bucket.voidInformation used to configure the bucket as a static website.voidInformation used to configure the bucket as a static website.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnBucket
protected CfnBucket(software.amazon.jsii.JsiiObjectRef objRef) -
CfnBucket
protected CfnBucket(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnBucket
@Stability(Stable) public CfnBucket(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnBucketProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnBucket
@Stability(Stable) public CfnBucket(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
fromBucketArn
@Stability(Stable) @NotNull public static IBucketRef fromBucketArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IBucketRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromBucketName
@Stability(Stable) @NotNull public static IBucketRef fromBucketName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String bucketName) Creates a new IBucketRef from a bucketName.- Parameters:
scope- This parameter is required.id- This parameter is required.bucketName- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
Returns the Amazon Resource Name (ARN) of the specified bucket.Example:
arn:aws:s3:::DOC-EXAMPLE-BUCKET -
getAttrDomainName
Returns the IPv4 DNS name of the specified bucket.Example:
DOC-EXAMPLE-BUCKET.s3.amazonaws.com -
getAttrDualStackDomainName
Returns the IPv6 DNS name of the specified bucket.Example:
DOC-EXAMPLE-BUCKET---s3---dualstack---us-east-2.amazonaws.com.rproxy.govskope.caFor more information about dual-stack endpoints, see Using Amazon S3 Dual-Stack Endpoints .
-
getAttrMetadataConfigurationDestination
The destination information for the S3 Metadata configuration. -
getAttrMetadataConfigurationInventoryTableConfigurationTableArn
@Stability(Stable) @NotNull public String getAttrMetadataConfigurationInventoryTableConfigurationTableArn()The Amazon Resource Name (ARN) for the inventory table. -
getAttrMetadataConfigurationInventoryTableConfigurationTableName
@Stability(Stable) @NotNull public String getAttrMetadataConfigurationInventoryTableConfigurationTableName()The name of the inventory table. -
getAttrMetadataConfigurationJournalTableConfigurationTableArn
@Stability(Stable) @NotNull public String getAttrMetadataConfigurationJournalTableConfigurationTableArn()The Amazon Resource Name (ARN) for the journal table. -
getAttrMetadataConfigurationJournalTableConfigurationTableName
@Stability(Stable) @NotNull public String getAttrMetadataConfigurationJournalTableConfigurationTableName()The name of the journal table. -
getAttrMetadataTableConfigurationS3TablesDestinationTableArn
@Stability(Stable) @NotNull public String getAttrMetadataTableConfigurationS3TablesDestinationTableArn()The Amazon Resource Name (ARN) for the metadata table in the metadata table configuration.The specified metadata table name must be unique within the
aws_s3_metadatanamespace in the destination table bucket. -
getAttrMetadataTableConfigurationS3TablesDestinationTableNamespace
@Stability(Stable) @NotNull public String getAttrMetadataTableConfigurationS3TablesDestinationTableNamespace()The table bucket namespace for the metadata table in your metadata table configuration.This value is always
aws_s3_metadata. -
getAttrRegionalDomainName
Returns the regional domain name of the specified bucket.Example:
DOC-EXAMPLE-BUCKET.s3.us-east-2.amazonaws.com -
getAttrWebsiteUrl
Returns the Amazon S3 website endpoint for the specified bucket.Example (IPv4):
http://DOC-EXAMPLE-BUCKET---s3-website---us-east-2.amazonaws.com.rproxy.govskope.caExample (IPv6):
http://DOC-EXAMPLE-BUCKET.s3.dualstack.us-east-2.amazonaws.com -
getBucketRef
A reference to a Bucket resource.- Specified by:
getBucketRefin interfaceIBucketRef
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getAccelerateConfiguration
Configures the transfer acceleration state for an Amazon S3 bucket.Returns union: either
IResolvableorCfnBucket.AccelerateConfigurationProperty -
setAccelerateConfiguration
Configures the transfer acceleration state for an Amazon S3 bucket. -
setAccelerateConfiguration
@Stability(Stable) public void setAccelerateConfiguration(@Nullable CfnBucket.AccelerateConfigurationProperty value) Configures the transfer acceleration state for an Amazon S3 bucket. -
getAccessControl
This is a legacy property, and it is not recommended for most use cases.
-
setAccessControl
This is a legacy property, and it is not recommended for most use cases.
-
getAnalyticsConfigurations
Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnBucket.AnalyticsConfigurationProperty> -
setAnalyticsConfigurations
Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket. -
setAnalyticsConfigurations
Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket. -
getBucketEncryption
Specifies 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).Returns union: either
IResolvableorCfnBucket.BucketEncryptionProperty -
setBucketEncryption
Specifies 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). -
setBucketEncryption
@Stability(Stable) public void setBucketEncryption(@Nullable CfnBucket.BucketEncryptionProperty value) Specifies 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). -
getBucketName
A name for the bucket. -
setBucketName
A name for the bucket. -
getCorsConfiguration
Describes the cross-origin access configuration for objects in an Amazon S3 bucket.Returns union: either
IResolvableorCfnBucket.CorsConfigurationProperty -
setCorsConfiguration
Describes the cross-origin access configuration for objects in an Amazon S3 bucket. -
setCorsConfiguration
@Stability(Stable) public void setCorsConfiguration(@Nullable CfnBucket.CorsConfigurationProperty value) Describes the cross-origin access configuration for objects in an Amazon S3 bucket. -
getIntelligentTieringConfigurations
Defines how Amazon S3 handles Intelligent-Tiering storage.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnBucket.IntelligentTieringConfigurationProperty> -
setIntelligentTieringConfigurations
Defines how Amazon S3 handles Intelligent-Tiering storage. -
setIntelligentTieringConfigurations
Defines how Amazon S3 handles Intelligent-Tiering storage. -
getInventoryConfigurations
Specifies the S3 Inventory configuration for an Amazon S3 bucket.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnBucket.InventoryConfigurationProperty> -
setInventoryConfigurations
Specifies the S3 Inventory configuration for an Amazon S3 bucket. -
setInventoryConfigurations
Specifies the S3 Inventory configuration for an Amazon S3 bucket. -
getLifecycleConfiguration
Specifies the lifecycle configuration for objects in an Amazon S3 bucket.Returns union: either
IResolvableorCfnBucket.LifecycleConfigurationProperty -
setLifecycleConfiguration
Specifies the lifecycle configuration for objects in an Amazon S3 bucket. -
setLifecycleConfiguration
@Stability(Stable) public void setLifecycleConfiguration(@Nullable CfnBucket.LifecycleConfigurationProperty value) Specifies the lifecycle configuration for objects in an Amazon S3 bucket. -
getLoggingConfiguration
Settings that define where logs are stored.Returns union: either
IResolvableorCfnBucket.LoggingConfigurationProperty -
setLoggingConfiguration
Settings that define where logs are stored. -
setLoggingConfiguration
@Stability(Stable) public void setLoggingConfiguration(@Nullable CfnBucket.LoggingConfigurationProperty value) Settings that define where logs are stored. -
getMetadataConfiguration
The S3 Metadata configuration for a general purpose bucket.Returns union: either
IResolvableorCfnBucket.MetadataConfigurationProperty -
setMetadataConfiguration
The S3 Metadata configuration for a general purpose bucket. -
setMetadataConfiguration
@Stability(Stable) public void setMetadataConfiguration(@Nullable CfnBucket.MetadataConfigurationProperty value) The S3 Metadata configuration for a general purpose bucket. -
getMetadataTableConfiguration
The metadata table configuration of an Amazon S3 general purpose bucket.Returns union: either
IResolvableorCfnBucket.MetadataTableConfigurationProperty -
setMetadataTableConfiguration
The metadata table configuration of an Amazon S3 general purpose bucket. -
setMetadataTableConfiguration
@Stability(Stable) public void setMetadataTableConfiguration(@Nullable CfnBucket.MetadataTableConfigurationProperty value) The metadata table configuration of an Amazon S3 general purpose bucket. -
getMetricsConfigurations
Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnBucket.MetricsConfigurationProperty> -
setMetricsConfigurations
Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. -
setMetricsConfigurations
Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. -
getNotificationConfiguration
Configuration that defines how Amazon S3 handles bucket notifications.Returns union: either
IResolvableorCfnBucket.NotificationConfigurationProperty -
setNotificationConfiguration
Configuration that defines how Amazon S3 handles bucket notifications. -
setNotificationConfiguration
@Stability(Stable) public void setNotificationConfiguration(@Nullable CfnBucket.NotificationConfigurationProperty value) Configuration that defines how Amazon S3 handles bucket notifications. -
getObjectLockConfiguration
This operation is not supported for directory buckets.
Returns union: either
IResolvableorCfnBucket.ObjectLockConfigurationProperty -
setObjectLockConfiguration
This operation is not supported for directory buckets.
-
setObjectLockConfiguration
@Stability(Stable) public void setObjectLockConfiguration(@Nullable CfnBucket.ObjectLockConfigurationProperty value) This operation is not supported for directory buckets.
-
getObjectLockEnabled
Indicates whether this bucket has an Object Lock configuration enabled.Returns union: either
BooleanorIResolvable -
setObjectLockEnabled
Indicates whether this bucket has an Object Lock configuration enabled. -
setObjectLockEnabled
Indicates whether this bucket has an Object Lock configuration enabled. -
getOwnershipControls
Configuration that defines how Amazon S3 handles Object Ownership rules.Returns union: either
IResolvableorCfnBucket.OwnershipControlsProperty -
setOwnershipControls
Configuration that defines how Amazon S3 handles Object Ownership rules. -
setOwnershipControls
@Stability(Stable) public void setOwnershipControls(@Nullable CfnBucket.OwnershipControlsProperty value) Configuration that defines how Amazon S3 handles Object Ownership rules. -
getPublicAccessBlockConfiguration
Configuration that defines how Amazon S3 handles public access.Returns union: either
IResolvableorCfnBucket.PublicAccessBlockConfigurationProperty -
setPublicAccessBlockConfiguration
Configuration that defines how Amazon S3 handles public access. -
setPublicAccessBlockConfiguration
@Stability(Stable) public void setPublicAccessBlockConfiguration(@Nullable CfnBucket.PublicAccessBlockConfigurationProperty value) Configuration that defines how Amazon S3 handles public access. -
getReplicationConfiguration
Configuration for replicating objects in an S3 bucket.Returns union: either
IResolvableorCfnBucket.ReplicationConfigurationProperty -
setReplicationConfiguration
Configuration for replicating objects in an S3 bucket. -
setReplicationConfiguration
@Stability(Stable) public void setReplicationConfiguration(@Nullable CfnBucket.ReplicationConfigurationProperty value) Configuration for replicating objects in an S3 bucket. -
getTagsRaw
An arbitrary set of tags (key-value pairs) for this S3 bucket. -
setTagsRaw
An arbitrary set of tags (key-value pairs) for this S3 bucket. -
getVersioningConfiguration
Enables multiple versions of all objects in this bucket.Returns union: either
IResolvableorCfnBucket.VersioningConfigurationProperty -
setVersioningConfiguration
Enables multiple versions of all objects in this bucket. -
setVersioningConfiguration
@Stability(Stable) public void setVersioningConfiguration(@Nullable CfnBucket.VersioningConfigurationProperty value) Enables multiple versions of all objects in this bucket. -
getWebsiteConfiguration
Information used to configure the bucket as a static website.Returns union: either
IResolvableorCfnBucket.WebsiteConfigurationProperty -
setWebsiteConfiguration
Information used to configure the bucket as a static website. -
setWebsiteConfiguration
@Stability(Stable) public void setWebsiteConfiguration(@Nullable CfnBucket.WebsiteConfigurationProperty value) Information used to configure the bucket as a static website.
-