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

Description

Retrieves OwnershipControls for an Amazon S3 bucket. To use this operation, you must have the s3:GetBucketOwnershipControls permission. For more information about Amazon S3 permissions, see Specifying Permissions in a Policy.

For information about Amazon S3 Object Ownership, see Using Object Ownership.

The following operations are related to GetBucketOwnershipControls:

  • PutBucketOwnershipControls
  • DeleteBucketOwnershipControls
Synopsis

Creating a Request

data GetBucketOwnershipControls Source #

See: newGetBucketOwnershipControls smart constructor.

Constructors

GetBucketOwnershipControls' 

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 OwnershipControls you want to retrieve.

Instances

Instances details
Eq GetBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

Read GetBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

Show GetBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

Generic GetBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

Associated Types

type Rep GetBucketOwnershipControls :: Type -> Type #

NFData GetBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

Hashable GetBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

AWSRequest GetBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

ToHeaders GetBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

ToPath GetBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

ToQuery GetBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

type Rep GetBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

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

Defined in Amazonka.S3.GetBucketOwnershipControls

newGetBucketOwnershipControls Source #

Create a value of GetBucketOwnershipControls 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:GetBucketOwnershipControls', getBucketOwnershipControls_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:GetBucketOwnershipControls', getBucketOwnershipControls_bucket - The name of the Amazon S3 bucket whose OwnershipControls you want to retrieve.

Request Lenses

getBucketOwnershipControls_expectedBucketOwner :: Lens' GetBucketOwnershipControls (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.

getBucketOwnershipControls_bucket :: Lens' GetBucketOwnershipControls BucketName Source #

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

Destructuring the Response

data GetBucketOwnershipControlsResponse Source #

Constructors

GetBucketOwnershipControlsResponse' 

Fields

Instances

Instances details
Eq GetBucketOwnershipControlsResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

Read GetBucketOwnershipControlsResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

Show GetBucketOwnershipControlsResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

Generic GetBucketOwnershipControlsResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

Associated Types

type Rep GetBucketOwnershipControlsResponse :: Type -> Type #

NFData GetBucketOwnershipControlsResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

type Rep GetBucketOwnershipControlsResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

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

newGetBucketOwnershipControlsResponse Source #

Create a value of GetBucketOwnershipControlsResponse 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:ownershipControls:GetBucketOwnershipControlsResponse', getBucketOwnershipControlsResponse_ownershipControls - The OwnershipControls (BucketOwnerPreferred or ObjectWriter) currently in effect for this Amazon S3 bucket.

$sel:httpStatus:GetBucketOwnershipControlsResponse', getBucketOwnershipControlsResponse_httpStatus - The response's http status code.

Response Lenses

getBucketOwnershipControlsResponse_ownershipControls :: Lens' GetBucketOwnershipControlsResponse (Maybe OwnershipControls) Source #

The OwnershipControls (BucketOwnerPreferred or ObjectWriter) currently in effect for this Amazon S3 bucket.