flow_aliases
Creates, updates, deletes or gets a flow_alias resource or lists flow_aliases in a region
Overview
| Name | flow_aliases |
| Type | Resource |
| Description | Definition of AWS::Bedrock::FlowAlias Resource Type |
| Id | awscc.bedrock.flow_aliases |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
arn | string | Arn of the Flow Alias |
flow_arn | string | Arn representation of the Flow |
concurrency_configuration | object | |
created_at | string | Time Stamp. |
description | string | Description of the Resource. |
flow_id | string | Identifier for a flow resource. |
id | string | Id for a Flow Alias generated at the server side. |
name | string | Name for a resource. |
routing_configuration | array | Routing configuration for a Flow alias. |
updated_at | string | Time Stamp. |
tags | object | A map of tag keys and values |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
arn | string | Arn of the Flow Alias |
flow_arn | string | Arn representation of the Flow |
region | string | AWS region. |
For more information, see AWS::Bedrock::FlowAlias.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | flow_aliases | INSERT | Name, FlowArn, RoutingConfiguration, region |
delete_resource | flow_aliases | DELETE | Identifier, region |
update_resource | flow_aliases | UPDATE | Identifier, PatchDocument, region |
list_resources | flow_aliases_list_only | SELECT | region |
get_resource | flow_aliases | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual flow_alias.
SELECT
region,
arn,
flow_arn,
concurrency_configuration,
created_at,
description,
flow_id,
id,
name,
routing_configuration,
updated_at,
tags
FROM awscc.bedrock.flow_aliases
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}|{{ flow_arn }}';
Lists all flow_aliases in a region.
SELECT
region,
arn,
flow_arn
FROM awscc.bedrock.flow_aliases_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new flow_alias resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.bedrock.flow_aliases (
FlowArn,
Name,
RoutingConfiguration,
region
)
SELECT
'{{ flow_arn }}',
'{{ name }}',
'{{ routing_configuration }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.bedrock.flow_aliases (
FlowArn,
ConcurrencyConfiguration,
Description,
Name,
RoutingConfiguration,
Tags,
region
)
SELECT
'{{ flow_arn }}',
'{{ concurrency_configuration }}',
'{{ description }}',
'{{ name }}',
'{{ routing_configuration }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: flow_alias
props:
- name: flow_arn
value: '{{ flow_arn }}'
- name: concurrency_configuration
value:
type: '{{ type }}'
max_concurrency: null
- name: description
value: '{{ description }}'
- name: name
value: '{{ name }}'
- name: routing_configuration
value:
- flow_version: '{{ flow_version }}'
- name: tags
value: {}
UPDATE example
Use the following StackQL query and manifest file to update a flow_alias resource, using stack-deploy.
/*+ update */
UPDATE awscc.bedrock.flow_aliases
SET PatchDocument = string('{{ {
"ConcurrencyConfiguration": concurrency_configuration,
"Description": description,
"Name": name,
"RoutingConfiguration": routing_configuration,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}|{{ flow_arn }}';
DELETE example
/*+ delete */
DELETE FROM awscc.bedrock.flow_aliases
WHERE
Identifier = '{{ arn }}|{{ flow_arn }}' AND
region = 'us-east-1';
Permissions
To operate on the flow_aliases resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
bedrock:CreateFlowAlias,
bedrock:GetFlowAlias,
bedrock:TagResource,
bedrock:ListTagsForResource
bedrock:GetFlowAlias,
bedrock:ListTagsForResource
bedrock:UpdateFlowAlias,
bedrock:GetFlowAlias,
bedrock:TagResource,
bedrock:UntagResource,
bedrock:ListTagsForResource
bedrock:DeleteFlowAlias
bedrock:ListFlowAliases