Skip to main content

flow_executions

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

Overview

Nameflow_executions
TypeResource
Idaws.bedrock_agent_runtime.flow_executions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
ended_atstring (date-time)The timestamp when the flow execution ended. This field is only populated when the execution has completed, failed, timed out, or been aborted.
errorsarrayA list of errors that occurred during the flow execution. Each error includes an error code, message, and the node where the error occurred, if applicable.
execution_arnstringThe Amazon Resource Name (ARN) that uniquely identifies the flow execution. (pattern: <code>^[a-zA-Z0-9-]{1,36}$|^(arn:aws:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:flow/[0-9a-zA-Z]{10}/alias/[0-9a-zA-Z]{10}/execution/[a-zA-Z0-9-]{1,36})$</code>)
flow_alias_identifierstringThe unique identifier of the flow alias used for the execution. (pattern: <code>^(arn:aws:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:flow/[0-9a-zA-Z]{10}/alias/[0-9a-zA-Z]{10})|(\bTSTALIASID\b|[0-9a-zA-Z]+)$</code>)
flow_identifierstringThe unique identifier of the flow. (pattern: <code>^(arn:aws:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:flow/[0-9a-zA-Z]{10})|([0-9a-zA-Z]{10})$</code>)
flow_versionstringThe version of the flow used for the execution. (pattern: <code>^(DRAFT|[0-9]{0,4}[1-9][0-9]{0,4})$</code>)
started_atstring (date-time)The timestamp when the flow execution started.
statusstringThe current status of the flow execution. Flow executions time out after 24 hours. (Running, Succeeded, Failed, TimedOut, Aborted)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_flow_executionselectexecution_identifier, flow_alias_identifier, flow_identifier, regionRetrieves details about a specific flow execution, including its status, start and end times, and any errors that occurred during execution.
list_flow_executionsselectflow_identifier, regionflowAliasIdentifier, maxResults, nextTokenLists all executions of a flow. Results can be paginated and include summary information about each execution, such as status, start and end times, and the execution's Amazon Resource Name (ARN). Flow executions is in preview release for Amazon Bedrock and is subject to change.

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
execution_identifierstringThe unique identifier of the flow execution to retrieve.
flow_alias_identifierstringThe unique identifier of the flow alias used for the execution.
flow_identifierstringThe unique identifier of the flow to list executions for.
regionstringAWS region (default: us-east-1)
flowAliasIdentifierstringThe unique identifier of the flow alias to list executions for.
maxResultsintegerThe maximum number of flow executions to return in a single response. If more executions exist than the specified maxResults value, a token is included in the response so that the remaining results can be retrieved.
nextTokenstringA token to retrieve the next set of results. This value is returned in the response if more results are available.

SELECT examples

Retrieves details about a specific flow execution, including its status, start and end times, and any errors that occurred during execution.

SELECT
ended_at,
errors,
execution_arn,
flow_alias_identifier,
flow_identifier,
flow_version,
started_at,
status
FROM aws.bedrock_agent_runtime.flow_executions
WHERE execution_identifier = '{{ execution_identifier }}' -- required
AND flow_alias_identifier = '{{ flow_alias_identifier }}' -- required
AND flow_identifier = '{{ flow_identifier }}' -- required
AND region = '{{ region }}' -- required
;