{-# 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.AcceleratorName
-- 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.AcceleratorName
  ( AcceleratorName
      ( ..,
        AcceleratorName_A100,
        AcceleratorName_K80,
        AcceleratorName_M60,
        AcceleratorName_Radeon_pro_v520,
        AcceleratorName_T4,
        AcceleratorName_V100,
        AcceleratorName_Vu9p
      ),
  )
where

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

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

pattern AcceleratorName_A100 :: AcceleratorName
pattern $bAcceleratorName_A100 :: AcceleratorName
$mAcceleratorName_A100 :: forall {r}. AcceleratorName -> ((# #) -> r) -> ((# #) -> r) -> r
AcceleratorName_A100 = AcceleratorName' "a100"

pattern AcceleratorName_K80 :: AcceleratorName
pattern $bAcceleratorName_K80 :: AcceleratorName
$mAcceleratorName_K80 :: forall {r}. AcceleratorName -> ((# #) -> r) -> ((# #) -> r) -> r
AcceleratorName_K80 = AcceleratorName' "k80"

pattern AcceleratorName_M60 :: AcceleratorName
pattern $bAcceleratorName_M60 :: AcceleratorName
$mAcceleratorName_M60 :: forall {r}. AcceleratorName -> ((# #) -> r) -> ((# #) -> r) -> r
AcceleratorName_M60 = AcceleratorName' "m60"

pattern AcceleratorName_Radeon_pro_v520 :: AcceleratorName
pattern $bAcceleratorName_Radeon_pro_v520 :: AcceleratorName
$mAcceleratorName_Radeon_pro_v520 :: forall {r}. AcceleratorName -> ((# #) -> r) -> ((# #) -> r) -> r
AcceleratorName_Radeon_pro_v520 = AcceleratorName' "radeon-pro-v520"

pattern AcceleratorName_T4 :: AcceleratorName
pattern $bAcceleratorName_T4 :: AcceleratorName
$mAcceleratorName_T4 :: forall {r}. AcceleratorName -> ((# #) -> r) -> ((# #) -> r) -> r
AcceleratorName_T4 = AcceleratorName' "t4"

pattern AcceleratorName_V100 :: AcceleratorName
pattern $bAcceleratorName_V100 :: AcceleratorName
$mAcceleratorName_V100 :: forall {r}. AcceleratorName -> ((# #) -> r) -> ((# #) -> r) -> r
AcceleratorName_V100 = AcceleratorName' "v100"

pattern AcceleratorName_Vu9p :: AcceleratorName
pattern $bAcceleratorName_Vu9p :: AcceleratorName
$mAcceleratorName_Vu9p :: forall {r}. AcceleratorName -> ((# #) -> r) -> ((# #) -> r) -> r
AcceleratorName_Vu9p = AcceleratorName' "vu9p"

{-# COMPLETE
  AcceleratorName_A100,
  AcceleratorName_K80,
  AcceleratorName_M60,
  AcceleratorName_Radeon_pro_v520,
  AcceleratorName_T4,
  AcceleratorName_V100,
  AcceleratorName_Vu9p,
  AcceleratorName'
  #-}