{-# 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.MGN.Types.SsmDocumentType
-- 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.MGN.Types.SsmDocumentType
  ( SsmDocumentType
      ( ..,
        SsmDocumentType_AUTOMATION,
        SsmDocumentType_COMMAND
      ),
  )
where

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

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

pattern SsmDocumentType_AUTOMATION :: SsmDocumentType
pattern $bSsmDocumentType_AUTOMATION :: SsmDocumentType
$mSsmDocumentType_AUTOMATION :: forall {r}. SsmDocumentType -> ((# #) -> r) -> ((# #) -> r) -> r
SsmDocumentType_AUTOMATION = SsmDocumentType' "AUTOMATION"

pattern SsmDocumentType_COMMAND :: SsmDocumentType
pattern $bSsmDocumentType_COMMAND :: SsmDocumentType
$mSsmDocumentType_COMMAND :: forall {r}. SsmDocumentType -> ((# #) -> r) -> ((# #) -> r) -> r
SsmDocumentType_COMMAND = SsmDocumentType' "COMMAND"

{-# COMPLETE
  SsmDocumentType_AUTOMATION,
  SsmDocumentType_COMMAND,
  SsmDocumentType'
  #-}