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