libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SageMaker.RenderUiTemplate

Description

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

Synopsis

Creating a Request

data RenderUiTemplate Source #

See: newRenderUiTemplate smart constructor.

Constructors

RenderUiTemplate' 

Fields

  • uiTemplate :: Maybe UiTemplate

    A Template object containing the worker UI template to render.

  • humanTaskUiArn :: Maybe Text

    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.

  • task :: RenderableTask

    A RenderableTask object containing a representative task to render.

  • roleArn :: Text

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

Instances

Instances details
Eq RenderUiTemplate Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

Read RenderUiTemplate Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

Show RenderUiTemplate Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

Generic RenderUiTemplate Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

Associated Types

type Rep RenderUiTemplate :: Type -> Type #

NFData RenderUiTemplate Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

Methods

rnf :: RenderUiTemplate -> () #

Hashable RenderUiTemplate Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

ToJSON RenderUiTemplate Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

AWSRequest RenderUiTemplate Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

Associated Types

type AWSResponse RenderUiTemplate #

ToHeaders RenderUiTemplate Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

ToPath RenderUiTemplate Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

ToQuery RenderUiTemplate Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

type Rep RenderUiTemplate Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

type Rep RenderUiTemplate = D1 ('MetaData "RenderUiTemplate" "Amazonka.SageMaker.RenderUiTemplate" "libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker" 'False) (C1 ('MetaCons "RenderUiTemplate'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "uiTemplate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UiTemplate)) :*: S1 ('MetaSel ('Just "humanTaskUiArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "task") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RenderableTask) :*: S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse RenderUiTemplate Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

newRenderUiTemplate Source #

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.

Constructors

RenderUiTemplateResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • renderedContent :: Text

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

  • errors :: [RenderingError]

    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.

Instances

Instances details
Eq RenderUiTemplateResponse Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

Read RenderUiTemplateResponse Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

Show RenderUiTemplateResponse Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

Generic RenderUiTemplateResponse Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

Associated Types

type Rep RenderUiTemplateResponse :: Type -> Type #

NFData RenderUiTemplateResponse Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

type Rep RenderUiTemplateResponse Source # 
Instance details

Defined in Amazonka.SageMaker.RenderUiTemplate

type Rep RenderUiTemplateResponse = D1 ('MetaData "RenderUiTemplateResponse" "Amazonka.SageMaker.RenderUiTemplate" "libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker" 'False) (C1 ('MetaCons "RenderUiTemplateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "renderedContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "errors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [RenderingError]))))

newRenderUiTemplateResponse Source #

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_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.