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) |
Safe Haskell | None |
Renders the UI template so that you can preview the worker's experience.
Synopsis
- data RenderUiTemplate = RenderUiTemplate' {}
- newRenderUiTemplate :: RenderableTask -> Text -> RenderUiTemplate
- renderUiTemplate_uiTemplate :: Lens' RenderUiTemplate (Maybe UiTemplate)
- renderUiTemplate_humanTaskUiArn :: Lens' RenderUiTemplate (Maybe Text)
- renderUiTemplate_task :: Lens' RenderUiTemplate RenderableTask
- renderUiTemplate_roleArn :: Lens' RenderUiTemplate Text
- data RenderUiTemplateResponse = RenderUiTemplateResponse' {
- httpStatus :: Int
- renderedContent :: Text
- errors :: [RenderingError]
- newRenderUiTemplateResponse :: Int -> Text -> RenderUiTemplateResponse
- renderUiTemplateResponse_httpStatus :: Lens' RenderUiTemplateResponse Int
- renderUiTemplateResponse_renderedContent :: Lens' RenderUiTemplateResponse Text
- renderUiTemplateResponse_errors :: Lens' RenderUiTemplateResponse [RenderingError]
Creating a Request
data RenderUiTemplate Source #
See: newRenderUiTemplate
smart constructor.
RenderUiTemplate' | |
|
Instances
:: RenderableTask | |
-> Text | |
-> RenderUiTemplate |
Create a value of RenderUiTemplate
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:uiTemplate:RenderUiTemplate'
, renderUiTemplate_uiTemplate
- A Template
object containing the worker UI template to render.
$sel:humanTaskUiArn:RenderUiTemplate'
, renderUiTemplate_humanTaskUiArn
- The HumanTaskUiArn
of the worker UI that you want to render. Do not
provide a HumanTaskUiArn
if you use the UiTemplate
parameter.
See a list of available Human Ui Amazon Resource Names (ARNs) in UiConfig.
$sel:task:RenderUiTemplate'
, renderUiTemplate_task
- A RenderableTask
object containing a representative task to render.
$sel:roleArn:RenderUiTemplate'
, renderUiTemplate_roleArn
- The Amazon Resource Name (ARN) that has access to the S3 objects that
are used by the template.
Request Lenses
renderUiTemplate_uiTemplate :: Lens' RenderUiTemplate (Maybe UiTemplate) Source #
A Template
object containing the worker UI template to render.
renderUiTemplate_humanTaskUiArn :: Lens' RenderUiTemplate (Maybe Text) Source #
The HumanTaskUiArn
of the worker UI that you want to render. Do not
provide a HumanTaskUiArn
if you use the UiTemplate
parameter.
See a list of available Human Ui Amazon Resource Names (ARNs) in UiConfig.
renderUiTemplate_task :: Lens' RenderUiTemplate RenderableTask Source #
A RenderableTask
object containing a representative task to render.
renderUiTemplate_roleArn :: Lens' RenderUiTemplate Text Source #
The Amazon Resource Name (ARN) that has access to the S3 objects that are used by the template.
Destructuring the Response
data RenderUiTemplateResponse Source #
See: newRenderUiTemplateResponse
smart constructor.
RenderUiTemplateResponse' | |
|
Instances
newRenderUiTemplateResponse Source #
:: Int | |
-> Text | |
-> RenderUiTemplateResponse |
Create a value of RenderUiTemplateResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:RenderUiTemplateResponse'
, renderUiTemplateResponse_httpStatus
- The response's http status code.
$sel:renderedContent:RenderUiTemplateResponse'
, renderUiTemplateResponse_renderedContent
- A Liquid template that renders the HTML for the worker UI.
$sel:errors:RenderUiTemplateResponse'
, renderUiTemplateResponse_errors
- A list of one or more RenderingError
objects if any were encountered
while rendering the template. If there were no errors, the list is
empty.
Response Lenses
renderUiTemplateResponse_httpStatus :: Lens' RenderUiTemplateResponse Int Source #
The response's http status code.
renderUiTemplateResponse_renderedContent :: Lens' RenderUiTemplateResponse Text Source #
A Liquid template that renders the HTML for the worker UI.
renderUiTemplateResponse_errors :: Lens' RenderUiTemplateResponse [RenderingError] Source #
A list of one or more RenderingError
objects if any were encountered
while rendering the template. If there were no errors, the list is
empty.