{-# 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.FMS.Types.TargetType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.FMS.Types.TargetType
  ( TargetType
      ( ..,
        TargetType_CARRIER_GATEWAY,
        TargetType_EGRESS_ONLY_INTERNET_GATEWAY,
        TargetType_GATEWAY,
        TargetType_INSTANCE,
        TargetType_LOCAL_GATEWAY,
        TargetType_NAT_GATEWAY,
        TargetType_NETWORK_INTERFACE,
        TargetType_TRANSIT_GATEWAY,
        TargetType_VPC_ENDPOINT,
        TargetType_VPC_PEERING_CONNECTION
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

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

pattern TargetType_CARRIER_GATEWAY :: TargetType
pattern $bTargetType_CARRIER_GATEWAY :: TargetType
$mTargetType_CARRIER_GATEWAY :: forall r. TargetType -> (Void# -> r) -> (Void# -> r) -> r
TargetType_CARRIER_GATEWAY = TargetType' "CARRIER_GATEWAY"

pattern TargetType_EGRESS_ONLY_INTERNET_GATEWAY :: TargetType
pattern $bTargetType_EGRESS_ONLY_INTERNET_GATEWAY :: TargetType
$mTargetType_EGRESS_ONLY_INTERNET_GATEWAY :: forall r. TargetType -> (Void# -> r) -> (Void# -> r) -> r
TargetType_EGRESS_ONLY_INTERNET_GATEWAY = TargetType' "EGRESS_ONLY_INTERNET_GATEWAY"

pattern TargetType_GATEWAY :: TargetType
pattern $bTargetType_GATEWAY :: TargetType
$mTargetType_GATEWAY :: forall r. TargetType -> (Void# -> r) -> (Void# -> r) -> r
TargetType_GATEWAY = TargetType' "GATEWAY"

pattern TargetType_INSTANCE :: TargetType
pattern $bTargetType_INSTANCE :: TargetType
$mTargetType_INSTANCE :: forall r. TargetType -> (Void# -> r) -> (Void# -> r) -> r
TargetType_INSTANCE = TargetType' "INSTANCE"

pattern TargetType_LOCAL_GATEWAY :: TargetType
pattern $bTargetType_LOCAL_GATEWAY :: TargetType
$mTargetType_LOCAL_GATEWAY :: forall r. TargetType -> (Void# -> r) -> (Void# -> r) -> r
TargetType_LOCAL_GATEWAY = TargetType' "LOCAL_GATEWAY"

pattern TargetType_NAT_GATEWAY :: TargetType
pattern $bTargetType_NAT_GATEWAY :: TargetType
$mTargetType_NAT_GATEWAY :: forall r. TargetType -> (Void# -> r) -> (Void# -> r) -> r
TargetType_NAT_GATEWAY = TargetType' "NAT_GATEWAY"

pattern TargetType_NETWORK_INTERFACE :: TargetType
pattern $bTargetType_NETWORK_INTERFACE :: TargetType
$mTargetType_NETWORK_INTERFACE :: forall r. TargetType -> (Void# -> r) -> (Void# -> r) -> r
TargetType_NETWORK_INTERFACE = TargetType' "NETWORK_INTERFACE"

pattern TargetType_TRANSIT_GATEWAY :: TargetType
pattern $bTargetType_TRANSIT_GATEWAY :: TargetType
$mTargetType_TRANSIT_GATEWAY :: forall r. TargetType -> (Void# -> r) -> (Void# -> r) -> r
TargetType_TRANSIT_GATEWAY = TargetType' "TRANSIT_GATEWAY"

pattern TargetType_VPC_ENDPOINT :: TargetType
pattern $bTargetType_VPC_ENDPOINT :: TargetType
$mTargetType_VPC_ENDPOINT :: forall r. TargetType -> (Void# -> r) -> (Void# -> r) -> r
TargetType_VPC_ENDPOINT = TargetType' "VPC_ENDPOINT"

pattern TargetType_VPC_PEERING_CONNECTION :: TargetType
pattern $bTargetType_VPC_PEERING_CONNECTION :: TargetType
$mTargetType_VPC_PEERING_CONNECTION :: forall r. TargetType -> (Void# -> r) -> (Void# -> r) -> r
TargetType_VPC_PEERING_CONNECTION = TargetType' "VPC_PEERING_CONNECTION"

{-# COMPLETE
  TargetType_CARRIER_GATEWAY,
  TargetType_EGRESS_ONLY_INTERNET_GATEWAY,
  TargetType_GATEWAY,
  TargetType_INSTANCE,
  TargetType_LOCAL_GATEWAY,
  TargetType_NAT_GATEWAY,
  TargetType_NETWORK_INTERFACE,
  TargetType_TRANSIT_GATEWAY,
  TargetType_VPC_ENDPOINT,
  TargetType_VPC_PEERING_CONNECTION,
  TargetType'
  #-}