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

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

-- |
-- Module      : Amazonka.SageMaker.CreateHumanTaskUi
-- 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)
--
-- Defines the settings you will use for the human review workflow user
-- interface. Reviewers will see a three-panel interface with an
-- instruction area, the item to review, and an input area.
module Amazonka.SageMaker.CreateHumanTaskUi
  ( -- * Creating a Request
    CreateHumanTaskUi (..),
    newCreateHumanTaskUi,

    -- * Request Lenses
    createHumanTaskUi_tags,
    createHumanTaskUi_humanTaskUiName,
    createHumanTaskUi_uiTemplate,

    -- * Destructuring the Response
    CreateHumanTaskUiResponse (..),
    newCreateHumanTaskUiResponse,

    -- * Response Lenses
    createHumanTaskUiResponse_httpStatus,
    createHumanTaskUiResponse_humanTaskUiArn,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SageMaker.Types

-- | /See:/ 'newCreateHumanTaskUi' smart constructor.
data CreateHumanTaskUi = CreateHumanTaskUi'
  { -- | An array of key-value pairs that contain metadata to help you categorize
    -- and organize a human review workflow user interface. Each tag consists
    -- of a key and a value, both of which you define.
    CreateHumanTaskUi -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
    -- | The name of the user interface you are creating.
    CreateHumanTaskUi -> Text
humanTaskUiName :: Prelude.Text,
    CreateHumanTaskUi -> UiTemplate
uiTemplate :: UiTemplate
  }
  deriving (CreateHumanTaskUi -> CreateHumanTaskUi -> Bool
(CreateHumanTaskUi -> CreateHumanTaskUi -> Bool)
-> (CreateHumanTaskUi -> CreateHumanTaskUi -> Bool)
-> Eq CreateHumanTaskUi
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateHumanTaskUi -> CreateHumanTaskUi -> Bool
$c/= :: CreateHumanTaskUi -> CreateHumanTaskUi -> Bool
== :: CreateHumanTaskUi -> CreateHumanTaskUi -> Bool
$c== :: CreateHumanTaskUi -> CreateHumanTaskUi -> Bool
Prelude.Eq, ReadPrec [CreateHumanTaskUi]
ReadPrec CreateHumanTaskUi
Int -> ReadS CreateHumanTaskUi
ReadS [CreateHumanTaskUi]
(Int -> ReadS CreateHumanTaskUi)
-> ReadS [CreateHumanTaskUi]
-> ReadPrec CreateHumanTaskUi
-> ReadPrec [CreateHumanTaskUi]
-> Read CreateHumanTaskUi
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateHumanTaskUi]
$creadListPrec :: ReadPrec [CreateHumanTaskUi]
readPrec :: ReadPrec CreateHumanTaskUi
$creadPrec :: ReadPrec CreateHumanTaskUi
readList :: ReadS [CreateHumanTaskUi]
$creadList :: ReadS [CreateHumanTaskUi]
readsPrec :: Int -> ReadS CreateHumanTaskUi
$creadsPrec :: Int -> ReadS CreateHumanTaskUi
Prelude.Read, Int -> CreateHumanTaskUi -> ShowS
[CreateHumanTaskUi] -> ShowS
CreateHumanTaskUi -> String
(Int -> CreateHumanTaskUi -> ShowS)
-> (CreateHumanTaskUi -> String)
-> ([CreateHumanTaskUi] -> ShowS)
-> Show CreateHumanTaskUi
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateHumanTaskUi] -> ShowS
$cshowList :: [CreateHumanTaskUi] -> ShowS
show :: CreateHumanTaskUi -> String
$cshow :: CreateHumanTaskUi -> String
showsPrec :: Int -> CreateHumanTaskUi -> ShowS
$cshowsPrec :: Int -> CreateHumanTaskUi -> ShowS
Prelude.Show, (forall x. CreateHumanTaskUi -> Rep CreateHumanTaskUi x)
-> (forall x. Rep CreateHumanTaskUi x -> CreateHumanTaskUi)
-> Generic CreateHumanTaskUi
forall x. Rep CreateHumanTaskUi x -> CreateHumanTaskUi
forall x. CreateHumanTaskUi -> Rep CreateHumanTaskUi x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateHumanTaskUi x -> CreateHumanTaskUi
$cfrom :: forall x. CreateHumanTaskUi -> Rep CreateHumanTaskUi x
Prelude.Generic)

-- |
-- Create a value of 'CreateHumanTaskUi' 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:
--
-- 'tags', 'createHumanTaskUi_tags' - An array of key-value pairs that contain metadata to help you categorize
-- and organize a human review workflow user interface. Each tag consists
-- of a key and a value, both of which you define.
--
-- 'humanTaskUiName', 'createHumanTaskUi_humanTaskUiName' - The name of the user interface you are creating.
--
-- 'uiTemplate', 'createHumanTaskUi_uiTemplate' - Undocumented member.
newCreateHumanTaskUi ::
  -- | 'humanTaskUiName'
  Prelude.Text ->
  -- | 'uiTemplate'
  UiTemplate ->
  CreateHumanTaskUi
newCreateHumanTaskUi :: Text -> UiTemplate -> CreateHumanTaskUi
newCreateHumanTaskUi Text
pHumanTaskUiName_ UiTemplate
pUiTemplate_ =
  CreateHumanTaskUi' :: Maybe [Tag] -> Text -> UiTemplate -> CreateHumanTaskUi
CreateHumanTaskUi'
    { $sel:tags:CreateHumanTaskUi' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
      $sel:humanTaskUiName:CreateHumanTaskUi' :: Text
humanTaskUiName = Text
pHumanTaskUiName_,
      $sel:uiTemplate:CreateHumanTaskUi' :: UiTemplate
uiTemplate = UiTemplate
pUiTemplate_
    }

-- | An array of key-value pairs that contain metadata to help you categorize
-- and organize a human review workflow user interface. Each tag consists
-- of a key and a value, both of which you define.
createHumanTaskUi_tags :: Lens.Lens' CreateHumanTaskUi (Prelude.Maybe [Tag])
createHumanTaskUi_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateHumanTaskUi -> f CreateHumanTaskUi
createHumanTaskUi_tags = (CreateHumanTaskUi -> Maybe [Tag])
-> (CreateHumanTaskUi -> Maybe [Tag] -> CreateHumanTaskUi)
-> Lens
     CreateHumanTaskUi CreateHumanTaskUi (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHumanTaskUi' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateHumanTaskUi' :: CreateHumanTaskUi -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateHumanTaskUi
s@CreateHumanTaskUi' {} Maybe [Tag]
a -> CreateHumanTaskUi
s {$sel:tags:CreateHumanTaskUi' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateHumanTaskUi) ((Maybe [Tag] -> f (Maybe [Tag]))
 -> CreateHumanTaskUi -> f CreateHumanTaskUi)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
    -> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateHumanTaskUi
-> f CreateHumanTaskUi
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the user interface you are creating.
createHumanTaskUi_humanTaskUiName :: Lens.Lens' CreateHumanTaskUi Prelude.Text
createHumanTaskUi_humanTaskUiName :: (Text -> f Text) -> CreateHumanTaskUi -> f CreateHumanTaskUi
createHumanTaskUi_humanTaskUiName = (CreateHumanTaskUi -> Text)
-> (CreateHumanTaskUi -> Text -> CreateHumanTaskUi)
-> Lens CreateHumanTaskUi CreateHumanTaskUi Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHumanTaskUi' {Text
humanTaskUiName :: Text
$sel:humanTaskUiName:CreateHumanTaskUi' :: CreateHumanTaskUi -> Text
humanTaskUiName} -> Text
humanTaskUiName) (\s :: CreateHumanTaskUi
s@CreateHumanTaskUi' {} Text
a -> CreateHumanTaskUi
s {$sel:humanTaskUiName:CreateHumanTaskUi' :: Text
humanTaskUiName = Text
a} :: CreateHumanTaskUi)

-- | Undocumented member.
createHumanTaskUi_uiTemplate :: Lens.Lens' CreateHumanTaskUi UiTemplate
createHumanTaskUi_uiTemplate :: (UiTemplate -> f UiTemplate)
-> CreateHumanTaskUi -> f CreateHumanTaskUi
createHumanTaskUi_uiTemplate = (CreateHumanTaskUi -> UiTemplate)
-> (CreateHumanTaskUi -> UiTemplate -> CreateHumanTaskUi)
-> Lens CreateHumanTaskUi CreateHumanTaskUi UiTemplate UiTemplate
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHumanTaskUi' {UiTemplate
uiTemplate :: UiTemplate
$sel:uiTemplate:CreateHumanTaskUi' :: CreateHumanTaskUi -> UiTemplate
uiTemplate} -> UiTemplate
uiTemplate) (\s :: CreateHumanTaskUi
s@CreateHumanTaskUi' {} UiTemplate
a -> CreateHumanTaskUi
s {$sel:uiTemplate:CreateHumanTaskUi' :: UiTemplate
uiTemplate = UiTemplate
a} :: CreateHumanTaskUi)

instance Core.AWSRequest CreateHumanTaskUi where
  type
    AWSResponse CreateHumanTaskUi =
      CreateHumanTaskUiResponse
  request :: CreateHumanTaskUi -> Request CreateHumanTaskUi
request = Service -> CreateHumanTaskUi -> Request CreateHumanTaskUi
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy CreateHumanTaskUi
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateHumanTaskUi)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse CreateHumanTaskUi))
-> Logger
-> Service
-> Proxy CreateHumanTaskUi
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateHumanTaskUi)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Int -> Text -> CreateHumanTaskUiResponse
CreateHumanTaskUiResponse'
            (Int -> Text -> CreateHumanTaskUiResponse)
-> Either String Int
-> Either String (Text -> CreateHumanTaskUiResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
            Either String (Text -> CreateHumanTaskUiResponse)
-> Either String Text -> Either String CreateHumanTaskUiResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"HumanTaskUiArn")
      )

instance Prelude.Hashable CreateHumanTaskUi

instance Prelude.NFData CreateHumanTaskUi

instance Core.ToHeaders CreateHumanTaskUi where
  toHeaders :: CreateHumanTaskUi -> ResponseHeaders
toHeaders =
    ResponseHeaders -> CreateHumanTaskUi -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"SageMaker.CreateHumanTaskUi" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON CreateHumanTaskUi where
  toJSON :: CreateHumanTaskUi -> Value
toJSON CreateHumanTaskUi' {Maybe [Tag]
Text
UiTemplate
uiTemplate :: UiTemplate
humanTaskUiName :: Text
tags :: Maybe [Tag]
$sel:uiTemplate:CreateHumanTaskUi' :: CreateHumanTaskUi -> UiTemplate
$sel:humanTaskUiName:CreateHumanTaskUi' :: CreateHumanTaskUi -> Text
$sel:tags:CreateHumanTaskUi' :: CreateHumanTaskUi -> Maybe [Tag]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"HumanTaskUiName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
humanTaskUiName),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"UiTemplate" Text -> UiTemplate -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= UiTemplate
uiTemplate)
          ]
      )

instance Core.ToPath CreateHumanTaskUi where
  toPath :: CreateHumanTaskUi -> ByteString
toPath = ByteString -> CreateHumanTaskUi -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery CreateHumanTaskUi where
  toQuery :: CreateHumanTaskUi -> QueryString
toQuery = QueryString -> CreateHumanTaskUi -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newCreateHumanTaskUiResponse' smart constructor.
data CreateHumanTaskUiResponse = CreateHumanTaskUiResponse'
  { -- | The response's http status code.
    CreateHumanTaskUiResponse -> Int
httpStatus :: Prelude.Int,
    -- | The Amazon Resource Name (ARN) of the human review workflow user
    -- interface you create.
    CreateHumanTaskUiResponse -> Text
humanTaskUiArn :: Prelude.Text
  }
  deriving (CreateHumanTaskUiResponse -> CreateHumanTaskUiResponse -> Bool
(CreateHumanTaskUiResponse -> CreateHumanTaskUiResponse -> Bool)
-> (CreateHumanTaskUiResponse -> CreateHumanTaskUiResponse -> Bool)
-> Eq CreateHumanTaskUiResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateHumanTaskUiResponse -> CreateHumanTaskUiResponse -> Bool
$c/= :: CreateHumanTaskUiResponse -> CreateHumanTaskUiResponse -> Bool
== :: CreateHumanTaskUiResponse -> CreateHumanTaskUiResponse -> Bool
$c== :: CreateHumanTaskUiResponse -> CreateHumanTaskUiResponse -> Bool
Prelude.Eq, ReadPrec [CreateHumanTaskUiResponse]
ReadPrec CreateHumanTaskUiResponse
Int -> ReadS CreateHumanTaskUiResponse
ReadS [CreateHumanTaskUiResponse]
(Int -> ReadS CreateHumanTaskUiResponse)
-> ReadS [CreateHumanTaskUiResponse]
-> ReadPrec CreateHumanTaskUiResponse
-> ReadPrec [CreateHumanTaskUiResponse]
-> Read CreateHumanTaskUiResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateHumanTaskUiResponse]
$creadListPrec :: ReadPrec [CreateHumanTaskUiResponse]
readPrec :: ReadPrec CreateHumanTaskUiResponse
$creadPrec :: ReadPrec CreateHumanTaskUiResponse
readList :: ReadS [CreateHumanTaskUiResponse]
$creadList :: ReadS [CreateHumanTaskUiResponse]
readsPrec :: Int -> ReadS CreateHumanTaskUiResponse
$creadsPrec :: Int -> ReadS CreateHumanTaskUiResponse
Prelude.Read, Int -> CreateHumanTaskUiResponse -> ShowS
[CreateHumanTaskUiResponse] -> ShowS
CreateHumanTaskUiResponse -> String
(Int -> CreateHumanTaskUiResponse -> ShowS)
-> (CreateHumanTaskUiResponse -> String)
-> ([CreateHumanTaskUiResponse] -> ShowS)
-> Show CreateHumanTaskUiResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateHumanTaskUiResponse] -> ShowS
$cshowList :: [CreateHumanTaskUiResponse] -> ShowS
show :: CreateHumanTaskUiResponse -> String
$cshow :: CreateHumanTaskUiResponse -> String
showsPrec :: Int -> CreateHumanTaskUiResponse -> ShowS
$cshowsPrec :: Int -> CreateHumanTaskUiResponse -> ShowS
Prelude.Show, (forall x.
 CreateHumanTaskUiResponse -> Rep CreateHumanTaskUiResponse x)
-> (forall x.
    Rep CreateHumanTaskUiResponse x -> CreateHumanTaskUiResponse)
-> Generic CreateHumanTaskUiResponse
forall x.
Rep CreateHumanTaskUiResponse x -> CreateHumanTaskUiResponse
forall x.
CreateHumanTaskUiResponse -> Rep CreateHumanTaskUiResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateHumanTaskUiResponse x -> CreateHumanTaskUiResponse
$cfrom :: forall x.
CreateHumanTaskUiResponse -> Rep CreateHumanTaskUiResponse x
Prelude.Generic)

-- |
-- Create a value of 'CreateHumanTaskUiResponse' 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:
--
-- 'httpStatus', 'createHumanTaskUiResponse_httpStatus' - The response's http status code.
--
-- 'humanTaskUiArn', 'createHumanTaskUiResponse_humanTaskUiArn' - The Amazon Resource Name (ARN) of the human review workflow user
-- interface you create.
newCreateHumanTaskUiResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'humanTaskUiArn'
  Prelude.Text ->
  CreateHumanTaskUiResponse
newCreateHumanTaskUiResponse :: Int -> Text -> CreateHumanTaskUiResponse
newCreateHumanTaskUiResponse
  Int
pHttpStatus_
  Text
pHumanTaskUiArn_ =
    CreateHumanTaskUiResponse' :: Int -> Text -> CreateHumanTaskUiResponse
CreateHumanTaskUiResponse'
      { $sel:httpStatus:CreateHumanTaskUiResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:humanTaskUiArn:CreateHumanTaskUiResponse' :: Text
humanTaskUiArn = Text
pHumanTaskUiArn_
      }

-- | The response's http status code.
createHumanTaskUiResponse_httpStatus :: Lens.Lens' CreateHumanTaskUiResponse Prelude.Int
createHumanTaskUiResponse_httpStatus :: (Int -> f Int)
-> CreateHumanTaskUiResponse -> f CreateHumanTaskUiResponse
createHumanTaskUiResponse_httpStatus = (CreateHumanTaskUiResponse -> Int)
-> (CreateHumanTaskUiResponse -> Int -> CreateHumanTaskUiResponse)
-> Lens CreateHumanTaskUiResponse CreateHumanTaskUiResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHumanTaskUiResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateHumanTaskUiResponse' :: CreateHumanTaskUiResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateHumanTaskUiResponse
s@CreateHumanTaskUiResponse' {} Int
a -> CreateHumanTaskUiResponse
s {$sel:httpStatus:CreateHumanTaskUiResponse' :: Int
httpStatus = Int
a} :: CreateHumanTaskUiResponse)

-- | The Amazon Resource Name (ARN) of the human review workflow user
-- interface you create.
createHumanTaskUiResponse_humanTaskUiArn :: Lens.Lens' CreateHumanTaskUiResponse Prelude.Text
createHumanTaskUiResponse_humanTaskUiArn :: (Text -> f Text)
-> CreateHumanTaskUiResponse -> f CreateHumanTaskUiResponse
createHumanTaskUiResponse_humanTaskUiArn = (CreateHumanTaskUiResponse -> Text)
-> (CreateHumanTaskUiResponse -> Text -> CreateHumanTaskUiResponse)
-> Lens
     CreateHumanTaskUiResponse CreateHumanTaskUiResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHumanTaskUiResponse' {Text
humanTaskUiArn :: Text
$sel:humanTaskUiArn:CreateHumanTaskUiResponse' :: CreateHumanTaskUiResponse -> Text
humanTaskUiArn} -> Text
humanTaskUiArn) (\s :: CreateHumanTaskUiResponse
s@CreateHumanTaskUiResponse' {} Text
a -> CreateHumanTaskUiResponse
s {$sel:humanTaskUiArn:CreateHumanTaskUiResponse' :: Text
humanTaskUiArn = Text
a} :: CreateHumanTaskUiResponse)

instance Prelude.NFData CreateHumanTaskUiResponse