{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype DocumentParameterType = DocumentParameterType'
  { DocumentParameterType -> Text
fromDocumentParameterType ::
      Core.Text
  }
  deriving stock
    ( Int -> DocumentParameterType -> ShowS
[DocumentParameterType] -> ShowS
DocumentParameterType -> String
(Int -> DocumentParameterType -> ShowS)
-> (DocumentParameterType -> String)
-> ([DocumentParameterType] -> ShowS)
-> Show DocumentParameterType
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]
(Int -> ReadS DocumentParameterType)
-> ReadS [DocumentParameterType]
-> ReadPrec DocumentParameterType
-> ReadPrec [DocumentParameterType]
-> Read 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
(DocumentParameterType -> DocumentParameterType -> Bool)
-> (DocumentParameterType -> DocumentParameterType -> Bool)
-> Eq DocumentParameterType
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
Eq DocumentParameterType
-> (DocumentParameterType -> DocumentParameterType -> Ordering)
-> (DocumentParameterType -> DocumentParameterType -> Bool)
-> (DocumentParameterType -> DocumentParameterType -> Bool)
-> (DocumentParameterType -> DocumentParameterType -> Bool)
-> (DocumentParameterType -> DocumentParameterType -> Bool)
-> (DocumentParameterType
    -> DocumentParameterType -> DocumentParameterType)
-> (DocumentParameterType
    -> DocumentParameterType -> DocumentParameterType)
-> Ord 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
$cp1Ord :: Eq DocumentParameterType
Prelude.Ord,
      (forall x. DocumentParameterType -> Rep DocumentParameterType x)
-> (forall x. Rep DocumentParameterType x -> DocumentParameterType)
-> Generic DocumentParameterType
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
    ( Int -> DocumentParameterType -> Int
DocumentParameterType -> Int
(Int -> DocumentParameterType -> Int)
-> (DocumentParameterType -> Int) -> Hashable DocumentParameterType
forall 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 -> ()
(DocumentParameterType -> ()) -> NFData DocumentParameterType
forall a. (a -> ()) -> NFData a
rnf :: DocumentParameterType -> ()
$crnf :: DocumentParameterType -> ()
Prelude.NFData,
      Text -> Either String DocumentParameterType
(Text -> Either String DocumentParameterType)
-> FromText DocumentParameterType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DocumentParameterType
$cfromText :: Text -> Either String DocumentParameterType
Core.FromText,
      DocumentParameterType -> Text
(DocumentParameterType -> Text) -> ToText DocumentParameterType
forall a. (a -> Text) -> ToText a
toText :: DocumentParameterType -> Text
$ctoText :: DocumentParameterType -> Text
Core.ToText,
      DocumentParameterType -> ByteString
(DocumentParameterType -> ByteString)
-> ToByteString DocumentParameterType
forall a. (a -> ByteString) -> ToByteString a
toBS :: DocumentParameterType -> ByteString
$ctoBS :: DocumentParameterType -> ByteString
Core.ToByteString,
      DocumentParameterType -> ByteStringBuilder
(DocumentParameterType -> ByteStringBuilder)
-> ToLog DocumentParameterType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DocumentParameterType -> ByteStringBuilder
$cbuild :: DocumentParameterType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DocumentParameterType -> [Header]
(HeaderName -> DocumentParameterType -> [Header])
-> ToHeader DocumentParameterType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DocumentParameterType -> [Header]
$ctoHeader :: HeaderName -> DocumentParameterType -> [Header]
Core.ToHeader,
      DocumentParameterType -> QueryString
(DocumentParameterType -> QueryString)
-> ToQuery DocumentParameterType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DocumentParameterType -> QueryString
$ctoQuery :: DocumentParameterType -> QueryString
Core.ToQuery,
      Value -> Parser [DocumentParameterType]
Value -> Parser DocumentParameterType
(Value -> Parser DocumentParameterType)
-> (Value -> Parser [DocumentParameterType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [DocumentParameterType]
FromJSONKeyFunction DocumentParameterType
FromJSONKeyFunction DocumentParameterType
-> FromJSONKeyFunction [DocumentParameterType]
-> FromJSONKey DocumentParameterType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DocumentParameterType]
$cfromJSONKeyList :: FromJSONKeyFunction [DocumentParameterType]
fromJSONKey :: FromJSONKeyFunction DocumentParameterType
$cfromJSONKey :: FromJSONKeyFunction DocumentParameterType
Core.FromJSONKey,
      [DocumentParameterType] -> Encoding
[DocumentParameterType] -> Value
DocumentParameterType -> Encoding
DocumentParameterType -> Value
(DocumentParameterType -> Value)
-> (DocumentParameterType -> Encoding)
-> ([DocumentParameterType] -> Value)
-> ([DocumentParameterType] -> Encoding)
-> ToJSON DocumentParameterType
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
Core.ToJSON,
      ToJSONKeyFunction [DocumentParameterType]
ToJSONKeyFunction DocumentParameterType
ToJSONKeyFunction DocumentParameterType
-> ToJSONKeyFunction [DocumentParameterType]
-> ToJSONKey DocumentParameterType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DocumentParameterType]
$ctoJSONKeyList :: ToJSONKeyFunction [DocumentParameterType]
toJSONKey :: ToJSONKeyFunction DocumentParameterType
$ctoJSONKey :: ToJSONKeyFunction DocumentParameterType
Core.ToJSONKey,
      [Node] -> Either String DocumentParameterType
([Node] -> Either String DocumentParameterType)
-> FromXML DocumentParameterType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DocumentParameterType
$cparseXML :: [Node] -> Either String DocumentParameterType
Core.FromXML,
      DocumentParameterType -> XML
(DocumentParameterType -> XML) -> ToXML DocumentParameterType
forall a. (a -> XML) -> ToXML a
toXML :: DocumentParameterType -> XML
$ctoXML :: DocumentParameterType -> XML
Core.ToXML
    )

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

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

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