{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CodeDeploy.Types.InstanceAction
( InstanceAction
( ..,
InstanceAction_KEEP_ALIVE,
InstanceAction_TERMINATE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype InstanceAction = InstanceAction'
{ InstanceAction -> Text
fromInstanceAction ::
Core.Text
}
deriving stock
( Int -> InstanceAction -> ShowS
[InstanceAction] -> ShowS
InstanceAction -> String
(Int -> InstanceAction -> ShowS)
-> (InstanceAction -> String)
-> ([InstanceAction] -> ShowS)
-> Show InstanceAction
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InstanceAction] -> ShowS
$cshowList :: [InstanceAction] -> ShowS
show :: InstanceAction -> String
$cshow :: InstanceAction -> String
showsPrec :: Int -> InstanceAction -> ShowS
$cshowsPrec :: Int -> InstanceAction -> ShowS
Prelude.Show,
ReadPrec [InstanceAction]
ReadPrec InstanceAction
Int -> ReadS InstanceAction
ReadS [InstanceAction]
(Int -> ReadS InstanceAction)
-> ReadS [InstanceAction]
-> ReadPrec InstanceAction
-> ReadPrec [InstanceAction]
-> Read InstanceAction
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InstanceAction]
$creadListPrec :: ReadPrec [InstanceAction]
readPrec :: ReadPrec InstanceAction
$creadPrec :: ReadPrec InstanceAction
readList :: ReadS [InstanceAction]
$creadList :: ReadS [InstanceAction]
readsPrec :: Int -> ReadS InstanceAction
$creadsPrec :: Int -> ReadS InstanceAction
Prelude.Read,
InstanceAction -> InstanceAction -> Bool
(InstanceAction -> InstanceAction -> Bool)
-> (InstanceAction -> InstanceAction -> Bool) -> Eq InstanceAction
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InstanceAction -> InstanceAction -> Bool
$c/= :: InstanceAction -> InstanceAction -> Bool
== :: InstanceAction -> InstanceAction -> Bool
$c== :: InstanceAction -> InstanceAction -> Bool
Prelude.Eq,
Eq InstanceAction
Eq InstanceAction
-> (InstanceAction -> InstanceAction -> Ordering)
-> (InstanceAction -> InstanceAction -> Bool)
-> (InstanceAction -> InstanceAction -> Bool)
-> (InstanceAction -> InstanceAction -> Bool)
-> (InstanceAction -> InstanceAction -> Bool)
-> (InstanceAction -> InstanceAction -> InstanceAction)
-> (InstanceAction -> InstanceAction -> InstanceAction)
-> Ord InstanceAction
InstanceAction -> InstanceAction -> Bool
InstanceAction -> InstanceAction -> Ordering
InstanceAction -> InstanceAction -> InstanceAction
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 :: InstanceAction -> InstanceAction -> InstanceAction
$cmin :: InstanceAction -> InstanceAction -> InstanceAction
max :: InstanceAction -> InstanceAction -> InstanceAction
$cmax :: InstanceAction -> InstanceAction -> InstanceAction
>= :: InstanceAction -> InstanceAction -> Bool
$c>= :: InstanceAction -> InstanceAction -> Bool
> :: InstanceAction -> InstanceAction -> Bool
$c> :: InstanceAction -> InstanceAction -> Bool
<= :: InstanceAction -> InstanceAction -> Bool
$c<= :: InstanceAction -> InstanceAction -> Bool
< :: InstanceAction -> InstanceAction -> Bool
$c< :: InstanceAction -> InstanceAction -> Bool
compare :: InstanceAction -> InstanceAction -> Ordering
$ccompare :: InstanceAction -> InstanceAction -> Ordering
$cp1Ord :: Eq InstanceAction
Prelude.Ord,
(forall x. InstanceAction -> Rep InstanceAction x)
-> (forall x. Rep InstanceAction x -> InstanceAction)
-> Generic InstanceAction
forall x. Rep InstanceAction x -> InstanceAction
forall x. InstanceAction -> Rep InstanceAction x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep InstanceAction x -> InstanceAction
$cfrom :: forall x. InstanceAction -> Rep InstanceAction x
Prelude.Generic
)
deriving newtype
( Int -> InstanceAction -> Int
InstanceAction -> Int
(Int -> InstanceAction -> Int)
-> (InstanceAction -> Int) -> Hashable InstanceAction
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: InstanceAction -> Int
$chash :: InstanceAction -> Int
hashWithSalt :: Int -> InstanceAction -> Int
$chashWithSalt :: Int -> InstanceAction -> Int
Prelude.Hashable,
InstanceAction -> ()
(InstanceAction -> ()) -> NFData InstanceAction
forall a. (a -> ()) -> NFData a
rnf :: InstanceAction -> ()
$crnf :: InstanceAction -> ()
Prelude.NFData,
Text -> Either String InstanceAction
(Text -> Either String InstanceAction) -> FromText InstanceAction
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InstanceAction
$cfromText :: Text -> Either String InstanceAction
Core.FromText,
InstanceAction -> Text
(InstanceAction -> Text) -> ToText InstanceAction
forall a. (a -> Text) -> ToText a
toText :: InstanceAction -> Text
$ctoText :: InstanceAction -> Text
Core.ToText,
InstanceAction -> ByteString
(InstanceAction -> ByteString) -> ToByteString InstanceAction
forall a. (a -> ByteString) -> ToByteString a
toBS :: InstanceAction -> ByteString
$ctoBS :: InstanceAction -> ByteString
Core.ToByteString,
InstanceAction -> ByteStringBuilder
(InstanceAction -> ByteStringBuilder) -> ToLog InstanceAction
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InstanceAction -> ByteStringBuilder
$cbuild :: InstanceAction -> ByteStringBuilder
Core.ToLog,
HeaderName -> InstanceAction -> [Header]
(HeaderName -> InstanceAction -> [Header])
-> ToHeader InstanceAction
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InstanceAction -> [Header]
$ctoHeader :: HeaderName -> InstanceAction -> [Header]
Core.ToHeader,
InstanceAction -> QueryString
(InstanceAction -> QueryString) -> ToQuery InstanceAction
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InstanceAction -> QueryString
$ctoQuery :: InstanceAction -> QueryString
Core.ToQuery,
Value -> Parser [InstanceAction]
Value -> Parser InstanceAction
(Value -> Parser InstanceAction)
-> (Value -> Parser [InstanceAction]) -> FromJSON InstanceAction
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [InstanceAction]
$cparseJSONList :: Value -> Parser [InstanceAction]
parseJSON :: Value -> Parser InstanceAction
$cparseJSON :: Value -> Parser InstanceAction
Core.FromJSON,
FromJSONKeyFunction [InstanceAction]
FromJSONKeyFunction InstanceAction
FromJSONKeyFunction InstanceAction
-> FromJSONKeyFunction [InstanceAction]
-> FromJSONKey InstanceAction
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InstanceAction]
$cfromJSONKeyList :: FromJSONKeyFunction [InstanceAction]
fromJSONKey :: FromJSONKeyFunction InstanceAction
$cfromJSONKey :: FromJSONKeyFunction InstanceAction
Core.FromJSONKey,
[InstanceAction] -> Encoding
[InstanceAction] -> Value
InstanceAction -> Encoding
InstanceAction -> Value
(InstanceAction -> Value)
-> (InstanceAction -> Encoding)
-> ([InstanceAction] -> Value)
-> ([InstanceAction] -> Encoding)
-> ToJSON InstanceAction
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [InstanceAction] -> Encoding
$ctoEncodingList :: [InstanceAction] -> Encoding
toJSONList :: [InstanceAction] -> Value
$ctoJSONList :: [InstanceAction] -> Value
toEncoding :: InstanceAction -> Encoding
$ctoEncoding :: InstanceAction -> Encoding
toJSON :: InstanceAction -> Value
$ctoJSON :: InstanceAction -> Value
Core.ToJSON,
ToJSONKeyFunction [InstanceAction]
ToJSONKeyFunction InstanceAction
ToJSONKeyFunction InstanceAction
-> ToJSONKeyFunction [InstanceAction] -> ToJSONKey InstanceAction
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InstanceAction]
$ctoJSONKeyList :: ToJSONKeyFunction [InstanceAction]
toJSONKey :: ToJSONKeyFunction InstanceAction
$ctoJSONKey :: ToJSONKeyFunction InstanceAction
Core.ToJSONKey,
[Node] -> Either String InstanceAction
([Node] -> Either String InstanceAction) -> FromXML InstanceAction
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InstanceAction
$cparseXML :: [Node] -> Either String InstanceAction
Core.FromXML,
InstanceAction -> XML
(InstanceAction -> XML) -> ToXML InstanceAction
forall a. (a -> XML) -> ToXML a
toXML :: InstanceAction -> XML
$ctoXML :: InstanceAction -> XML
Core.ToXML
)
pattern InstanceAction_KEEP_ALIVE :: InstanceAction
pattern $bInstanceAction_KEEP_ALIVE :: InstanceAction
$mInstanceAction_KEEP_ALIVE :: forall r. InstanceAction -> (Void# -> r) -> (Void# -> r) -> r
InstanceAction_KEEP_ALIVE = InstanceAction' "KEEP_ALIVE"
pattern InstanceAction_TERMINATE :: InstanceAction
pattern $bInstanceAction_TERMINATE :: InstanceAction
$mInstanceAction_TERMINATE :: forall r. InstanceAction -> (Void# -> r) -> (Void# -> r) -> r
InstanceAction_TERMINATE = InstanceAction' "TERMINATE"
{-# COMPLETE
InstanceAction_KEEP_ALIVE,
InstanceAction_TERMINATE,
InstanceAction'
#-}