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.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 will fail with an HTTP 403 (Access Denied) error.

  • bucket :: BucketName

    The Amazon S3 bucket whose OwnershipControls you want to delete.

Instances

Instances details
Eq DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

Read DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

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

NFData DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

Hashable DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

AWSRequest DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

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

type Rep DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

type Rep DeleteBucketOwnershipControls = D1 ('MetaData "DeleteBucketOwnershipControls" "Amazonka.S3.DeleteBucketOwnershipControls" "libZSservicesZSamazonka-s3ZSamazonka-s3" '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)))
type AWSResponse DeleteBucketOwnershipControls Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

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 will fail with an HTTP 403 (Access Denied) error.

$sel:bucket: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 will fail with an HTTP 403 (Access Denied) error.

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
Eq 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

Generic DeleteBucketOwnershipControlsResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketOwnershipControls

NFData 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" "libZSservicesZSamazonka-s3ZSamazonka-s3" '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.