FlowVersion
The FlowVersion resource allows you to manage AWS Bedrock FlowVersions for your applications. This resource enables you to define, update, and deploy specific versions of flows within AWS Bedrock.
Minimal Example
Section titled “Minimal Example”Create a basic FlowVersion with required and common optional properties.
import AWS from "alchemy/aws/control";
const basicFlowVersion = await AWS.Bedrock.FlowVersion("basic-flow-version", { FlowArn: "arn:aws:bedrock:us-west-2:123456789012:flow/my-flow", Description: "Initial version of my flow"});
Advanced Configuration
Section titled “Advanced Configuration”Configure a FlowVersion with additional properties, including the ability to adopt an existing resource.
import AWS from "alchemy/aws/control";
const advancedFlowVersion = await AWS.Bedrock.FlowVersion("advanced-flow-version", { FlowArn: "arn:aws:bedrock:us-west-2:123456789012:flow/my-advanced-flow", Description: "Advanced configuration of my flow", adopt: true // Allows adoption of an existing FlowVersion});
Resource Updating Example
Section titled “Resource Updating Example”Update an existing FlowVersion to modify its description without changing other properties.
import AWS from "alchemy/aws/control";
const updatedFlowVersion = await AWS.Bedrock.FlowVersion("updated-flow-version", { FlowArn: "arn:aws:bedrock:us-west-2:123456789012:flow/my-flow", Description: "Updated version of my flow for new features"});
Retrieving FlowVersion Information
Section titled “Retrieving FlowVersion Information”Retrieve the details of a FlowVersion including its creation and last update timestamps.
import AWS from "alchemy/aws/control";
const flowVersionDetails = await AWS.Bedrock.FlowVersion("retrieve-flow-version", { FlowArn: "arn:aws:bedrock:us-west-2:123456789012:flow/my-flow"});
// Accessing additional propertiesconsole.log(`Flow Version ARN: ${flowVersionDetails.Arn}`);console.log(`Created At: ${flowVersionDetails.CreationTime}`);console.log(`Last Updated At: ${flowVersionDetails.LastUpdateTime}`);