{-# 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.CRType
-- 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.CRType
  ( CRType
      ( ..,
        CRType_EC2,
        CRType_FARGATE,
        CRType_FARGATE_SPOT,
        CRType_SPOT
      ),
  )
where

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

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

pattern CRType_EC2 :: CRType
pattern $bCRType_EC2 :: CRType
$mCRType_EC2 :: forall {r}. CRType -> ((# #) -> r) -> ((# #) -> r) -> r
CRType_EC2 = CRType' "EC2"

pattern CRType_FARGATE :: CRType
pattern $bCRType_FARGATE :: CRType
$mCRType_FARGATE :: forall {r}. CRType -> ((# #) -> r) -> ((# #) -> r) -> r
CRType_FARGATE = CRType' "FARGATE"

pattern CRType_FARGATE_SPOT :: CRType
pattern $bCRType_FARGATE_SPOT :: CRType
$mCRType_FARGATE_SPOT :: forall {r}. CRType -> ((# #) -> r) -> ((# #) -> r) -> r
CRType_FARGATE_SPOT = CRType' "FARGATE_SPOT"

pattern CRType_SPOT :: CRType
pattern $bCRType_SPOT :: CRType
$mCRType_SPOT :: forall {r}. CRType -> ((# #) -> r) -> ((# #) -> r) -> r
CRType_SPOT = CRType' "SPOT"

{-# COMPLETE
  CRType_EC2,
  CRType_FARGATE,
  CRType_FARGATE_SPOT,
  CRType_SPOT,
  CRType'
  #-}