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