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