{-# 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.ResourceType
-- 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.ResourceType
  ( ResourceType
      ( ..,
        ResourceType_Endpoint,
        ResourceType_Experiment,
        ResourceType_ExperimentTrial,
        ResourceType_ExperimentTrialComponent,
        ResourceType_FeatureGroup,
        ResourceType_FeatureMetadata,
        ResourceType_HyperParameterTuningJob,
        ResourceType_Model,
        ResourceType_ModelCard,
        ResourceType_ModelPackage,
        ResourceType_ModelPackageGroup,
        ResourceType_Pipeline,
        ResourceType_PipelineExecution,
        ResourceType_Project,
        ResourceType_TrainingJob
      ),
  )
where

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

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

pattern ResourceType_Endpoint :: ResourceType
pattern $bResourceType_Endpoint :: ResourceType
$mResourceType_Endpoint :: forall {r}. ResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceType_Endpoint = ResourceType' "Endpoint"

pattern ResourceType_Experiment :: ResourceType
pattern $bResourceType_Experiment :: ResourceType
$mResourceType_Experiment :: forall {r}. ResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceType_Experiment = ResourceType' "Experiment"

pattern ResourceType_ExperimentTrial :: ResourceType
pattern $bResourceType_ExperimentTrial :: ResourceType
$mResourceType_ExperimentTrial :: forall {r}. ResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceType_ExperimentTrial = ResourceType' "ExperimentTrial"

pattern ResourceType_ExperimentTrialComponent :: ResourceType
pattern $bResourceType_ExperimentTrialComponent :: ResourceType
$mResourceType_ExperimentTrialComponent :: forall {r}. ResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceType_ExperimentTrialComponent = ResourceType' "ExperimentTrialComponent"

pattern ResourceType_FeatureGroup :: ResourceType
pattern $bResourceType_FeatureGroup :: ResourceType
$mResourceType_FeatureGroup :: forall {r}. ResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceType_FeatureGroup = ResourceType' "FeatureGroup"

pattern ResourceType_FeatureMetadata :: ResourceType
pattern $bResourceType_FeatureMetadata :: ResourceType
$mResourceType_FeatureMetadata :: forall {r}. ResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceType_FeatureMetadata = ResourceType' "FeatureMetadata"

pattern ResourceType_HyperParameterTuningJob :: ResourceType
pattern $bResourceType_HyperParameterTuningJob :: ResourceType
$mResourceType_HyperParameterTuningJob :: forall {r}. ResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceType_HyperParameterTuningJob = ResourceType' "HyperParameterTuningJob"

pattern ResourceType_Model :: ResourceType
pattern $bResourceType_Model :: ResourceType
$mResourceType_Model :: forall {r}. ResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceType_Model = ResourceType' "Model"

pattern ResourceType_ModelCard :: ResourceType
pattern $bResourceType_ModelCard :: ResourceType
$mResourceType_ModelCard :: forall {r}. ResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceType_ModelCard = ResourceType' "ModelCard"

pattern ResourceType_ModelPackage :: ResourceType
pattern $bResourceType_ModelPackage :: ResourceType
$mResourceType_ModelPackage :: forall {r}. ResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceType_ModelPackage = ResourceType' "ModelPackage"

pattern ResourceType_ModelPackageGroup :: ResourceType
pattern $bResourceType_ModelPackageGroup :: ResourceType
$mResourceType_ModelPackageGroup :: forall {r}. ResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceType_ModelPackageGroup = ResourceType' "ModelPackageGroup"

pattern ResourceType_Pipeline :: ResourceType
pattern $bResourceType_Pipeline :: ResourceType
$mResourceType_Pipeline :: forall {r}. ResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceType_Pipeline = ResourceType' "Pipeline"

pattern ResourceType_PipelineExecution :: ResourceType
pattern $bResourceType_PipelineExecution :: ResourceType
$mResourceType_PipelineExecution :: forall {r}. ResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceType_PipelineExecution = ResourceType' "PipelineExecution"

pattern ResourceType_Project :: ResourceType
pattern $bResourceType_Project :: ResourceType
$mResourceType_Project :: forall {r}. ResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceType_Project = ResourceType' "Project"

pattern ResourceType_TrainingJob :: ResourceType
pattern $bResourceType_TrainingJob :: ResourceType
$mResourceType_TrainingJob :: forall {r}. ResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceType_TrainingJob = ResourceType' "TrainingJob"

{-# COMPLETE
  ResourceType_Endpoint,
  ResourceType_Experiment,
  ResourceType_ExperimentTrial,
  ResourceType_ExperimentTrialComponent,
  ResourceType_FeatureGroup,
  ResourceType_FeatureMetadata,
  ResourceType_HyperParameterTuningJob,
  ResourceType_Model,
  ResourceType_ModelCard,
  ResourceType_ModelPackage,
  ResourceType_ModelPackageGroup,
  ResourceType_Pipeline,
  ResourceType_PipelineExecution,
  ResourceType_Project,
  ResourceType_TrainingJob,
  ResourceType'
  #-}