{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype AwsManagedHumanLoopRequestSource = AwsManagedHumanLoopRequestSource'
  { AwsManagedHumanLoopRequestSource -> Text
fromAwsManagedHumanLoopRequestSource ::
      Core.Text
  }
  deriving stock
    ( Int -> AwsManagedHumanLoopRequestSource -> ShowS
[AwsManagedHumanLoopRequestSource] -> ShowS
AwsManagedHumanLoopRequestSource -> String
(Int -> AwsManagedHumanLoopRequestSource -> ShowS)
-> (AwsManagedHumanLoopRequestSource -> String)
-> ([AwsManagedHumanLoopRequestSource] -> ShowS)
-> Show AwsManagedHumanLoopRequestSource
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]
(Int -> ReadS AwsManagedHumanLoopRequestSource)
-> ReadS [AwsManagedHumanLoopRequestSource]
-> ReadPrec AwsManagedHumanLoopRequestSource
-> ReadPrec [AwsManagedHumanLoopRequestSource]
-> Read 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
(AwsManagedHumanLoopRequestSource
 -> AwsManagedHumanLoopRequestSource -> Bool)
-> (AwsManagedHumanLoopRequestSource
    -> AwsManagedHumanLoopRequestSource -> Bool)
-> Eq AwsManagedHumanLoopRequestSource
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
Eq AwsManagedHumanLoopRequestSource
-> (AwsManagedHumanLoopRequestSource
    -> AwsManagedHumanLoopRequestSource -> Ordering)
-> (AwsManagedHumanLoopRequestSource
    -> AwsManagedHumanLoopRequestSource -> Bool)
-> (AwsManagedHumanLoopRequestSource
    -> AwsManagedHumanLoopRequestSource -> Bool)
-> (AwsManagedHumanLoopRequestSource
    -> AwsManagedHumanLoopRequestSource -> Bool)
-> (AwsManagedHumanLoopRequestSource
    -> AwsManagedHumanLoopRequestSource -> Bool)
-> (AwsManagedHumanLoopRequestSource
    -> AwsManagedHumanLoopRequestSource
    -> AwsManagedHumanLoopRequestSource)
-> (AwsManagedHumanLoopRequestSource
    -> AwsManagedHumanLoopRequestSource
    -> AwsManagedHumanLoopRequestSource)
-> Ord 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
$cp1Ord :: Eq AwsManagedHumanLoopRequestSource
Prelude.Ord,
      (forall x.
 AwsManagedHumanLoopRequestSource
 -> Rep AwsManagedHumanLoopRequestSource x)
-> (forall x.
    Rep AwsManagedHumanLoopRequestSource x
    -> AwsManagedHumanLoopRequestSource)
-> Generic AwsManagedHumanLoopRequestSource
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
    ( Int -> AwsManagedHumanLoopRequestSource -> Int
AwsManagedHumanLoopRequestSource -> Int
(Int -> AwsManagedHumanLoopRequestSource -> Int)
-> (AwsManagedHumanLoopRequestSource -> Int)
-> Hashable AwsManagedHumanLoopRequestSource
forall 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 -> ()
(AwsManagedHumanLoopRequestSource -> ())
-> NFData AwsManagedHumanLoopRequestSource
forall a. (a -> ()) -> NFData a
rnf :: AwsManagedHumanLoopRequestSource -> ()
$crnf :: AwsManagedHumanLoopRequestSource -> ()
Prelude.NFData,
      Text -> Either String AwsManagedHumanLoopRequestSource
(Text -> Either String AwsManagedHumanLoopRequestSource)
-> FromText AwsManagedHumanLoopRequestSource
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AwsManagedHumanLoopRequestSource
$cfromText :: Text -> Either String AwsManagedHumanLoopRequestSource
Core.FromText,
      AwsManagedHumanLoopRequestSource -> Text
(AwsManagedHumanLoopRequestSource -> Text)
-> ToText AwsManagedHumanLoopRequestSource
forall a. (a -> Text) -> ToText a
toText :: AwsManagedHumanLoopRequestSource -> Text
$ctoText :: AwsManagedHumanLoopRequestSource -> Text
Core.ToText,
      AwsManagedHumanLoopRequestSource -> ByteString
(AwsManagedHumanLoopRequestSource -> ByteString)
-> ToByteString AwsManagedHumanLoopRequestSource
forall a. (a -> ByteString) -> ToByteString a
toBS :: AwsManagedHumanLoopRequestSource -> ByteString
$ctoBS :: AwsManagedHumanLoopRequestSource -> ByteString
Core.ToByteString,
      AwsManagedHumanLoopRequestSource -> ByteStringBuilder
(AwsManagedHumanLoopRequestSource -> ByteStringBuilder)
-> ToLog AwsManagedHumanLoopRequestSource
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AwsManagedHumanLoopRequestSource -> ByteStringBuilder
$cbuild :: AwsManagedHumanLoopRequestSource -> ByteStringBuilder
Core.ToLog,
      HeaderName -> AwsManagedHumanLoopRequestSource -> [Header]
(HeaderName -> AwsManagedHumanLoopRequestSource -> [Header])
-> ToHeader AwsManagedHumanLoopRequestSource
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AwsManagedHumanLoopRequestSource -> [Header]
$ctoHeader :: HeaderName -> AwsManagedHumanLoopRequestSource -> [Header]
Core.ToHeader,
      AwsManagedHumanLoopRequestSource -> QueryString
(AwsManagedHumanLoopRequestSource -> QueryString)
-> ToQuery AwsManagedHumanLoopRequestSource
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AwsManagedHumanLoopRequestSource -> QueryString
$ctoQuery :: AwsManagedHumanLoopRequestSource -> QueryString
Core.ToQuery,
      Value -> Parser [AwsManagedHumanLoopRequestSource]
Value -> Parser AwsManagedHumanLoopRequestSource
(Value -> Parser AwsManagedHumanLoopRequestSource)
-> (Value -> Parser [AwsManagedHumanLoopRequestSource])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [AwsManagedHumanLoopRequestSource]
FromJSONKeyFunction AwsManagedHumanLoopRequestSource
FromJSONKeyFunction AwsManagedHumanLoopRequestSource
-> FromJSONKeyFunction [AwsManagedHumanLoopRequestSource]
-> FromJSONKey AwsManagedHumanLoopRequestSource
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AwsManagedHumanLoopRequestSource]
$cfromJSONKeyList :: FromJSONKeyFunction [AwsManagedHumanLoopRequestSource]
fromJSONKey :: FromJSONKeyFunction AwsManagedHumanLoopRequestSource
$cfromJSONKey :: FromJSONKeyFunction AwsManagedHumanLoopRequestSource
Core.FromJSONKey,
      [AwsManagedHumanLoopRequestSource] -> Encoding
[AwsManagedHumanLoopRequestSource] -> Value
AwsManagedHumanLoopRequestSource -> Encoding
AwsManagedHumanLoopRequestSource -> Value
(AwsManagedHumanLoopRequestSource -> Value)
-> (AwsManagedHumanLoopRequestSource -> Encoding)
-> ([AwsManagedHumanLoopRequestSource] -> Value)
-> ([AwsManagedHumanLoopRequestSource] -> Encoding)
-> ToJSON AwsManagedHumanLoopRequestSource
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
Core.ToJSON,
      ToJSONKeyFunction [AwsManagedHumanLoopRequestSource]
ToJSONKeyFunction AwsManagedHumanLoopRequestSource
ToJSONKeyFunction AwsManagedHumanLoopRequestSource
-> ToJSONKeyFunction [AwsManagedHumanLoopRequestSource]
-> ToJSONKey AwsManagedHumanLoopRequestSource
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AwsManagedHumanLoopRequestSource]
$ctoJSONKeyList :: ToJSONKeyFunction [AwsManagedHumanLoopRequestSource]
toJSONKey :: ToJSONKeyFunction AwsManagedHumanLoopRequestSource
$ctoJSONKey :: ToJSONKeyFunction AwsManagedHumanLoopRequestSource
Core.ToJSONKey,
      [Node] -> Either String AwsManagedHumanLoopRequestSource
([Node] -> Either String AwsManagedHumanLoopRequestSource)
-> FromXML AwsManagedHumanLoopRequestSource
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AwsManagedHumanLoopRequestSource
$cparseXML :: [Node] -> Either String AwsManagedHumanLoopRequestSource
Core.FromXML,
      AwsManagedHumanLoopRequestSource -> XML
(AwsManagedHumanLoopRequestSource -> XML)
-> ToXML AwsManagedHumanLoopRequestSource
forall a. (a -> XML) -> ToXML a
toXML :: AwsManagedHumanLoopRequestSource -> XML
$ctoXML :: AwsManagedHumanLoopRequestSource -> XML
Core.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
-> (Void# -> r) -> (Void# -> 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
-> (Void# -> r) -> (Void# -> 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'
  #-}