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.

run_statement

run_statement(**kwargs)

Executes the statement.

See also: AWS API Documentation

Request Syntax

response = client.run_statement(
    SessionId='string',
    Code='string',
    RequestOrigin='string'
)
Parameters
  • SessionId (string) --

    [REQUIRED]

    The Session Id of the statement to be run.

  • Code (string) --

    [REQUIRED]

    The statement code to be run.

  • RequestOrigin (string) -- The origin of the request.
Return type

dict

Returns

Response Syntax

{
    'Id': 123
}

Response Structure

  • (dict) --

    • Id (integer) --

      Returns the Id of the statement that was run.

Exceptions

  • Glue.Client.exceptions.EntityNotFoundException
  • Glue.Client.exceptions.AccessDeniedException
  • Glue.Client.exceptions.InternalServiceException
  • Glue.Client.exceptions.OperationTimeoutException
  • Glue.Client.exceptions.InvalidInputException
  • Glue.Client.exceptions.ValidationException
  • Glue.Client.exceptions.ResourceNumberLimitExceededException
  • Glue.Client.exceptions.IllegalSessionStateException