Amazon SageMaker
Developer Guide

RenderUiTemplate

Renders the UI template so that you can preview the worker's experience.

Request Syntax

{ "RoleArn": "string", "Task": { "Input": "string" }, "UiTemplate": { "Content": "string" } }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

RoleArn

The Amazon Resource Name (ARN) that has access to the S3 objects that are used by the template.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Pattern: ^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$

Required: Yes

Task

A RenderableTask object containing a representative task to render.

Type: RenderableTask object

Required: Yes

UiTemplate

A Template object containing the worker UI template to render.

Type: UiTemplate object

Required: Yes

Response Syntax

{ "Errors": [ { "Code": "string", "Message": "string" } ], "RenderedContent": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

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.

Type: Array of RenderingError objects

RenderedContent

A Liquid template that renders the HTML for the worker UI.

Type: String

Errors

For information about the errors that are common to all actions, see Common Errors.

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: