Athena Get Query Execution
Returns Amazon Athena query execution object by query execution ID.
In-ports
id String
— the unique ID of the query execution.
trigger <any>
— triggers the action.
abort Boolean
— aborts all pending actions.
config JSON
(dynamic) — accepts a JSON object with configuration properties that can be set at runtime.
Out-ports
query-execution JSON
— emits query execution object.
errors JSON
— emits any errors that occur during the action.
Overview
The Athena Get Query Execution component allows you to retrieve already running query execution by its queryExecutionId
and monitor the status of the query. This component is part of the group of components that are designed to perform advanced operations with Amazon Athena. Simpler version of Athena interface is available in the Athena Query component.
This component implements the GetQueryExecution Athena action and returns a query execution object with all query parameters. For more information about the query execution object, you can refer to the Query Execution API documentation.
To start the query and create query execution use Athena Start Query Execution component. To retrieve the results of the query, use the Athena Get Results component.
To use this component, you will need to connect it to your Amazon Athena account and pass a queryExecutionId
to the id port. The component will return a query execution object on the query-execution port.
If the trigger input port is connected, the component will wait to execute the action until an event is sent on the trigger port. The component will execute the action every time an event is received on the trigger port. If any errors occur during the action execution, the corresponding error message will be emitted on the errors output port.
Configuration
This component supports dynamic configuration. You can specify the required settings either in the Settings dialog or through a configuration object. To enable the config port for runtime configuration, turn on the Enable realtime config port setting.
Settings
Authentication
Configure authentication to the target service. Select one of the existing connections from the drop-down list, or configure a new connection.
Enable realtime config port
If this setting is enabled, the component can be configured through the config port. This port accepts a configuration object as input and allows you to set dynamic properties at runtime. Note that using this port does not cause the component to reinitialize, but it may cause some previous state of the component to be lost.
Region (region
)
The name of AWS Region in which you are using Athena. Athena allows you to query Amazon S3 data in a different AWS Region than the one in which you are using Athena. Learn more about querying across AWS regions.
Type: String
Required: Yes
Keep always active
Determines whether the component will remain active even if it is not connected to a visible widget or another active component.
Configuration Object
Here is an example of a configuration object that you can use as a template:
{
"region": "us-east-1"
}
Related
- Athena Simple Query
- Athena List Query Executions
- Athena Start Query Execution
- Athena Get Results
- Connecting to Data
See also
For more information about Amazon Athena, see the following: