{-# 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.PlatformCapability
-- 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.PlatformCapability
  ( PlatformCapability
      ( ..,
        PlatformCapability_EC2,
        PlatformCapability_FARGATE
      ),
  )
where

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

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

pattern PlatformCapability_EC2 :: PlatformCapability
pattern $bPlatformCapability_EC2 :: PlatformCapability
$mPlatformCapability_EC2 :: forall {r}. PlatformCapability -> ((# #) -> r) -> ((# #) -> r) -> r
PlatformCapability_EC2 = PlatformCapability' "EC2"

pattern PlatformCapability_FARGATE :: PlatformCapability
pattern $bPlatformCapability_FARGATE :: PlatformCapability
$mPlatformCapability_FARGATE :: forall {r}. PlatformCapability -> ((# #) -> r) -> ((# #) -> r) -> r
PlatformCapability_FARGATE = PlatformCapability' "FARGATE"

{-# COMPLETE
  PlatformCapability_EC2,
  PlatformCapability_FARGATE,
  PlatformCapability'
  #-}