{-# 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.AutoScaling.Types.AcceleratorType
-- 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.AutoScaling.Types.AcceleratorType
  ( AcceleratorType
      ( ..,
        AcceleratorType_Fpga,
        AcceleratorType_Gpu,
        AcceleratorType_Inference
      ),
  )
where

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

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

pattern AcceleratorType_Fpga :: AcceleratorType
pattern $bAcceleratorType_Fpga :: AcceleratorType
$mAcceleratorType_Fpga :: forall {r}. AcceleratorType -> ((# #) -> r) -> ((# #) -> r) -> r
AcceleratorType_Fpga = AcceleratorType' "fpga"

pattern AcceleratorType_Gpu :: AcceleratorType
pattern $bAcceleratorType_Gpu :: AcceleratorType
$mAcceleratorType_Gpu :: forall {r}. AcceleratorType -> ((# #) -> r) -> ((# #) -> r) -> r
AcceleratorType_Gpu = AcceleratorType' "gpu"

pattern AcceleratorType_Inference :: AcceleratorType
pattern $bAcceleratorType_Inference :: AcceleratorType
$mAcceleratorType_Inference :: forall {r}. AcceleratorType -> ((# #) -> r) -> ((# #) -> r) -> r
AcceleratorType_Inference = AcceleratorType' "inference"

{-# COMPLETE
  AcceleratorType_Fpga,
  AcceleratorType_Gpu,
  AcceleratorType_Inference,
  AcceleratorType'
  #-}