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

Description

Retrieves the policy status for an Amazon S3 bucket, indicating whether the bucket is public. In order to use this operation, you must have the s3:GetBucketPolicyStatus permission. For more information about Amazon S3 permissions, see Specifying Permissions in a Policy.

For more information about when Amazon S3 considers a bucket public, see The Meaning of "Public".

The following operations are related to GetBucketPolicyStatus:

Synopsis

Creating a Request

data GetBucketPolicyStatus Source #

See: newGetBucketPolicyStatus smart constructor.

Constructors

GetBucketPolicyStatus' 

Fields

  • expectedBucketOwner :: Maybe Text

    The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

  • bucket :: BucketName

    The name of the Amazon S3 bucket whose policy status you want to retrieve.

Instances

Instances details
Eq GetBucketPolicyStatus Source # 
Instance details

Defined in Amazonka.S3.GetBucketPolicyStatus

Read GetBucketPolicyStatus Source # 
Instance details

Defined in Amazonka.S3.GetBucketPolicyStatus

Show GetBucketPolicyStatus Source # 
Instance details

Defined in Amazonka.S3.GetBucketPolicyStatus

Generic GetBucketPolicyStatus Source # 
Instance details

Defined in Amazonka.S3.GetBucketPolicyStatus

Associated Types

type Rep GetBucketPolicyStatus :: Type -> Type #

NFData GetBucketPolicyStatus Source # 
Instance details

Defined in Amazonka.S3.GetBucketPolicyStatus

Methods

rnf :: GetBucketPolicyStatus -> () #

Hashable GetBucketPolicyStatus Source # 
Instance details

Defined in Amazonka.S3.GetBucketPolicyStatus

AWSRequest GetBucketPolicyStatus Source # 
Instance details

Defined in Amazonka.S3.GetBucketPolicyStatus

Associated Types

type AWSResponse GetBucketPolicyStatus #

ToHeaders GetBucketPolicyStatus Source # 
Instance details

Defined in Amazonka.S3.GetBucketPolicyStatus

ToPath GetBucketPolicyStatus Source # 
Instance details

Defined in Amazonka.S3.GetBucketPolicyStatus

ToQuery GetBucketPolicyStatus Source # 
Instance details

Defined in Amazonka.S3.GetBucketPolicyStatus

type Rep GetBucketPolicyStatus Source # 
Instance details

Defined in Amazonka.S3.GetBucketPolicyStatus

type Rep GetBucketPolicyStatus = D1 ('MetaData "GetBucketPolicyStatus" "Amazonka.S3.GetBucketPolicyStatus" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "GetBucketPolicyStatus'" 'PrefixI 'True) (S1 ('MetaSel ('Just "expectedBucketOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BucketName)))
type AWSResponse GetBucketPolicyStatus Source # 
Instance details

Defined in Amazonka.S3.GetBucketPolicyStatus

newGetBucketPolicyStatus Source #

Create a value of GetBucketPolicyStatus 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:expectedBucketOwner:GetBucketPolicyStatus', getBucketPolicyStatus_expectedBucketOwner - The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

$sel:bucket:GetBucketPolicyStatus', getBucketPolicyStatus_bucket - The name of the Amazon S3 bucket whose policy status you want to retrieve.

Request Lenses

getBucketPolicyStatus_expectedBucketOwner :: Lens' GetBucketPolicyStatus (Maybe Text) Source #

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

getBucketPolicyStatus_bucket :: Lens' GetBucketPolicyStatus BucketName Source #

The name of the Amazon S3 bucket whose policy status you want to retrieve.

Destructuring the Response

data GetBucketPolicyStatusResponse Source #

See: newGetBucketPolicyStatusResponse smart constructor.

Constructors

GetBucketPolicyStatusResponse' 

Fields

Instances

Instances details
Eq GetBucketPolicyStatusResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketPolicyStatus

Read GetBucketPolicyStatusResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketPolicyStatus

Show GetBucketPolicyStatusResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketPolicyStatus

Generic GetBucketPolicyStatusResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketPolicyStatus

Associated Types

type Rep GetBucketPolicyStatusResponse :: Type -> Type #

NFData GetBucketPolicyStatusResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketPolicyStatus

type Rep GetBucketPolicyStatusResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketPolicyStatus

type Rep GetBucketPolicyStatusResponse = D1 ('MetaData "GetBucketPolicyStatusResponse" "Amazonka.S3.GetBucketPolicyStatus" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "GetBucketPolicyStatusResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PolicyStatus)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetBucketPolicyStatusResponse Source #

Create a value of GetBucketPolicyStatusResponse 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:policyStatus:GetBucketPolicyStatusResponse', getBucketPolicyStatusResponse_policyStatus - The policy status for the specified bucket.

$sel:httpStatus:GetBucketPolicyStatusResponse', getBucketPolicyStatusResponse_httpStatus - The response's http status code.

Response Lenses