{-# 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.EC2.Types.Phase2EncryptionAlgorithmsListValue -- 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.EC2.Types.Phase2EncryptionAlgorithmsListValue where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.EC2.Internal import qualified Amazonka.Prelude as Prelude -- | The encryption algorithm for phase 2 IKE negotiations. -- -- /See:/ 'newPhase2EncryptionAlgorithmsListValue' smart constructor. data Phase2EncryptionAlgorithmsListValue = Phase2EncryptionAlgorithmsListValue' { -- | The encryption algorithm. value :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'Phase2EncryptionAlgorithmsListValue' 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: -- -- 'value', 'phase2EncryptionAlgorithmsListValue_value' - The encryption algorithm. newPhase2EncryptionAlgorithmsListValue :: Phase2EncryptionAlgorithmsListValue newPhase2EncryptionAlgorithmsListValue = Phase2EncryptionAlgorithmsListValue' { value = Prelude.Nothing } -- | The encryption algorithm. phase2EncryptionAlgorithmsListValue_value :: Lens.Lens' Phase2EncryptionAlgorithmsListValue (Prelude.Maybe Prelude.Text) phase2EncryptionAlgorithmsListValue_value = Lens.lens (\Phase2EncryptionAlgorithmsListValue' {value} -> value) (\s@Phase2EncryptionAlgorithmsListValue' {} a -> s {value = a} :: Phase2EncryptionAlgorithmsListValue) instance Data.FromXML Phase2EncryptionAlgorithmsListValue where parseXML x = Phase2EncryptionAlgorithmsListValue' Prelude.<$> (x Data..@? "value") instance Prelude.Hashable Phase2EncryptionAlgorithmsListValue where hashWithSalt _salt Phase2EncryptionAlgorithmsListValue' {..} = _salt `Prelude.hashWithSalt` value instance Prelude.NFData Phase2EncryptionAlgorithmsListValue where rnf Phase2EncryptionAlgorithmsListValue' {..} = Prelude.rnf value