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
Idaws.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

NameAccessible byRequired Params
create_resourceINSERTFlowArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all flow_versions in a region.

SELECT
region,
flow_arn,
created_at,
definition,
description,
execution_role_arn,
flow_id,
name,
status,
version,
customer_encryption_key_arn
FROM aws.bedrock.flow_versions
WHERE region = 'us-east-1';

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 aws.bedrock.flow_versions
WHERE region = 'us-east-1' AND data__Identifier = '<FlowArn>|<Version>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.bedrock.flow_versions
WHERE data__Identifier = '<FlowArn|Version>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

bedrock:GetFlowVersion,
kms:Decrypt,
bedrock:GetGuardrail

Delete

bedrock:DeleteFlowVersion,
bedrock:GetFlowVersion,
bedrock:DeleteGuardrail,
bedrock:GetGuardrail

List

bedrock:ListFlowVersions,
bedrock:ListGuardrails

Update

noservice:NoAction