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

Creating a Request

data DeleteBucketEncryption Source #

See: newDeleteBucketEncryption smart constructor.

Constructors

DeleteBucketEncryption' 

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 name of the bucket containing the server-side encryption configuration to delete.

Instances

Instances details
Eq DeleteBucketEncryption Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketEncryption

Read DeleteBucketEncryption Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketEncryption

Show DeleteBucketEncryption Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketEncryption

Generic DeleteBucketEncryption Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketEncryption

Associated Types

type Rep DeleteBucketEncryption :: Type -> Type #

NFData DeleteBucketEncryption Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketEncryption

Methods

rnf :: DeleteBucketEncryption -> () #

Hashable DeleteBucketEncryption Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketEncryption

AWSRequest DeleteBucketEncryption Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketEncryption

Associated Types

type AWSResponse DeleteBucketEncryption #

ToHeaders DeleteBucketEncryption Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketEncryption

ToPath DeleteBucketEncryption Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketEncryption

ToQuery DeleteBucketEncryption Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketEncryption

type Rep DeleteBucketEncryption Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketEncryption

type Rep DeleteBucketEncryption = D1 ('MetaData "DeleteBucketEncryption" "Amazonka.S3.DeleteBucketEncryption" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "DeleteBucketEncryption'" 'PrefixI 'True) (S1 ('MetaSel ('Just "expectedBucketOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BucketName)))
type AWSResponse DeleteBucketEncryption Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketEncryption

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.

Instances

Instances details
Eq DeleteBucketEncryptionResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketEncryption

Read DeleteBucketEncryptionResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketEncryption

Show DeleteBucketEncryptionResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketEncryption

Generic DeleteBucketEncryptionResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketEncryption

Associated Types

type Rep DeleteBucketEncryptionResponse :: Type -> Type #

NFData DeleteBucketEncryptionResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketEncryption

type Rep DeleteBucketEncryptionResponse Source # 
Instance details

Defined in Amazonka.S3.DeleteBucketEncryption

type Rep DeleteBucketEncryptionResponse = D1 ('MetaData "DeleteBucketEncryptionResponse" "Amazonka.S3.DeleteBucketEncryption" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "DeleteBucketEncryptionResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteBucketEncryptionResponse :: DeleteBucketEncryptionResponse Source #

Create a value of DeleteBucketEncryptionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.