Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data DeleteBucketOwnershipControls = DeleteBucketOwnershipControls' {}
- newDeleteBucketOwnershipControls :: BucketName -> DeleteBucketOwnershipControls
- deleteBucketOwnershipControls_expectedBucketOwner :: Lens' DeleteBucketOwnershipControls (Maybe Text)
- deleteBucketOwnershipControls_bucket :: Lens' DeleteBucketOwnershipControls BucketName
- data DeleteBucketOwnershipControlsResponse = DeleteBucketOwnershipControlsResponse' {
- newDeleteBucketOwnershipControlsResponse :: DeleteBucketOwnershipControlsResponse
Creating a Request
data DeleteBucketOwnershipControls Source #
See: newDeleteBucketOwnershipControls
smart constructor.
DeleteBucketOwnershipControls' | |
|
Instances
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 #
See: newDeleteBucketOwnershipControlsResponse
smart constructor.
Instances
newDeleteBucketOwnershipControlsResponse :: DeleteBucketOwnershipControlsResponse Source #
Create a value of DeleteBucketOwnershipControlsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.