get_flow¶
Operation¶
get_flow
async
¶
get_flow(input: GetFlowInput, plugins: list[Plugin] | None = None) -> GetFlowOutput
Retrieves information about a flow. For more information, see Manage a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
GetFlowInput
|
An instance of |
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 |
|---|---|
GetFlowOutput
|
An instance of |
Input¶
GetFlowInput
dataclass
¶
Dataclass for GetFlowInput structure.
Attributes¶
flow_identifier
class-attribute
instance-attribute
¶
flow_identifier: str | None = None
The unique identifier of the flow.
included_data
class-attribute
instance-attribute
¶
included_data: IncludedData | None = None
Controls the scope of data returned. Set to METADATA_ONLY to return
only resource metadata. Set to ALL_DATA or omit this field to return
the full response.
Output¶
GetFlowOutput
dataclass
¶
Dataclass for GetFlowOutput structure.
Attributes¶
customer_encryption_key_arn
class-attribute
instance-attribute
¶
customer_encryption_key_arn: str | None = None
The Amazon Resource Name (ARN) of the KMS key that the flow is encrypted with.
definition
class-attribute
instance-attribute
¶
definition: FlowDefinition | None = field(repr=False, default=None)
The definition of the nodes and connections between the nodes in the flow.
description
class-attribute
instance-attribute
¶
description: str | None = None
The description of the flow.
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 row for flows in the Amazon Bedrock User Guide.
status
instance-attribute
¶
status: FlowStatus
The status of the flow. The following statuses are possible:
-
NotPrepared -- The flow has been created or updated, but hasn't been prepared. If you just created the flow, you can't test it. If you updated the flow, the
DRAFTversion won't contain the latest changes for testing. Send a PrepareFlow request to package the latest changes into theDRAFTversion. -
Preparing -- The flow is being prepared so that the
DRAFTversion contains the latest changes for testing. -
Prepared -- The flow is prepared and the
DRAFTversion contains the latest changes for testing. -
Failed -- The last API operation that you invoked on the flow failed. Send a GetFlow request and check the error message in the
validationsfield.
validations
class-attribute
instance-attribute
¶
validations: list[FlowValidation] | None = None
A list of validation error messages related to the last failed operation on the flow.
version
instance-attribute
¶
version: str
The version of the flow for which information was retrieved.