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