Skip to content

Bedrock Agent  >  Operations  >  create_flow_version

create_flow_version

Operation

create_flow_version async

create_flow_version(input: CreateFlowVersionInput, plugins: list[Plugin] | None = None) -> CreateFlowVersionOutput

Creates a version of the flow that you can deploy. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.

Parameters:

Name Type Description Default
input CreateFlowVersionInput

An instance of CreateFlowVersionInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
CreateFlowVersionOutput

An instance of CreateFlowVersionOutput.

Input

CreateFlowVersionInput dataclass

Dataclass for CreateFlowVersionInput structure.

Attributes

client_token class-attribute instance-attribute
client_token: str | None = None

A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.

description class-attribute instance-attribute
description: str | None = None

A description of the version of the flow.

flow_identifier class-attribute instance-attribute
flow_identifier: str | None = None

The unique identifier of the flow that you want to create a version of.

Output

CreateFlowVersionOutput dataclass

Dataclass for CreateFlowVersionOutput structure.

Attributes

arn instance-attribute
arn: str

The Amazon Resource Name (ARN) of the flow.

created_at instance-attribute
created_at: datetime

The time at which the flow was created.

customer_encryption_key_arn class-attribute instance-attribute
customer_encryption_key_arn: str | None = None

The KMS key that the flow is encrypted with.

definition class-attribute instance-attribute
definition: FlowDefinition | None = field(repr=False, default=None)

A definition of the nodes and connections in the flow.

description class-attribute instance-attribute
description: str | None = None

The description of the version.

execution_role_arn instance-attribute
execution_role_arn: str

The Amazon Resource Name (ARN) of the service role with permissions to create a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide.

id instance-attribute
id: str

The unique identifier of the flow.

name instance-attribute
name: str

The name of the version.

status instance-attribute
status: FlowStatus

The status of the flow.

version instance-attribute
version: str

The version of the flow that was created. Versions are numbered incrementally, starting from 1.