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 |
Synopsis
- data ServerSideEncryptionRule = ServerSideEncryptionRule' {}
- newServerSideEncryptionRule :: ServerSideEncryptionRule
- serverSideEncryptionRule_applyServerSideEncryptionByDefault :: Lens' ServerSideEncryptionRule (Maybe ServerSideEncryptionByDefault)
- serverSideEncryptionRule_bucketKeyEnabled :: Lens' ServerSideEncryptionRule (Maybe Bool)
Documentation
data ServerSideEncryptionRule Source #
Specifies the default server-side encryption configuration.
See: newServerSideEncryptionRule
smart constructor.
ServerSideEncryptionRule' | |
|
Instances
newServerSideEncryptionRule :: ServerSideEncryptionRule Source #
Create a value of ServerSideEncryptionRule
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:applyServerSideEncryptionByDefault:ServerSideEncryptionRule'
, serverSideEncryptionRule_applyServerSideEncryptionByDefault
- Specifies the default server-side encryption to apply to new objects in
the bucket. If a PUT Object request doesn't specify any server-side
encryption, this default encryption will be applied.
$sel:bucketKeyEnabled:ServerSideEncryptionRule'
, serverSideEncryptionRule_bucketKeyEnabled
- Specifies whether Amazon S3 should use an S3 Bucket Key with server-side
encryption using KMS (SSE-KMS) for new objects in the bucket. Existing
objects are not affected. Setting the BucketKeyEnabled
element to
true
causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket
Key is not enabled.
For more information, see Amazon S3 Bucket Keys in the Amazon S3 User Guide.
serverSideEncryptionRule_applyServerSideEncryptionByDefault :: Lens' ServerSideEncryptionRule (Maybe ServerSideEncryptionByDefault) Source #
Specifies the default server-side encryption to apply to new objects in the bucket. If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.
serverSideEncryptionRule_bucketKeyEnabled :: Lens' ServerSideEncryptionRule (Maybe Bool) Source #
Specifies whether Amazon S3 should use an S3 Bucket Key with server-side
encryption using KMS (SSE-KMS) for new objects in the bucket. Existing
objects are not affected. Setting the BucketKeyEnabled
element to
true
causes Amazon S3 to use an S3 Bucket Key. By default, S3 Bucket
Key is not enabled.
For more information, see Amazon S3 Bucket Keys in the Amazon S3 User Guide.