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 NoncurrentVersionExpiration = NoncurrentVersionExpiration' {}
- newNoncurrentVersionExpiration :: Int -> NoncurrentVersionExpiration
- noncurrentVersionExpiration_newerNoncurrentVersions :: Lens' NoncurrentVersionExpiration (Maybe Int)
- noncurrentVersionExpiration_noncurrentDays :: Lens' NoncurrentVersionExpiration Int
Documentation
data NoncurrentVersionExpiration Source #
Specifies when noncurrent object versions expire. Upon expiration, Amazon S3 permanently deletes the noncurrent object versions. You set this lifecycle configuration action on a bucket that has versioning enabled (or suspended) to request that Amazon S3 delete noncurrent object versions at a specific period in the object's lifetime.
See: newNoncurrentVersionExpiration
smart constructor.
NoncurrentVersionExpiration' | |
|
Instances
newNoncurrentVersionExpiration Source #
Create a value of NoncurrentVersionExpiration
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:newerNoncurrentVersions':NoncurrentVersionExpiration'
, noncurrentVersionExpiration_newerNoncurrentVersions
- Specifies how many noncurrent versions Amazon S3 will retain. If there
are this many more recent noncurrent versions, Amazon S3 will take the
associated action. For more information about noncurrent versions, see
Lifecycle configuration elements
in the Amazon S3 User Guide.
$sel:noncurrentDays:NoncurrentVersionExpiration'
, noncurrentVersionExpiration_noncurrentDays
- Specifies the number of days an object is noncurrent before Amazon S3
can perform the associated action. The value must be a non-zero positive
integer. For information about the noncurrent days calculations, see
How Amazon S3 Calculates When an Object Became Noncurrent
in the Amazon S3 User Guide.
noncurrentVersionExpiration_newerNoncurrentVersions :: Lens' NoncurrentVersionExpiration (Maybe Int) Source #
Specifies how many noncurrent versions Amazon S3 will retain. If there are this many more recent noncurrent versions, Amazon S3 will take the associated action. For more information about noncurrent versions, see Lifecycle configuration elements in the Amazon S3 User Guide.
noncurrentVersionExpiration_noncurrentDays :: Lens' NoncurrentVersionExpiration Int Source #
Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. The value must be a non-zero positive integer. For information about the noncurrent days calculations, see How Amazon S3 Calculates When an Object Became Noncurrent in the Amazon S3 User Guide.