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 |
Documentation
data DefaultRetention Source #
The container element for specifying the default Object Lock retention settings for new objects placed in the specified bucket.
- The
DefaultRetention
settings require both a mode and a period. - The
DefaultRetention
period can be eitherDays
orYears
but you must select one. You cannot specifyDays
andYears
at the same time.
See: newDefaultRetention
smart constructor.
DefaultRetention' | |
|
Instances
newDefaultRetention :: DefaultRetention Source #
Create a value of DefaultRetention
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:days:DefaultRetention'
, defaultRetention_days
- The number of days that you want to specify for the default retention
period. Must be used with Mode
.
$sel:mode:DefaultRetention'
, defaultRetention_mode
- The default Object Lock retention mode you want to apply to new objects
placed in the specified bucket. Must be used with either Days
or
Years
.
$sel:years:DefaultRetention'
, defaultRetention_years
- The number of years that you want to specify for the default retention
period. Must be used with Mode
.
defaultRetention_days :: Lens' DefaultRetention (Maybe Int) Source #
The number of days that you want to specify for the default retention
period. Must be used with Mode
.
defaultRetention_mode :: Lens' DefaultRetention (Maybe ObjectLockRetentionMode) Source #
The default Object Lock retention mode you want to apply to new objects
placed in the specified bucket. Must be used with either Days
or
Years
.
defaultRetention_years :: Lens' DefaultRetention (Maybe Int) Source #
The number of years that you want to specify for the default retention
period. Must be used with Mode
.