{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SageMakerA2IRuntime.Types.HumanLoopOutput
-- 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.SageMakerA2IRuntime.Types.HumanLoopOutput where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Information about where the human output will be stored.
--
-- /See:/ 'newHumanLoopOutput' smart constructor.
data HumanLoopOutput = HumanLoopOutput'
  { -- | The location of the Amazon S3 object where Amazon Augmented AI stores
    -- your human loop output.
    HumanLoopOutput -> Text
outputS3Uri :: Prelude.Text
  }
  deriving (HumanLoopOutput -> HumanLoopOutput -> Bool
(HumanLoopOutput -> HumanLoopOutput -> Bool)
-> (HumanLoopOutput -> HumanLoopOutput -> Bool)
-> Eq HumanLoopOutput
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HumanLoopOutput -> HumanLoopOutput -> Bool
$c/= :: HumanLoopOutput -> HumanLoopOutput -> Bool
== :: HumanLoopOutput -> HumanLoopOutput -> Bool
$c== :: HumanLoopOutput -> HumanLoopOutput -> Bool
Prelude.Eq, ReadPrec [HumanLoopOutput]
ReadPrec HumanLoopOutput
Int -> ReadS HumanLoopOutput
ReadS [HumanLoopOutput]
(Int -> ReadS HumanLoopOutput)
-> ReadS [HumanLoopOutput]
-> ReadPrec HumanLoopOutput
-> ReadPrec [HumanLoopOutput]
-> Read HumanLoopOutput
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [HumanLoopOutput]
$creadListPrec :: ReadPrec [HumanLoopOutput]
readPrec :: ReadPrec HumanLoopOutput
$creadPrec :: ReadPrec HumanLoopOutput
readList :: ReadS [HumanLoopOutput]
$creadList :: ReadS [HumanLoopOutput]
readsPrec :: Int -> ReadS HumanLoopOutput
$creadsPrec :: Int -> ReadS HumanLoopOutput
Prelude.Read, Int -> HumanLoopOutput -> ShowS
[HumanLoopOutput] -> ShowS
HumanLoopOutput -> String
(Int -> HumanLoopOutput -> ShowS)
-> (HumanLoopOutput -> String)
-> ([HumanLoopOutput] -> ShowS)
-> Show HumanLoopOutput
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HumanLoopOutput] -> ShowS
$cshowList :: [HumanLoopOutput] -> ShowS
show :: HumanLoopOutput -> String
$cshow :: HumanLoopOutput -> String
showsPrec :: Int -> HumanLoopOutput -> ShowS
$cshowsPrec :: Int -> HumanLoopOutput -> ShowS
Prelude.Show, (forall x. HumanLoopOutput -> Rep HumanLoopOutput x)
-> (forall x. Rep HumanLoopOutput x -> HumanLoopOutput)
-> Generic HumanLoopOutput
forall x. Rep HumanLoopOutput x -> HumanLoopOutput
forall x. HumanLoopOutput -> Rep HumanLoopOutput x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep HumanLoopOutput x -> HumanLoopOutput
$cfrom :: forall x. HumanLoopOutput -> Rep HumanLoopOutput x
Prelude.Generic)

-- |
-- Create a value of 'HumanLoopOutput' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'outputS3Uri', 'humanLoopOutput_outputS3Uri' - The location of the Amazon S3 object where Amazon Augmented AI stores
-- your human loop output.
newHumanLoopOutput ::
  -- | 'outputS3Uri'
  Prelude.Text ->
  HumanLoopOutput
newHumanLoopOutput :: Text -> HumanLoopOutput
newHumanLoopOutput Text
pOutputS3Uri_ =
  HumanLoopOutput' :: Text -> HumanLoopOutput
HumanLoopOutput' {$sel:outputS3Uri:HumanLoopOutput' :: Text
outputS3Uri = Text
pOutputS3Uri_}

-- | The location of the Amazon S3 object where Amazon Augmented AI stores
-- your human loop output.
humanLoopOutput_outputS3Uri :: Lens.Lens' HumanLoopOutput Prelude.Text
humanLoopOutput_outputS3Uri :: (Text -> f Text) -> HumanLoopOutput -> f HumanLoopOutput
humanLoopOutput_outputS3Uri = (HumanLoopOutput -> Text)
-> (HumanLoopOutput -> Text -> HumanLoopOutput)
-> Lens HumanLoopOutput HumanLoopOutput Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HumanLoopOutput' {Text
outputS3Uri :: Text
$sel:outputS3Uri:HumanLoopOutput' :: HumanLoopOutput -> Text
outputS3Uri} -> Text
outputS3Uri) (\s :: HumanLoopOutput
s@HumanLoopOutput' {} Text
a -> HumanLoopOutput
s {$sel:outputS3Uri:HumanLoopOutput' :: Text
outputS3Uri = Text
a} :: HumanLoopOutput)

instance Core.FromJSON HumanLoopOutput where
  parseJSON :: Value -> Parser HumanLoopOutput
parseJSON =
    String
-> (Object -> Parser HumanLoopOutput)
-> Value
-> Parser HumanLoopOutput
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"HumanLoopOutput"
      ( \Object
x ->
          Text -> HumanLoopOutput
HumanLoopOutput'
            (Text -> HumanLoopOutput) -> Parser Text -> Parser HumanLoopOutput
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"OutputS3Uri")
      )

instance Prelude.Hashable HumanLoopOutput

instance Prelude.NFData HumanLoopOutput