Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data LifecycleRule = LifecycleRule' {
- abortIncompleteMultipartUpload :: Maybe AbortIncompleteMultipartUpload
- expiration :: Maybe LifecycleExpiration
- filter' :: Maybe LifecycleRuleFilter
- id :: Maybe Text
- noncurrentVersionExpiration :: Maybe NoncurrentVersionExpiration
- noncurrentVersionTransitions :: Maybe [NoncurrentVersionTransition]
- prefix :: Maybe Text
- transitions :: Maybe [Transition]
- status :: ExpirationStatus
- newLifecycleRule :: ExpirationStatus -> LifecycleRule
- lifecycleRule_abortIncompleteMultipartUpload :: Lens' LifecycleRule (Maybe AbortIncompleteMultipartUpload)
- lifecycleRule_expiration :: Lens' LifecycleRule (Maybe LifecycleExpiration)
- lifecycleRule_filter :: Lens' LifecycleRule (Maybe LifecycleRuleFilter)
- lifecycleRule_id :: Lens' LifecycleRule (Maybe Text)
- lifecycleRule_noncurrentVersionExpiration :: Lens' LifecycleRule (Maybe NoncurrentVersionExpiration)
- lifecycleRule_noncurrentVersionTransitions :: Lens' LifecycleRule (Maybe [NoncurrentVersionTransition])
- lifecycleRule_prefix :: Lens' LifecycleRule (Maybe Text)
- lifecycleRule_transitions :: Lens' LifecycleRule (Maybe [Transition])
- 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:abortIncompleteMultipartUpload:LifecycleRule'
, lifecycleRule_abortIncompleteMultipartUpload
- Undocumented member.
$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: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 contain
a Prefix
element.
$sel:id:LifecycleRule'
, lifecycleRule_id
- Unique identifier for the rule. The value cannot be longer than 255
characters.
$sel:noncurrentVersionExpiration:LifecycleRule'
, lifecycleRule_noncurrentVersionExpiration
- Undocumented member.
$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.
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:transitions:LifecycleRule'
, lifecycleRule_transitions
- Specifies when an Amazon S3 object transitions to a specified storage
class.
$sel:status:LifecycleRule'
, lifecycleRule_status
- If 'Enabled', the rule is currently being applied. If 'Disabled',
the rule is not currently being applied.
lifecycleRule_abortIncompleteMultipartUpload :: Lens' LifecycleRule (Maybe AbortIncompleteMultipartUpload) Source #
Undocumented member.
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_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 contain
a Prefix
element.
lifecycleRule_id :: Lens' LifecycleRule (Maybe Text) Source #
Unique identifier for the rule. The value cannot be longer than 255 characters.
lifecycleRule_noncurrentVersionExpiration :: Lens' LifecycleRule (Maybe NoncurrentVersionExpiration) Source #
Undocumented member.
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_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_transitions :: Lens' LifecycleRule (Maybe [Transition]) Source #
Specifies when an Amazon S3 object transitions to a specified storage class.
lifecycleRule_status :: Lens' LifecycleRule ExpirationStatus Source #
If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.