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 = '{{ region }}' 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 = '{{ region }}';
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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
DELETE example
/*+ delete */
DELETE FROM awscc.bedrock.flow_aliases
WHERE
Identifier = '{{ arn }}|{{ flow_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
Additional Parameters
Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:
| Parameter | Description |
|---|---|
ClientToken | A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.A client token is valid for 36 hours once used. After that, a resource request with the same client token is treated as a new request. If you do not specify a client token, one is generated for inclusion in the request. |
RoleArn | The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.If you do not specify a role, a temporary session is created using your AWS user credentials. |
TypeVersionId | For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used. |
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