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

Description

This implementation of the GET action uses the acl subresource to return the access control list (ACL) of a bucket. To use GET to return the ACL of the bucket, you must have READ_ACP access to the bucket. If READ_ACP permission is granted to the anonymous user, you can return the ACL of the bucket without using an authorization header.

Related Resources

Synopsis

Creating a Request

data GetBucketAcl Source #

See: newGetBucketAcl smart constructor.

Constructors

GetBucketAcl' 

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

    Specifies the S3 bucket whose ACL is being requested.

Instances

Instances details
Eq GetBucketAcl Source # 
Instance details

Defined in Amazonka.S3.GetBucketAcl

Read GetBucketAcl Source # 
Instance details

Defined in Amazonka.S3.GetBucketAcl

Show GetBucketAcl Source # 
Instance details

Defined in Amazonka.S3.GetBucketAcl

Generic GetBucketAcl Source # 
Instance details

Defined in Amazonka.S3.GetBucketAcl

Associated Types

type Rep GetBucketAcl :: Type -> Type #

NFData GetBucketAcl Source # 
Instance details

Defined in Amazonka.S3.GetBucketAcl

Methods

rnf :: GetBucketAcl -> () #

Hashable GetBucketAcl Source # 
Instance details

Defined in Amazonka.S3.GetBucketAcl

AWSRequest GetBucketAcl Source # 
Instance details

Defined in Amazonka.S3.GetBucketAcl

Associated Types

type AWSResponse GetBucketAcl #

ToHeaders GetBucketAcl Source # 
Instance details

Defined in Amazonka.S3.GetBucketAcl

ToPath GetBucketAcl Source # 
Instance details

Defined in Amazonka.S3.GetBucketAcl

ToQuery GetBucketAcl Source # 
Instance details

Defined in Amazonka.S3.GetBucketAcl

type Rep GetBucketAcl Source # 
Instance details

Defined in Amazonka.S3.GetBucketAcl

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

Defined in Amazonka.S3.GetBucketAcl

newGetBucketAcl Source #

Create a value of GetBucketAcl 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:GetBucketAcl', getBucketAcl_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:GetBucketAcl', getBucketAcl_bucket - Specifies the S3 bucket whose ACL is being requested.

Request Lenses

getBucketAcl_expectedBucketOwner :: Lens' GetBucketAcl (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.

getBucketAcl_bucket :: Lens' GetBucketAcl BucketName Source #

Specifies the S3 bucket whose ACL is being requested.

Destructuring the Response

data GetBucketAclResponse Source #

See: newGetBucketAclResponse smart constructor.

Constructors

GetBucketAclResponse' 

Fields

Instances

Instances details
Eq GetBucketAclResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketAcl

Read GetBucketAclResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketAcl

Show GetBucketAclResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketAcl

Generic GetBucketAclResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketAcl

Associated Types

type Rep GetBucketAclResponse :: Type -> Type #

NFData GetBucketAclResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketAcl

Methods

rnf :: GetBucketAclResponse -> () #

type Rep GetBucketAclResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketAcl

type Rep GetBucketAclResponse = D1 ('MetaData "GetBucketAclResponse" "Amazonka.S3.GetBucketAcl" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "GetBucketAclResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "grants") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Grant])) :*: (S1 ('MetaSel ('Just "owner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Owner)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetBucketAclResponse Source #

Create a value of GetBucketAclResponse 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:grants:GetBucketAclResponse', getBucketAclResponse_grants - A list of grants.

$sel:owner:GetBucketAclResponse', getBucketAclResponse_owner - Container for the bucket owner's display name and ID.

$sel:httpStatus:GetBucketAclResponse', getBucketAclResponse_httpStatus - The response's http status code.

Response Lenses

getBucketAclResponse_owner :: Lens' GetBucketAclResponse (Maybe Owner) Source #

Container for the bucket owner's display name and ID.