{-# 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.ModifyVpnTunnelOptionsSpecification
-- 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.ModifyVpnTunnelOptionsSpecification 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 Amazonka.EC2.Types.IKEVersionsRequestListValue
import Amazonka.EC2.Types.Phase1DHGroupNumbersRequestListValue
import Amazonka.EC2.Types.Phase1EncryptionAlgorithmsRequestListValue
import Amazonka.EC2.Types.Phase1IntegrityAlgorithmsRequestListValue
import Amazonka.EC2.Types.Phase2DHGroupNumbersRequestListValue
import Amazonka.EC2.Types.Phase2EncryptionAlgorithmsRequestListValue
import Amazonka.EC2.Types.Phase2IntegrityAlgorithmsRequestListValue
import Amazonka.EC2.Types.VpnTunnelLogOptionsSpecification
import qualified Amazonka.Prelude as Prelude

-- | The Amazon Web Services Site-to-Site VPN tunnel options to modify.
--
-- /See:/ 'newModifyVpnTunnelOptionsSpecification' smart constructor.
data ModifyVpnTunnelOptionsSpecification = ModifyVpnTunnelOptionsSpecification'
  { -- | The action to take after DPD timeout occurs. Specify @restart@ to
    -- restart the IKE initiation. Specify @clear@ to end the IKE session.
    --
    -- Valid Values: @clear@ | @none@ | @restart@
    --
    -- Default: @clear@
    ModifyVpnTunnelOptionsSpecification -> Maybe Text
dPDTimeoutAction :: Prelude.Maybe Prelude.Text,
    -- | The number of seconds after which a DPD timeout occurs.
    --
    -- Constraints: A value greater than or equal to 30.
    --
    -- Default: @30@
    ModifyVpnTunnelOptionsSpecification -> Maybe Int
dPDTimeoutSeconds :: Prelude.Maybe Prelude.Int,
    -- | The IKE versions that are permitted for the VPN tunnel.
    --
    -- Valid values: @ikev1@ | @ikev2@
    ModifyVpnTunnelOptionsSpecification
-> Maybe [IKEVersionsRequestListValue]
iKEVersions :: Prelude.Maybe [IKEVersionsRequestListValue],
    -- | Options for logging VPN tunnel activity.
    ModifyVpnTunnelOptionsSpecification
-> Maybe VpnTunnelLogOptionsSpecification
logOptions :: Prelude.Maybe VpnTunnelLogOptionsSpecification,
    -- | One or more Diffie-Hellman group numbers that are permitted for the VPN
    -- tunnel for phase 1 IKE negotiations.
    --
    -- Valid values: @2@ | @14@ | @15@ | @16@ | @17@ | @18@ | @19@ | @20@ |
    -- @21@ | @22@ | @23@ | @24@
    ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase1DHGroupNumbersRequestListValue]
phase1DHGroupNumbers :: Prelude.Maybe [Phase1DHGroupNumbersRequestListValue],
    -- | One or more encryption algorithms that are permitted for the VPN tunnel
    -- for phase 1 IKE negotiations.
    --
    -- Valid values: @AES128@ | @AES256@ | @AES128-GCM-16@ | @AES256-GCM-16@
    ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase1EncryptionAlgorithmsRequestListValue]
phase1EncryptionAlgorithms :: Prelude.Maybe [Phase1EncryptionAlgorithmsRequestListValue],
    -- | One or more integrity algorithms that are permitted for the VPN tunnel
    -- for phase 1 IKE negotiations.
    --
    -- Valid values: @SHA1@ | @SHA2-256@ | @SHA2-384@ | @SHA2-512@
    ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase1IntegrityAlgorithmsRequestListValue]
phase1IntegrityAlgorithms :: Prelude.Maybe [Phase1IntegrityAlgorithmsRequestListValue],
    -- | The lifetime for phase 1 of the IKE negotiation, in seconds.
    --
    -- Constraints: A value between 900 and 28,800.
    --
    -- Default: @28800@
    ModifyVpnTunnelOptionsSpecification -> Maybe Int
phase1LifetimeSeconds :: Prelude.Maybe Prelude.Int,
    -- | One or more Diffie-Hellman group numbers that are permitted for the VPN
    -- tunnel for phase 2 IKE negotiations.
    --
    -- Valid values: @2@ | @5@ | @14@ | @15@ | @16@ | @17@ | @18@ | @19@ | @20@
    -- | @21@ | @22@ | @23@ | @24@
    ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase2DHGroupNumbersRequestListValue]
phase2DHGroupNumbers :: Prelude.Maybe [Phase2DHGroupNumbersRequestListValue],
    -- | One or more encryption algorithms that are permitted for the VPN tunnel
    -- for phase 2 IKE negotiations.
    --
    -- Valid values: @AES128@ | @AES256@ | @AES128-GCM-16@ | @AES256-GCM-16@
    ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase2EncryptionAlgorithmsRequestListValue]
phase2EncryptionAlgorithms :: Prelude.Maybe [Phase2EncryptionAlgorithmsRequestListValue],
    -- | One or more integrity algorithms that are permitted for the VPN tunnel
    -- for phase 2 IKE negotiations.
    --
    -- Valid values: @SHA1@ | @SHA2-256@ | @SHA2-384@ | @SHA2-512@
    ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase2IntegrityAlgorithmsRequestListValue]
phase2IntegrityAlgorithms :: Prelude.Maybe [Phase2IntegrityAlgorithmsRequestListValue],
    -- | The lifetime for phase 2 of the IKE negotiation, in seconds.
    --
    -- Constraints: A value between 900 and 3,600. The value must be less than
    -- the value for @Phase1LifetimeSeconds@.
    --
    -- Default: @3600@
    ModifyVpnTunnelOptionsSpecification -> Maybe Int
phase2LifetimeSeconds :: Prelude.Maybe Prelude.Int,
    -- | The pre-shared key (PSK) to establish initial authentication between the
    -- virtual private gateway and the customer gateway.
    --
    -- Constraints: Allowed characters are alphanumeric characters, periods
    -- (.), and underscores (_). Must be between 8 and 64 characters in length
    -- and cannot start with zero (0).
    ModifyVpnTunnelOptionsSpecification -> Maybe Text
preSharedKey :: Prelude.Maybe Prelude.Text,
    -- | The percentage of the rekey window (determined by
    -- @RekeyMarginTimeSeconds@) during which the rekey time is randomly
    -- selected.
    --
    -- Constraints: A value between 0 and 100.
    --
    -- Default: @100@
    ModifyVpnTunnelOptionsSpecification -> Maybe Int
rekeyFuzzPercentage :: Prelude.Maybe Prelude.Int,
    -- | The margin time, in seconds, before the phase 2 lifetime expires, during
    -- which the Amazon Web Services side of the VPN connection performs an IKE
    -- rekey. The exact time of the rekey is randomly selected based on the
    -- value for @RekeyFuzzPercentage@.
    --
    -- Constraints: A value between 60 and half of @Phase2LifetimeSeconds@.
    --
    -- Default: @540@
    ModifyVpnTunnelOptionsSpecification -> Maybe Int
rekeyMarginTimeSeconds :: Prelude.Maybe Prelude.Int,
    -- | The number of packets in an IKE replay window.
    --
    -- Constraints: A value between 64 and 2048.
    --
    -- Default: @1024@
    ModifyVpnTunnelOptionsSpecification -> Maybe Int
replayWindowSize :: Prelude.Maybe Prelude.Int,
    -- | The action to take when the establishing the tunnel for the VPN
    -- connection. By default, your customer gateway device must initiate the
    -- IKE negotiation and bring up the tunnel. Specify @start@ for Amazon Web
    -- Services to initiate the IKE negotiation.
    --
    -- Valid Values: @add@ | @start@
    --
    -- Default: @add@
    ModifyVpnTunnelOptionsSpecification -> Maybe Text
startupAction :: Prelude.Maybe Prelude.Text,
    -- | The range of inside IPv4 addresses for the tunnel. Any specified CIDR
    -- blocks must be unique across all VPN connections that use the same
    -- virtual private gateway.
    --
    -- Constraints: A size \/30 CIDR block from the @169.254.0.0\/16@ range.
    -- The following CIDR blocks are reserved and cannot be used:
    --
    -- -   @169.254.0.0\/30@
    --
    -- -   @169.254.1.0\/30@
    --
    -- -   @169.254.2.0\/30@
    --
    -- -   @169.254.3.0\/30@
    --
    -- -   @169.254.4.0\/30@
    --
    -- -   @169.254.5.0\/30@
    --
    -- -   @169.254.169.252\/30@
    ModifyVpnTunnelOptionsSpecification -> Maybe Text
tunnelInsideCidr :: Prelude.Maybe Prelude.Text,
    -- | The range of inside IPv6 addresses for the tunnel. Any specified CIDR
    -- blocks must be unique across all VPN connections that use the same
    -- transit gateway.
    --
    -- Constraints: A size \/126 CIDR block from the local @fd00::\/8@ range.
    ModifyVpnTunnelOptionsSpecification -> Maybe Text
tunnelInsideIpv6Cidr :: Prelude.Maybe Prelude.Text
  }
  deriving (ModifyVpnTunnelOptionsSpecification
-> ModifyVpnTunnelOptionsSpecification -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModifyVpnTunnelOptionsSpecification
-> ModifyVpnTunnelOptionsSpecification -> Bool
$c/= :: ModifyVpnTunnelOptionsSpecification
-> ModifyVpnTunnelOptionsSpecification -> Bool
== :: ModifyVpnTunnelOptionsSpecification
-> ModifyVpnTunnelOptionsSpecification -> Bool
$c== :: ModifyVpnTunnelOptionsSpecification
-> ModifyVpnTunnelOptionsSpecification -> Bool
Prelude.Eq, ReadPrec [ModifyVpnTunnelOptionsSpecification]
ReadPrec ModifyVpnTunnelOptionsSpecification
Int -> ReadS ModifyVpnTunnelOptionsSpecification
ReadS [ModifyVpnTunnelOptionsSpecification]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModifyVpnTunnelOptionsSpecification]
$creadListPrec :: ReadPrec [ModifyVpnTunnelOptionsSpecification]
readPrec :: ReadPrec ModifyVpnTunnelOptionsSpecification
$creadPrec :: ReadPrec ModifyVpnTunnelOptionsSpecification
readList :: ReadS [ModifyVpnTunnelOptionsSpecification]
$creadList :: ReadS [ModifyVpnTunnelOptionsSpecification]
readsPrec :: Int -> ReadS ModifyVpnTunnelOptionsSpecification
$creadsPrec :: Int -> ReadS ModifyVpnTunnelOptionsSpecification
Prelude.Read, Int -> ModifyVpnTunnelOptionsSpecification -> ShowS
[ModifyVpnTunnelOptionsSpecification] -> ShowS
ModifyVpnTunnelOptionsSpecification -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModifyVpnTunnelOptionsSpecification] -> ShowS
$cshowList :: [ModifyVpnTunnelOptionsSpecification] -> ShowS
show :: ModifyVpnTunnelOptionsSpecification -> String
$cshow :: ModifyVpnTunnelOptionsSpecification -> String
showsPrec :: Int -> ModifyVpnTunnelOptionsSpecification -> ShowS
$cshowsPrec :: Int -> ModifyVpnTunnelOptionsSpecification -> ShowS
Prelude.Show, forall x.
Rep ModifyVpnTunnelOptionsSpecification x
-> ModifyVpnTunnelOptionsSpecification
forall x.
ModifyVpnTunnelOptionsSpecification
-> Rep ModifyVpnTunnelOptionsSpecification x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ModifyVpnTunnelOptionsSpecification x
-> ModifyVpnTunnelOptionsSpecification
$cfrom :: forall x.
ModifyVpnTunnelOptionsSpecification
-> Rep ModifyVpnTunnelOptionsSpecification x
Prelude.Generic)

-- |
-- Create a value of 'ModifyVpnTunnelOptionsSpecification' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'dPDTimeoutAction', 'modifyVpnTunnelOptionsSpecification_dPDTimeoutAction' - The action to take after DPD timeout occurs. Specify @restart@ to
-- restart the IKE initiation. Specify @clear@ to end the IKE session.
--
-- Valid Values: @clear@ | @none@ | @restart@
--
-- Default: @clear@
--
-- 'dPDTimeoutSeconds', 'modifyVpnTunnelOptionsSpecification_dPDTimeoutSeconds' - The number of seconds after which a DPD timeout occurs.
--
-- Constraints: A value greater than or equal to 30.
--
-- Default: @30@
--
-- 'iKEVersions', 'modifyVpnTunnelOptionsSpecification_iKEVersions' - The IKE versions that are permitted for the VPN tunnel.
--
-- Valid values: @ikev1@ | @ikev2@
--
-- 'logOptions', 'modifyVpnTunnelOptionsSpecification_logOptions' - Options for logging VPN tunnel activity.
--
-- 'phase1DHGroupNumbers', 'modifyVpnTunnelOptionsSpecification_phase1DHGroupNumbers' - One or more Diffie-Hellman group numbers that are permitted for the VPN
-- tunnel for phase 1 IKE negotiations.
--
-- Valid values: @2@ | @14@ | @15@ | @16@ | @17@ | @18@ | @19@ | @20@ |
-- @21@ | @22@ | @23@ | @24@
--
-- 'phase1EncryptionAlgorithms', 'modifyVpnTunnelOptionsSpecification_phase1EncryptionAlgorithms' - One or more encryption algorithms that are permitted for the VPN tunnel
-- for phase 1 IKE negotiations.
--
-- Valid values: @AES128@ | @AES256@ | @AES128-GCM-16@ | @AES256-GCM-16@
--
-- 'phase1IntegrityAlgorithms', 'modifyVpnTunnelOptionsSpecification_phase1IntegrityAlgorithms' - One or more integrity algorithms that are permitted for the VPN tunnel
-- for phase 1 IKE negotiations.
--
-- Valid values: @SHA1@ | @SHA2-256@ | @SHA2-384@ | @SHA2-512@
--
-- 'phase1LifetimeSeconds', 'modifyVpnTunnelOptionsSpecification_phase1LifetimeSeconds' - The lifetime for phase 1 of the IKE negotiation, in seconds.
--
-- Constraints: A value between 900 and 28,800.
--
-- Default: @28800@
--
-- 'phase2DHGroupNumbers', 'modifyVpnTunnelOptionsSpecification_phase2DHGroupNumbers' - One or more Diffie-Hellman group numbers that are permitted for the VPN
-- tunnel for phase 2 IKE negotiations.
--
-- Valid values: @2@ | @5@ | @14@ | @15@ | @16@ | @17@ | @18@ | @19@ | @20@
-- | @21@ | @22@ | @23@ | @24@
--
-- 'phase2EncryptionAlgorithms', 'modifyVpnTunnelOptionsSpecification_phase2EncryptionAlgorithms' - One or more encryption algorithms that are permitted for the VPN tunnel
-- for phase 2 IKE negotiations.
--
-- Valid values: @AES128@ | @AES256@ | @AES128-GCM-16@ | @AES256-GCM-16@
--
-- 'phase2IntegrityAlgorithms', 'modifyVpnTunnelOptionsSpecification_phase2IntegrityAlgorithms' - One or more integrity algorithms that are permitted for the VPN tunnel
-- for phase 2 IKE negotiations.
--
-- Valid values: @SHA1@ | @SHA2-256@ | @SHA2-384@ | @SHA2-512@
--
-- 'phase2LifetimeSeconds', 'modifyVpnTunnelOptionsSpecification_phase2LifetimeSeconds' - The lifetime for phase 2 of the IKE negotiation, in seconds.
--
-- Constraints: A value between 900 and 3,600. The value must be less than
-- the value for @Phase1LifetimeSeconds@.
--
-- Default: @3600@
--
-- 'preSharedKey', 'modifyVpnTunnelOptionsSpecification_preSharedKey' - The pre-shared key (PSK) to establish initial authentication between the
-- virtual private gateway and the customer gateway.
--
-- Constraints: Allowed characters are alphanumeric characters, periods
-- (.), and underscores (_). Must be between 8 and 64 characters in length
-- and cannot start with zero (0).
--
-- 'rekeyFuzzPercentage', 'modifyVpnTunnelOptionsSpecification_rekeyFuzzPercentage' - The percentage of the rekey window (determined by
-- @RekeyMarginTimeSeconds@) during which the rekey time is randomly
-- selected.
--
-- Constraints: A value between 0 and 100.
--
-- Default: @100@
--
-- 'rekeyMarginTimeSeconds', 'modifyVpnTunnelOptionsSpecification_rekeyMarginTimeSeconds' - The margin time, in seconds, before the phase 2 lifetime expires, during
-- which the Amazon Web Services side of the VPN connection performs an IKE
-- rekey. The exact time of the rekey is randomly selected based on the
-- value for @RekeyFuzzPercentage@.
--
-- Constraints: A value between 60 and half of @Phase2LifetimeSeconds@.
--
-- Default: @540@
--
-- 'replayWindowSize', 'modifyVpnTunnelOptionsSpecification_replayWindowSize' - The number of packets in an IKE replay window.
--
-- Constraints: A value between 64 and 2048.
--
-- Default: @1024@
--
-- 'startupAction', 'modifyVpnTunnelOptionsSpecification_startupAction' - The action to take when the establishing the tunnel for the VPN
-- connection. By default, your customer gateway device must initiate the
-- IKE negotiation and bring up the tunnel. Specify @start@ for Amazon Web
-- Services to initiate the IKE negotiation.
--
-- Valid Values: @add@ | @start@
--
-- Default: @add@
--
-- 'tunnelInsideCidr', 'modifyVpnTunnelOptionsSpecification_tunnelInsideCidr' - The range of inside IPv4 addresses for the tunnel. Any specified CIDR
-- blocks must be unique across all VPN connections that use the same
-- virtual private gateway.
--
-- Constraints: A size \/30 CIDR block from the @169.254.0.0\/16@ range.
-- The following CIDR blocks are reserved and cannot be used:
--
-- -   @169.254.0.0\/30@
--
-- -   @169.254.1.0\/30@
--
-- -   @169.254.2.0\/30@
--
-- -   @169.254.3.0\/30@
--
-- -   @169.254.4.0\/30@
--
-- -   @169.254.5.0\/30@
--
-- -   @169.254.169.252\/30@
--
-- 'tunnelInsideIpv6Cidr', 'modifyVpnTunnelOptionsSpecification_tunnelInsideIpv6Cidr' - The range of inside IPv6 addresses for the tunnel. Any specified CIDR
-- blocks must be unique across all VPN connections that use the same
-- transit gateway.
--
-- Constraints: A size \/126 CIDR block from the local @fd00::\/8@ range.
newModifyVpnTunnelOptionsSpecification ::
  ModifyVpnTunnelOptionsSpecification
newModifyVpnTunnelOptionsSpecification :: ModifyVpnTunnelOptionsSpecification
newModifyVpnTunnelOptionsSpecification =
  ModifyVpnTunnelOptionsSpecification'
    { $sel:dPDTimeoutAction:ModifyVpnTunnelOptionsSpecification' :: Maybe Text
dPDTimeoutAction =
        forall a. Maybe a
Prelude.Nothing,
      $sel:dPDTimeoutSeconds:ModifyVpnTunnelOptionsSpecification' :: Maybe Int
dPDTimeoutSeconds = forall a. Maybe a
Prelude.Nothing,
      $sel:iKEVersions:ModifyVpnTunnelOptionsSpecification' :: Maybe [IKEVersionsRequestListValue]
iKEVersions = forall a. Maybe a
Prelude.Nothing,
      $sel:logOptions:ModifyVpnTunnelOptionsSpecification' :: Maybe VpnTunnelLogOptionsSpecification
logOptions = forall a. Maybe a
Prelude.Nothing,
      $sel:phase1DHGroupNumbers:ModifyVpnTunnelOptionsSpecification' :: Maybe [Phase1DHGroupNumbersRequestListValue]
phase1DHGroupNumbers = forall a. Maybe a
Prelude.Nothing,
      $sel:phase1EncryptionAlgorithms:ModifyVpnTunnelOptionsSpecification' :: Maybe [Phase1EncryptionAlgorithmsRequestListValue]
phase1EncryptionAlgorithms =
        forall a. Maybe a
Prelude.Nothing,
      $sel:phase1IntegrityAlgorithms:ModifyVpnTunnelOptionsSpecification' :: Maybe [Phase1IntegrityAlgorithmsRequestListValue]
phase1IntegrityAlgorithms =
        forall a. Maybe a
Prelude.Nothing,
      $sel:phase1LifetimeSeconds:ModifyVpnTunnelOptionsSpecification' :: Maybe Int
phase1LifetimeSeconds =
        forall a. Maybe a
Prelude.Nothing,
      $sel:phase2DHGroupNumbers:ModifyVpnTunnelOptionsSpecification' :: Maybe [Phase2DHGroupNumbersRequestListValue]
phase2DHGroupNumbers = forall a. Maybe a
Prelude.Nothing,
      $sel:phase2EncryptionAlgorithms:ModifyVpnTunnelOptionsSpecification' :: Maybe [Phase2EncryptionAlgorithmsRequestListValue]
phase2EncryptionAlgorithms =
        forall a. Maybe a
Prelude.Nothing,
      $sel:phase2IntegrityAlgorithms:ModifyVpnTunnelOptionsSpecification' :: Maybe [Phase2IntegrityAlgorithmsRequestListValue]
phase2IntegrityAlgorithms =
        forall a. Maybe a
Prelude.Nothing,
      $sel:phase2LifetimeSeconds:ModifyVpnTunnelOptionsSpecification' :: Maybe Int
phase2LifetimeSeconds =
        forall a. Maybe a
Prelude.Nothing,
      $sel:preSharedKey:ModifyVpnTunnelOptionsSpecification' :: Maybe Text
preSharedKey = forall a. Maybe a
Prelude.Nothing,
      $sel:rekeyFuzzPercentage:ModifyVpnTunnelOptionsSpecification' :: Maybe Int
rekeyFuzzPercentage = forall a. Maybe a
Prelude.Nothing,
      $sel:rekeyMarginTimeSeconds:ModifyVpnTunnelOptionsSpecification' :: Maybe Int
rekeyMarginTimeSeconds =
        forall a. Maybe a
Prelude.Nothing,
      $sel:replayWindowSize:ModifyVpnTunnelOptionsSpecification' :: Maybe Int
replayWindowSize = forall a. Maybe a
Prelude.Nothing,
      $sel:startupAction:ModifyVpnTunnelOptionsSpecification' :: Maybe Text
startupAction = forall a. Maybe a
Prelude.Nothing,
      $sel:tunnelInsideCidr:ModifyVpnTunnelOptionsSpecification' :: Maybe Text
tunnelInsideCidr = forall a. Maybe a
Prelude.Nothing,
      $sel:tunnelInsideIpv6Cidr:ModifyVpnTunnelOptionsSpecification' :: Maybe Text
tunnelInsideIpv6Cidr = forall a. Maybe a
Prelude.Nothing
    }

-- | The action to take after DPD timeout occurs. Specify @restart@ to
-- restart the IKE initiation. Specify @clear@ to end the IKE session.
--
-- Valid Values: @clear@ | @none@ | @restart@
--
-- Default: @clear@
modifyVpnTunnelOptionsSpecification_dPDTimeoutAction :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe Prelude.Text)
modifyVpnTunnelOptionsSpecification_dPDTimeoutAction :: Lens' ModifyVpnTunnelOptionsSpecification (Maybe Text)
modifyVpnTunnelOptionsSpecification_dPDTimeoutAction = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe Text
dPDTimeoutAction :: Maybe Text
$sel:dPDTimeoutAction:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
dPDTimeoutAction} -> Maybe Text
dPDTimeoutAction) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe Text
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:dPDTimeoutAction:ModifyVpnTunnelOptionsSpecification' :: Maybe Text
dPDTimeoutAction = Maybe Text
a} :: ModifyVpnTunnelOptionsSpecification)

-- | The number of seconds after which a DPD timeout occurs.
--
-- Constraints: A value greater than or equal to 30.
--
-- Default: @30@
modifyVpnTunnelOptionsSpecification_dPDTimeoutSeconds :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe Prelude.Int)
modifyVpnTunnelOptionsSpecification_dPDTimeoutSeconds :: Lens' ModifyVpnTunnelOptionsSpecification (Maybe Int)
modifyVpnTunnelOptionsSpecification_dPDTimeoutSeconds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe Int
dPDTimeoutSeconds :: Maybe Int
$sel:dPDTimeoutSeconds:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
dPDTimeoutSeconds} -> Maybe Int
dPDTimeoutSeconds) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe Int
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:dPDTimeoutSeconds:ModifyVpnTunnelOptionsSpecification' :: Maybe Int
dPDTimeoutSeconds = Maybe Int
a} :: ModifyVpnTunnelOptionsSpecification)

-- | The IKE versions that are permitted for the VPN tunnel.
--
-- Valid values: @ikev1@ | @ikev2@
modifyVpnTunnelOptionsSpecification_iKEVersions :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe [IKEVersionsRequestListValue])
modifyVpnTunnelOptionsSpecification_iKEVersions :: Lens'
  ModifyVpnTunnelOptionsSpecification
  (Maybe [IKEVersionsRequestListValue])
modifyVpnTunnelOptionsSpecification_iKEVersions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe [IKEVersionsRequestListValue]
iKEVersions :: Maybe [IKEVersionsRequestListValue]
$sel:iKEVersions:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [IKEVersionsRequestListValue]
iKEVersions} -> Maybe [IKEVersionsRequestListValue]
iKEVersions) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe [IKEVersionsRequestListValue]
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:iKEVersions:ModifyVpnTunnelOptionsSpecification' :: Maybe [IKEVersionsRequestListValue]
iKEVersions = Maybe [IKEVersionsRequestListValue]
a} :: ModifyVpnTunnelOptionsSpecification) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Options for logging VPN tunnel activity.
modifyVpnTunnelOptionsSpecification_logOptions :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe VpnTunnelLogOptionsSpecification)
modifyVpnTunnelOptionsSpecification_logOptions :: Lens'
  ModifyVpnTunnelOptionsSpecification
  (Maybe VpnTunnelLogOptionsSpecification)
modifyVpnTunnelOptionsSpecification_logOptions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe VpnTunnelLogOptionsSpecification
logOptions :: Maybe VpnTunnelLogOptionsSpecification
$sel:logOptions:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe VpnTunnelLogOptionsSpecification
logOptions} -> Maybe VpnTunnelLogOptionsSpecification
logOptions) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe VpnTunnelLogOptionsSpecification
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:logOptions:ModifyVpnTunnelOptionsSpecification' :: Maybe VpnTunnelLogOptionsSpecification
logOptions = Maybe VpnTunnelLogOptionsSpecification
a} :: ModifyVpnTunnelOptionsSpecification)

-- | One or more Diffie-Hellman group numbers that are permitted for the VPN
-- tunnel for phase 1 IKE negotiations.
--
-- Valid values: @2@ | @14@ | @15@ | @16@ | @17@ | @18@ | @19@ | @20@ |
-- @21@ | @22@ | @23@ | @24@
modifyVpnTunnelOptionsSpecification_phase1DHGroupNumbers :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe [Phase1DHGroupNumbersRequestListValue])
modifyVpnTunnelOptionsSpecification_phase1DHGroupNumbers :: Lens'
  ModifyVpnTunnelOptionsSpecification
  (Maybe [Phase1DHGroupNumbersRequestListValue])
modifyVpnTunnelOptionsSpecification_phase1DHGroupNumbers = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe [Phase1DHGroupNumbersRequestListValue]
phase1DHGroupNumbers :: Maybe [Phase1DHGroupNumbersRequestListValue]
$sel:phase1DHGroupNumbers:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase1DHGroupNumbersRequestListValue]
phase1DHGroupNumbers} -> Maybe [Phase1DHGroupNumbersRequestListValue]
phase1DHGroupNumbers) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe [Phase1DHGroupNumbersRequestListValue]
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:phase1DHGroupNumbers:ModifyVpnTunnelOptionsSpecification' :: Maybe [Phase1DHGroupNumbersRequestListValue]
phase1DHGroupNumbers = Maybe [Phase1DHGroupNumbersRequestListValue]
a} :: ModifyVpnTunnelOptionsSpecification) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | One or more encryption algorithms that are permitted for the VPN tunnel
-- for phase 1 IKE negotiations.
--
-- Valid values: @AES128@ | @AES256@ | @AES128-GCM-16@ | @AES256-GCM-16@
modifyVpnTunnelOptionsSpecification_phase1EncryptionAlgorithms :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe [Phase1EncryptionAlgorithmsRequestListValue])
modifyVpnTunnelOptionsSpecification_phase1EncryptionAlgorithms :: Lens'
  ModifyVpnTunnelOptionsSpecification
  (Maybe [Phase1EncryptionAlgorithmsRequestListValue])
modifyVpnTunnelOptionsSpecification_phase1EncryptionAlgorithms = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe [Phase1EncryptionAlgorithmsRequestListValue]
phase1EncryptionAlgorithms :: Maybe [Phase1EncryptionAlgorithmsRequestListValue]
$sel:phase1EncryptionAlgorithms:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase1EncryptionAlgorithmsRequestListValue]
phase1EncryptionAlgorithms} -> Maybe [Phase1EncryptionAlgorithmsRequestListValue]
phase1EncryptionAlgorithms) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe [Phase1EncryptionAlgorithmsRequestListValue]
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:phase1EncryptionAlgorithms:ModifyVpnTunnelOptionsSpecification' :: Maybe [Phase1EncryptionAlgorithmsRequestListValue]
phase1EncryptionAlgorithms = Maybe [Phase1EncryptionAlgorithmsRequestListValue]
a} :: ModifyVpnTunnelOptionsSpecification) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | One or more integrity algorithms that are permitted for the VPN tunnel
-- for phase 1 IKE negotiations.
--
-- Valid values: @SHA1@ | @SHA2-256@ | @SHA2-384@ | @SHA2-512@
modifyVpnTunnelOptionsSpecification_phase1IntegrityAlgorithms :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe [Phase1IntegrityAlgorithmsRequestListValue])
modifyVpnTunnelOptionsSpecification_phase1IntegrityAlgorithms :: Lens'
  ModifyVpnTunnelOptionsSpecification
  (Maybe [Phase1IntegrityAlgorithmsRequestListValue])
modifyVpnTunnelOptionsSpecification_phase1IntegrityAlgorithms = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe [Phase1IntegrityAlgorithmsRequestListValue]
phase1IntegrityAlgorithms :: Maybe [Phase1IntegrityAlgorithmsRequestListValue]
$sel:phase1IntegrityAlgorithms:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase1IntegrityAlgorithmsRequestListValue]
phase1IntegrityAlgorithms} -> Maybe [Phase1IntegrityAlgorithmsRequestListValue]
phase1IntegrityAlgorithms) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe [Phase1IntegrityAlgorithmsRequestListValue]
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:phase1IntegrityAlgorithms:ModifyVpnTunnelOptionsSpecification' :: Maybe [Phase1IntegrityAlgorithmsRequestListValue]
phase1IntegrityAlgorithms = Maybe [Phase1IntegrityAlgorithmsRequestListValue]
a} :: ModifyVpnTunnelOptionsSpecification) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The lifetime for phase 1 of the IKE negotiation, in seconds.
--
-- Constraints: A value between 900 and 28,800.
--
-- Default: @28800@
modifyVpnTunnelOptionsSpecification_phase1LifetimeSeconds :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe Prelude.Int)
modifyVpnTunnelOptionsSpecification_phase1LifetimeSeconds :: Lens' ModifyVpnTunnelOptionsSpecification (Maybe Int)
modifyVpnTunnelOptionsSpecification_phase1LifetimeSeconds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe Int
phase1LifetimeSeconds :: Maybe Int
$sel:phase1LifetimeSeconds:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
phase1LifetimeSeconds} -> Maybe Int
phase1LifetimeSeconds) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe Int
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:phase1LifetimeSeconds:ModifyVpnTunnelOptionsSpecification' :: Maybe Int
phase1LifetimeSeconds = Maybe Int
a} :: ModifyVpnTunnelOptionsSpecification)

-- | One or more Diffie-Hellman group numbers that are permitted for the VPN
-- tunnel for phase 2 IKE negotiations.
--
-- Valid values: @2@ | @5@ | @14@ | @15@ | @16@ | @17@ | @18@ | @19@ | @20@
-- | @21@ | @22@ | @23@ | @24@
modifyVpnTunnelOptionsSpecification_phase2DHGroupNumbers :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe [Phase2DHGroupNumbersRequestListValue])
modifyVpnTunnelOptionsSpecification_phase2DHGroupNumbers :: Lens'
  ModifyVpnTunnelOptionsSpecification
  (Maybe [Phase2DHGroupNumbersRequestListValue])
modifyVpnTunnelOptionsSpecification_phase2DHGroupNumbers = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe [Phase2DHGroupNumbersRequestListValue]
phase2DHGroupNumbers :: Maybe [Phase2DHGroupNumbersRequestListValue]
$sel:phase2DHGroupNumbers:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase2DHGroupNumbersRequestListValue]
phase2DHGroupNumbers} -> Maybe [Phase2DHGroupNumbersRequestListValue]
phase2DHGroupNumbers) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe [Phase2DHGroupNumbersRequestListValue]
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:phase2DHGroupNumbers:ModifyVpnTunnelOptionsSpecification' :: Maybe [Phase2DHGroupNumbersRequestListValue]
phase2DHGroupNumbers = Maybe [Phase2DHGroupNumbersRequestListValue]
a} :: ModifyVpnTunnelOptionsSpecification) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | One or more encryption algorithms that are permitted for the VPN tunnel
-- for phase 2 IKE negotiations.
--
-- Valid values: @AES128@ | @AES256@ | @AES128-GCM-16@ | @AES256-GCM-16@
modifyVpnTunnelOptionsSpecification_phase2EncryptionAlgorithms :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe [Phase2EncryptionAlgorithmsRequestListValue])
modifyVpnTunnelOptionsSpecification_phase2EncryptionAlgorithms :: Lens'
  ModifyVpnTunnelOptionsSpecification
  (Maybe [Phase2EncryptionAlgorithmsRequestListValue])
modifyVpnTunnelOptionsSpecification_phase2EncryptionAlgorithms = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe [Phase2EncryptionAlgorithmsRequestListValue]
phase2EncryptionAlgorithms :: Maybe [Phase2EncryptionAlgorithmsRequestListValue]
$sel:phase2EncryptionAlgorithms:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase2EncryptionAlgorithmsRequestListValue]
phase2EncryptionAlgorithms} -> Maybe [Phase2EncryptionAlgorithmsRequestListValue]
phase2EncryptionAlgorithms) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe [Phase2EncryptionAlgorithmsRequestListValue]
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:phase2EncryptionAlgorithms:ModifyVpnTunnelOptionsSpecification' :: Maybe [Phase2EncryptionAlgorithmsRequestListValue]
phase2EncryptionAlgorithms = Maybe [Phase2EncryptionAlgorithmsRequestListValue]
a} :: ModifyVpnTunnelOptionsSpecification) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | One or more integrity algorithms that are permitted for the VPN tunnel
-- for phase 2 IKE negotiations.
--
-- Valid values: @SHA1@ | @SHA2-256@ | @SHA2-384@ | @SHA2-512@
modifyVpnTunnelOptionsSpecification_phase2IntegrityAlgorithms :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe [Phase2IntegrityAlgorithmsRequestListValue])
modifyVpnTunnelOptionsSpecification_phase2IntegrityAlgorithms :: Lens'
  ModifyVpnTunnelOptionsSpecification
  (Maybe [Phase2IntegrityAlgorithmsRequestListValue])
modifyVpnTunnelOptionsSpecification_phase2IntegrityAlgorithms = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe [Phase2IntegrityAlgorithmsRequestListValue]
phase2IntegrityAlgorithms :: Maybe [Phase2IntegrityAlgorithmsRequestListValue]
$sel:phase2IntegrityAlgorithms:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase2IntegrityAlgorithmsRequestListValue]
phase2IntegrityAlgorithms} -> Maybe [Phase2IntegrityAlgorithmsRequestListValue]
phase2IntegrityAlgorithms) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe [Phase2IntegrityAlgorithmsRequestListValue]
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:phase2IntegrityAlgorithms:ModifyVpnTunnelOptionsSpecification' :: Maybe [Phase2IntegrityAlgorithmsRequestListValue]
phase2IntegrityAlgorithms = Maybe [Phase2IntegrityAlgorithmsRequestListValue]
a} :: ModifyVpnTunnelOptionsSpecification) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The lifetime for phase 2 of the IKE negotiation, in seconds.
--
-- Constraints: A value between 900 and 3,600. The value must be less than
-- the value for @Phase1LifetimeSeconds@.
--
-- Default: @3600@
modifyVpnTunnelOptionsSpecification_phase2LifetimeSeconds :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe Prelude.Int)
modifyVpnTunnelOptionsSpecification_phase2LifetimeSeconds :: Lens' ModifyVpnTunnelOptionsSpecification (Maybe Int)
modifyVpnTunnelOptionsSpecification_phase2LifetimeSeconds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe Int
phase2LifetimeSeconds :: Maybe Int
$sel:phase2LifetimeSeconds:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
phase2LifetimeSeconds} -> Maybe Int
phase2LifetimeSeconds) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe Int
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:phase2LifetimeSeconds:ModifyVpnTunnelOptionsSpecification' :: Maybe Int
phase2LifetimeSeconds = Maybe Int
a} :: ModifyVpnTunnelOptionsSpecification)

-- | The pre-shared key (PSK) to establish initial authentication between the
-- virtual private gateway and the customer gateway.
--
-- Constraints: Allowed characters are alphanumeric characters, periods
-- (.), and underscores (_). Must be between 8 and 64 characters in length
-- and cannot start with zero (0).
modifyVpnTunnelOptionsSpecification_preSharedKey :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe Prelude.Text)
modifyVpnTunnelOptionsSpecification_preSharedKey :: Lens' ModifyVpnTunnelOptionsSpecification (Maybe Text)
modifyVpnTunnelOptionsSpecification_preSharedKey = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe Text
preSharedKey :: Maybe Text
$sel:preSharedKey:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
preSharedKey} -> Maybe Text
preSharedKey) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe Text
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:preSharedKey:ModifyVpnTunnelOptionsSpecification' :: Maybe Text
preSharedKey = Maybe Text
a} :: ModifyVpnTunnelOptionsSpecification)

-- | The percentage of the rekey window (determined by
-- @RekeyMarginTimeSeconds@) during which the rekey time is randomly
-- selected.
--
-- Constraints: A value between 0 and 100.
--
-- Default: @100@
modifyVpnTunnelOptionsSpecification_rekeyFuzzPercentage :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe Prelude.Int)
modifyVpnTunnelOptionsSpecification_rekeyFuzzPercentage :: Lens' ModifyVpnTunnelOptionsSpecification (Maybe Int)
modifyVpnTunnelOptionsSpecification_rekeyFuzzPercentage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe Int
rekeyFuzzPercentage :: Maybe Int
$sel:rekeyFuzzPercentage:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
rekeyFuzzPercentage} -> Maybe Int
rekeyFuzzPercentage) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe Int
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:rekeyFuzzPercentage:ModifyVpnTunnelOptionsSpecification' :: Maybe Int
rekeyFuzzPercentage = Maybe Int
a} :: ModifyVpnTunnelOptionsSpecification)

-- | The margin time, in seconds, before the phase 2 lifetime expires, during
-- which the Amazon Web Services side of the VPN connection performs an IKE
-- rekey. The exact time of the rekey is randomly selected based on the
-- value for @RekeyFuzzPercentage@.
--
-- Constraints: A value between 60 and half of @Phase2LifetimeSeconds@.
--
-- Default: @540@
modifyVpnTunnelOptionsSpecification_rekeyMarginTimeSeconds :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe Prelude.Int)
modifyVpnTunnelOptionsSpecification_rekeyMarginTimeSeconds :: Lens' ModifyVpnTunnelOptionsSpecification (Maybe Int)
modifyVpnTunnelOptionsSpecification_rekeyMarginTimeSeconds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe Int
rekeyMarginTimeSeconds :: Maybe Int
$sel:rekeyMarginTimeSeconds:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
rekeyMarginTimeSeconds} -> Maybe Int
rekeyMarginTimeSeconds) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe Int
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:rekeyMarginTimeSeconds:ModifyVpnTunnelOptionsSpecification' :: Maybe Int
rekeyMarginTimeSeconds = Maybe Int
a} :: ModifyVpnTunnelOptionsSpecification)

-- | The number of packets in an IKE replay window.
--
-- Constraints: A value between 64 and 2048.
--
-- Default: @1024@
modifyVpnTunnelOptionsSpecification_replayWindowSize :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe Prelude.Int)
modifyVpnTunnelOptionsSpecification_replayWindowSize :: Lens' ModifyVpnTunnelOptionsSpecification (Maybe Int)
modifyVpnTunnelOptionsSpecification_replayWindowSize = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe Int
replayWindowSize :: Maybe Int
$sel:replayWindowSize:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
replayWindowSize} -> Maybe Int
replayWindowSize) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe Int
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:replayWindowSize:ModifyVpnTunnelOptionsSpecification' :: Maybe Int
replayWindowSize = Maybe Int
a} :: ModifyVpnTunnelOptionsSpecification)

-- | The action to take when the establishing the tunnel for the VPN
-- connection. By default, your customer gateway device must initiate the
-- IKE negotiation and bring up the tunnel. Specify @start@ for Amazon Web
-- Services to initiate the IKE negotiation.
--
-- Valid Values: @add@ | @start@
--
-- Default: @add@
modifyVpnTunnelOptionsSpecification_startupAction :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe Prelude.Text)
modifyVpnTunnelOptionsSpecification_startupAction :: Lens' ModifyVpnTunnelOptionsSpecification (Maybe Text)
modifyVpnTunnelOptionsSpecification_startupAction = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe Text
startupAction :: Maybe Text
$sel:startupAction:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
startupAction} -> Maybe Text
startupAction) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe Text
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:startupAction:ModifyVpnTunnelOptionsSpecification' :: Maybe Text
startupAction = Maybe Text
a} :: ModifyVpnTunnelOptionsSpecification)

-- | The range of inside IPv4 addresses for the tunnel. Any specified CIDR
-- blocks must be unique across all VPN connections that use the same
-- virtual private gateway.
--
-- Constraints: A size \/30 CIDR block from the @169.254.0.0\/16@ range.
-- The following CIDR blocks are reserved and cannot be used:
--
-- -   @169.254.0.0\/30@
--
-- -   @169.254.1.0\/30@
--
-- -   @169.254.2.0\/30@
--
-- -   @169.254.3.0\/30@
--
-- -   @169.254.4.0\/30@
--
-- -   @169.254.5.0\/30@
--
-- -   @169.254.169.252\/30@
modifyVpnTunnelOptionsSpecification_tunnelInsideCidr :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe Prelude.Text)
modifyVpnTunnelOptionsSpecification_tunnelInsideCidr :: Lens' ModifyVpnTunnelOptionsSpecification (Maybe Text)
modifyVpnTunnelOptionsSpecification_tunnelInsideCidr = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe Text
tunnelInsideCidr :: Maybe Text
$sel:tunnelInsideCidr:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
tunnelInsideCidr} -> Maybe Text
tunnelInsideCidr) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe Text
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:tunnelInsideCidr:ModifyVpnTunnelOptionsSpecification' :: Maybe Text
tunnelInsideCidr = Maybe Text
a} :: ModifyVpnTunnelOptionsSpecification)

-- | The range of inside IPv6 addresses for the tunnel. Any specified CIDR
-- blocks must be unique across all VPN connections that use the same
-- transit gateway.
--
-- Constraints: A size \/126 CIDR block from the local @fd00::\/8@ range.
modifyVpnTunnelOptionsSpecification_tunnelInsideIpv6Cidr :: Lens.Lens' ModifyVpnTunnelOptionsSpecification (Prelude.Maybe Prelude.Text)
modifyVpnTunnelOptionsSpecification_tunnelInsideIpv6Cidr :: Lens' ModifyVpnTunnelOptionsSpecification (Maybe Text)
modifyVpnTunnelOptionsSpecification_tunnelInsideIpv6Cidr = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyVpnTunnelOptionsSpecification' {Maybe Text
tunnelInsideIpv6Cidr :: Maybe Text
$sel:tunnelInsideIpv6Cidr:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
tunnelInsideIpv6Cidr} -> Maybe Text
tunnelInsideIpv6Cidr) (\s :: ModifyVpnTunnelOptionsSpecification
s@ModifyVpnTunnelOptionsSpecification' {} Maybe Text
a -> ModifyVpnTunnelOptionsSpecification
s {$sel:tunnelInsideIpv6Cidr:ModifyVpnTunnelOptionsSpecification' :: Maybe Text
tunnelInsideIpv6Cidr = Maybe Text
a} :: ModifyVpnTunnelOptionsSpecification)

instance
  Prelude.Hashable
    ModifyVpnTunnelOptionsSpecification
  where
  hashWithSalt :: Int -> ModifyVpnTunnelOptionsSpecification -> Int
hashWithSalt
    Int
_salt
    ModifyVpnTunnelOptionsSpecification' {Maybe Int
Maybe [IKEVersionsRequestListValue]
Maybe [Phase1DHGroupNumbersRequestListValue]
Maybe [Phase1EncryptionAlgorithmsRequestListValue]
Maybe [Phase1IntegrityAlgorithmsRequestListValue]
Maybe [Phase2DHGroupNumbersRequestListValue]
Maybe [Phase2EncryptionAlgorithmsRequestListValue]
Maybe [Phase2IntegrityAlgorithmsRequestListValue]
Maybe Text
Maybe VpnTunnelLogOptionsSpecification
tunnelInsideIpv6Cidr :: Maybe Text
tunnelInsideCidr :: Maybe Text
startupAction :: Maybe Text
replayWindowSize :: Maybe Int
rekeyMarginTimeSeconds :: Maybe Int
rekeyFuzzPercentage :: Maybe Int
preSharedKey :: Maybe Text
phase2LifetimeSeconds :: Maybe Int
phase2IntegrityAlgorithms :: Maybe [Phase2IntegrityAlgorithmsRequestListValue]
phase2EncryptionAlgorithms :: Maybe [Phase2EncryptionAlgorithmsRequestListValue]
phase2DHGroupNumbers :: Maybe [Phase2DHGroupNumbersRequestListValue]
phase1LifetimeSeconds :: Maybe Int
phase1IntegrityAlgorithms :: Maybe [Phase1IntegrityAlgorithmsRequestListValue]
phase1EncryptionAlgorithms :: Maybe [Phase1EncryptionAlgorithmsRequestListValue]
phase1DHGroupNumbers :: Maybe [Phase1DHGroupNumbersRequestListValue]
logOptions :: Maybe VpnTunnelLogOptionsSpecification
iKEVersions :: Maybe [IKEVersionsRequestListValue]
dPDTimeoutSeconds :: Maybe Int
dPDTimeoutAction :: Maybe Text
$sel:tunnelInsideIpv6Cidr:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
$sel:tunnelInsideCidr:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
$sel:startupAction:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
$sel:replayWindowSize:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
$sel:rekeyMarginTimeSeconds:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
$sel:rekeyFuzzPercentage:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
$sel:preSharedKey:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
$sel:phase2LifetimeSeconds:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
$sel:phase2IntegrityAlgorithms:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase2IntegrityAlgorithmsRequestListValue]
$sel:phase2EncryptionAlgorithms:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase2EncryptionAlgorithmsRequestListValue]
$sel:phase2DHGroupNumbers:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase2DHGroupNumbersRequestListValue]
$sel:phase1LifetimeSeconds:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
$sel:phase1IntegrityAlgorithms:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase1IntegrityAlgorithmsRequestListValue]
$sel:phase1EncryptionAlgorithms:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase1EncryptionAlgorithmsRequestListValue]
$sel:phase1DHGroupNumbers:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase1DHGroupNumbersRequestListValue]
$sel:logOptions:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe VpnTunnelLogOptionsSpecification
$sel:iKEVersions:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [IKEVersionsRequestListValue]
$sel:dPDTimeoutSeconds:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
$sel:dPDTimeoutAction:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dPDTimeoutAction
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
dPDTimeoutSeconds
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [IKEVersionsRequestListValue]
iKEVersions
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe VpnTunnelLogOptionsSpecification
logOptions
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Phase1DHGroupNumbersRequestListValue]
phase1DHGroupNumbers
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Phase1EncryptionAlgorithmsRequestListValue]
phase1EncryptionAlgorithms
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Phase1IntegrityAlgorithmsRequestListValue]
phase1IntegrityAlgorithms
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
phase1LifetimeSeconds
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Phase2DHGroupNumbersRequestListValue]
phase2DHGroupNumbers
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Phase2EncryptionAlgorithmsRequestListValue]
phase2EncryptionAlgorithms
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Phase2IntegrityAlgorithmsRequestListValue]
phase2IntegrityAlgorithms
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
phase2LifetimeSeconds
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
preSharedKey
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
rekeyFuzzPercentage
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
rekeyMarginTimeSeconds
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
replayWindowSize
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
startupAction
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
tunnelInsideCidr
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
tunnelInsideIpv6Cidr

instance
  Prelude.NFData
    ModifyVpnTunnelOptionsSpecification
  where
  rnf :: ModifyVpnTunnelOptionsSpecification -> ()
rnf ModifyVpnTunnelOptionsSpecification' {Maybe Int
Maybe [IKEVersionsRequestListValue]
Maybe [Phase1DHGroupNumbersRequestListValue]
Maybe [Phase1EncryptionAlgorithmsRequestListValue]
Maybe [Phase1IntegrityAlgorithmsRequestListValue]
Maybe [Phase2DHGroupNumbersRequestListValue]
Maybe [Phase2EncryptionAlgorithmsRequestListValue]
Maybe [Phase2IntegrityAlgorithmsRequestListValue]
Maybe Text
Maybe VpnTunnelLogOptionsSpecification
tunnelInsideIpv6Cidr :: Maybe Text
tunnelInsideCidr :: Maybe Text
startupAction :: Maybe Text
replayWindowSize :: Maybe Int
rekeyMarginTimeSeconds :: Maybe Int
rekeyFuzzPercentage :: Maybe Int
preSharedKey :: Maybe Text
phase2LifetimeSeconds :: Maybe Int
phase2IntegrityAlgorithms :: Maybe [Phase2IntegrityAlgorithmsRequestListValue]
phase2EncryptionAlgorithms :: Maybe [Phase2EncryptionAlgorithmsRequestListValue]
phase2DHGroupNumbers :: Maybe [Phase2DHGroupNumbersRequestListValue]
phase1LifetimeSeconds :: Maybe Int
phase1IntegrityAlgorithms :: Maybe [Phase1IntegrityAlgorithmsRequestListValue]
phase1EncryptionAlgorithms :: Maybe [Phase1EncryptionAlgorithmsRequestListValue]
phase1DHGroupNumbers :: Maybe [Phase1DHGroupNumbersRequestListValue]
logOptions :: Maybe VpnTunnelLogOptionsSpecification
iKEVersions :: Maybe [IKEVersionsRequestListValue]
dPDTimeoutSeconds :: Maybe Int
dPDTimeoutAction :: Maybe Text
$sel:tunnelInsideIpv6Cidr:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
$sel:tunnelInsideCidr:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
$sel:startupAction:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
$sel:replayWindowSize:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
$sel:rekeyMarginTimeSeconds:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
$sel:rekeyFuzzPercentage:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
$sel:preSharedKey:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
$sel:phase2LifetimeSeconds:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
$sel:phase2IntegrityAlgorithms:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase2IntegrityAlgorithmsRequestListValue]
$sel:phase2EncryptionAlgorithms:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase2EncryptionAlgorithmsRequestListValue]
$sel:phase2DHGroupNumbers:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase2DHGroupNumbersRequestListValue]
$sel:phase1LifetimeSeconds:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
$sel:phase1IntegrityAlgorithms:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase1IntegrityAlgorithmsRequestListValue]
$sel:phase1EncryptionAlgorithms:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase1EncryptionAlgorithmsRequestListValue]
$sel:phase1DHGroupNumbers:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase1DHGroupNumbersRequestListValue]
$sel:logOptions:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe VpnTunnelLogOptionsSpecification
$sel:iKEVersions:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [IKEVersionsRequestListValue]
$sel:dPDTimeoutSeconds:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
$sel:dPDTimeoutAction:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dPDTimeoutAction
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
dPDTimeoutSeconds
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [IKEVersionsRequestListValue]
iKEVersions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe VpnTunnelLogOptionsSpecification
logOptions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Phase1DHGroupNumbersRequestListValue]
phase1DHGroupNumbers
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Phase1EncryptionAlgorithmsRequestListValue]
phase1EncryptionAlgorithms
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Phase1IntegrityAlgorithmsRequestListValue]
phase1IntegrityAlgorithms
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
phase1LifetimeSeconds
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Phase2DHGroupNumbersRequestListValue]
phase2DHGroupNumbers
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Phase2EncryptionAlgorithmsRequestListValue]
phase2EncryptionAlgorithms
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Phase2IntegrityAlgorithmsRequestListValue]
phase2IntegrityAlgorithms
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
phase2LifetimeSeconds
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
preSharedKey
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
rekeyFuzzPercentage
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
rekeyMarginTimeSeconds
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
replayWindowSize
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
startupAction
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
tunnelInsideCidr
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
tunnelInsideIpv6Cidr

instance
  Data.ToQuery
    ModifyVpnTunnelOptionsSpecification
  where
  toQuery :: ModifyVpnTunnelOptionsSpecification -> QueryString
toQuery ModifyVpnTunnelOptionsSpecification' {Maybe Int
Maybe [IKEVersionsRequestListValue]
Maybe [Phase1DHGroupNumbersRequestListValue]
Maybe [Phase1EncryptionAlgorithmsRequestListValue]
Maybe [Phase1IntegrityAlgorithmsRequestListValue]
Maybe [Phase2DHGroupNumbersRequestListValue]
Maybe [Phase2EncryptionAlgorithmsRequestListValue]
Maybe [Phase2IntegrityAlgorithmsRequestListValue]
Maybe Text
Maybe VpnTunnelLogOptionsSpecification
tunnelInsideIpv6Cidr :: Maybe Text
tunnelInsideCidr :: Maybe Text
startupAction :: Maybe Text
replayWindowSize :: Maybe Int
rekeyMarginTimeSeconds :: Maybe Int
rekeyFuzzPercentage :: Maybe Int
preSharedKey :: Maybe Text
phase2LifetimeSeconds :: Maybe Int
phase2IntegrityAlgorithms :: Maybe [Phase2IntegrityAlgorithmsRequestListValue]
phase2EncryptionAlgorithms :: Maybe [Phase2EncryptionAlgorithmsRequestListValue]
phase2DHGroupNumbers :: Maybe [Phase2DHGroupNumbersRequestListValue]
phase1LifetimeSeconds :: Maybe Int
phase1IntegrityAlgorithms :: Maybe [Phase1IntegrityAlgorithmsRequestListValue]
phase1EncryptionAlgorithms :: Maybe [Phase1EncryptionAlgorithmsRequestListValue]
phase1DHGroupNumbers :: Maybe [Phase1DHGroupNumbersRequestListValue]
logOptions :: Maybe VpnTunnelLogOptionsSpecification
iKEVersions :: Maybe [IKEVersionsRequestListValue]
dPDTimeoutSeconds :: Maybe Int
dPDTimeoutAction :: Maybe Text
$sel:tunnelInsideIpv6Cidr:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
$sel:tunnelInsideCidr:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
$sel:startupAction:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
$sel:replayWindowSize:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
$sel:rekeyMarginTimeSeconds:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
$sel:rekeyFuzzPercentage:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
$sel:preSharedKey:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
$sel:phase2LifetimeSeconds:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
$sel:phase2IntegrityAlgorithms:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase2IntegrityAlgorithmsRequestListValue]
$sel:phase2EncryptionAlgorithms:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase2EncryptionAlgorithmsRequestListValue]
$sel:phase2DHGroupNumbers:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase2DHGroupNumbersRequestListValue]
$sel:phase1LifetimeSeconds:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
$sel:phase1IntegrityAlgorithms:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase1IntegrityAlgorithmsRequestListValue]
$sel:phase1EncryptionAlgorithms:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase1EncryptionAlgorithmsRequestListValue]
$sel:phase1DHGroupNumbers:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [Phase1DHGroupNumbersRequestListValue]
$sel:logOptions:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe VpnTunnelLogOptionsSpecification
$sel:iKEVersions:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification
-> Maybe [IKEVersionsRequestListValue]
$sel:dPDTimeoutSeconds:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Int
$sel:dPDTimeoutAction:ModifyVpnTunnelOptionsSpecification' :: ModifyVpnTunnelOptionsSpecification -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"DPDTimeoutAction" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
dPDTimeoutAction,
        ByteString
"DPDTimeoutSeconds" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
dPDTimeoutSeconds,
        forall a. ToQuery a => a -> QueryString
Data.toQuery
          ( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"IKEVersion"
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [IKEVersionsRequestListValue]
iKEVersions
          ),
        ByteString
"LogOptions" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe VpnTunnelLogOptionsSpecification
logOptions,
        forall a. ToQuery a => a -> QueryString
Data.toQuery
          ( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"Phase1DHGroupNumber"
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Phase1DHGroupNumbersRequestListValue]
phase1DHGroupNumbers
          ),
        forall a. ToQuery a => a -> QueryString
Data.toQuery
          ( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"Phase1EncryptionAlgorithm"
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Phase1EncryptionAlgorithmsRequestListValue]
phase1EncryptionAlgorithms
          ),
        forall a. ToQuery a => a -> QueryString
Data.toQuery
          ( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"Phase1IntegrityAlgorithm"
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Phase1IntegrityAlgorithmsRequestListValue]
phase1IntegrityAlgorithms
          ),
        ByteString
"Phase1LifetimeSeconds"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
phase1LifetimeSeconds,
        forall a. ToQuery a => a -> QueryString
Data.toQuery
          ( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"Phase2DHGroupNumber"
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Phase2DHGroupNumbersRequestListValue]
phase2DHGroupNumbers
          ),
        forall a. ToQuery a => a -> QueryString
Data.toQuery
          ( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"Phase2EncryptionAlgorithm"
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Phase2EncryptionAlgorithmsRequestListValue]
phase2EncryptionAlgorithms
          ),
        forall a. ToQuery a => a -> QueryString
Data.toQuery
          ( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"Phase2IntegrityAlgorithm"
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Phase2IntegrityAlgorithmsRequestListValue]
phase2IntegrityAlgorithms
          ),
        ByteString
"Phase2LifetimeSeconds"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
phase2LifetimeSeconds,
        ByteString
"PreSharedKey" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
preSharedKey,
        ByteString
"RekeyFuzzPercentage" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
rekeyFuzzPercentage,
        ByteString
"RekeyMarginTimeSeconds"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
rekeyMarginTimeSeconds,
        ByteString
"ReplayWindowSize" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Int
replayWindowSize,
        ByteString
"StartupAction" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
startupAction,
        ByteString
"TunnelInsideCidr" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
tunnelInsideCidr,
        ByteString
"TunnelInsideIpv6Cidr" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
tunnelInsideIpv6Cidr
      ]