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 the PublicAccessBlock
configuration for an Amazon S3 bucket.
To use this operation, you must have the s3:PutBucketPublicAccessBlock
permission. For more information about permissions, see
Permissions Related to Bucket Subresource Operations
and
Managing Access Permissions to Your Amazon S3 Resources.
The following operations are related to DeletePublicAccessBlock
:
Synopsis
- data DeletePublicAccessBlock = DeletePublicAccessBlock' {}
- newDeletePublicAccessBlock :: BucketName -> DeletePublicAccessBlock
- deletePublicAccessBlock_expectedBucketOwner :: Lens' DeletePublicAccessBlock (Maybe Text)
- deletePublicAccessBlock_bucket :: Lens' DeletePublicAccessBlock BucketName
- data DeletePublicAccessBlockResponse = DeletePublicAccessBlockResponse' {
- newDeletePublicAccessBlockResponse :: DeletePublicAccessBlockResponse
Creating a Request
data DeletePublicAccessBlock Source #
See: newDeletePublicAccessBlock
smart constructor.
DeletePublicAccessBlock' | |
|
Instances
newDeletePublicAccessBlock Source #
Create a value of DeletePublicAccessBlock
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:DeletePublicAccessBlock'
, deletePublicAccessBlock_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:DeletePublicAccessBlock'
, deletePublicAccessBlock_bucket
- The Amazon S3 bucket whose PublicAccessBlock
configuration you want to
delete.
Request Lenses
deletePublicAccessBlock_expectedBucketOwner :: Lens' DeletePublicAccessBlock (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.
deletePublicAccessBlock_bucket :: Lens' DeletePublicAccessBlock BucketName Source #
The Amazon S3 bucket whose PublicAccessBlock
configuration you want to
delete.
Destructuring the Response
data DeletePublicAccessBlockResponse Source #
See: newDeletePublicAccessBlockResponse
smart constructor.
Instances
newDeletePublicAccessBlockResponse :: DeletePublicAccessBlockResponse Source #
Create a value of DeletePublicAccessBlockResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.