{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.SSM.Types.ExecutionMode
( ExecutionMode
( ..,
ExecutionMode_Auto,
ExecutionMode_Interactive
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ExecutionMode = ExecutionMode'
{ ExecutionMode -> Text
fromExecutionMode ::
Core.Text
}
deriving stock
( Int -> ExecutionMode -> ShowS
[ExecutionMode] -> ShowS
ExecutionMode -> String
(Int -> ExecutionMode -> ShowS)
-> (ExecutionMode -> String)
-> ([ExecutionMode] -> ShowS)
-> Show ExecutionMode
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]
(Int -> ReadS ExecutionMode)
-> ReadS [ExecutionMode]
-> ReadPrec ExecutionMode
-> ReadPrec [ExecutionMode]
-> Read 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
(ExecutionMode -> ExecutionMode -> Bool)
-> (ExecutionMode -> ExecutionMode -> Bool) -> Eq ExecutionMode
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
Eq ExecutionMode
-> (ExecutionMode -> ExecutionMode -> Ordering)
-> (ExecutionMode -> ExecutionMode -> Bool)
-> (ExecutionMode -> ExecutionMode -> Bool)
-> (ExecutionMode -> ExecutionMode -> Bool)
-> (ExecutionMode -> ExecutionMode -> Bool)
-> (ExecutionMode -> ExecutionMode -> ExecutionMode)
-> (ExecutionMode -> ExecutionMode -> ExecutionMode)
-> Ord 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
$cp1Ord :: Eq ExecutionMode
Prelude.Ord,
(forall x. ExecutionMode -> Rep ExecutionMode x)
-> (forall x. Rep ExecutionMode x -> ExecutionMode)
-> Generic ExecutionMode
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
( Int -> ExecutionMode -> Int
ExecutionMode -> Int
(Int -> ExecutionMode -> Int)
-> (ExecutionMode -> Int) -> Hashable ExecutionMode
forall 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 -> ()
(ExecutionMode -> ()) -> NFData ExecutionMode
forall a. (a -> ()) -> NFData a
rnf :: ExecutionMode -> ()
$crnf :: ExecutionMode -> ()
Prelude.NFData,
Text -> Either String ExecutionMode
(Text -> Either String ExecutionMode) -> FromText ExecutionMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ExecutionMode
$cfromText :: Text -> Either String ExecutionMode
Core.FromText,
ExecutionMode -> Text
(ExecutionMode -> Text) -> ToText ExecutionMode
forall a. (a -> Text) -> ToText a
toText :: ExecutionMode -> Text
$ctoText :: ExecutionMode -> Text
Core.ToText,
ExecutionMode -> ByteString
(ExecutionMode -> ByteString) -> ToByteString ExecutionMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: ExecutionMode -> ByteString
$ctoBS :: ExecutionMode -> ByteString
Core.ToByteString,
ExecutionMode -> ByteStringBuilder
(ExecutionMode -> ByteStringBuilder) -> ToLog ExecutionMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ExecutionMode -> ByteStringBuilder
$cbuild :: ExecutionMode -> ByteStringBuilder
Core.ToLog,
HeaderName -> ExecutionMode -> [Header]
(HeaderName -> ExecutionMode -> [Header]) -> ToHeader ExecutionMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ExecutionMode -> [Header]
$ctoHeader :: HeaderName -> ExecutionMode -> [Header]
Core.ToHeader,
ExecutionMode -> QueryString
(ExecutionMode -> QueryString) -> ToQuery ExecutionMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ExecutionMode -> QueryString
$ctoQuery :: ExecutionMode -> QueryString
Core.ToQuery,
Value -> Parser [ExecutionMode]
Value -> Parser ExecutionMode
(Value -> Parser ExecutionMode)
-> (Value -> Parser [ExecutionMode]) -> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [ExecutionMode]
FromJSONKeyFunction ExecutionMode
FromJSONKeyFunction ExecutionMode
-> FromJSONKeyFunction [ExecutionMode] -> FromJSONKey ExecutionMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ExecutionMode]
$cfromJSONKeyList :: FromJSONKeyFunction [ExecutionMode]
fromJSONKey :: FromJSONKeyFunction ExecutionMode
$cfromJSONKey :: FromJSONKeyFunction ExecutionMode
Core.FromJSONKey,
[ExecutionMode] -> Encoding
[ExecutionMode] -> Value
ExecutionMode -> Encoding
ExecutionMode -> Value
(ExecutionMode -> Value)
-> (ExecutionMode -> Encoding)
-> ([ExecutionMode] -> Value)
-> ([ExecutionMode] -> Encoding)
-> ToJSON ExecutionMode
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
Core.ToJSON,
ToJSONKeyFunction [ExecutionMode]
ToJSONKeyFunction ExecutionMode
ToJSONKeyFunction ExecutionMode
-> ToJSONKeyFunction [ExecutionMode] -> ToJSONKey ExecutionMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ExecutionMode]
$ctoJSONKeyList :: ToJSONKeyFunction [ExecutionMode]
toJSONKey :: ToJSONKeyFunction ExecutionMode
$ctoJSONKey :: ToJSONKeyFunction ExecutionMode
Core.ToJSONKey,
[Node] -> Either String ExecutionMode
([Node] -> Either String ExecutionMode) -> FromXML ExecutionMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ExecutionMode
$cparseXML :: [Node] -> Either String ExecutionMode
Core.FromXML,
ExecutionMode -> XML
(ExecutionMode -> XML) -> ToXML ExecutionMode
forall a. (a -> XML) -> ToXML a
toXML :: ExecutionMode -> XML
$ctoXML :: ExecutionMode -> XML
Core.ToXML
)
pattern ExecutionMode_Auto :: ExecutionMode
pattern $bExecutionMode_Auto :: ExecutionMode
$mExecutionMode_Auto :: forall r. ExecutionMode -> (Void# -> r) -> (Void# -> r) -> r
ExecutionMode_Auto = ExecutionMode' "Auto"
pattern ExecutionMode_Interactive :: ExecutionMode
pattern $bExecutionMode_Interactive :: ExecutionMode
$mExecutionMode_Interactive :: forall r. ExecutionMode -> (Void# -> r) -> (Void# -> r) -> r
ExecutionMode_Interactive = ExecutionMode' "Interactive"
{-# COMPLETE
ExecutionMode_Auto,
ExecutionMode_Interactive,
ExecutionMode'
#-}