Skip to main content

flow_alias

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

Overview

Nameflow_alias
TypeResource
Idaws.bedrock_agent.flow_alias

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the alias of the flow. (pattern: <code>(TSTALIASID|[0-9a-zA-Z]{10})</code>)
namestringThe name of the alias. (pattern: <code>([0-9a-zA-Z][_-]?){1,100}</code>)
arnstringThe Amazon Resource Name (ARN) of the flow. (pattern: <code>arn:aws:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:flow/[0-9a-zA-Z]{10}/alias/(TSTALIASID|[0-9a-zA-Z]{10})</code>)
concurrency_configurationobjectDetermines how multiple nodes in a flow can run in parallel. Running nodes concurrently can improve your flow's performance.
created_atstring (date-time)The time at which the flow was created.
descriptionstringThe description of the flow.
flow_idstringThe unique identifier of the flow that the alias belongs to. (pattern: <code>[0-9a-zA-Z]{10}</code>)
routing_configurationarrayContains information about the version that the alias is mapped to.
updated_atstring (date-time)The time at which the alias was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_flow_aliasselectflow_identifier, alias_identifier, regionRetrieves information about a flow. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
create_flow_aliasinsertflow_identifier, region, name, routingConfigurationCreates an alias of a flow for deployment. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
update_flow_aliasupdateflow_identifier, alias_identifier, region, name, routingConfigurationModifies the alias of a flow. Include both fields that you want to keep and ones that you want to change. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
delete_flow_aliasdeleteflow_identifier, alias_identifier, regionDeletes an alias of a flow.

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
alias_identifierstringThe unique identifier of the alias to be deleted.
flow_identifierstringThe unique identifier of the flow that the alias belongs to.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves information about a flow. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.

SELECT
id,
name,
arn,
concurrency_configuration,
created_at,
description,
flow_id,
routing_configuration,
updated_at
FROM aws.bedrock_agent.flow_alias
WHERE flow_identifier = '{{ flow_identifier }}' -- required
AND alias_identifier = '{{ alias_identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an alias of a flow for deployment. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.

INSERT INTO aws.bedrock_agent.flow_alias (
name,
description,
routingConfiguration,
concurrencyConfiguration,
clientToken,
tags,
flow_identifier,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ routingConfiguration }}' /* required */,
'{{ concurrencyConfiguration }}',
'{{ clientToken }}',
'{{ tags }}',
'{{ flow_identifier }}',
'{{ region }}'
RETURNING
id,
name,
arn,
concurrency_configuration,
created_at,
description,
flow_id,
routing_configuration,
updated_at
;

UPDATE examples

Modifies the alias of a flow. Include both fields that you want to keep and ones that you want to change. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.

UPDATE aws.bedrock_agent.flow_alias
SET
name = '{{ name }}',
description = '{{ description }}',
routingConfiguration = '{{ routingConfiguration }}',
concurrencyConfiguration = '{{ concurrencyConfiguration }}'
WHERE
flow_identifier = '{{ flow_identifier }}' --required
AND alias_identifier = '{{ alias_identifier }}' --required
AND region = '{{ region }}' --required
AND name = '{{ name }}' --required
AND routingConfiguration = '{{ routingConfiguration }}' --required
RETURNING
id,
name,
arn,
concurrency_configuration,
created_at,
description,
flow_id,
routing_configuration,
updated_at;

DELETE examples

Deletes an alias of a flow.

DELETE FROM aws.bedrock_agent.flow_alias
WHERE flow_identifier = '{{ flow_identifier }}' --required
AND alias_identifier = '{{ alias_identifier }}' --required
AND region = '{{ region }}' --required
;