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

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

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

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

{-# COMPLETE
  AutomationSubtype_ChangeRequest,
  AutomationSubtype'
  #-}