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

Description

Removes OwnershipControls for an Amazon S3 bucket. To use this operation, you must have the s3:PutBucketOwnershipControls 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 DeleteBucketOwnershipControls:

  • GetBucketOwnershipControls
  • PutBucketOwnershipControls
Synopsis

Creating a Request

data DeleteBucketOwnershipControls Source #

See: newDeleteBucketOwnershipControls smart constructor.

Constructors

DeleteBucketOwnershipControls' 

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 Amazon S3 bucket whose OwnershipControls you want to delete.

Instances

Instances details
ToHeaders DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

ToPath DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

ToQuery DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

AWSRequest DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

Generic DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

Associated Types

type Rep DeleteBucketOwnershipControls :: Type -> Type #

Read DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

Show DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

NFData DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

Eq DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

Hashable DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

type AWSResponse DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

type Rep DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

type Rep DeleteBucketOwnershipControls = D1 ('MetaData "DeleteBucketOwnershipControls" "Amazonka.S3.DeleteBucketOwnershipControls" "amazonka-s3-2.0-CNZtv1UmVzj28JXsFvwNoj" 'False) (C1 ('MetaCons "DeleteBucketOwnershipControls'" 'PrefixI 'True) (S1 ('MetaSel ('Just "expectedBucketOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BucketName)))

newDeleteBucketOwnershipControls Source #

Create a value of DeleteBucketOwnershipControls 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:DeleteBucketOwnershipControls', deleteBucketOwnershipControls_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).

DeleteBucketOwnershipControls, deleteBucketOwnershipControls_bucket - The Amazon S3 bucket whose OwnershipControls you want to delete.

Request Lenses

deleteBucketOwnershipControls_expectedBucketOwner :: Lens' DeleteBucketOwnershipControls (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).

deleteBucketOwnershipControls_bucket :: Lens' DeleteBucketOwnershipControls BucketName Source #

The Amazon S3 bucket whose OwnershipControls you want to delete.

Destructuring the Response

data DeleteBucketOwnershipControlsResponse Source #

Instances

Instances details
Generic DeleteBucketOwnershipControlsResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

Read DeleteBucketOwnershipControlsResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

Show DeleteBucketOwnershipControlsResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

NFData DeleteBucketOwnershipControlsResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

Eq DeleteBucketOwnershipControlsResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

type Rep DeleteBucketOwnershipControlsResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

type Rep DeleteBucketOwnershipControlsResponse = D1 ('MetaData "DeleteBucketOwnershipControlsResponse" "Amazonka.S3.DeleteBucketOwnershipControls" "amazonka-s3-2.0-CNZtv1UmVzj28JXsFvwNoj" 'False) (C1 ('MetaCons "DeleteBucketOwnershipControlsResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteBucketOwnershipControlsResponse :: DeleteBucketOwnershipControlsResponse Source #

Create a value of DeleteBucketOwnershipControlsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.