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