Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

get_model_template

get_model_template(**kwargs)

Generates a sample mapping template that can be used to transform a payload into the structure of a model.

See also: AWS API Documentation

Request Syntax

response = client.get_model_template(
    restApiId='string',
    modelName='string'
)
Parameters
  • restApiId (string) --

    [REQUIRED]

    The string identifier of the associated RestApi.

  • modelName (string) --

    [REQUIRED]

    The name of the model for which to generate a template.

Return type

dict

Returns

Response Syntax

{
    'value': 'string'
}

Response Structure

  • (dict) --

    Represents a mapping template used to transform a payload.

    • value (string) --

      The Apache Velocity Template Language (VTL) template content used for the template resource.

Exceptions

  • APIGateway.Client.exceptions.UnauthorizedException
  • APIGateway.Client.exceptions.NotFoundException
  • APIGateway.Client.exceptions.BadRequestException
  • APIGateway.Client.exceptions.TooManyRequestsException