Skip to content

Delete Bucket Encryption

s3_delete_bucket_encryption R Documentation

This operation is not supported by directory buckets

Description

This operation is not supported by directory buckets.

This implementation of the DELETE action resets the default encryption for the bucket as server-side encryption with Amazon S3 managed keys (SSE-S3). For information about the bucket default encryption feature, see Amazon S3 Bucket Default 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.

The following operations are related to delete_bucket_encryption:

  • put_bucket_encryption

  • get_bucket_encryption

Usage

s3_delete_bucket_encryption(Bucket, ExpectedBucketOwner)

Arguments

Bucket

[required] The name of the bucket containing the server-side encryption configuration to delete.

ExpectedBucketOwner

The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code ⁠403 Forbidden⁠ (access denied).

Value

An empty list.

Request syntax

svc$delete_bucket_encryption(
  Bucket = "string",
  ExpectedBucketOwner = "string"
)