Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data LifecycleRule = LifecycleRule' {
- transitions :: Maybe [Transition]
- noncurrentVersionExpiration :: Maybe NoncurrentVersionExpiration
- prefix :: Maybe Text
- noncurrentVersionTransitions :: Maybe [NoncurrentVersionTransition]
- expiration :: Maybe LifecycleExpiration
- id :: Maybe Text
- filter' :: Maybe LifecycleRuleFilter
- abortIncompleteMultipartUpload :: Maybe AbortIncompleteMultipartUpload
- status :: ExpirationStatus
- newLifecycleRule :: ExpirationStatus -> LifecycleRule
- lifecycleRule_transitions :: Lens' LifecycleRule (Maybe [Transition])
- lifecycleRule_noncurrentVersionExpiration :: Lens' LifecycleRule (Maybe NoncurrentVersionExpiration)
- lifecycleRule_prefix :: Lens' LifecycleRule (Maybe Text)
- lifecycleRule_noncurrentVersionTransitions :: Lens' LifecycleRule (Maybe [NoncurrentVersionTransition])
- lifecycleRule_expiration :: Lens' LifecycleRule (Maybe LifecycleExpiration)
- lifecycleRule_id :: Lens' LifecycleRule (Maybe Text)
- lifecycleRule_filter :: Lens' LifecycleRule (Maybe LifecycleRuleFilter)
- lifecycleRule_abortIncompleteMultipartUpload :: Lens' LifecycleRule (Maybe AbortIncompleteMultipartUpload)
- lifecycleRule_status :: Lens' LifecycleRule ExpirationStatus
Documentation
data LifecycleRule Source #
A lifecycle rule for individual objects in an Amazon S3 bucket.
See: newLifecycleRule
smart constructor.
LifecycleRule' | |
|
Instances
Create a value of LifecycleRule
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:transitions:LifecycleRule'
, lifecycleRule_transitions
- Specifies when an Amazon S3 object transitions to a specified storage
class.
$sel:noncurrentVersionExpiration:LifecycleRule'
, lifecycleRule_noncurrentVersionExpiration
- Undocumented member.
$sel:prefix:LifecycleRule'
, lifecycleRule_prefix
- Prefix identifying one or more objects to which the rule applies. This
is no longer used; use Filter
instead.
Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.
$sel:noncurrentVersionTransitions:LifecycleRule'
, lifecycleRule_noncurrentVersionTransitions
- Specifies the transition rule for the lifecycle rule that describes when
noncurrent objects transition to a specific storage class. If your
bucket is versioning-enabled (or versioning is suspended), you can set
this action to request that Amazon S3 transition noncurrent object
versions to a specific storage class at a set period in the object's
lifetime.
$sel:expiration:LifecycleRule'
, lifecycleRule_expiration
- Specifies the expiration for the lifecycle of the object in the form of
date, days and, whether the object has a delete marker.
$sel:id:LifecycleRule'
, lifecycleRule_id
- Unique identifier for the rule. The value cannot be longer than 255
characters.
$sel:filter':LifecycleRule'
, lifecycleRule_filter
- The Filter
is used to identify objects that a Lifecycle Rule applies
to. A Filter
must have exactly one of Prefix
, Tag
, or And
specified. Filter
is required if the LifecycleRule
does not containt
a Prefix
element.
$sel:abortIncompleteMultipartUpload:LifecycleRule'
, lifecycleRule_abortIncompleteMultipartUpload
- Undocumented member.
$sel:status:LifecycleRule'
, lifecycleRule_status
- If 'Enabled', the rule is currently being applied. If 'Disabled',
the rule is not currently being applied.
lifecycleRule_transitions :: Lens' LifecycleRule (Maybe [Transition]) Source #
Specifies when an Amazon S3 object transitions to a specified storage class.
lifecycleRule_noncurrentVersionExpiration :: Lens' LifecycleRule (Maybe NoncurrentVersionExpiration) Source #
Undocumented member.
lifecycleRule_prefix :: Lens' LifecycleRule (Maybe Text) Source #
Prefix identifying one or more objects to which the rule applies. This
is no longer used; use Filter
instead.
Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.
lifecycleRule_noncurrentVersionTransitions :: Lens' LifecycleRule (Maybe [NoncurrentVersionTransition]) Source #
Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime.
lifecycleRule_expiration :: Lens' LifecycleRule (Maybe LifecycleExpiration) Source #
Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker.
lifecycleRule_id :: Lens' LifecycleRule (Maybe Text) Source #
Unique identifier for the rule. The value cannot be longer than 255 characters.
lifecycleRule_filter :: Lens' LifecycleRule (Maybe LifecycleRuleFilter) Source #
The Filter
is used to identify objects that a Lifecycle Rule applies
to. A Filter
must have exactly one of Prefix
, Tag
, or And
specified. Filter
is required if the LifecycleRule
does not containt
a Prefix
element.
lifecycleRule_abortIncompleteMultipartUpload :: Lens' LifecycleRule (Maybe AbortIncompleteMultipartUpload) Source #
Undocumented member.
lifecycleRule_status :: Lens' LifecycleRule ExpirationStatus Source #
If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.