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

Description

 
Synopsis

Documentation

data ServerSideEncryptionRule Source #

Specifies the default server-side encryption configuration.

See: newServerSideEncryptionRule smart constructor.

Constructors

ServerSideEncryptionRule' 

Fields

  • applyServerSideEncryptionByDefault :: Maybe ServerSideEncryptionByDefault

    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.

  • bucketKeyEnabled :: Maybe Bool

    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.

Instances

Instances details
Eq ServerSideEncryptionRule Source # 
Instance details

Defined in Amazonka.S3.Types.ServerSideEncryptionRule

Show ServerSideEncryptionRule Source # 
Instance details

Defined in Amazonka.S3.Types.ServerSideEncryptionRule

Generic ServerSideEncryptionRule Source # 
Instance details

Defined in Amazonka.S3.Types.ServerSideEncryptionRule

Associated Types

type Rep ServerSideEncryptionRule :: Type -> Type #

NFData ServerSideEncryptionRule Source # 
Instance details

Defined in Amazonka.S3.Types.ServerSideEncryptionRule

Hashable ServerSideEncryptionRule Source # 
Instance details

Defined in Amazonka.S3.Types.ServerSideEncryptionRule

FromXML ServerSideEncryptionRule Source # 
Instance details

Defined in Amazonka.S3.Types.ServerSideEncryptionRule

ToXML ServerSideEncryptionRule Source # 
Instance details

Defined in Amazonka.S3.Types.ServerSideEncryptionRule

type Rep ServerSideEncryptionRule Source # 
Instance details

Defined in Amazonka.S3.Types.ServerSideEncryptionRule

type Rep ServerSideEncryptionRule = D1 ('MetaData "ServerSideEncryptionRule" "Amazonka.S3.Types.ServerSideEncryptionRule" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "ServerSideEncryptionRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "applyServerSideEncryptionByDefault") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ServerSideEncryptionByDefault)) :*: S1 ('MetaSel ('Just "bucketKeyEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))

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.