Safe Haskell | None |
---|---|
Language | Haskell2010 |
Describes lifecycle rules for the Amazon S3 Lifecycle Configuration property.
- data S3LifecycleRule = S3LifecycleRule {
- _s3LifecycleRuleExpirationDate :: Maybe (Val Text)
- _s3LifecycleRuleExpirationInDays :: Maybe (Val Integer')
- _s3LifecycleRuleId :: Maybe (Val Text)
- _s3LifecycleRuleNoncurrentVersionExpirationInDays :: Maybe (Val Integer')
- _s3LifecycleRuleNoncurrentVersionTransition :: Maybe S3LifecycleRuleNoncurrentVersionTransition
- _s3LifecycleRuleNoncurrentVersionTransitions :: Maybe [S3LifecycleRuleNoncurrentVersionTransition]
- _s3LifecycleRulePrefix :: Maybe (Val Text)
- _s3LifecycleRuleStatus :: Val Text
- _s3LifecycleRuleTransition :: Maybe S3LifecycleRuleTransition
- _s3LifecycleRuleTransitions :: Maybe [S3LifecycleRuleTransition]
- s3LifecycleRule :: Val Text -> S3LifecycleRule
- slrExpirationDate :: Lens' S3LifecycleRule (Maybe (Val Text))
- slrExpirationInDays :: Lens' S3LifecycleRule (Maybe (Val Integer'))
- slrId :: Lens' S3LifecycleRule (Maybe (Val Text))
- slrNoncurrentVersionExpirationInDays :: Lens' S3LifecycleRule (Maybe (Val Integer'))
- slrNoncurrentVersionTransition :: Lens' S3LifecycleRule (Maybe S3LifecycleRuleNoncurrentVersionTransition)
- slrNoncurrentVersionTransitions :: Lens' S3LifecycleRule (Maybe [S3LifecycleRuleNoncurrentVersionTransition])
- slrPrefix :: Lens' S3LifecycleRule (Maybe (Val Text))
- slrStatus :: Lens' S3LifecycleRule (Val Text)
- slrTransition :: Lens' S3LifecycleRule (Maybe S3LifecycleRuleTransition)
- slrTransitions :: Lens' S3LifecycleRule (Maybe [S3LifecycleRuleTransition])
Documentation
data S3LifecycleRule Source #
Full data type definition for S3LifecycleRule. See s3LifecycleRule
for
a more convenient constructor.
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.