{-# 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.DocumentType
-- 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.DocumentType
  ( DocumentType
      ( ..,
        DocumentType_ApplicationConfiguration,
        DocumentType_ApplicationConfigurationSchema,
        DocumentType_Automation,
        DocumentType_Automation_ChangeTemplate,
        DocumentType_ChangeCalendar,
        DocumentType_Command,
        DocumentType_DeploymentStrategy,
        DocumentType_Package,
        DocumentType_Policy,
        DocumentType_ProblemAnalysis,
        DocumentType_ProblemAnalysisTemplate,
        DocumentType_Session
      ),
  )
where

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

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

pattern DocumentType_ApplicationConfiguration :: DocumentType
pattern $bDocumentType_ApplicationConfiguration :: DocumentType
$mDocumentType_ApplicationConfiguration :: forall r. DocumentType -> (Void# -> r) -> (Void# -> r) -> r
DocumentType_ApplicationConfiguration = DocumentType' "ApplicationConfiguration"

pattern DocumentType_ApplicationConfigurationSchema :: DocumentType
pattern $bDocumentType_ApplicationConfigurationSchema :: DocumentType
$mDocumentType_ApplicationConfigurationSchema :: forall r. DocumentType -> (Void# -> r) -> (Void# -> r) -> r
DocumentType_ApplicationConfigurationSchema = DocumentType' "ApplicationConfigurationSchema"

pattern DocumentType_Automation :: DocumentType
pattern $bDocumentType_Automation :: DocumentType
$mDocumentType_Automation :: forall r. DocumentType -> (Void# -> r) -> (Void# -> r) -> r
DocumentType_Automation = DocumentType' "Automation"

pattern DocumentType_Automation_ChangeTemplate :: DocumentType
pattern $bDocumentType_Automation_ChangeTemplate :: DocumentType
$mDocumentType_Automation_ChangeTemplate :: forall r. DocumentType -> (Void# -> r) -> (Void# -> r) -> r
DocumentType_Automation_ChangeTemplate = DocumentType' "Automation.ChangeTemplate"

pattern DocumentType_ChangeCalendar :: DocumentType
pattern $bDocumentType_ChangeCalendar :: DocumentType
$mDocumentType_ChangeCalendar :: forall r. DocumentType -> (Void# -> r) -> (Void# -> r) -> r
DocumentType_ChangeCalendar = DocumentType' "ChangeCalendar"

pattern DocumentType_Command :: DocumentType
pattern $bDocumentType_Command :: DocumentType
$mDocumentType_Command :: forall r. DocumentType -> (Void# -> r) -> (Void# -> r) -> r
DocumentType_Command = DocumentType' "Command"

pattern DocumentType_DeploymentStrategy :: DocumentType
pattern $bDocumentType_DeploymentStrategy :: DocumentType
$mDocumentType_DeploymentStrategy :: forall r. DocumentType -> (Void# -> r) -> (Void# -> r) -> r
DocumentType_DeploymentStrategy = DocumentType' "DeploymentStrategy"

pattern DocumentType_Package :: DocumentType
pattern $bDocumentType_Package :: DocumentType
$mDocumentType_Package :: forall r. DocumentType -> (Void# -> r) -> (Void# -> r) -> r
DocumentType_Package = DocumentType' "Package"

pattern DocumentType_Policy :: DocumentType
pattern $bDocumentType_Policy :: DocumentType
$mDocumentType_Policy :: forall r. DocumentType -> (Void# -> r) -> (Void# -> r) -> r
DocumentType_Policy = DocumentType' "Policy"

pattern DocumentType_ProblemAnalysis :: DocumentType
pattern $bDocumentType_ProblemAnalysis :: DocumentType
$mDocumentType_ProblemAnalysis :: forall r. DocumentType -> (Void# -> r) -> (Void# -> r) -> r
DocumentType_ProblemAnalysis = DocumentType' "ProblemAnalysis"

pattern DocumentType_ProblemAnalysisTemplate :: DocumentType
pattern $bDocumentType_ProblemAnalysisTemplate :: DocumentType
$mDocumentType_ProblemAnalysisTemplate :: forall r. DocumentType -> (Void# -> r) -> (Void# -> r) -> r
DocumentType_ProblemAnalysisTemplate = DocumentType' "ProblemAnalysisTemplate"

pattern DocumentType_Session :: DocumentType
pattern $bDocumentType_Session :: DocumentType
$mDocumentType_Session :: forall r. DocumentType -> (Void# -> r) -> (Void# -> r) -> r
DocumentType_Session = DocumentType' "Session"

{-# COMPLETE
  DocumentType_ApplicationConfiguration,
  DocumentType_ApplicationConfigurationSchema,
  DocumentType_Automation,
  DocumentType_Automation_ChangeTemplate,
  DocumentType_ChangeCalendar,
  DocumentType_Command,
  DocumentType_DeploymentStrategy,
  DocumentType_Package,
  DocumentType_Policy,
  DocumentType_ProblemAnalysis,
  DocumentType_ProblemAnalysisTemplate,
  DocumentType_Session,
  DocumentType'
  #-}