{-# 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.Batch.Types.OrchestrationType
-- 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.Batch.Types.OrchestrationType
  ( OrchestrationType
      ( ..,
        OrchestrationType_ECS,
        OrchestrationType_EKS
      ),
  )
where

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

newtype OrchestrationType = OrchestrationType'
  { OrchestrationType -> Text
fromOrchestrationType ::
      Data.Text
  }
  deriving stock
    ( Int -> OrchestrationType -> ShowS
[OrchestrationType] -> ShowS
OrchestrationType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OrchestrationType] -> ShowS
$cshowList :: [OrchestrationType] -> ShowS
show :: OrchestrationType -> String
$cshow :: OrchestrationType -> String
showsPrec :: Int -> OrchestrationType -> ShowS
$cshowsPrec :: Int -> OrchestrationType -> ShowS
Prelude.Show,
      ReadPrec [OrchestrationType]
ReadPrec OrchestrationType
Int -> ReadS OrchestrationType
ReadS [OrchestrationType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OrchestrationType]
$creadListPrec :: ReadPrec [OrchestrationType]
readPrec :: ReadPrec OrchestrationType
$creadPrec :: ReadPrec OrchestrationType
readList :: ReadS [OrchestrationType]
$creadList :: ReadS [OrchestrationType]
readsPrec :: Int -> ReadS OrchestrationType
$creadsPrec :: Int -> ReadS OrchestrationType
Prelude.Read,
      OrchestrationType -> OrchestrationType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OrchestrationType -> OrchestrationType -> Bool
$c/= :: OrchestrationType -> OrchestrationType -> Bool
== :: OrchestrationType -> OrchestrationType -> Bool
$c== :: OrchestrationType -> OrchestrationType -> Bool
Prelude.Eq,
      Eq OrchestrationType
OrchestrationType -> OrchestrationType -> Bool
OrchestrationType -> OrchestrationType -> Ordering
OrchestrationType -> OrchestrationType -> OrchestrationType
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 :: OrchestrationType -> OrchestrationType -> OrchestrationType
$cmin :: OrchestrationType -> OrchestrationType -> OrchestrationType
max :: OrchestrationType -> OrchestrationType -> OrchestrationType
$cmax :: OrchestrationType -> OrchestrationType -> OrchestrationType
>= :: OrchestrationType -> OrchestrationType -> Bool
$c>= :: OrchestrationType -> OrchestrationType -> Bool
> :: OrchestrationType -> OrchestrationType -> Bool
$c> :: OrchestrationType -> OrchestrationType -> Bool
<= :: OrchestrationType -> OrchestrationType -> Bool
$c<= :: OrchestrationType -> OrchestrationType -> Bool
< :: OrchestrationType -> OrchestrationType -> Bool
$c< :: OrchestrationType -> OrchestrationType -> Bool
compare :: OrchestrationType -> OrchestrationType -> Ordering
$ccompare :: OrchestrationType -> OrchestrationType -> Ordering
Prelude.Ord,
      forall x. Rep OrchestrationType x -> OrchestrationType
forall x. OrchestrationType -> Rep OrchestrationType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep OrchestrationType x -> OrchestrationType
$cfrom :: forall x. OrchestrationType -> Rep OrchestrationType x
Prelude.Generic
    )
  deriving newtype
    ( Eq OrchestrationType
Int -> OrchestrationType -> Int
OrchestrationType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: OrchestrationType -> Int
$chash :: OrchestrationType -> Int
hashWithSalt :: Int -> OrchestrationType -> Int
$chashWithSalt :: Int -> OrchestrationType -> Int
Prelude.Hashable,
      OrchestrationType -> ()
forall a. (a -> ()) -> NFData a
rnf :: OrchestrationType -> ()
$crnf :: OrchestrationType -> ()
Prelude.NFData,
      Text -> Either String OrchestrationType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String OrchestrationType
$cfromText :: Text -> Either String OrchestrationType
Data.FromText,
      OrchestrationType -> Text
forall a. (a -> Text) -> ToText a
toText :: OrchestrationType -> Text
$ctoText :: OrchestrationType -> Text
Data.ToText,
      OrchestrationType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: OrchestrationType -> ByteString
$ctoBS :: OrchestrationType -> ByteString
Data.ToByteString,
      OrchestrationType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: OrchestrationType -> ByteStringBuilder
$cbuild :: OrchestrationType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> OrchestrationType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> OrchestrationType -> [Header]
$ctoHeader :: HeaderName -> OrchestrationType -> [Header]
Data.ToHeader,
      OrchestrationType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: OrchestrationType -> QueryString
$ctoQuery :: OrchestrationType -> QueryString
Data.ToQuery,
      Value -> Parser [OrchestrationType]
Value -> Parser OrchestrationType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [OrchestrationType]
$cparseJSONList :: Value -> Parser [OrchestrationType]
parseJSON :: Value -> Parser OrchestrationType
$cparseJSON :: Value -> Parser OrchestrationType
Data.FromJSON,
      FromJSONKeyFunction [OrchestrationType]
FromJSONKeyFunction OrchestrationType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [OrchestrationType]
$cfromJSONKeyList :: FromJSONKeyFunction [OrchestrationType]
fromJSONKey :: FromJSONKeyFunction OrchestrationType
$cfromJSONKey :: FromJSONKeyFunction OrchestrationType
Data.FromJSONKey,
      [OrchestrationType] -> Encoding
[OrchestrationType] -> Value
OrchestrationType -> Encoding
OrchestrationType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [OrchestrationType] -> Encoding
$ctoEncodingList :: [OrchestrationType] -> Encoding
toJSONList :: [OrchestrationType] -> Value
$ctoJSONList :: [OrchestrationType] -> Value
toEncoding :: OrchestrationType -> Encoding
$ctoEncoding :: OrchestrationType -> Encoding
toJSON :: OrchestrationType -> Value
$ctoJSON :: OrchestrationType -> Value
Data.ToJSON,
      ToJSONKeyFunction [OrchestrationType]
ToJSONKeyFunction OrchestrationType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [OrchestrationType]
$ctoJSONKeyList :: ToJSONKeyFunction [OrchestrationType]
toJSONKey :: ToJSONKeyFunction OrchestrationType
$ctoJSONKey :: ToJSONKeyFunction OrchestrationType
Data.ToJSONKey,
      [Node] -> Either String OrchestrationType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String OrchestrationType
$cparseXML :: [Node] -> Either String OrchestrationType
Data.FromXML,
      OrchestrationType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: OrchestrationType -> XML
$ctoXML :: OrchestrationType -> XML
Data.ToXML
    )

pattern OrchestrationType_ECS :: OrchestrationType
pattern $bOrchestrationType_ECS :: OrchestrationType
$mOrchestrationType_ECS :: forall {r}. OrchestrationType -> ((# #) -> r) -> ((# #) -> r) -> r
OrchestrationType_ECS = OrchestrationType' "ECS"

pattern OrchestrationType_EKS :: OrchestrationType
pattern $bOrchestrationType_EKS :: OrchestrationType
$mOrchestrationType_EKS :: forall {r}. OrchestrationType -> ((# #) -> r) -> ((# #) -> r) -> r
OrchestrationType_EKS = OrchestrationType' "EKS"

{-# COMPLETE
  OrchestrationType_ECS,
  OrchestrationType_EKS,
  OrchestrationType'
  #-}