{-# 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.AutomationType
-- 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.AutomationType
  ( AutomationType
      ( ..,
        AutomationType_CrossAccount,
        AutomationType_Local
      ),
  )
where

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

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

pattern AutomationType_CrossAccount :: AutomationType
pattern $bAutomationType_CrossAccount :: AutomationType
$mAutomationType_CrossAccount :: forall r. AutomationType -> (Void# -> r) -> (Void# -> r) -> r
AutomationType_CrossAccount = AutomationType' "CrossAccount"

pattern AutomationType_Local :: AutomationType
pattern $bAutomationType_Local :: AutomationType
$mAutomationType_Local :: forall r. AutomationType -> (Void# -> r) -> (Void# -> r) -> r
AutomationType_Local = AutomationType' "Local"

{-# COMPLETE
  AutomationType_CrossAccount,
  AutomationType_Local,
  AutomationType'
  #-}