{-# 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.CloudWatchEvents.Types.LaunchType
-- 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.CloudWatchEvents.Types.LaunchType
  ( LaunchType
      ( ..,
        LaunchType_EC2,
        LaunchType_EXTERNAL,
        LaunchType_FARGATE
      ),
  )
where

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

newtype LaunchType = LaunchType'
  { LaunchType -> Text
fromLaunchType ::
      Data.Text
  }
  deriving stock
    ( Int -> LaunchType -> ShowS
[LaunchType] -> ShowS
LaunchType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq LaunchType
Int -> LaunchType -> Int
LaunchType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: LaunchType -> ()
$crnf :: LaunchType -> ()
Prelude.NFData,
      Text -> Either String LaunchType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LaunchType
$cfromText :: Text -> Either String LaunchType
Data.FromText,
      LaunchType -> Text
forall a. (a -> Text) -> ToText a
toText :: LaunchType -> Text
$ctoText :: LaunchType -> Text
Data.ToText,
      LaunchType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: LaunchType -> ByteString
$ctoBS :: LaunchType -> ByteString
Data.ToByteString,
      LaunchType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LaunchType -> ByteStringBuilder
$cbuild :: LaunchType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> LaunchType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LaunchType -> [Header]
$ctoHeader :: HeaderName -> LaunchType -> [Header]
Data.ToHeader,
      LaunchType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LaunchType -> QueryString
$ctoQuery :: LaunchType -> QueryString
Data.ToQuery,
      Value -> Parser [LaunchType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [LaunchType]
FromJSONKeyFunction LaunchType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LaunchType]
$cfromJSONKeyList :: FromJSONKeyFunction [LaunchType]
fromJSONKey :: FromJSONKeyFunction LaunchType
$cfromJSONKey :: FromJSONKeyFunction LaunchType
Data.FromJSONKey,
      [LaunchType] -> Encoding
[LaunchType] -> Value
LaunchType -> Encoding
LaunchType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [LaunchType]
ToJSONKeyFunction LaunchType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LaunchType]
$ctoJSONKeyList :: ToJSONKeyFunction [LaunchType]
toJSONKey :: ToJSONKeyFunction LaunchType
$ctoJSONKey :: ToJSONKeyFunction LaunchType
Data.ToJSONKey,
      [Node] -> Either String LaunchType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LaunchType
$cparseXML :: [Node] -> Either String LaunchType
Data.FromXML,
      LaunchType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: LaunchType -> XML
$ctoXML :: LaunchType -> XML
Data.ToXML
    )

pattern LaunchType_EC2 :: LaunchType
pattern $bLaunchType_EC2 :: LaunchType
$mLaunchType_EC2 :: forall {r}. LaunchType -> ((# #) -> r) -> ((# #) -> r) -> r
LaunchType_EC2 = LaunchType' "EC2"

pattern LaunchType_EXTERNAL :: LaunchType
pattern $bLaunchType_EXTERNAL :: LaunchType
$mLaunchType_EXTERNAL :: forall {r}. LaunchType -> ((# #) -> r) -> ((# #) -> r) -> r
LaunchType_EXTERNAL = LaunchType' "EXTERNAL"

pattern LaunchType_FARGATE :: LaunchType
pattern $bLaunchType_FARGATE :: LaunchType
$mLaunchType_FARGATE :: forall {r}. LaunchType -> ((# #) -> r) -> ((# #) -> r) -> r
LaunchType_FARGATE = LaunchType' "FARGATE"

{-# COMPLETE
  LaunchType_EC2,
  LaunchType_EXTERNAL,
  LaunchType_FARGATE,
  LaunchType'
  #-}