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