{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.EC2.Types.TrafficMirrorTargetType
-- 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.TrafficMirrorTargetType
  ( TrafficMirrorTargetType
      ( ..,
        TrafficMirrorTargetType_Gateway_load_balancer_endpoint,
        TrafficMirrorTargetType_Network_interface,
        TrafficMirrorTargetType_Network_load_balancer
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude

newtype TrafficMirrorTargetType = TrafficMirrorTargetType'
  { TrafficMirrorTargetType -> Text
fromTrafficMirrorTargetType ::
      Data.Text
  }
  deriving stock
    ( Int -> TrafficMirrorTargetType -> ShowS
[TrafficMirrorTargetType] -> ShowS
TrafficMirrorTargetType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TrafficMirrorTargetType] -> ShowS
$cshowList :: [TrafficMirrorTargetType] -> ShowS
show :: TrafficMirrorTargetType -> String
$cshow :: TrafficMirrorTargetType -> String
showsPrec :: Int -> TrafficMirrorTargetType -> ShowS
$cshowsPrec :: Int -> TrafficMirrorTargetType -> ShowS
Prelude.Show,
      ReadPrec [TrafficMirrorTargetType]
ReadPrec TrafficMirrorTargetType
Int -> ReadS TrafficMirrorTargetType
ReadS [TrafficMirrorTargetType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TrafficMirrorTargetType]
$creadListPrec :: ReadPrec [TrafficMirrorTargetType]
readPrec :: ReadPrec TrafficMirrorTargetType
$creadPrec :: ReadPrec TrafficMirrorTargetType
readList :: ReadS [TrafficMirrorTargetType]
$creadList :: ReadS [TrafficMirrorTargetType]
readsPrec :: Int -> ReadS TrafficMirrorTargetType
$creadsPrec :: Int -> ReadS TrafficMirrorTargetType
Prelude.Read,
      TrafficMirrorTargetType -> TrafficMirrorTargetType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TrafficMirrorTargetType -> TrafficMirrorTargetType -> Bool
$c/= :: TrafficMirrorTargetType -> TrafficMirrorTargetType -> Bool
== :: TrafficMirrorTargetType -> TrafficMirrorTargetType -> Bool
$c== :: TrafficMirrorTargetType -> TrafficMirrorTargetType -> Bool
Prelude.Eq,
      Eq TrafficMirrorTargetType
TrafficMirrorTargetType -> TrafficMirrorTargetType -> Bool
TrafficMirrorTargetType -> TrafficMirrorTargetType -> Ordering
TrafficMirrorTargetType
-> TrafficMirrorTargetType -> TrafficMirrorTargetType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: TrafficMirrorTargetType
-> TrafficMirrorTargetType -> TrafficMirrorTargetType
$cmin :: TrafficMirrorTargetType
-> TrafficMirrorTargetType -> TrafficMirrorTargetType
max :: TrafficMirrorTargetType
-> TrafficMirrorTargetType -> TrafficMirrorTargetType
$cmax :: TrafficMirrorTargetType
-> TrafficMirrorTargetType -> TrafficMirrorTargetType
>= :: TrafficMirrorTargetType -> TrafficMirrorTargetType -> Bool
$c>= :: TrafficMirrorTargetType -> TrafficMirrorTargetType -> Bool
> :: TrafficMirrorTargetType -> TrafficMirrorTargetType -> Bool
$c> :: TrafficMirrorTargetType -> TrafficMirrorTargetType -> Bool
<= :: TrafficMirrorTargetType -> TrafficMirrorTargetType -> Bool
$c<= :: TrafficMirrorTargetType -> TrafficMirrorTargetType -> Bool
< :: TrafficMirrorTargetType -> TrafficMirrorTargetType -> Bool
$c< :: TrafficMirrorTargetType -> TrafficMirrorTargetType -> Bool
compare :: TrafficMirrorTargetType -> TrafficMirrorTargetType -> Ordering
$ccompare :: TrafficMirrorTargetType -> TrafficMirrorTargetType -> Ordering
Prelude.Ord,
      forall x. Rep TrafficMirrorTargetType x -> TrafficMirrorTargetType
forall x. TrafficMirrorTargetType -> Rep TrafficMirrorTargetType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TrafficMirrorTargetType x -> TrafficMirrorTargetType
$cfrom :: forall x. TrafficMirrorTargetType -> Rep TrafficMirrorTargetType x
Prelude.Generic
    )
  deriving newtype
    ( Eq TrafficMirrorTargetType
Int -> TrafficMirrorTargetType -> Int
TrafficMirrorTargetType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TrafficMirrorTargetType -> Int
$chash :: TrafficMirrorTargetType -> Int
hashWithSalt :: Int -> TrafficMirrorTargetType -> Int
$chashWithSalt :: Int -> TrafficMirrorTargetType -> Int
Prelude.Hashable,
      TrafficMirrorTargetType -> ()
forall a. (a -> ()) -> NFData a
rnf :: TrafficMirrorTargetType -> ()
$crnf :: TrafficMirrorTargetType -> ()
Prelude.NFData,
      Text -> Either String TrafficMirrorTargetType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TrafficMirrorTargetType
$cfromText :: Text -> Either String TrafficMirrorTargetType
Data.FromText,
      TrafficMirrorTargetType -> Text
forall a. (a -> Text) -> ToText a
toText :: TrafficMirrorTargetType -> Text
$ctoText :: TrafficMirrorTargetType -> Text
Data.ToText,
      TrafficMirrorTargetType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: TrafficMirrorTargetType -> ByteString
$ctoBS :: TrafficMirrorTargetType -> ByteString
Data.ToByteString,
      TrafficMirrorTargetType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TrafficMirrorTargetType -> ByteStringBuilder
$cbuild :: TrafficMirrorTargetType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> TrafficMirrorTargetType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TrafficMirrorTargetType -> [Header]
$ctoHeader :: HeaderName -> TrafficMirrorTargetType -> [Header]
Data.ToHeader,
      TrafficMirrorTargetType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TrafficMirrorTargetType -> QueryString
$ctoQuery :: TrafficMirrorTargetType -> QueryString
Data.ToQuery,
      Value -> Parser [TrafficMirrorTargetType]
Value -> Parser TrafficMirrorTargetType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TrafficMirrorTargetType]
$cparseJSONList :: Value -> Parser [TrafficMirrorTargetType]
parseJSON :: Value -> Parser TrafficMirrorTargetType
$cparseJSON :: Value -> Parser TrafficMirrorTargetType
Data.FromJSON,
      FromJSONKeyFunction [TrafficMirrorTargetType]
FromJSONKeyFunction TrafficMirrorTargetType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TrafficMirrorTargetType]
$cfromJSONKeyList :: FromJSONKeyFunction [TrafficMirrorTargetType]
fromJSONKey :: FromJSONKeyFunction TrafficMirrorTargetType
$cfromJSONKey :: FromJSONKeyFunction TrafficMirrorTargetType
Data.FromJSONKey,
      [TrafficMirrorTargetType] -> Encoding
[TrafficMirrorTargetType] -> Value
TrafficMirrorTargetType -> Encoding
TrafficMirrorTargetType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TrafficMirrorTargetType] -> Encoding
$ctoEncodingList :: [TrafficMirrorTargetType] -> Encoding
toJSONList :: [TrafficMirrorTargetType] -> Value
$ctoJSONList :: [TrafficMirrorTargetType] -> Value
toEncoding :: TrafficMirrorTargetType -> Encoding
$ctoEncoding :: TrafficMirrorTargetType -> Encoding
toJSON :: TrafficMirrorTargetType -> Value
$ctoJSON :: TrafficMirrorTargetType -> Value
Data.ToJSON,
      ToJSONKeyFunction [TrafficMirrorTargetType]
ToJSONKeyFunction TrafficMirrorTargetType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TrafficMirrorTargetType]
$ctoJSONKeyList :: ToJSONKeyFunction [TrafficMirrorTargetType]
toJSONKey :: ToJSONKeyFunction TrafficMirrorTargetType
$ctoJSONKey :: ToJSONKeyFunction TrafficMirrorTargetType
Data.ToJSONKey,
      [Node] -> Either String TrafficMirrorTargetType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TrafficMirrorTargetType
$cparseXML :: [Node] -> Either String TrafficMirrorTargetType
Data.FromXML,
      TrafficMirrorTargetType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: TrafficMirrorTargetType -> XML
$ctoXML :: TrafficMirrorTargetType -> XML
Data.ToXML
    )

pattern TrafficMirrorTargetType_Gateway_load_balancer_endpoint :: TrafficMirrorTargetType
pattern $bTrafficMirrorTargetType_Gateway_load_balancer_endpoint :: TrafficMirrorTargetType
$mTrafficMirrorTargetType_Gateway_load_balancer_endpoint :: forall {r}.
TrafficMirrorTargetType -> ((# #) -> r) -> ((# #) -> r) -> r
TrafficMirrorTargetType_Gateway_load_balancer_endpoint = TrafficMirrorTargetType' "gateway-load-balancer-endpoint"

pattern TrafficMirrorTargetType_Network_interface :: TrafficMirrorTargetType
pattern $bTrafficMirrorTargetType_Network_interface :: TrafficMirrorTargetType
$mTrafficMirrorTargetType_Network_interface :: forall {r}.
TrafficMirrorTargetType -> ((# #) -> r) -> ((# #) -> r) -> r
TrafficMirrorTargetType_Network_interface = TrafficMirrorTargetType' "network-interface"

pattern TrafficMirrorTargetType_Network_load_balancer :: TrafficMirrorTargetType
pattern $bTrafficMirrorTargetType_Network_load_balancer :: TrafficMirrorTargetType
$mTrafficMirrorTargetType_Network_load_balancer :: forall {r}.
TrafficMirrorTargetType -> ((# #) -> r) -> ((# #) -> r) -> r
TrafficMirrorTargetType_Network_load_balancer = TrafficMirrorTargetType' "network-load-balancer"

{-# COMPLETE
  TrafficMirrorTargetType_Gateway_load_balancer_endpoint,
  TrafficMirrorTargetType_Network_interface,
  TrafficMirrorTargetType_Network_load_balancer,
  TrafficMirrorTargetType'
  #-}