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_backend_api_models

get_backend_api_models(**kwargs)

Gets a model introspection schema for an existing backend API resource.

See also: AWS API Documentation

Request Syntax

response = client.get_backend_api_models(
    AppId='string',
    BackendEnvironmentName='string',
    ResourceName='string'
)
Parameters
  • AppId (string) --

    [REQUIRED]

    The app ID.

  • BackendEnvironmentName (string) --

    [REQUIRED]

    The name of the backend environment.

  • ResourceName (string) --

    [REQUIRED]

    The name of this resource.

Return type

dict

Returns

Response Syntax

{
    'Models': 'string',
    'Status': 'LATEST'|'STALE',
    'ModelIntrospectionSchema': 'string'
}

Response Structure

  • (dict) --

    200 response

    • Models (string) --

      Stringified JSON of the datastore model.

    • Status (string) --

      The current status of the request.

    • ModelIntrospectionSchema (string) --

      Stringified JSON of the model introspection schema for an existing backend API resource.

Exceptions

  • AmplifyBackend.Client.exceptions.NotFoundException
  • AmplifyBackend.Client.exceptions.GatewayTimeoutException
  • AmplifyBackend.Client.exceptions.TooManyRequestsException
  • AmplifyBackend.Client.exceptions.BadRequestException