flow_versions
Creates, updates, deletes or gets a flow_version
resource or lists flow_versions
in a region
Overview
Name | flow_versions |
Type | Resource |
Description | Definition of AWS::Bedrock::FlowVersion Resource Type |
Id | aws.bedrock.flow_versions |
Fields
Name | Datatype | Description |
---|---|---|
flow_arn | string | Arn representation of the Flow |
created_at | string | Time Stamp. |
definition | object | Flow definition |
description | string | Description of the flow version |
execution_role_arn | string | ARN of a IAM role |
flow_id | string | Identifier for a Flow |
name | string | Name for the flow |
status | string | Schema Type for Flow APIs |
version | string | Numerical Version. |
customer_encryption_key_arn | string | A KMS key ARN |
region | string | AWS region. |
For more information, see AWS::Bedrock::FlowVersion
.
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | FlowArn, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.bedrock.flow_versions (
FlowArn,
region
)
SELECT
'{{ FlowArn }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.bedrock.flow_versions (
FlowArn,
Description,
region
)
SELECT
'{{ FlowArn }}',
'{{ Description }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: flow_version
props:
- name: FlowArn
value: '{{ FlowArn }}'
- name: Description
value: '{{ Description }}'
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