get_query_state
(**kwargs)¶Returns the state of a query previously submitted. Clients are expected to poll GetQueryState
to monitor the current state of the planning before retrieving the work units. A query state is only visible to the principal that made the initial call to StartQueryPlanning
.
See also: AWS API Documentation
Request Syntax
response = client.get_query_state(
QueryId='string'
)
[REQUIRED]
The ID of the plan query operation.
{
'Error': 'string',
'State': 'PENDING'|'WORKUNITS_AVAILABLE'|'ERROR'|'FINISHED'|'EXPIRED'
}
Response Structure
A structure for the output.
An error message when the operation fails.
The state of a query previously submitted. The possible states are:
Exceptions
LakeFormation.Client.exceptions.InternalServiceException
LakeFormation.Client.exceptions.InvalidInputException
LakeFormation.Client.exceptions.AccessDeniedException