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
¶
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.
response_metadata
class-attribute
instance-attribute
¶
response_metadata: ResponseMetadata = field(default=EMPTY_RESPONSE_METADATA, repr=False, compare=False)
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.
status
instance-attribute
¶
status: str
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.