{-# 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.AwsManagedHumanLoopRequestSource
-- 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.AwsManagedHumanLoopRequestSource
  ( AwsManagedHumanLoopRequestSource
      ( ..,
        AwsManagedHumanLoopRequestSource_AWS_Rekognition_DetectModerationLabels_Image_V3,
        AwsManagedHumanLoopRequestSource_AWS_Textract_AnalyzeDocument_Forms_V1
      ),
  )
where

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

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

pattern AwsManagedHumanLoopRequestSource_AWS_Rekognition_DetectModerationLabels_Image_V3 :: AwsManagedHumanLoopRequestSource
pattern $bAwsManagedHumanLoopRequestSource_AWS_Rekognition_DetectModerationLabels_Image_V3 :: AwsManagedHumanLoopRequestSource
$mAwsManagedHumanLoopRequestSource_AWS_Rekognition_DetectModerationLabels_Image_V3 :: forall {r}.
AwsManagedHumanLoopRequestSource
-> ((# #) -> r) -> ((# #) -> r) -> r
AwsManagedHumanLoopRequestSource_AWS_Rekognition_DetectModerationLabels_Image_V3 = AwsManagedHumanLoopRequestSource' "AWS/Rekognition/DetectModerationLabels/Image/V3"

pattern AwsManagedHumanLoopRequestSource_AWS_Textract_AnalyzeDocument_Forms_V1 :: AwsManagedHumanLoopRequestSource
pattern $bAwsManagedHumanLoopRequestSource_AWS_Textract_AnalyzeDocument_Forms_V1 :: AwsManagedHumanLoopRequestSource
$mAwsManagedHumanLoopRequestSource_AWS_Textract_AnalyzeDocument_Forms_V1 :: forall {r}.
AwsManagedHumanLoopRequestSource
-> ((# #) -> r) -> ((# #) -> r) -> r
AwsManagedHumanLoopRequestSource_AWS_Textract_AnalyzeDocument_Forms_V1 = AwsManagedHumanLoopRequestSource' "AWS/Textract/AnalyzeDocument/Forms/V1"

{-# COMPLETE
  AwsManagedHumanLoopRequestSource_AWS_Rekognition_DetectModerationLabels_Image_V3,
  AwsManagedHumanLoopRequestSource_AWS_Textract_AnalyzeDocument_Forms_V1,
  AwsManagedHumanLoopRequestSource'
  #-}