{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ELBV2.Types.TargetGroupIpAddressTypeEnum
( TargetGroupIpAddressTypeEnum
( ..,
TargetGroupIpAddressTypeEnum_Ipv4,
TargetGroupIpAddressTypeEnum_Ipv6
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype TargetGroupIpAddressTypeEnum = TargetGroupIpAddressTypeEnum'
{ TargetGroupIpAddressTypeEnum -> Text
fromTargetGroupIpAddressTypeEnum ::
Core.Text
}
deriving stock
( Int -> TargetGroupIpAddressTypeEnum -> ShowS
[TargetGroupIpAddressTypeEnum] -> ShowS
TargetGroupIpAddressTypeEnum -> String
(Int -> TargetGroupIpAddressTypeEnum -> ShowS)
-> (TargetGroupIpAddressTypeEnum -> String)
-> ([TargetGroupIpAddressTypeEnum] -> ShowS)
-> Show TargetGroupIpAddressTypeEnum
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TargetGroupIpAddressTypeEnum] -> ShowS
$cshowList :: [TargetGroupIpAddressTypeEnum] -> ShowS
show :: TargetGroupIpAddressTypeEnum -> String
$cshow :: TargetGroupIpAddressTypeEnum -> String
showsPrec :: Int -> TargetGroupIpAddressTypeEnum -> ShowS
$cshowsPrec :: Int -> TargetGroupIpAddressTypeEnum -> ShowS
Prelude.Show,
ReadPrec [TargetGroupIpAddressTypeEnum]
ReadPrec TargetGroupIpAddressTypeEnum
Int -> ReadS TargetGroupIpAddressTypeEnum
ReadS [TargetGroupIpAddressTypeEnum]
(Int -> ReadS TargetGroupIpAddressTypeEnum)
-> ReadS [TargetGroupIpAddressTypeEnum]
-> ReadPrec TargetGroupIpAddressTypeEnum
-> ReadPrec [TargetGroupIpAddressTypeEnum]
-> Read TargetGroupIpAddressTypeEnum
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TargetGroupIpAddressTypeEnum]
$creadListPrec :: ReadPrec [TargetGroupIpAddressTypeEnum]
readPrec :: ReadPrec TargetGroupIpAddressTypeEnum
$creadPrec :: ReadPrec TargetGroupIpAddressTypeEnum
readList :: ReadS [TargetGroupIpAddressTypeEnum]
$creadList :: ReadS [TargetGroupIpAddressTypeEnum]
readsPrec :: Int -> ReadS TargetGroupIpAddressTypeEnum
$creadsPrec :: Int -> ReadS TargetGroupIpAddressTypeEnum
Prelude.Read,
TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool
(TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool)
-> (TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool)
-> Eq TargetGroupIpAddressTypeEnum
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool
$c/= :: TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool
== :: TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool
$c== :: TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool
Prelude.Eq,
Eq TargetGroupIpAddressTypeEnum
Eq TargetGroupIpAddressTypeEnum
-> (TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Ordering)
-> (TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool)
-> (TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool)
-> (TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool)
-> (TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool)
-> (TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> TargetGroupIpAddressTypeEnum)
-> (TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> TargetGroupIpAddressTypeEnum)
-> Ord TargetGroupIpAddressTypeEnum
TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool
TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Ordering
TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> TargetGroupIpAddressTypeEnum
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 :: TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> TargetGroupIpAddressTypeEnum
$cmin :: TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> TargetGroupIpAddressTypeEnum
max :: TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> TargetGroupIpAddressTypeEnum
$cmax :: TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> TargetGroupIpAddressTypeEnum
>= :: TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool
$c>= :: TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool
> :: TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool
$c> :: TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool
<= :: TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool
$c<= :: TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool
< :: TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool
$c< :: TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Bool
compare :: TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Ordering
$ccompare :: TargetGroupIpAddressTypeEnum
-> TargetGroupIpAddressTypeEnum -> Ordering
$cp1Ord :: Eq TargetGroupIpAddressTypeEnum
Prelude.Ord,
(forall x.
TargetGroupIpAddressTypeEnum -> Rep TargetGroupIpAddressTypeEnum x)
-> (forall x.
Rep TargetGroupIpAddressTypeEnum x -> TargetGroupIpAddressTypeEnum)
-> Generic TargetGroupIpAddressTypeEnum
forall x.
Rep TargetGroupIpAddressTypeEnum x -> TargetGroupIpAddressTypeEnum
forall x.
TargetGroupIpAddressTypeEnum -> Rep TargetGroupIpAddressTypeEnum x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TargetGroupIpAddressTypeEnum x -> TargetGroupIpAddressTypeEnum
$cfrom :: forall x.
TargetGroupIpAddressTypeEnum -> Rep TargetGroupIpAddressTypeEnum x
Prelude.Generic
)
deriving newtype
( Int -> TargetGroupIpAddressTypeEnum -> Int
TargetGroupIpAddressTypeEnum -> Int
(Int -> TargetGroupIpAddressTypeEnum -> Int)
-> (TargetGroupIpAddressTypeEnum -> Int)
-> Hashable TargetGroupIpAddressTypeEnum
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TargetGroupIpAddressTypeEnum -> Int
$chash :: TargetGroupIpAddressTypeEnum -> Int
hashWithSalt :: Int -> TargetGroupIpAddressTypeEnum -> Int
$chashWithSalt :: Int -> TargetGroupIpAddressTypeEnum -> Int
Prelude.Hashable,
TargetGroupIpAddressTypeEnum -> ()
(TargetGroupIpAddressTypeEnum -> ())
-> NFData TargetGroupIpAddressTypeEnum
forall a. (a -> ()) -> NFData a
rnf :: TargetGroupIpAddressTypeEnum -> ()
$crnf :: TargetGroupIpAddressTypeEnum -> ()
Prelude.NFData,
Text -> Either String TargetGroupIpAddressTypeEnum
(Text -> Either String TargetGroupIpAddressTypeEnum)
-> FromText TargetGroupIpAddressTypeEnum
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TargetGroupIpAddressTypeEnum
$cfromText :: Text -> Either String TargetGroupIpAddressTypeEnum
Core.FromText,
TargetGroupIpAddressTypeEnum -> Text
(TargetGroupIpAddressTypeEnum -> Text)
-> ToText TargetGroupIpAddressTypeEnum
forall a. (a -> Text) -> ToText a
toText :: TargetGroupIpAddressTypeEnum -> Text
$ctoText :: TargetGroupIpAddressTypeEnum -> Text
Core.ToText,
TargetGroupIpAddressTypeEnum -> ByteString
(TargetGroupIpAddressTypeEnum -> ByteString)
-> ToByteString TargetGroupIpAddressTypeEnum
forall a. (a -> ByteString) -> ToByteString a
toBS :: TargetGroupIpAddressTypeEnum -> ByteString
$ctoBS :: TargetGroupIpAddressTypeEnum -> ByteString
Core.ToByteString,
TargetGroupIpAddressTypeEnum -> ByteStringBuilder
(TargetGroupIpAddressTypeEnum -> ByteStringBuilder)
-> ToLog TargetGroupIpAddressTypeEnum
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TargetGroupIpAddressTypeEnum -> ByteStringBuilder
$cbuild :: TargetGroupIpAddressTypeEnum -> ByteStringBuilder
Core.ToLog,
HeaderName -> TargetGroupIpAddressTypeEnum -> [Header]
(HeaderName -> TargetGroupIpAddressTypeEnum -> [Header])
-> ToHeader TargetGroupIpAddressTypeEnum
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TargetGroupIpAddressTypeEnum -> [Header]
$ctoHeader :: HeaderName -> TargetGroupIpAddressTypeEnum -> [Header]
Core.ToHeader,
TargetGroupIpAddressTypeEnum -> QueryString
(TargetGroupIpAddressTypeEnum -> QueryString)
-> ToQuery TargetGroupIpAddressTypeEnum
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TargetGroupIpAddressTypeEnum -> QueryString
$ctoQuery :: TargetGroupIpAddressTypeEnum -> QueryString
Core.ToQuery,
Value -> Parser [TargetGroupIpAddressTypeEnum]
Value -> Parser TargetGroupIpAddressTypeEnum
(Value -> Parser TargetGroupIpAddressTypeEnum)
-> (Value -> Parser [TargetGroupIpAddressTypeEnum])
-> FromJSON TargetGroupIpAddressTypeEnum
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TargetGroupIpAddressTypeEnum]
$cparseJSONList :: Value -> Parser [TargetGroupIpAddressTypeEnum]
parseJSON :: Value -> Parser TargetGroupIpAddressTypeEnum
$cparseJSON :: Value -> Parser TargetGroupIpAddressTypeEnum
Core.FromJSON,
FromJSONKeyFunction [TargetGroupIpAddressTypeEnum]
FromJSONKeyFunction TargetGroupIpAddressTypeEnum
FromJSONKeyFunction TargetGroupIpAddressTypeEnum
-> FromJSONKeyFunction [TargetGroupIpAddressTypeEnum]
-> FromJSONKey TargetGroupIpAddressTypeEnum
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TargetGroupIpAddressTypeEnum]
$cfromJSONKeyList :: FromJSONKeyFunction [TargetGroupIpAddressTypeEnum]
fromJSONKey :: FromJSONKeyFunction TargetGroupIpAddressTypeEnum
$cfromJSONKey :: FromJSONKeyFunction TargetGroupIpAddressTypeEnum
Core.FromJSONKey,
[TargetGroupIpAddressTypeEnum] -> Encoding
[TargetGroupIpAddressTypeEnum] -> Value
TargetGroupIpAddressTypeEnum -> Encoding
TargetGroupIpAddressTypeEnum -> Value
(TargetGroupIpAddressTypeEnum -> Value)
-> (TargetGroupIpAddressTypeEnum -> Encoding)
-> ([TargetGroupIpAddressTypeEnum] -> Value)
-> ([TargetGroupIpAddressTypeEnum] -> Encoding)
-> ToJSON TargetGroupIpAddressTypeEnum
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TargetGroupIpAddressTypeEnum] -> Encoding
$ctoEncodingList :: [TargetGroupIpAddressTypeEnum] -> Encoding
toJSONList :: [TargetGroupIpAddressTypeEnum] -> Value
$ctoJSONList :: [TargetGroupIpAddressTypeEnum] -> Value
toEncoding :: TargetGroupIpAddressTypeEnum -> Encoding
$ctoEncoding :: TargetGroupIpAddressTypeEnum -> Encoding
toJSON :: TargetGroupIpAddressTypeEnum -> Value
$ctoJSON :: TargetGroupIpAddressTypeEnum -> Value
Core.ToJSON,
ToJSONKeyFunction [TargetGroupIpAddressTypeEnum]
ToJSONKeyFunction TargetGroupIpAddressTypeEnum
ToJSONKeyFunction TargetGroupIpAddressTypeEnum
-> ToJSONKeyFunction [TargetGroupIpAddressTypeEnum]
-> ToJSONKey TargetGroupIpAddressTypeEnum
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TargetGroupIpAddressTypeEnum]
$ctoJSONKeyList :: ToJSONKeyFunction [TargetGroupIpAddressTypeEnum]
toJSONKey :: ToJSONKeyFunction TargetGroupIpAddressTypeEnum
$ctoJSONKey :: ToJSONKeyFunction TargetGroupIpAddressTypeEnum
Core.ToJSONKey,
[Node] -> Either String TargetGroupIpAddressTypeEnum
([Node] -> Either String TargetGroupIpAddressTypeEnum)
-> FromXML TargetGroupIpAddressTypeEnum
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TargetGroupIpAddressTypeEnum
$cparseXML :: [Node] -> Either String TargetGroupIpAddressTypeEnum
Core.FromXML,
TargetGroupIpAddressTypeEnum -> XML
(TargetGroupIpAddressTypeEnum -> XML)
-> ToXML TargetGroupIpAddressTypeEnum
forall a. (a -> XML) -> ToXML a
toXML :: TargetGroupIpAddressTypeEnum -> XML
$ctoXML :: TargetGroupIpAddressTypeEnum -> XML
Core.ToXML
)
pattern TargetGroupIpAddressTypeEnum_Ipv4 :: TargetGroupIpAddressTypeEnum
pattern $bTargetGroupIpAddressTypeEnum_Ipv4 :: TargetGroupIpAddressTypeEnum
$mTargetGroupIpAddressTypeEnum_Ipv4 :: forall r.
TargetGroupIpAddressTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
TargetGroupIpAddressTypeEnum_Ipv4 = TargetGroupIpAddressTypeEnum' "ipv4"
pattern TargetGroupIpAddressTypeEnum_Ipv6 :: TargetGroupIpAddressTypeEnum
pattern $bTargetGroupIpAddressTypeEnum_Ipv6 :: TargetGroupIpAddressTypeEnum
$mTargetGroupIpAddressTypeEnum_Ipv6 :: forall r.
TargetGroupIpAddressTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
TargetGroupIpAddressTypeEnum_Ipv6 = TargetGroupIpAddressTypeEnum' "ipv6"
{-# COMPLETE
TargetGroupIpAddressTypeEnum_Ipv4,
TargetGroupIpAddressTypeEnum_Ipv6,
TargetGroupIpAddressTypeEnum'
#-}