{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.FraudDetector.Types.KMSKey -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) module Amazonka.FraudDetector.Types.KMSKey where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import qualified Amazonka.Prelude as Prelude -- | The KMS key details. -- -- /See:/ 'newKMSKey' smart constructor. data KMSKey = KMSKey' { -- | The encryption key ARN. kmsEncryptionKeyArn :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'KMSKey' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'kmsEncryptionKeyArn', 'kmsKey_kmsEncryptionKeyArn' - The encryption key ARN. newKMSKey :: KMSKey newKMSKey = KMSKey' {kmsEncryptionKeyArn = Prelude.Nothing} -- | The encryption key ARN. kmsKey_kmsEncryptionKeyArn :: Lens.Lens' KMSKey (Prelude.Maybe Prelude.Text) kmsKey_kmsEncryptionKeyArn = Lens.lens (\KMSKey' {kmsEncryptionKeyArn} -> kmsEncryptionKeyArn) (\s@KMSKey' {} a -> s {kmsEncryptionKeyArn = a} :: KMSKey) instance Data.FromJSON KMSKey where parseJSON = Data.withObject "KMSKey" ( \x -> KMSKey' Prelude.<$> (x Data..:? "kmsEncryptionKeyArn") ) instance Prelude.Hashable KMSKey where hashWithSalt _salt KMSKey' {..} = _salt `Prelude.hashWithSalt` kmsEncryptionKeyArn instance Prelude.NFData KMSKey where rnf KMSKey' {..} = Prelude.rnf kmsEncryptionKeyArn