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