Skip to main content

flow_versions

Creates, updates, deletes or gets a flow_version resource or lists flow_versions in a region

Overview

Nameflow_versions
TypeResource
DescriptionDefinition of AWS::Bedrock::FlowVersion Resource Type
Idawscc.bedrock.flow_versions

Fields

NameDatatypeDescription
flow_arnstringArn representation of the Flow
created_atstringTime Stamp.
definitionobjectFlow definition
descriptionstringDescription of the flow version
execution_role_arnstringARN of a IAM role
flow_idstringIdentifier for a Flow
namestringName for the flow
statusstringSchema Type for Flow APIs
versionstringNumerical Version.
customer_encryption_key_arnstringA KMS key ARN
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceflow_versionsINSERTFlowArn, region
delete_resourceflow_versionsDELETEIdentifier, region
update_resourceflow_versionsUPDATEIdentifier, PatchDocument, region
list_resourcesflow_versions_list_onlySELECTregion
get_resourceflow_versionsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual flow_version.

SELECT
region,
flow_arn,
created_at,
definition,
description,
execution_role_arn,
flow_id,
name,
status,
version,
customer_encryption_key_arn
FROM awscc.bedrock.flow_versions
WHERE
region = 'us-east-1' AND
Identifier = '{{ flow_arn }}|{{ version }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.bedrock.flow_versions (
FlowArn,
region
)
SELECT
'{{ flow_arn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.bedrock.flow_versions
WHERE
Identifier = '{{ flow_arn }}|{{ version }}' AND
region = 'us-east-1';

Permissions

To operate on the flow_versions resource, the following permissions are required:

bedrock:CreateFlowVersion,
bedrock:GetFlowVersion,
kms:GenerateDataKey,
kms:Decrypt,
bedrock:CreateGuardrail,
bedrock:CreateGuardrailVersion,
bedrock:GetGuardrail