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