Safe Haskell | None |
---|---|
Language | Haskell2010 |
The AWS::S3::Bucket type creates an Amazon S3 bucket. You can set a deletion policy for your bucket to control how AWS CloudFormation handles the bucket when the stack is deleted. For Amazon S3 buckets, you can choose to retain the bucket or to delete the bucket. For more information, see DeletionPolicy Attribute.
- data Bucket = Bucket {
- _bucketAccessControl :: Maybe CannedACL
- _bucketBucketName :: Maybe (Val Text)
- _bucketCorsConfiguration :: Maybe S3CorsConfiguration
- _bucketLifecycleConfiguration :: Maybe S3LifecycleConfiguration
- _bucketLoggingConfiguration :: Maybe S3LoggingConfiguration
- _bucketNotificationConfiguration :: Maybe S3NotificationConfiguration
- _bucketReplicationConfiguration :: Maybe S3ReplicationConfiguration
- _bucketTags :: Maybe [ResourceTag]
- _bucketVersioningConfiguration :: Maybe S3VersioningConfiguration
- _bucketWebsiteConfiguration :: Maybe S3WebsiteConfiguration
- bucket :: Bucket
- bAccessControl :: Lens' Bucket (Maybe CannedACL)
- bBucketName :: Lens' Bucket (Maybe (Val Text))
- bCorsConfiguration :: Lens' Bucket (Maybe S3CorsConfiguration)
- bLifecycleConfiguration :: Lens' Bucket (Maybe S3LifecycleConfiguration)
- bLoggingConfiguration :: Lens' Bucket (Maybe S3LoggingConfiguration)
- bNotificationConfiguration :: Lens' Bucket (Maybe S3NotificationConfiguration)
- bReplicationConfiguration :: Lens' Bucket (Maybe S3ReplicationConfiguration)
- bTags :: Lens' Bucket (Maybe [ResourceTag])
- bVersioningConfiguration :: Lens' Bucket (Maybe S3VersioningConfiguration)
- bWebsiteConfiguration :: Lens' Bucket (Maybe S3WebsiteConfiguration)
Documentation
Full data type definition for Bucket. See bucket
for a more convenient
constructor.
bAccessControl :: Lens' Bucket (Maybe CannedACL) Source #
A canned access control list (ACL) that grants predefined permissions to the bucket. For more information about canned ACLs, see Canned ACLs in the Amazon S3 documentation.
bBucketName :: Lens' Bucket (Maybe (Val Text)) Source #
A name for the bucket. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the bucket name. For more information, see Name Type. The bucket name must contain only lowercase letters, numbers, periods (.), and dashes (-). Important If you specify a name, you cannot do updates that require this resource to be replaced. You can still do updates that require no or some interruption. If you must replace the resource, specify a new name.
bCorsConfiguration :: Lens' Bucket (Maybe S3CorsConfiguration) Source #
Rules that define cross-origin resource sharing of objects in this bucket. For more information, see Enabling Cross-Origin Resource Sharing in the Amazon Simple Storage Service Developer Guide.
bLifecycleConfiguration :: Lens' Bucket (Maybe S3LifecycleConfiguration) Source #
Rules that define how Amazon S3 manages objects during their lifetime. For more information, see Object Lifecycle Management in the Amazon Simple Storage Service Developer Guide.
bLoggingConfiguration :: Lens' Bucket (Maybe S3LoggingConfiguration) Source #
Settings that defines where logs are stored.
bNotificationConfiguration :: Lens' Bucket (Maybe S3NotificationConfiguration) Source #
Configuration that defines how Amazon S3 handles bucket notifications.
bReplicationConfiguration :: Lens' Bucket (Maybe S3ReplicationConfiguration) Source #
Configuration for replicating objects in an S3 bucket. To enable replication, you must also enable versioning by using the VersioningConfiguration property. Amazon S3 can store replicated objects in only one destination (S3 bucket). You cannot send replicated objects to multiple S3 buckets.
bTags :: Lens' Bucket (Maybe [ResourceTag]) Source #
An arbitrary set of tags (key-value pairs) for this Amazon S3 bucket.
bVersioningConfiguration :: Lens' Bucket (Maybe S3VersioningConfiguration) Source #
Enables multiple variants of all objects in this bucket. You might enable versioning to prevent objects from being deleted or overwritten by mistake or to archive objects so that you can retrieve previous versions of them.
bWebsiteConfiguration :: Lens' Bucket (Maybe S3WebsiteConfiguration) Source #
Information used to configure the bucket as a static website. For more information, see Hosting Websites on Amazon S3.