{-# 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.MachineLearning.Types.TaggableResourceType
-- 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.MachineLearning.Types.TaggableResourceType
  ( TaggableResourceType
      ( ..,
        TaggableResourceType_BatchPrediction,
        TaggableResourceType_DataSource,
        TaggableResourceType_Evaluation,
        TaggableResourceType_MLModel
      ),
  )
where

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

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

pattern TaggableResourceType_BatchPrediction :: TaggableResourceType
pattern $bTaggableResourceType_BatchPrediction :: TaggableResourceType
$mTaggableResourceType_BatchPrediction :: forall {r}.
TaggableResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
TaggableResourceType_BatchPrediction = TaggableResourceType' "BatchPrediction"

pattern TaggableResourceType_DataSource :: TaggableResourceType
pattern $bTaggableResourceType_DataSource :: TaggableResourceType
$mTaggableResourceType_DataSource :: forall {r}.
TaggableResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
TaggableResourceType_DataSource = TaggableResourceType' "DataSource"

pattern TaggableResourceType_Evaluation :: TaggableResourceType
pattern $bTaggableResourceType_Evaluation :: TaggableResourceType
$mTaggableResourceType_Evaluation :: forall {r}.
TaggableResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
TaggableResourceType_Evaluation = TaggableResourceType' "Evaluation"

pattern TaggableResourceType_MLModel :: TaggableResourceType
pattern $bTaggableResourceType_MLModel :: TaggableResourceType
$mTaggableResourceType_MLModel :: forall {r}.
TaggableResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
TaggableResourceType_MLModel = TaggableResourceType' "MLModel"

{-# COMPLETE
  TaggableResourceType_BatchPrediction,
  TaggableResourceType_DataSource,
  TaggableResourceType_Evaluation,
  TaggableResourceType_MLModel,
  TaggableResourceType'
  #-}