Skip to main content

flows

Creates, updates, deletes or gets a flow resource or lists flows in a region

Overview

Nameflows
TypeResource
DescriptionDefinition of AWS::Bedrock::Flow Resource Type
Idaws.bedrock.flows

Fields

NameDatatypeDescription
arnstringArn representation of the Flow
created_atstringTime Stamp.
definitionobjectFlow definition
definition_stringstringA JSON string containing a Definition with the same schema as the Definition property of this resource
definition_s3_locationobjectAn Amazon S3 location.
definition_substitutionsobjectWhen supplied with DefinitionString or DefinitionS3Location, substrings in the definition matching ${keyname} will be replaced with the associated value from this map
descriptionstringDescription of the flow
execution_role_arnstringARN of a IAM role
idstringIdentifier for a Flow
namestringName for the flow
statusstringSchema Type for Flow APIs
updated_atstringTime Stamp.
customer_encryption_key_arnstringA KMS key ARN
validationsarrayList of flow validations
versionstringDraft Version.
tagsobjectA map of tag keys and values
test_alias_tagsobjectA map of tag keys and values
regionstringAWS region.

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

Methods

NameAccessible byRequired Params
create_resourceINSERTExecutionRoleArn, Name, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all flows in a region.

SELECT
region,
arn,
created_at,
definition,
definition_string,
definition_s3_location,
definition_substitutions,
description,
execution_role_arn,
id,
name,
status,
updated_at,
customer_encryption_key_arn,
validations,
version,
tags,
test_alias_tags
FROM aws.bedrock.flows
WHERE region = 'us-east-1';

Gets all properties from an individual flow.

SELECT
region,
arn,
created_at,
definition,
definition_string,
definition_s3_location,
definition_substitutions,
description,
execution_role_arn,
id,
name,
status,
updated_at,
customer_encryption_key_arn,
validations,
version,
tags,
test_alias_tags
FROM aws.bedrock.flows
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.bedrock.flows (
ExecutionRoleArn,
Name,
region
)
SELECT
'{{ ExecutionRoleArn }}',
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.bedrock.flows
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

bedrock:CreateFlow,
bedrock:GetFlow,
bedrock:PrepareFlow,
iam:PassRole,
s3:GetObject,
s3:GetObjectVersion,
bedrock:TagResource,
bedrock:ListTagsForResource,
kms:GenerateDataKey,
kms:Decrypt,
bedrock:CreateGuardrail,
bedrock:CreateGuardrailVersion,
bedrock:GetGuardrail

Read

bedrock:GetFlow,
bedrock:ListTagsForResource,
kms:Decrypt,
bedrock:GetGuardrail

Update

bedrock:UpdateFlow,
bedrock:GetFlow,
bedrock:PrepareFlow,
iam:PassRole,
s3:GetObject,
s3:GetObjectVersion,
bedrock:TagResource,
bedrock:UntagResource,
bedrock:ListTagsForResource,
kms:GenerateDataKey,
kms:Decrypt,
bedrock:UpdateGuardrail,
bedrock:GetGuardrail

Delete

bedrock:DeleteFlow,
bedrock:GetFlow,
bedrock:DeleteGuardrail,
bedrock:GetGuardrail

List

bedrock:ListFlows,
bedrock:ListGuardrails