AmplifyBackend / Client / generate_backend_api_models

generate_backend_api_models#

AmplifyBackend.Client.generate_backend_api_models(**kwargs)#

Generates a model schema for an existing backend API resource.

See also: AWS API Documentation

Request Syntax

response = client.generate_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

{
    'AppId': 'string',
    'BackendEnvironmentName': 'string',
    'Error': 'string',
    'JobId': 'string',
    'Operation': 'string',
    'Status': 'string'
}

Response Structure

  • (dict) –

    200 response

    • AppId (string) –

      The app ID.

    • BackendEnvironmentName (string) –

      The name of the backend environment.

    • Error (string) –

      If the request fails, this error is returned.

    • JobId (string) –

      The ID for the job.

    • Operation (string) –

      The name of the operation.

    • Status (string) –

      The current status of the request.

Exceptions

  • AmplifyBackend.Client.exceptions.NotFoundException

  • AmplifyBackend.Client.exceptions.GatewayTimeoutException

  • AmplifyBackend.Client.exceptions.TooManyRequestsException

  • AmplifyBackend.Client.exceptions.BadRequestException