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.ObjectLockRule

Description

 
Synopsis

Documentation

data ObjectLockRule Source #

The container element for an Object Lock rule.

See: newObjectLockRule smart constructor.

Constructors

ObjectLockRule' 

Fields

  • defaultRetention :: Maybe 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.

Instances

Instances details
Eq ObjectLockRule Source # 
Instance details

Defined in Amazonka.S3.Types.ObjectLockRule

Read ObjectLockRule Source # 
Instance details

Defined in Amazonka.S3.Types.ObjectLockRule

Show ObjectLockRule Source # 
Instance details

Defined in Amazonka.S3.Types.ObjectLockRule

Generic ObjectLockRule Source # 
Instance details

Defined in Amazonka.S3.Types.ObjectLockRule

Associated Types

type Rep ObjectLockRule :: Type -> Type #

NFData ObjectLockRule Source # 
Instance details

Defined in Amazonka.S3.Types.ObjectLockRule

Methods

rnf :: ObjectLockRule -> () #

Hashable ObjectLockRule Source # 
Instance details

Defined in Amazonka.S3.Types.ObjectLockRule

FromXML ObjectLockRule Source # 
Instance details

Defined in Amazonka.S3.Types.ObjectLockRule

ToXML ObjectLockRule Source # 
Instance details

Defined in Amazonka.S3.Types.ObjectLockRule

Methods

toXML :: ObjectLockRule -> XML #

type Rep ObjectLockRule Source # 
Instance details

Defined in Amazonka.S3.Types.ObjectLockRule

type Rep ObjectLockRule = D1 ('MetaData "ObjectLockRule" "Amazonka.S3.Types.ObjectLockRule" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "ObjectLockRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "defaultRetention") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DefaultRetention))))

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.