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