libZSservicesZSamazonka-xrayZSamazonka-xray
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.XRay.PutEncryptionConfig

Description

Updates the encryption configuration for X-Ray data.

Synopsis

Creating a Request

data PutEncryptionConfig Source #

See: newPutEncryptionConfig smart constructor.

Constructors

PutEncryptionConfig' 

Fields

  • keyId :: Maybe Text

    An Amazon Web Services KMS key in one of the following formats:

    • Alias - The name of the key. For example, alias/MyKey.
    • Key ID - The KMS key ID of the key. For example, ae4aa6d49-a4d8-9df9-a475-4ff6d7898456. Amazon Web Services X-Ray does not support asymmetric KMS keys.
    • ARN - The full Amazon Resource Name of the key ID or alias. For example, arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456. Use this format to specify a key in a different account.

    Omit this key if you set Type to NONE.

  • type' :: EncryptionType

    The type of encryption. Set to KMS to use your own key for encryption. Set to NONE for default encryption.

Instances

Instances details
Eq PutEncryptionConfig Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

Read PutEncryptionConfig Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

Show PutEncryptionConfig Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

Generic PutEncryptionConfig Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

Associated Types

type Rep PutEncryptionConfig :: Type -> Type #

NFData PutEncryptionConfig Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

Methods

rnf :: PutEncryptionConfig -> () #

Hashable PutEncryptionConfig Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

ToJSON PutEncryptionConfig Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

AWSRequest PutEncryptionConfig Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

Associated Types

type AWSResponse PutEncryptionConfig #

ToHeaders PutEncryptionConfig Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

ToPath PutEncryptionConfig Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

ToQuery PutEncryptionConfig Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

type Rep PutEncryptionConfig Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

type Rep PutEncryptionConfig = D1 ('MetaData "PutEncryptionConfig" "Amazonka.XRay.PutEncryptionConfig" "libZSservicesZSamazonka-xrayZSamazonka-xray" 'False) (C1 ('MetaCons "PutEncryptionConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "keyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EncryptionType)))
type AWSResponse PutEncryptionConfig Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

newPutEncryptionConfig Source #

Create a value of PutEncryptionConfig 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:keyId:PutEncryptionConfig', putEncryptionConfig_keyId - An Amazon Web Services KMS key in one of the following formats:

  • Alias - The name of the key. For example, alias/MyKey.
  • Key ID - The KMS key ID of the key. For example, ae4aa6d49-a4d8-9df9-a475-4ff6d7898456. Amazon Web Services X-Ray does not support asymmetric KMS keys.
  • ARN - The full Amazon Resource Name of the key ID or alias. For example, arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456. Use this format to specify a key in a different account.

Omit this key if you set Type to NONE.

$sel:type':PutEncryptionConfig', putEncryptionConfig_type - The type of encryption. Set to KMS to use your own key for encryption. Set to NONE for default encryption.

Request Lenses

putEncryptionConfig_keyId :: Lens' PutEncryptionConfig (Maybe Text) Source #

An Amazon Web Services KMS key in one of the following formats:

  • Alias - The name of the key. For example, alias/MyKey.
  • Key ID - The KMS key ID of the key. For example, ae4aa6d49-a4d8-9df9-a475-4ff6d7898456. Amazon Web Services X-Ray does not support asymmetric KMS keys.
  • ARN - The full Amazon Resource Name of the key ID or alias. For example, arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456. Use this format to specify a key in a different account.

Omit this key if you set Type to NONE.

putEncryptionConfig_type :: Lens' PutEncryptionConfig EncryptionType Source #

The type of encryption. Set to KMS to use your own key for encryption. Set to NONE for default encryption.

Destructuring the Response

data PutEncryptionConfigResponse Source #

See: newPutEncryptionConfigResponse smart constructor.

Constructors

PutEncryptionConfigResponse' 

Fields

Instances

Instances details
Eq PutEncryptionConfigResponse Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

Read PutEncryptionConfigResponse Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

Show PutEncryptionConfigResponse Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

Generic PutEncryptionConfigResponse Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

Associated Types

type Rep PutEncryptionConfigResponse :: Type -> Type #

NFData PutEncryptionConfigResponse Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

type Rep PutEncryptionConfigResponse Source # 
Instance details

Defined in Amazonka.XRay.PutEncryptionConfig

type Rep PutEncryptionConfigResponse = D1 ('MetaData "PutEncryptionConfigResponse" "Amazonka.XRay.PutEncryptionConfig" "libZSservicesZSamazonka-xrayZSamazonka-xray" 'False) (C1 ('MetaCons "PutEncryptionConfigResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "encryptionConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EncryptionConfig)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPutEncryptionConfigResponse Source #

Create a value of PutEncryptionConfigResponse 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:encryptionConfig:PutEncryptionConfigResponse', putEncryptionConfigResponse_encryptionConfig - The new encryption configuration.

$sel:httpStatus:PutEncryptionConfigResponse', putEncryptionConfigResponse_httpStatus - The response's http status code.

Response Lenses