| 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 |
Amazonka.S3.Types.ObjectLockRule
Description
Documentation
data ObjectLockRule Source #
The container element for an Object Lock rule.
See: newObjectLockRule smart constructor.
Constructors
| ObjectLockRule' | |
Fields
| |
Instances
newObjectLockRule :: ObjectLockRule Source #
Create a value of ObjectLockRule 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:defaultRetention:ObjectLockRule', objectLockRule_defaultRetention - The default Object Lock retention mode and period that you want to apply
to new objects placed in the specified bucket. Bucket settings require
both a mode and a period. The period can be either Days or Years but
you must select one. You cannot specify Days and Years at the same
time.
objectLockRule_defaultRetention :: Lens' ObjectLockRule (Maybe DefaultRetention) Source #
The default Object Lock retention mode and period that you want to apply
to new objects placed in the specified bucket. Bucket settings require
both a mode and a period. The period can be either Days or Years but
you must select one. You cannot specify Days and Years at the same
time.