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 |
Amazonka.S3.DeleteBucketEncryption
Description
This implementation of the DELETE action removes default encryption from the bucket. For information about the Amazon S3 default encryption feature, see Amazon S3 Default Bucket Encryption in the Amazon S3 User Guide.
To use this operation, you must have permissions to perform the
s3:PutEncryptionConfiguration
action. The bucket owner has this
permission by default. The bucket owner can grant this permission to
others. For more information about permissions, see
Permissions Related to Bucket Subresource Operations
and
Managing Access Permissions to your Amazon S3 Resources
in the Amazon S3 User Guide.
Related Resources
Synopsis
- data DeleteBucketEncryption = DeleteBucketEncryption' {}
- newDeleteBucketEncryption :: BucketName -> DeleteBucketEncryption
- deleteBucketEncryption_expectedBucketOwner :: Lens' DeleteBucketEncryption (Maybe Text)
- deleteBucketEncryption_bucket :: Lens' DeleteBucketEncryption BucketName
- data DeleteBucketEncryptionResponse = DeleteBucketEncryptionResponse' {
- newDeleteBucketEncryptionResponse :: DeleteBucketEncryptionResponse
Creating a Request
data DeleteBucketEncryption Source #
See: newDeleteBucketEncryption
smart constructor.
Constructors
DeleteBucketEncryption' | |
Fields
|
Instances
newDeleteBucketEncryption Source #
Create a value of DeleteBucketEncryption
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:DeleteBucketEncryption'
, deleteBucketEncryption_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:DeleteBucketEncryption'
, deleteBucketEncryption_bucket
- The name of the bucket containing the server-side encryption
configuration to delete.
Request Lenses
deleteBucketEncryption_expectedBucketOwner :: Lens' DeleteBucketEncryption (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.
deleteBucketEncryption_bucket :: Lens' DeleteBucketEncryption BucketName Source #
The name of the bucket containing the server-side encryption configuration to delete.
Destructuring the Response
data DeleteBucketEncryptionResponse Source #
See: newDeleteBucketEncryptionResponse
smart constructor.
Constructors
DeleteBucketEncryptionResponse' | |
Instances
Eq DeleteBucketEncryptionResponse Source # | |
Defined in Amazonka.S3.DeleteBucketEncryption | |
Read DeleteBucketEncryptionResponse Source # | |
Show DeleteBucketEncryptionResponse Source # | |
Defined in Amazonka.S3.DeleteBucketEncryption Methods showsPrec :: Int -> DeleteBucketEncryptionResponse -> ShowS # show :: DeleteBucketEncryptionResponse -> String # showList :: [DeleteBucketEncryptionResponse] -> ShowS # | |
Generic DeleteBucketEncryptionResponse Source # | |
Defined in Amazonka.S3.DeleteBucketEncryption Associated Types type Rep DeleteBucketEncryptionResponse :: Type -> Type # | |
NFData DeleteBucketEncryptionResponse Source # | |
Defined in Amazonka.S3.DeleteBucketEncryption Methods rnf :: DeleteBucketEncryptionResponse -> () # | |
type Rep DeleteBucketEncryptionResponse Source # | |
Defined in Amazonka.S3.DeleteBucketEncryption |
newDeleteBucketEncryptionResponse :: DeleteBucketEncryptionResponse Source #
Create a value of DeleteBucketEncryptionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.