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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.bedrock.flow_versions
WHERE
Identifier = '{{ flow_arn }}|{{ version }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

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