Skip to main content

statements

Creates, updates, deletes, gets or lists a statements resource.

Overview​

Namestatements
TypeResource
Idaws.glue.statements

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
codestringThe execution code of the statement.
completed_oninteger (int64)The unix time and date that the job definition was completed.
idintegerThe ID of the statement.
outputobjectThe output in JSON.
progressnumber (double)The code execution progress.
started_oninteger (int64)The unix time and date that the job definition was started.
statestringThe state while request is actioned. (WAITING, RUNNING, AVAILABLE, CANCELLING, CANCELLED, ERROR)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_statementselectregionRetrieves the statement.
list_statementsselectregionLists statements for the session.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples​

Retrieves the statement.

SELECT
code,
completed_on,
id,
output,
progress,
started_on,
state
FROM aws.glue.statements
WHERE region = '{{ region }}' -- required
;