amazonka-s3-2.0: Amazon Simple Storage Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

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

  • status :: Maybe BucketVersioningStatus

    The versioning state of the bucket.

Instances

Instances details
ToXML 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 #

Read VersioningConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.VersioningConfiguration

Show VersioningConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.VersioningConfiguration

NFData VersioningConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.VersioningConfiguration

Methods

rnf :: VersioningConfiguration -> () #

Eq VersioningConfiguration Source # 
Instance details

Defined in Amazonka.S3.Types.VersioningConfiguration

Hashable 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" "amazonka-s3-2.0-CNZtv1UmVzj28JXsFvwNoj" 'False) (C1 ('MetaCons "VersioningConfiguration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "mfaDelete") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MFADelete)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BucketVersioningStatus))))

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

$sel:status:VersioningConfiguration', versioningConfiguration_status - The versioning state of the bucket.

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.