stratosphere-0.2.1: EDSL for AWS CloudFormation

Safe HaskellNone
LanguageHaskell2010

Stratosphere.Resources.Bucket

Description

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.

Synopsis

Documentation

data Bucket Source #

Full data type definition for Bucket. See bucket for a more convenient constructor.

Instances

Show Bucket Source # 
Generic Bucket Source # 

Associated Types

type Rep Bucket :: * -> * #

Methods

from :: Bucket -> Rep Bucket x #

to :: Rep Bucket x -> Bucket #

ToJSON Bucket Source # 
FromJSON Bucket Source # 
type Rep Bucket Source # 
type Rep Bucket = D1 (MetaData "Bucket" "Stratosphere.Resources.Bucket" "stratosphere-0.2.1-7UjeTxLOKRACY1vyFAxa7V" False) (C1 (MetaCons "Bucket" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_bucketAccessControl") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe CannedACL))) (S1 (MetaSel (Just Symbol "_bucketBucketName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_bucketCorsConfiguration") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe S3CorsConfiguration))) ((:*:) (S1 (MetaSel (Just Symbol "_bucketLifecycleConfiguration") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe S3LifecycleConfiguration))) (S1 (MetaSel (Just Symbol "_bucketLoggingConfiguration") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe S3LoggingConfiguration)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_bucketNotificationConfiguration") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe S3NotificationConfiguration))) (S1 (MetaSel (Just Symbol "_bucketReplicationConfiguration") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe S3ReplicationConfiguration)))) ((:*:) (S1 (MetaSel (Just Symbol "_bucketTags") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [ResourceTag]))) ((:*:) (S1 (MetaSel (Just Symbol "_bucketVersioningConfiguration") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe S3VersioningConfiguration))) (S1 (MetaSel (Just Symbol "_bucketWebsiteConfiguration") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe S3WebsiteConfiguration))))))))

bucket :: Bucket Source #

Constructor for Bucket containing required fields as arguments.

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.