> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# S3 Get Bucket Encryption

Returns the default encryption configuration for an Amazon S3 bucket. If the bucket does not have a default encryption configuration, GetBucketEncryption returns `ServerSideEncryptionConfigurationNotFoundError`.

For information about the Amazon S3 default encryption feature, see [Amazon S3 Default Bucket Encryption](https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html).

To use this operation, you must have permission to perform the `s3:GetEncryptionConfiguration` 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](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) and [Managing Access Permissions to Your Amazon S3 Resources](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html).

The following operations are related to `GetBucketEncryption`:

* [PutBucketEncryption](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketEncryption.html)

* [DeleteBucketEncryption](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketEncryption.html).

> [!NOTE]
>
> External Documentation
>
> To learn more, visit the [AWS documentation](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketEncryption.html).

## Basic Parameters

| Parameter | Description |
| - | - |
| AWS Region(s) | Enter the desired AWS Region(s). To execute the action in multiple regions, provide a comma-separated list. For example: `us-east-1,eu-west-2`. If you wish to run the action in all available regions, use the asterisk symbol (`*`) instead. |
| Bucket | The name of the bucket from which the server-side encryption configuration is retrieved. |
| Expected Bucket Owner | 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. |

## Advanced Parameters

| Parameter | Description |
| - | - |
| Disable XML To JSON Auto Convert | When checked, XML responses are not automatically converted into JSON format. |

## Example Output

```json theme={"dark"}
{
	"ServerSideEncryptionConfiguration": {
		"Rules": [
			{
				"ApplyServerSideEncryptionByDefault": {
					"KMSMasterKeyID": "password",
					"SSEAlgorithm": "string"
				},
				"BucketKeyEnabled": false
			}
		]
	}
}
```
