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