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

Description

 
Synopsis

Documentation

data VersioningConfiguration Source #

Describes the versioning state of an Amazon S3 bucket. For more information, see PUT Bucket versioning in the Amazon S3 API Reference.

See: newVersioningConfiguration smart constructor.

Constructors

VersioningConfiguration' 

Fields

  • status :: Maybe BucketVersioningStatus

    The versioning state of the bucket.

  • mfaDelete :: Maybe MFADelete

    Specifies whether MFA delete is enabled in the bucket versioning configuration. This element is only returned if the bucket has been configured with MFA delete. If the bucket has never been so configured, this element is not returned.

Instances

Instances details
Eq VersioningConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.VersioningConfiguration

Read VersioningConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.VersioningConfiguration

Show VersioningConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.VersioningConfiguration

Generic VersioningConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.VersioningConfiguration

Associated Types

type Rep VersioningConfiguration :: Type -> Type #

NFData VersioningConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.VersioningConfiguration

Methods

rnf :: VersioningConfiguration -> () #

Hashable VersioningConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.VersioningConfiguration

ToXML VersioningConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.VersioningConfiguration

type Rep VersioningConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.VersioningConfiguration

type Rep VersioningConfiguration = D1 ('MetaData "VersioningConfiguration" "Amazonka.S3.Types.VersioningConfiguration" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "VersioningConfiguration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BucketVersioningStatus)) :*: S1 ('MetaSel ('Just "mfaDelete") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MFADelete))))

newVersioningConfiguration :: VersioningConfiguration Source #

Create a value of VersioningConfiguration 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:status:VersioningConfiguration', versioningConfiguration_status - The versioning state of the bucket.

$sel:mfaDelete:VersioningConfiguration', versioningConfiguration_mfaDelete - Specifies whether MFA delete is enabled in the bucket versioning configuration. This element is only returned if the bucket has been configured with MFA delete. If the bucket has never been so configured, this element is not returned.

versioningConfiguration_mfaDelete :: Lens' VersioningConfiguration (Maybe MFADelete) Source #

Specifies whether MFA delete is enabled in the bucket versioning configuration. This element is only returned if the bucket has been configured with MFA delete. If the bucket has never been so configured, this element is not returned.