{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SSM.Types.DocumentParameterType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SSM.Types.DocumentParameterType
  ( DocumentParameterType
      ( ..,
        DocumentParameterType_String,
        DocumentParameterType_StringList
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern DocumentParameterType_String :: DocumentParameterType
pattern $bDocumentParameterType_String :: DocumentParameterType
$mDocumentParameterType_String :: forall {r}.
DocumentParameterType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentParameterType_String = DocumentParameterType' "String"

pattern DocumentParameterType_StringList :: DocumentParameterType
pattern $bDocumentParameterType_StringList :: DocumentParameterType
$mDocumentParameterType_StringList :: forall {r}.
DocumentParameterType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentParameterType_StringList = DocumentParameterType' "StringList"

{-# COMPLETE
  DocumentParameterType_String,
  DocumentParameterType_StringList,
  DocumentParameterType'
  #-}