| 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.ObjectLockConfiguration
Description
Synopsis
Documentation
data ObjectLockConfiguration Source #
The container element for Object Lock configuration parameters.
See: newObjectLockConfiguration smart constructor.
Constructors
| ObjectLockConfiguration' | |
Fields
| |
Instances
newObjectLockConfiguration :: ObjectLockConfiguration Source #
Create a value of ObjectLockConfiguration 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:objectLockEnabled:ObjectLockConfiguration', objectLockConfiguration_objectLockEnabled - Indicates whether this bucket has an Object Lock configuration enabled.
Enable ObjectLockEnabled when you apply ObjectLockConfiguration to a
bucket.
$sel:rule:ObjectLockConfiguration', objectLockConfiguration_rule - Specifies the Object Lock rule for the specified object. Enable the this
rule when you apply ObjectLockConfiguration to a 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.
objectLockConfiguration_objectLockEnabled :: Lens' ObjectLockConfiguration (Maybe ObjectLockEnabled) Source #
Indicates whether this bucket has an Object Lock configuration enabled.
Enable ObjectLockEnabled when you apply ObjectLockConfiguration to a
bucket.
objectLockConfiguration_rule :: Lens' ObjectLockConfiguration (Maybe ObjectLockRule) Source #
Specifies the Object Lock rule for the specified object. Enable the this
rule when you apply ObjectLockConfiguration to a 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.