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 | aws.bedrock.flow_aliases |
Fields
Name | Datatype | Description |
---|---|---|
arn | string | Arn of the Flow Alias |
flow_arn | string | Arn representation of the Flow |
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. |
For more information, see AWS::Bedrock::FlowAlias
.
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Name, FlowArn, RoutingConfiguration, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all flow_aliases
in a region.
SELECT
region,
arn,
flow_arn,
created_at,
description,
flow_id,
id,
name,
routing_configuration,
updated_at,
tags
FROM aws.bedrock.flow_aliases
WHERE region = 'us-east-1';
Gets all properties from an individual flow_alias
.
SELECT
region,
arn,
flow_arn,
created_at,
description,
flow_id,
id,
name,
routing_configuration,
updated_at,
tags
FROM aws.bedrock.flow_aliases
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>|<FlowArn>';
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 aws.bedrock.flow_aliases (
FlowArn,
Name,
RoutingConfiguration,
region
)
SELECT
'{{ FlowArn }}',
'{{ Name }}',
'{{ RoutingConfiguration }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.bedrock.flow_aliases (
FlowArn,
Description,
Name,
RoutingConfiguration,
Tags,
region
)
SELECT
'{{ FlowArn }}',
'{{ Description }}',
'{{ Name }}',
'{{ RoutingConfiguration }}',
'{{ 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: FlowArn
value: '{{ FlowArn }}'
- name: Description
value: '{{ Description }}'
- name: Name
value: '{{ Name }}'
- name: RoutingConfiguration
value:
- FlowVersion: '{{ FlowVersion }}'
- name: Tags
value: {}
DELETE
example
/*+ delete */
DELETE FROM aws.bedrock.flow_aliases
WHERE data__Identifier = '<Arn|FlowArn>'
AND region = 'us-east-1';
Permissions
To operate on the flow_aliases
resource, the following permissions are required:
Create
bedrock:CreateFlowAlias,
bedrock:GetFlowAlias,
bedrock:TagResource,
bedrock:ListTagsForResource
Read
bedrock:GetFlowAlias,
bedrock:ListTagsForResource
Update
bedrock:UpdateFlowAlias,
bedrock:GetFlowAlias,
bedrock:TagResource,
bedrock:UntagResource,
bedrock:ListTagsForResource
Delete
bedrock:DeleteFlowAlias
List
bedrock:ListFlowAliases