{-# 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.ExecutionMode
-- 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.ExecutionMode
  ( ExecutionMode
      ( ..,
        ExecutionMode_Auto,
        ExecutionMode_Interactive
      ),
  )
where

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

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

pattern ExecutionMode_Auto :: ExecutionMode
pattern $bExecutionMode_Auto :: ExecutionMode
$mExecutionMode_Auto :: forall {r}. ExecutionMode -> ((# #) -> r) -> ((# #) -> r) -> r
ExecutionMode_Auto = ExecutionMode' "Auto"

pattern ExecutionMode_Interactive :: ExecutionMode
pattern $bExecutionMode_Interactive :: ExecutionMode
$mExecutionMode_Interactive :: forall {r}. ExecutionMode -> ((# #) -> r) -> ((# #) -> r) -> r
ExecutionMode_Interactive = ExecutionMode' "Interactive"

{-# COMPLETE
  ExecutionMode_Auto,
  ExecutionMode_Interactive,
  ExecutionMode'
  #-}