{-# 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.SageMaker.Types.ModelInfrastructureType
-- 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.SageMaker.Types.ModelInfrastructureType
  ( ModelInfrastructureType
      ( ..,
        ModelInfrastructureType_RealTimeInference
      ),
  )
where

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

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

pattern ModelInfrastructureType_RealTimeInference :: ModelInfrastructureType
pattern $bModelInfrastructureType_RealTimeInference :: ModelInfrastructureType
$mModelInfrastructureType_RealTimeInference :: forall {r}.
ModelInfrastructureType -> ((# #) -> r) -> ((# #) -> r) -> r
ModelInfrastructureType_RealTimeInference = ModelInfrastructureType' "RealTimeInference"

{-# COMPLETE
  ModelInfrastructureType_RealTimeInference,
  ModelInfrastructureType'
  #-}