libZSservicesZSamazonka-maciev2ZSamazonka-maciev2
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.MacieV2.Types.BucketPolicy

Description

 
Synopsis

Documentation

data BucketPolicy Source #

Provides information about the permissions settings of the bucket policy for an S3 bucket.

See: newBucketPolicy smart constructor.

Constructors

BucketPolicy' 

Fields

Instances

Instances details
Eq BucketPolicy Source # 
Instance details

Defined in Amazonka.MacieV2.Types.BucketPolicy

Read BucketPolicy Source # 
Instance details

Defined in Amazonka.MacieV2.Types.BucketPolicy

Show BucketPolicy Source # 
Instance details

Defined in Amazonka.MacieV2.Types.BucketPolicy

Generic BucketPolicy Source # 
Instance details

Defined in Amazonka.MacieV2.Types.BucketPolicy

Associated Types

type Rep BucketPolicy :: Type -> Type #

NFData BucketPolicy Source # 
Instance details

Defined in Amazonka.MacieV2.Types.BucketPolicy

Methods

rnf :: BucketPolicy -> () #

Hashable BucketPolicy Source # 
Instance details

Defined in Amazonka.MacieV2.Types.BucketPolicy

FromJSON BucketPolicy Source # 
Instance details

Defined in Amazonka.MacieV2.Types.BucketPolicy

type Rep BucketPolicy Source # 
Instance details

Defined in Amazonka.MacieV2.Types.BucketPolicy

type Rep BucketPolicy = D1 ('MetaData "BucketPolicy" "Amazonka.MacieV2.Types.BucketPolicy" "libZSservicesZSamazonka-maciev2ZSamazonka-maciev2" 'False) (C1 ('MetaCons "BucketPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "allowsPublicWriteAccess") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "allowsPublicReadAccess") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))

newBucketPolicy :: BucketPolicy Source #

Create a value of BucketPolicy 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:allowsPublicWriteAccess:BucketPolicy', bucketPolicy_allowsPublicWriteAccess - Specifies whether the bucket policy allows the general public to have write access to the bucket.

$sel:allowsPublicReadAccess:BucketPolicy', bucketPolicy_allowsPublicReadAccess - Specifies whether the bucket policy allows the general public to have read access to the bucket.

bucketPolicy_allowsPublicWriteAccess :: Lens' BucketPolicy (Maybe Bool) Source #

Specifies whether the bucket policy allows the general public to have write access to the bucket.

bucketPolicy_allowsPublicReadAccess :: Lens' BucketPolicy (Maybe Bool) Source #

Specifies whether the bucket policy allows the general public to have read access to the bucket.