libZSservicesZSamazonka-s3ZSamazonka-s3
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

  • objectLockEnabled :: Maybe ObjectLockEnabled

    Indicates whether this bucket has an Object Lock configuration enabled. Enable ObjectLockEnabled when you apply ObjectLockConfiguration to a bucket.

  • rule :: Maybe ObjectLockRule

    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.

Instances

Instances details
Eq ObjectLockConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.ObjectLockConfiguration

Read ObjectLockConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.ObjectLockConfiguration

Show ObjectLockConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.ObjectLockConfiguration

Generic ObjectLockConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.ObjectLockConfiguration

Associated Types

type Rep ObjectLockConfiguration :: Type -> Type #

NFData ObjectLockConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.ObjectLockConfiguration

Methods

rnf :: ObjectLockConfiguration -> () #

Hashable ObjectLockConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.ObjectLockConfiguration

FromXML ObjectLockConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.ObjectLockConfiguration

ToXML ObjectLockConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.ObjectLockConfiguration

type Rep ObjectLockConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.ObjectLockConfiguration

type Rep ObjectLockConfiguration = D1 ('MetaData "ObjectLockConfiguration" "Amazonka.S3.Types.ObjectLockConfiguration" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "ObjectLockConfiguration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "objectLockEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ObjectLockEnabled)) :*: S1 ('MetaSel ('Just "rule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ObjectLockRule))))

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.