{-# 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.TrafficMirrorSession
-- 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.TrafficMirrorSession 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.Tag
import qualified Amazonka.Prelude as Prelude

-- | Describes a Traffic Mirror session.
--
-- /See:/ 'newTrafficMirrorSession' smart constructor.
data TrafficMirrorSession = TrafficMirrorSession'
  { -- | The description of the Traffic Mirror session.
    TrafficMirrorSession -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The ID of the Traffic Mirror session\'s network interface.
    TrafficMirrorSession -> Maybe Text
networkInterfaceId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the account that owns the Traffic Mirror session.
    TrafficMirrorSession -> Maybe Text
ownerId :: Prelude.Maybe Prelude.Text,
    -- | The number of bytes in each packet to mirror. These are the bytes after
    -- the VXLAN header. To mirror a subset, set this to the length (in bytes)
    -- to mirror. For example, if you set this value to 100, then the first 100
    -- bytes that meet the filter criteria are copied to the target. Do not
    -- specify this parameter when you want to mirror the entire packet
    TrafficMirrorSession -> Maybe Int
packetLength :: Prelude.Maybe Prelude.Int,
    -- | The session number determines the order in which sessions are evaluated
    -- when an interface is used by multiple sessions. The first session with a
    -- matching filter is the one that mirrors the packets.
    --
    -- Valid values are 1-32766.
    TrafficMirrorSession -> Maybe Int
sessionNumber :: Prelude.Maybe Prelude.Int,
    -- | The tags assigned to the Traffic Mirror session.
    TrafficMirrorSession -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
    -- | The ID of the Traffic Mirror filter.
    TrafficMirrorSession -> Maybe Text
trafficMirrorFilterId :: Prelude.Maybe Prelude.Text,
    -- | The ID for the Traffic Mirror session.
    TrafficMirrorSession -> Maybe Text
trafficMirrorSessionId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the Traffic Mirror target.
    TrafficMirrorSession -> Maybe Text
trafficMirrorTargetId :: Prelude.Maybe Prelude.Text,
    -- | The virtual network ID associated with the Traffic Mirror session.
    TrafficMirrorSession -> Maybe Int
virtualNetworkId :: Prelude.Maybe Prelude.Int
  }
  deriving (TrafficMirrorSession -> TrafficMirrorSession -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TrafficMirrorSession -> TrafficMirrorSession -> Bool
$c/= :: TrafficMirrorSession -> TrafficMirrorSession -> Bool
== :: TrafficMirrorSession -> TrafficMirrorSession -> Bool
$c== :: TrafficMirrorSession -> TrafficMirrorSession -> Bool
Prelude.Eq, ReadPrec [TrafficMirrorSession]
ReadPrec TrafficMirrorSession
Int -> ReadS TrafficMirrorSession
ReadS [TrafficMirrorSession]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TrafficMirrorSession]
$creadListPrec :: ReadPrec [TrafficMirrorSession]
readPrec :: ReadPrec TrafficMirrorSession
$creadPrec :: ReadPrec TrafficMirrorSession
readList :: ReadS [TrafficMirrorSession]
$creadList :: ReadS [TrafficMirrorSession]
readsPrec :: Int -> ReadS TrafficMirrorSession
$creadsPrec :: Int -> ReadS TrafficMirrorSession
Prelude.Read, Int -> TrafficMirrorSession -> ShowS
[TrafficMirrorSession] -> ShowS
TrafficMirrorSession -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TrafficMirrorSession] -> ShowS
$cshowList :: [TrafficMirrorSession] -> ShowS
show :: TrafficMirrorSession -> String
$cshow :: TrafficMirrorSession -> String
showsPrec :: Int -> TrafficMirrorSession -> ShowS
$cshowsPrec :: Int -> TrafficMirrorSession -> ShowS
Prelude.Show, forall x. Rep TrafficMirrorSession x -> TrafficMirrorSession
forall x. TrafficMirrorSession -> Rep TrafficMirrorSession x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TrafficMirrorSession x -> TrafficMirrorSession
$cfrom :: forall x. TrafficMirrorSession -> Rep TrafficMirrorSession x
Prelude.Generic)

-- |
-- Create a value of 'TrafficMirrorSession' 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:
--
-- 'description', 'trafficMirrorSession_description' - The description of the Traffic Mirror session.
--
-- 'networkInterfaceId', 'trafficMirrorSession_networkInterfaceId' - The ID of the Traffic Mirror session\'s network interface.
--
-- 'ownerId', 'trafficMirrorSession_ownerId' - The ID of the account that owns the Traffic Mirror session.
--
-- 'packetLength', 'trafficMirrorSession_packetLength' - The number of bytes in each packet to mirror. These are the bytes after
-- the VXLAN header. To mirror a subset, set this to the length (in bytes)
-- to mirror. For example, if you set this value to 100, then the first 100
-- bytes that meet the filter criteria are copied to the target. Do not
-- specify this parameter when you want to mirror the entire packet
--
-- 'sessionNumber', 'trafficMirrorSession_sessionNumber' - The session number determines the order in which sessions are evaluated
-- when an interface is used by multiple sessions. The first session with a
-- matching filter is the one that mirrors the packets.
--
-- Valid values are 1-32766.
--
-- 'tags', 'trafficMirrorSession_tags' - The tags assigned to the Traffic Mirror session.
--
-- 'trafficMirrorFilterId', 'trafficMirrorSession_trafficMirrorFilterId' - The ID of the Traffic Mirror filter.
--
-- 'trafficMirrorSessionId', 'trafficMirrorSession_trafficMirrorSessionId' - The ID for the Traffic Mirror session.
--
-- 'trafficMirrorTargetId', 'trafficMirrorSession_trafficMirrorTargetId' - The ID of the Traffic Mirror target.
--
-- 'virtualNetworkId', 'trafficMirrorSession_virtualNetworkId' - The virtual network ID associated with the Traffic Mirror session.
newTrafficMirrorSession ::
  TrafficMirrorSession
newTrafficMirrorSession :: TrafficMirrorSession
newTrafficMirrorSession =
  TrafficMirrorSession'
    { $sel:description:TrafficMirrorSession' :: Maybe Text
description =
        forall a. Maybe a
Prelude.Nothing,
      $sel:networkInterfaceId:TrafficMirrorSession' :: Maybe Text
networkInterfaceId = forall a. Maybe a
Prelude.Nothing,
      $sel:ownerId:TrafficMirrorSession' :: Maybe Text
ownerId = forall a. Maybe a
Prelude.Nothing,
      $sel:packetLength:TrafficMirrorSession' :: Maybe Int
packetLength = forall a. Maybe a
Prelude.Nothing,
      $sel:sessionNumber:TrafficMirrorSession' :: Maybe Int
sessionNumber = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:TrafficMirrorSession' :: Maybe [Tag]
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:trafficMirrorFilterId:TrafficMirrorSession' :: Maybe Text
trafficMirrorFilterId = forall a. Maybe a
Prelude.Nothing,
      $sel:trafficMirrorSessionId:TrafficMirrorSession' :: Maybe Text
trafficMirrorSessionId = forall a. Maybe a
Prelude.Nothing,
      $sel:trafficMirrorTargetId:TrafficMirrorSession' :: Maybe Text
trafficMirrorTargetId = forall a. Maybe a
Prelude.Nothing,
      $sel:virtualNetworkId:TrafficMirrorSession' :: Maybe Int
virtualNetworkId = forall a. Maybe a
Prelude.Nothing
    }

-- | The description of the Traffic Mirror session.
trafficMirrorSession_description :: Lens.Lens' TrafficMirrorSession (Prelude.Maybe Prelude.Text)
trafficMirrorSession_description :: Lens' TrafficMirrorSession (Maybe Text)
trafficMirrorSession_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TrafficMirrorSession' {Maybe Text
description :: Maybe Text
$sel:description:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Text
description} -> Maybe Text
description) (\s :: TrafficMirrorSession
s@TrafficMirrorSession' {} Maybe Text
a -> TrafficMirrorSession
s {$sel:description:TrafficMirrorSession' :: Maybe Text
description = Maybe Text
a} :: TrafficMirrorSession)

-- | The ID of the Traffic Mirror session\'s network interface.
trafficMirrorSession_networkInterfaceId :: Lens.Lens' TrafficMirrorSession (Prelude.Maybe Prelude.Text)
trafficMirrorSession_networkInterfaceId :: Lens' TrafficMirrorSession (Maybe Text)
trafficMirrorSession_networkInterfaceId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TrafficMirrorSession' {Maybe Text
networkInterfaceId :: Maybe Text
$sel:networkInterfaceId:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Text
networkInterfaceId} -> Maybe Text
networkInterfaceId) (\s :: TrafficMirrorSession
s@TrafficMirrorSession' {} Maybe Text
a -> TrafficMirrorSession
s {$sel:networkInterfaceId:TrafficMirrorSession' :: Maybe Text
networkInterfaceId = Maybe Text
a} :: TrafficMirrorSession)

-- | The ID of the account that owns the Traffic Mirror session.
trafficMirrorSession_ownerId :: Lens.Lens' TrafficMirrorSession (Prelude.Maybe Prelude.Text)
trafficMirrorSession_ownerId :: Lens' TrafficMirrorSession (Maybe Text)
trafficMirrorSession_ownerId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TrafficMirrorSession' {Maybe Text
ownerId :: Maybe Text
$sel:ownerId:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Text
ownerId} -> Maybe Text
ownerId) (\s :: TrafficMirrorSession
s@TrafficMirrorSession' {} Maybe Text
a -> TrafficMirrorSession
s {$sel:ownerId:TrafficMirrorSession' :: Maybe Text
ownerId = Maybe Text
a} :: TrafficMirrorSession)

-- | The number of bytes in each packet to mirror. These are the bytes after
-- the VXLAN header. To mirror a subset, set this to the length (in bytes)
-- to mirror. For example, if you set this value to 100, then the first 100
-- bytes that meet the filter criteria are copied to the target. Do not
-- specify this parameter when you want to mirror the entire packet
trafficMirrorSession_packetLength :: Lens.Lens' TrafficMirrorSession (Prelude.Maybe Prelude.Int)
trafficMirrorSession_packetLength :: Lens' TrafficMirrorSession (Maybe Int)
trafficMirrorSession_packetLength = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TrafficMirrorSession' {Maybe Int
packetLength :: Maybe Int
$sel:packetLength:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Int
packetLength} -> Maybe Int
packetLength) (\s :: TrafficMirrorSession
s@TrafficMirrorSession' {} Maybe Int
a -> TrafficMirrorSession
s {$sel:packetLength:TrafficMirrorSession' :: Maybe Int
packetLength = Maybe Int
a} :: TrafficMirrorSession)

-- | The session number determines the order in which sessions are evaluated
-- when an interface is used by multiple sessions. The first session with a
-- matching filter is the one that mirrors the packets.
--
-- Valid values are 1-32766.
trafficMirrorSession_sessionNumber :: Lens.Lens' TrafficMirrorSession (Prelude.Maybe Prelude.Int)
trafficMirrorSession_sessionNumber :: Lens' TrafficMirrorSession (Maybe Int)
trafficMirrorSession_sessionNumber = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TrafficMirrorSession' {Maybe Int
sessionNumber :: Maybe Int
$sel:sessionNumber:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Int
sessionNumber} -> Maybe Int
sessionNumber) (\s :: TrafficMirrorSession
s@TrafficMirrorSession' {} Maybe Int
a -> TrafficMirrorSession
s {$sel:sessionNumber:TrafficMirrorSession' :: Maybe Int
sessionNumber = Maybe Int
a} :: TrafficMirrorSession)

-- | The tags assigned to the Traffic Mirror session.
trafficMirrorSession_tags :: Lens.Lens' TrafficMirrorSession (Prelude.Maybe [Tag])
trafficMirrorSession_tags :: Lens' TrafficMirrorSession (Maybe [Tag])
trafficMirrorSession_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TrafficMirrorSession' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: TrafficMirrorSession
s@TrafficMirrorSession' {} Maybe [Tag]
a -> TrafficMirrorSession
s {$sel:tags:TrafficMirrorSession' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: TrafficMirrorSession) 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 ID of the Traffic Mirror filter.
trafficMirrorSession_trafficMirrorFilterId :: Lens.Lens' TrafficMirrorSession (Prelude.Maybe Prelude.Text)
trafficMirrorSession_trafficMirrorFilterId :: Lens' TrafficMirrorSession (Maybe Text)
trafficMirrorSession_trafficMirrorFilterId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TrafficMirrorSession' {Maybe Text
trafficMirrorFilterId :: Maybe Text
$sel:trafficMirrorFilterId:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Text
trafficMirrorFilterId} -> Maybe Text
trafficMirrorFilterId) (\s :: TrafficMirrorSession
s@TrafficMirrorSession' {} Maybe Text
a -> TrafficMirrorSession
s {$sel:trafficMirrorFilterId:TrafficMirrorSession' :: Maybe Text
trafficMirrorFilterId = Maybe Text
a} :: TrafficMirrorSession)

-- | The ID for the Traffic Mirror session.
trafficMirrorSession_trafficMirrorSessionId :: Lens.Lens' TrafficMirrorSession (Prelude.Maybe Prelude.Text)
trafficMirrorSession_trafficMirrorSessionId :: Lens' TrafficMirrorSession (Maybe Text)
trafficMirrorSession_trafficMirrorSessionId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TrafficMirrorSession' {Maybe Text
trafficMirrorSessionId :: Maybe Text
$sel:trafficMirrorSessionId:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Text
trafficMirrorSessionId} -> Maybe Text
trafficMirrorSessionId) (\s :: TrafficMirrorSession
s@TrafficMirrorSession' {} Maybe Text
a -> TrafficMirrorSession
s {$sel:trafficMirrorSessionId:TrafficMirrorSession' :: Maybe Text
trafficMirrorSessionId = Maybe Text
a} :: TrafficMirrorSession)

-- | The ID of the Traffic Mirror target.
trafficMirrorSession_trafficMirrorTargetId :: Lens.Lens' TrafficMirrorSession (Prelude.Maybe Prelude.Text)
trafficMirrorSession_trafficMirrorTargetId :: Lens' TrafficMirrorSession (Maybe Text)
trafficMirrorSession_trafficMirrorTargetId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TrafficMirrorSession' {Maybe Text
trafficMirrorTargetId :: Maybe Text
$sel:trafficMirrorTargetId:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Text
trafficMirrorTargetId} -> Maybe Text
trafficMirrorTargetId) (\s :: TrafficMirrorSession
s@TrafficMirrorSession' {} Maybe Text
a -> TrafficMirrorSession
s {$sel:trafficMirrorTargetId:TrafficMirrorSession' :: Maybe Text
trafficMirrorTargetId = Maybe Text
a} :: TrafficMirrorSession)

-- | The virtual network ID associated with the Traffic Mirror session.
trafficMirrorSession_virtualNetworkId :: Lens.Lens' TrafficMirrorSession (Prelude.Maybe Prelude.Int)
trafficMirrorSession_virtualNetworkId :: Lens' TrafficMirrorSession (Maybe Int)
trafficMirrorSession_virtualNetworkId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TrafficMirrorSession' {Maybe Int
virtualNetworkId :: Maybe Int
$sel:virtualNetworkId:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Int
virtualNetworkId} -> Maybe Int
virtualNetworkId) (\s :: TrafficMirrorSession
s@TrafficMirrorSession' {} Maybe Int
a -> TrafficMirrorSession
s {$sel:virtualNetworkId:TrafficMirrorSession' :: Maybe Int
virtualNetworkId = Maybe Int
a} :: TrafficMirrorSession)

instance Data.FromXML TrafficMirrorSession where
  parseXML :: [Node] -> Either String TrafficMirrorSession
parseXML [Node]
x =
    Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe [Tag]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> TrafficMirrorSession
TrafficMirrorSession'
      forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"description")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"networkInterfaceId")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"ownerId")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"packetLength")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"sessionNumber")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x
                      forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"tagSet"
                      forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                      forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"item")
                  )
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"trafficMirrorFilterId")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"trafficMirrorSessionId")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"trafficMirrorTargetId")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"virtualNetworkId")

instance Prelude.Hashable TrafficMirrorSession where
  hashWithSalt :: Int -> TrafficMirrorSession -> Int
hashWithSalt Int
_salt TrafficMirrorSession' {Maybe Int
Maybe [Tag]
Maybe Text
virtualNetworkId :: Maybe Int
trafficMirrorTargetId :: Maybe Text
trafficMirrorSessionId :: Maybe Text
trafficMirrorFilterId :: Maybe Text
tags :: Maybe [Tag]
sessionNumber :: Maybe Int
packetLength :: Maybe Int
ownerId :: Maybe Text
networkInterfaceId :: Maybe Text
description :: Maybe Text
$sel:virtualNetworkId:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Int
$sel:trafficMirrorTargetId:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Text
$sel:trafficMirrorSessionId:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Text
$sel:trafficMirrorFilterId:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Text
$sel:tags:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe [Tag]
$sel:sessionNumber:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Int
$sel:packetLength:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Int
$sel:ownerId:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Text
$sel:networkInterfaceId:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Text
$sel:description:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
networkInterfaceId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
ownerId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
packetLength
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
sessionNumber
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Tag]
tags
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
trafficMirrorFilterId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
trafficMirrorSessionId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
trafficMirrorTargetId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
virtualNetworkId

instance Prelude.NFData TrafficMirrorSession where
  rnf :: TrafficMirrorSession -> ()
rnf TrafficMirrorSession' {Maybe Int
Maybe [Tag]
Maybe Text
virtualNetworkId :: Maybe Int
trafficMirrorTargetId :: Maybe Text
trafficMirrorSessionId :: Maybe Text
trafficMirrorFilterId :: Maybe Text
tags :: Maybe [Tag]
sessionNumber :: Maybe Int
packetLength :: Maybe Int
ownerId :: Maybe Text
networkInterfaceId :: Maybe Text
description :: Maybe Text
$sel:virtualNetworkId:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Int
$sel:trafficMirrorTargetId:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Text
$sel:trafficMirrorSessionId:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Text
$sel:trafficMirrorFilterId:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Text
$sel:tags:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe [Tag]
$sel:sessionNumber:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Int
$sel:packetLength:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Int
$sel:ownerId:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Text
$sel:networkInterfaceId:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Text
$sel:description:TrafficMirrorSession' :: TrafficMirrorSession -> Maybe Text
..} =
    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 Text
networkInterfaceId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
ownerId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
packetLength
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
sessionNumber
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Tag]
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
trafficMirrorFilterId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
trafficMirrorSessionId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
trafficMirrorTargetId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
virtualNetworkId