{-# 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.AutomationSubtype
-- 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.AutomationSubtype
  ( AutomationSubtype
      ( ..,
        AutomationSubtype_ChangeRequest
      ),
  )
where

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

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

pattern AutomationSubtype_ChangeRequest :: AutomationSubtype
pattern $bAutomationSubtype_ChangeRequest :: AutomationSubtype
$mAutomationSubtype_ChangeRequest :: forall {r}. AutomationSubtype -> ((# #) -> r) -> ((# #) -> r) -> r
AutomationSubtype_ChangeRequest = AutomationSubtype' "ChangeRequest"

{-# COMPLETE
  AutomationSubtype_ChangeRequest,
  AutomationSubtype'
  #-}