{-# 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.IoTSecureTunneling.Types.Tunnel
-- 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.IoTSecureTunneling.Types.Tunnel where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.IoTSecureTunneling.Types.ConnectionState
import Amazonka.IoTSecureTunneling.Types.DestinationConfig
import Amazonka.IoTSecureTunneling.Types.Tag
import Amazonka.IoTSecureTunneling.Types.TimeoutConfig
import Amazonka.IoTSecureTunneling.Types.TunnelStatus
import qualified Amazonka.Prelude as Prelude

-- | A connection between a source computer and a destination device.
--
-- /See:/ 'newTunnel' smart constructor.
data Tunnel = Tunnel'
  { -- | The time when the tunnel was created.
    Tunnel -> Maybe POSIX
createdAt :: Prelude.Maybe Data.POSIX,
    -- | A description of the tunnel.
    Tunnel -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The destination configuration that specifies the thing name of the
    -- destination device and a service name that the local proxy uses to
    -- connect to the destination application.
    Tunnel -> Maybe DestinationConfig
destinationConfig :: Prelude.Maybe DestinationConfig,
    -- | The connection state of the destination application.
    Tunnel -> Maybe ConnectionState
destinationConnectionState :: Prelude.Maybe ConnectionState,
    -- | The last time the tunnel was updated.
    Tunnel -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Data.POSIX,
    -- | The connection state of the source application.
    Tunnel -> Maybe ConnectionState
sourceConnectionState :: Prelude.Maybe ConnectionState,
    -- | The status of a tunnel. Valid values are: Open and Closed.
    Tunnel -> Maybe TunnelStatus
status :: Prelude.Maybe TunnelStatus,
    -- | A list of tag metadata associated with the secure tunnel.
    Tunnel -> Maybe (NonEmpty Tag)
tags :: Prelude.Maybe (Prelude.NonEmpty Tag),
    -- | Timeout configuration for the tunnel.
    Tunnel -> Maybe TimeoutConfig
timeoutConfig :: Prelude.Maybe TimeoutConfig,
    -- | The Amazon Resource Name (ARN) of a tunnel.
    Tunnel -> Maybe Text
tunnelArn :: Prelude.Maybe Prelude.Text,
    -- | A unique alpha-numeric ID that identifies a tunnel.
    Tunnel -> Maybe Text
tunnelId :: Prelude.Maybe Prelude.Text
  }
  deriving (Tunnel -> Tunnel -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Tunnel -> Tunnel -> Bool
$c/= :: Tunnel -> Tunnel -> Bool
== :: Tunnel -> Tunnel -> Bool
$c== :: Tunnel -> Tunnel -> Bool
Prelude.Eq, ReadPrec [Tunnel]
ReadPrec Tunnel
Int -> ReadS Tunnel
ReadS [Tunnel]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Tunnel]
$creadListPrec :: ReadPrec [Tunnel]
readPrec :: ReadPrec Tunnel
$creadPrec :: ReadPrec Tunnel
readList :: ReadS [Tunnel]
$creadList :: ReadS [Tunnel]
readsPrec :: Int -> ReadS Tunnel
$creadsPrec :: Int -> ReadS Tunnel
Prelude.Read, Int -> Tunnel -> ShowS
[Tunnel] -> ShowS
Tunnel -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Tunnel] -> ShowS
$cshowList :: [Tunnel] -> ShowS
show :: Tunnel -> String
$cshow :: Tunnel -> String
showsPrec :: Int -> Tunnel -> ShowS
$cshowsPrec :: Int -> Tunnel -> ShowS
Prelude.Show, forall x. Rep Tunnel x -> Tunnel
forall x. Tunnel -> Rep Tunnel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Tunnel x -> Tunnel
$cfrom :: forall x. Tunnel -> Rep Tunnel x
Prelude.Generic)

-- |
-- Create a value of 'Tunnel' 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:
--
-- 'createdAt', 'tunnel_createdAt' - The time when the tunnel was created.
--
-- 'description', 'tunnel_description' - A description of the tunnel.
--
-- 'destinationConfig', 'tunnel_destinationConfig' - The destination configuration that specifies the thing name of the
-- destination device and a service name that the local proxy uses to
-- connect to the destination application.
--
-- 'destinationConnectionState', 'tunnel_destinationConnectionState' - The connection state of the destination application.
--
-- 'lastUpdatedAt', 'tunnel_lastUpdatedAt' - The last time the tunnel was updated.
--
-- 'sourceConnectionState', 'tunnel_sourceConnectionState' - The connection state of the source application.
--
-- 'status', 'tunnel_status' - The status of a tunnel. Valid values are: Open and Closed.
--
-- 'tags', 'tunnel_tags' - A list of tag metadata associated with the secure tunnel.
--
-- 'timeoutConfig', 'tunnel_timeoutConfig' - Timeout configuration for the tunnel.
--
-- 'tunnelArn', 'tunnel_tunnelArn' - The Amazon Resource Name (ARN) of a tunnel.
--
-- 'tunnelId', 'tunnel_tunnelId' - A unique alpha-numeric ID that identifies a tunnel.
newTunnel ::
  Tunnel
newTunnel :: Tunnel
newTunnel =
  Tunnel'
    { $sel:createdAt:Tunnel' :: Maybe POSIX
createdAt = forall a. Maybe a
Prelude.Nothing,
      $sel:description:Tunnel' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
      $sel:destinationConfig:Tunnel' :: Maybe DestinationConfig
destinationConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:destinationConnectionState:Tunnel' :: Maybe ConnectionState
destinationConnectionState = forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedAt:Tunnel' :: Maybe POSIX
lastUpdatedAt = forall a. Maybe a
Prelude.Nothing,
      $sel:sourceConnectionState:Tunnel' :: Maybe ConnectionState
sourceConnectionState = forall a. Maybe a
Prelude.Nothing,
      $sel:status:Tunnel' :: Maybe TunnelStatus
status = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:Tunnel' :: Maybe (NonEmpty Tag)
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:timeoutConfig:Tunnel' :: Maybe TimeoutConfig
timeoutConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:tunnelArn:Tunnel' :: Maybe Text
tunnelArn = forall a. Maybe a
Prelude.Nothing,
      $sel:tunnelId:Tunnel' :: Maybe Text
tunnelId = forall a. Maybe a
Prelude.Nothing
    }

-- | The time when the tunnel was created.
tunnel_createdAt :: Lens.Lens' Tunnel (Prelude.Maybe Prelude.UTCTime)
tunnel_createdAt :: Lens' Tunnel (Maybe UTCTime)
tunnel_createdAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Tunnel' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:Tunnel' :: Tunnel -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: Tunnel
s@Tunnel' {} Maybe POSIX
a -> Tunnel
s {$sel:createdAt:Tunnel' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: Tunnel) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | A description of the tunnel.
tunnel_description :: Lens.Lens' Tunnel (Prelude.Maybe Prelude.Text)
tunnel_description :: Lens' Tunnel (Maybe Text)
tunnel_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Tunnel' {Maybe Text
description :: Maybe Text
$sel:description:Tunnel' :: Tunnel -> Maybe Text
description} -> Maybe Text
description) (\s :: Tunnel
s@Tunnel' {} Maybe Text
a -> Tunnel
s {$sel:description:Tunnel' :: Maybe Text
description = Maybe Text
a} :: Tunnel)

-- | The destination configuration that specifies the thing name of the
-- destination device and a service name that the local proxy uses to
-- connect to the destination application.
tunnel_destinationConfig :: Lens.Lens' Tunnel (Prelude.Maybe DestinationConfig)
tunnel_destinationConfig :: Lens' Tunnel (Maybe DestinationConfig)
tunnel_destinationConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Tunnel' {Maybe DestinationConfig
destinationConfig :: Maybe DestinationConfig
$sel:destinationConfig:Tunnel' :: Tunnel -> Maybe DestinationConfig
destinationConfig} -> Maybe DestinationConfig
destinationConfig) (\s :: Tunnel
s@Tunnel' {} Maybe DestinationConfig
a -> Tunnel
s {$sel:destinationConfig:Tunnel' :: Maybe DestinationConfig
destinationConfig = Maybe DestinationConfig
a} :: Tunnel)

-- | The connection state of the destination application.
tunnel_destinationConnectionState :: Lens.Lens' Tunnel (Prelude.Maybe ConnectionState)
tunnel_destinationConnectionState :: Lens' Tunnel (Maybe ConnectionState)
tunnel_destinationConnectionState = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Tunnel' {Maybe ConnectionState
destinationConnectionState :: Maybe ConnectionState
$sel:destinationConnectionState:Tunnel' :: Tunnel -> Maybe ConnectionState
destinationConnectionState} -> Maybe ConnectionState
destinationConnectionState) (\s :: Tunnel
s@Tunnel' {} Maybe ConnectionState
a -> Tunnel
s {$sel:destinationConnectionState:Tunnel' :: Maybe ConnectionState
destinationConnectionState = Maybe ConnectionState
a} :: Tunnel)

-- | The last time the tunnel was updated.
tunnel_lastUpdatedAt :: Lens.Lens' Tunnel (Prelude.Maybe Prelude.UTCTime)
tunnel_lastUpdatedAt :: Lens' Tunnel (Maybe UTCTime)
tunnel_lastUpdatedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Tunnel' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:Tunnel' :: Tunnel -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: Tunnel
s@Tunnel' {} Maybe POSIX
a -> Tunnel
s {$sel:lastUpdatedAt:Tunnel' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: Tunnel) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The connection state of the source application.
tunnel_sourceConnectionState :: Lens.Lens' Tunnel (Prelude.Maybe ConnectionState)
tunnel_sourceConnectionState :: Lens' Tunnel (Maybe ConnectionState)
tunnel_sourceConnectionState = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Tunnel' {Maybe ConnectionState
sourceConnectionState :: Maybe ConnectionState
$sel:sourceConnectionState:Tunnel' :: Tunnel -> Maybe ConnectionState
sourceConnectionState} -> Maybe ConnectionState
sourceConnectionState) (\s :: Tunnel
s@Tunnel' {} Maybe ConnectionState
a -> Tunnel
s {$sel:sourceConnectionState:Tunnel' :: Maybe ConnectionState
sourceConnectionState = Maybe ConnectionState
a} :: Tunnel)

-- | The status of a tunnel. Valid values are: Open and Closed.
tunnel_status :: Lens.Lens' Tunnel (Prelude.Maybe TunnelStatus)
tunnel_status :: Lens' Tunnel (Maybe TunnelStatus)
tunnel_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Tunnel' {Maybe TunnelStatus
status :: Maybe TunnelStatus
$sel:status:Tunnel' :: Tunnel -> Maybe TunnelStatus
status} -> Maybe TunnelStatus
status) (\s :: Tunnel
s@Tunnel' {} Maybe TunnelStatus
a -> Tunnel
s {$sel:status:Tunnel' :: Maybe TunnelStatus
status = Maybe TunnelStatus
a} :: Tunnel)

-- | A list of tag metadata associated with the secure tunnel.
tunnel_tags :: Lens.Lens' Tunnel (Prelude.Maybe (Prelude.NonEmpty Tag))
tunnel_tags :: Lens' Tunnel (Maybe (NonEmpty Tag))
tunnel_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Tunnel' {Maybe (NonEmpty Tag)
tags :: Maybe (NonEmpty Tag)
$sel:tags:Tunnel' :: Tunnel -> Maybe (NonEmpty Tag)
tags} -> Maybe (NonEmpty Tag)
tags) (\s :: Tunnel
s@Tunnel' {} Maybe (NonEmpty Tag)
a -> Tunnel
s {$sel:tags:Tunnel' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
a} :: Tunnel) 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

-- | Timeout configuration for the tunnel.
tunnel_timeoutConfig :: Lens.Lens' Tunnel (Prelude.Maybe TimeoutConfig)
tunnel_timeoutConfig :: Lens' Tunnel (Maybe TimeoutConfig)
tunnel_timeoutConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Tunnel' {Maybe TimeoutConfig
timeoutConfig :: Maybe TimeoutConfig
$sel:timeoutConfig:Tunnel' :: Tunnel -> Maybe TimeoutConfig
timeoutConfig} -> Maybe TimeoutConfig
timeoutConfig) (\s :: Tunnel
s@Tunnel' {} Maybe TimeoutConfig
a -> Tunnel
s {$sel:timeoutConfig:Tunnel' :: Maybe TimeoutConfig
timeoutConfig = Maybe TimeoutConfig
a} :: Tunnel)

-- | The Amazon Resource Name (ARN) of a tunnel.
tunnel_tunnelArn :: Lens.Lens' Tunnel (Prelude.Maybe Prelude.Text)
tunnel_tunnelArn :: Lens' Tunnel (Maybe Text)
tunnel_tunnelArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Tunnel' {Maybe Text
tunnelArn :: Maybe Text
$sel:tunnelArn:Tunnel' :: Tunnel -> Maybe Text
tunnelArn} -> Maybe Text
tunnelArn) (\s :: Tunnel
s@Tunnel' {} Maybe Text
a -> Tunnel
s {$sel:tunnelArn:Tunnel' :: Maybe Text
tunnelArn = Maybe Text
a} :: Tunnel)

-- | A unique alpha-numeric ID that identifies a tunnel.
tunnel_tunnelId :: Lens.Lens' Tunnel (Prelude.Maybe Prelude.Text)
tunnel_tunnelId :: Lens' Tunnel (Maybe Text)
tunnel_tunnelId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Tunnel' {Maybe Text
tunnelId :: Maybe Text
$sel:tunnelId:Tunnel' :: Tunnel -> Maybe Text
tunnelId} -> Maybe Text
tunnelId) (\s :: Tunnel
s@Tunnel' {} Maybe Text
a -> Tunnel
s {$sel:tunnelId:Tunnel' :: Maybe Text
tunnelId = Maybe Text
a} :: Tunnel)

instance Data.FromJSON Tunnel where
  parseJSON :: Value -> Parser Tunnel
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"Tunnel"
      ( \Object
x ->
          Maybe POSIX
-> Maybe Text
-> Maybe DestinationConfig
-> Maybe ConnectionState
-> Maybe POSIX
-> Maybe ConnectionState
-> Maybe TunnelStatus
-> Maybe (NonEmpty Tag)
-> Maybe TimeoutConfig
-> Maybe Text
-> Maybe Text
-> Tunnel
Tunnel'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"createdAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"description")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"destinationConfig")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"destinationConnectionState")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"lastUpdatedAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"sourceConnectionState")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"status")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"tags")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"timeoutConfig")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"tunnelArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"tunnelId")
      )

instance Prelude.Hashable Tunnel where
  hashWithSalt :: Int -> Tunnel -> Int
hashWithSalt Int
_salt Tunnel' {Maybe (NonEmpty Tag)
Maybe Text
Maybe POSIX
Maybe ConnectionState
Maybe DestinationConfig
Maybe TimeoutConfig
Maybe TunnelStatus
tunnelId :: Maybe Text
tunnelArn :: Maybe Text
timeoutConfig :: Maybe TimeoutConfig
tags :: Maybe (NonEmpty Tag)
status :: Maybe TunnelStatus
sourceConnectionState :: Maybe ConnectionState
lastUpdatedAt :: Maybe POSIX
destinationConnectionState :: Maybe ConnectionState
destinationConfig :: Maybe DestinationConfig
description :: Maybe Text
createdAt :: Maybe POSIX
$sel:tunnelId:Tunnel' :: Tunnel -> Maybe Text
$sel:tunnelArn:Tunnel' :: Tunnel -> Maybe Text
$sel:timeoutConfig:Tunnel' :: Tunnel -> Maybe TimeoutConfig
$sel:tags:Tunnel' :: Tunnel -> Maybe (NonEmpty Tag)
$sel:status:Tunnel' :: Tunnel -> Maybe TunnelStatus
$sel:sourceConnectionState:Tunnel' :: Tunnel -> Maybe ConnectionState
$sel:lastUpdatedAt:Tunnel' :: Tunnel -> Maybe POSIX
$sel:destinationConnectionState:Tunnel' :: Tunnel -> Maybe ConnectionState
$sel:destinationConfig:Tunnel' :: Tunnel -> Maybe DestinationConfig
$sel:description:Tunnel' :: Tunnel -> Maybe Text
$sel:createdAt:Tunnel' :: Tunnel -> Maybe POSIX
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
createdAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DestinationConfig
destinationConfig
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ConnectionState
destinationConnectionState
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastUpdatedAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ConnectionState
sourceConnectionState
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TunnelStatus
status
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Tag)
tags
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TimeoutConfig
timeoutConfig
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
tunnelArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
tunnelId

instance Prelude.NFData Tunnel where
  rnf :: Tunnel -> ()
rnf Tunnel' {Maybe (NonEmpty Tag)
Maybe Text
Maybe POSIX
Maybe ConnectionState
Maybe DestinationConfig
Maybe TimeoutConfig
Maybe TunnelStatus
tunnelId :: Maybe Text
tunnelArn :: Maybe Text
timeoutConfig :: Maybe TimeoutConfig
tags :: Maybe (NonEmpty Tag)
status :: Maybe TunnelStatus
sourceConnectionState :: Maybe ConnectionState
lastUpdatedAt :: Maybe POSIX
destinationConnectionState :: Maybe ConnectionState
destinationConfig :: Maybe DestinationConfig
description :: Maybe Text
createdAt :: Maybe POSIX
$sel:tunnelId:Tunnel' :: Tunnel -> Maybe Text
$sel:tunnelArn:Tunnel' :: Tunnel -> Maybe Text
$sel:timeoutConfig:Tunnel' :: Tunnel -> Maybe TimeoutConfig
$sel:tags:Tunnel' :: Tunnel -> Maybe (NonEmpty Tag)
$sel:status:Tunnel' :: Tunnel -> Maybe TunnelStatus
$sel:sourceConnectionState:Tunnel' :: Tunnel -> Maybe ConnectionState
$sel:lastUpdatedAt:Tunnel' :: Tunnel -> Maybe POSIX
$sel:destinationConnectionState:Tunnel' :: Tunnel -> Maybe ConnectionState
$sel:destinationConfig:Tunnel' :: Tunnel -> Maybe DestinationConfig
$sel:description:Tunnel' :: Tunnel -> Maybe Text
$sel:createdAt:Tunnel' :: Tunnel -> Maybe POSIX
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
createdAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DestinationConfig
destinationConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ConnectionState
destinationConnectionState
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastUpdatedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ConnectionState
sourceConnectionState
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TunnelStatus
status
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Tag)
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TimeoutConfig
timeoutConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
tunnelArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
tunnelId