amazonka-glacier-2.0: Amazon Glacier SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Glacier.Types.Encryption

Description

 
Synopsis

Documentation

data Encryption Source #

Contains information about the encryption used to store the job results in Amazon S3.

See: newEncryption smart constructor.

Constructors

Encryption' 

Fields

  • encryptionType :: Maybe EncryptionType

    The server-side encryption algorithm used when storing job results in Amazon S3, for example AES256 or aws:kms.

  • kmsContext :: Maybe Text

    Optional. If the encryption type is aws:kms, you can use this value to specify the encryption context for the job results.

  • kmsKeyId :: Maybe Text

    The AWS KMS key ID to use for object encryption. All GET and PUT requests for an object protected by AWS KMS fail if not made by using Secure Sockets Layer (SSL) or Signature Version 4.

Instances

Instances details
FromJSON Encryption Source # 
Instance details

Defined in Amazonka.Glacier.Types.Encryption

ToJSON Encryption Source # 
Instance details

Defined in Amazonka.Glacier.Types.Encryption

Generic Encryption Source # 
Instance details

Defined in Amazonka.Glacier.Types.Encryption

Associated Types

type Rep Encryption :: Type -> Type #

Read Encryption Source # 
Instance details

Defined in Amazonka.Glacier.Types.Encryption

Show Encryption Source # 
Instance details

Defined in Amazonka.Glacier.Types.Encryption

NFData Encryption Source # 
Instance details

Defined in Amazonka.Glacier.Types.Encryption

Methods

rnf :: Encryption -> () #

Eq Encryption Source # 
Instance details

Defined in Amazonka.Glacier.Types.Encryption

Hashable Encryption Source # 
Instance details

Defined in Amazonka.Glacier.Types.Encryption

type Rep Encryption Source # 
Instance details

Defined in Amazonka.Glacier.Types.Encryption

type Rep Encryption = D1 ('MetaData "Encryption" "Amazonka.Glacier.Types.Encryption" "amazonka-glacier-2.0-17Kmjv8nUJeKOtbrjLyy76" 'False) (C1 ('MetaCons "Encryption'" 'PrefixI 'True) (S1 ('MetaSel ('Just "encryptionType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EncryptionType)) :*: (S1 ('MetaSel ('Just "kmsContext") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "kmsKeyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newEncryption :: Encryption Source #

Create a value of Encryption 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:encryptionType:Encryption', encryption_encryptionType - The server-side encryption algorithm used when storing job results in Amazon S3, for example AES256 or aws:kms.

$sel:kmsContext:Encryption', encryption_kmsContext - Optional. If the encryption type is aws:kms, you can use this value to specify the encryption context for the job results.

$sel:kmsKeyId:Encryption', encryption_kmsKeyId - The AWS KMS key ID to use for object encryption. All GET and PUT requests for an object protected by AWS KMS fail if not made by using Secure Sockets Layer (SSL) or Signature Version 4.

encryption_encryptionType :: Lens' Encryption (Maybe EncryptionType) Source #

The server-side encryption algorithm used when storing job results in Amazon S3, for example AES256 or aws:kms.

encryption_kmsContext :: Lens' Encryption (Maybe Text) Source #

Optional. If the encryption type is aws:kms, you can use this value to specify the encryption context for the job results.

encryption_kmsKeyId :: Lens' Encryption (Maybe Text) Source #

The AWS KMS key ID to use for object encryption. All GET and PUT requests for an object protected by AWS KMS fail if not made by using Secure Sockets Layer (SSL) or Signature Version 4.