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 | awscc.bedrock.flow_versions |
Fields
- get (all properties)
- list (identifiers only)
| 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. |
| Name | Datatype | Description |
|---|---|---|
flow_arn | string | Arn representation of the Flow |
version | string | Numerical Version. |
region | string | AWS region. |
For more information, see AWS::Bedrock::FlowVersion.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | flow_versions | INSERT | FlowArn, region |
delete_resource | flow_versions | DELETE | Identifier, region |
update_resource | flow_versions | UPDATE | Identifier, PatchDocument, region |
list_resources | flow_versions_list_only | SELECT | region |
get_resource | flow_versions | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 }}';
Lists all flow_versions in a region.
SELECT
region,
flow_arn,
version
FROM awscc.bedrock.flow_versions_list_only
WHERE
region = 'us-east-1';
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 awscc.bedrock.flow_versions (
FlowArn,
region
)
SELECT
'{{ flow_arn }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.bedrock.flow_versions (
FlowArn,
Description,
region
)
SELECT
'{{ flow_arn }}',
'{{ 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: flow_arn
value: '{{ flow_arn }}'
- name: description
value: '{{ description }}'
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:
- Create
- Read
- Delete
- List
- Update
bedrock:CreateFlowVersion,
bedrock:GetFlowVersion,
kms:GenerateDataKey,
kms:Decrypt,
bedrock:CreateGuardrail,
bedrock:CreateGuardrailVersion,
bedrock:GetGuardrail
bedrock:GetFlowVersion,
kms:Decrypt,
bedrock:GetGuardrail
bedrock:DeleteFlowVersion,
bedrock:GetFlowVersion,
bedrock:DeleteGuardrail,
bedrock:GetGuardrail
bedrock:ListFlowVersions,
bedrock:ListGuardrails
noservice:NoAction