stratosphere-0.2.2: EDSL for AWS CloudFormation

Safe HaskellNone
LanguageHaskell2010

Stratosphere.ResourceProperties.S3LifecycleRule

Description

Describes lifecycle rules for the Amazon S3 Lifecycle Configuration property.

Synopsis

Documentation

data S3LifecycleRule Source #

Full data type definition for S3LifecycleRule. See s3LifecycleRule for a more convenient constructor.

Instances

Show S3LifecycleRule Source # 
Generic S3LifecycleRule Source # 
ToJSON S3LifecycleRule Source # 
FromJSON S3LifecycleRule Source # 
type Rep S3LifecycleRule Source # 
type Rep S3LifecycleRule = D1 (MetaData "S3LifecycleRule" "Stratosphere.ResourceProperties.S3LifecycleRule" "stratosphere-0.2.2-Fnop5S0NvsvBmp7LUeJWuv" False) (C1 (MetaCons "S3LifecycleRule" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_s3LifecycleRuleExpirationDate") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text)))) (S1 (MetaSel (Just Symbol "_s3LifecycleRuleExpirationInDays") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Integer'))))) ((:*:) (S1 (MetaSel (Just Symbol "_s3LifecycleRuleId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_s3LifecycleRuleNoncurrentVersionExpirationInDays") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Integer')))) (S1 (MetaSel (Just Symbol "_s3LifecycleRuleNoncurrentVersionTransition") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe S3LifecycleRuleNoncurrentVersionTransition)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_s3LifecycleRuleNoncurrentVersionTransitions") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [S3LifecycleRuleNoncurrentVersionTransition]))) (S1 (MetaSel (Just Symbol "_s3LifecycleRulePrefix") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_s3LifecycleRuleStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Val Text))) ((:*:) (S1 (MetaSel (Just Symbol "_s3LifecycleRuleTransition") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe S3LifecycleRuleTransition))) (S1 (MetaSel (Just Symbol "_s3LifecycleRuleTransitions") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [S3LifecycleRuleTransition]))))))))

s3LifecycleRule Source #

Constructor for S3LifecycleRule containing required fields as arguments.

slrExpirationDate :: Lens' S3LifecycleRule (Maybe (Val Text)) Source #

Indicates when objects are deleted from Amazon S3 and Amazon Glacier. The date value must be in ISO 8601 format. The time is always midnight UTC. If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time.

slrExpirationInDays :: Lens' S3LifecycleRule (Maybe (Val Integer')) Source #

Indicates the number of days after creation when objects are deleted from Amazon S3 and Amazon Glacier. If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time.

slrId :: Lens' S3LifecycleRule (Maybe (Val Text)) Source #

A unique identifier for this rule. The value cannot be more than 255 characters.

slrNoncurrentVersionExpirationInDays :: Lens' S3LifecycleRule (Maybe (Val Integer')) Source #

For buckets with versioning enabled (or suspended), specifies the time, in days, between when a new version of the object is uploaded to the bucket and when old versions of the object expire. When object versions expire, Amazon S3 permanently deletes them. If you specify a transition and expiration time, the expiration time must be later than the transition time.

slrNoncurrentVersionTransition :: Lens' S3LifecycleRule (Maybe S3LifecycleRuleNoncurrentVersionTransition) Source #

For buckets with versioning enabled (or suspended), specifies when non-current objects transition to a specified storage class. If you specify a transition and expiration time, the expiration time must be later than the transition time. If you specify this property, don't specify the NoncurrentVersionTransitions property.

slrNoncurrentVersionTransitions :: Lens' S3LifecycleRule (Maybe [S3LifecycleRuleNoncurrentVersionTransition]) Source #

For buckets with versioning enabled (or suspended), one or more transition rules that specify when non-current objects transition to a specified storage class. If you specify a transition and expiration time, the expiration time must be later than the transition time. If you specify this property, don't specify the NoncurrentVersionTransition property.

slrPrefix :: Lens' S3LifecycleRule (Maybe (Val Text)) Source #

Object key prefix that identifies one or more objects to which this rule applies.

slrStatus :: Lens' S3LifecycleRule (Val Text) Source #

Specify either Enabled or Disabled. If you specify Enabled, Amazon S3 executes this rule as scheduled. If you specify Disabled, Amazon S3 ignores this rule.

slrTransition :: Lens' S3LifecycleRule (Maybe S3LifecycleRuleTransition) Source #

Specifies when an object transitions to a specified storage class. If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time. If you specify this property, don't specify the Transitions property.

slrTransitions :: Lens' S3LifecycleRule (Maybe [S3LifecycleRuleTransition]) Source #

One or more transition rules that specify when an object transitions to a specified storage class. If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time. If you specify this property, don't specify the Transition property.