Skip to main content

flow_aliases

Creates, updates, deletes or gets a flow_alias resource or lists flow_aliases in a region

Overview

Nameflow_aliases
TypeResource
DescriptionDefinition of AWS::Bedrock::FlowAlias Resource Type
Idawscc.bedrock.flow_aliases

Fields

NameDatatypeDescription
arnstringArn of the Flow Alias
flow_arnstringArn representation of the Flow
concurrency_configurationobject
created_atstringTime Stamp.
descriptionstringDescription of the Resource.
flow_idstringIdentifier for a flow resource.
idstringId for a Flow Alias generated at the server side.
namestringName for a resource.
routing_configurationarrayRouting configuration for a Flow alias.
updated_atstringTime Stamp.
tagsobjectA map of tag keys and values
regionstringAWS region.

For more information, see AWS::Bedrock::FlowAlias.

Methods

NameResourceAccessible byRequired Params
create_resourceflow_aliasesINSERTName, FlowArn, RoutingConfiguration, region
delete_resourceflow_aliasesDELETEIdentifier, region
update_resourceflow_aliasesUPDATEIdentifier, PatchDocument, region
list_resourcesflow_aliases_list_onlySELECTregion
get_resourceflow_aliasesSELECTIdentifier, region

SELECT examples

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 }}';

INSERT example

Use the following StackQL query and manifest file to create a new flow_alias resource, using stack-deploy.

/*+ 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
;

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:

ParameterDescription
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:

bedrock:CreateFlowAlias,
bedrock:GetFlowAlias,
bedrock:TagResource,
bedrock:ListTagsForResource