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.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 fails with the HTTP status code 403 Forbidden (access denied).

  • bucket :: BucketName

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

Instances

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

AWSRequest 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 #

Read GetBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

Show GetBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

NFData GetBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

Eq GetBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

Hashable GetBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

type AWSResponse 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" "amazonka-s3-2.0-CNZtv1UmVzj28JXsFvwNoj" '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)))

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 fails with the HTTP status code 403 Forbidden (access denied).

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 fails with the HTTP status code 403 Forbidden (access denied).

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
Generic GetBucketOwnershipControlsResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

Associated Types

type Rep GetBucketOwnershipControlsResponse :: Type -> Type #

Read GetBucketOwnershipControlsResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

Show GetBucketOwnershipControlsResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

NFData GetBucketOwnershipControlsResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketOwnershipControls

Eq 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" "amazonka-s3-2.0-CNZtv1UmVzj28JXsFvwNoj" '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 (BucketOwnerEnforced, 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 (BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) currently in effect for this Amazon S3 bucket.