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