| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
- 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.
Constructors
| DeleteBucketOwnershipControls' | |
Fields
| |
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 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 #
See: newDeleteBucketOwnershipControlsResponse smart constructor.
Constructors
| DeleteBucketOwnershipControlsResponse' | |
Instances
newDeleteBucketOwnershipControlsResponse :: DeleteBucketOwnershipControlsResponse Source #
Create a value of DeleteBucketOwnershipControlsResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.