// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetFlow`](crate::operation::get_flow::builders::GetFlowFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`flow_identifier(impl Into<String>)`](crate::operation::get_flow::builders::GetFlowFluentBuilder::flow_identifier) / [`set_flow_identifier(Option<String>)`](crate::operation::get_flow::builders::GetFlowFluentBuilder::set_flow_identifier):<br>required: **true**<br><p>The unique identifier of the flow.</p><br>
/// - On success, responds with [`GetFlowOutput`](crate::operation::get_flow::GetFlowOutput) with field(s):
/// - [`name(String)`](crate::operation::get_flow::GetFlowOutput::name): <p>The name of the flow.</p>
/// - [`description(Option<String>)`](crate::operation::get_flow::GetFlowOutput::description): <p>The description of the flow.</p>
/// - [`execution_role_arn(String)`](crate::operation::get_flow::GetFlowOutput::execution_role_arn): <p>The Amazon Resource Name (ARN) of the service role with permissions to create a flow. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-permissions.html">Create a service row for flows</a> in the Amazon Bedrock User Guide.</p>
/// - [`customer_encryption_key_arn(Option<String>)`](crate::operation::get_flow::GetFlowOutput::customer_encryption_key_arn): <p>The Amazon Resource Name (ARN) of the KMS key that the flow is encrypted with.</p>
/// - [`id(String)`](crate::operation::get_flow::GetFlowOutput::id): <p>The unique identifier of the flow.</p>
/// - [`arn(String)`](crate::operation::get_flow::GetFlowOutput::arn): <p>The Amazon Resource Name (ARN) of the flow.</p>
/// - [`status(FlowStatus)`](crate::operation::get_flow::GetFlowOutput::status): <p>The status of the flow. The following statuses are possible:</p> <ul> <li> <p>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 <code>DRAFT</code> version won't contain the latest changes for testing. Send a <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PrepareFlow.html">PrepareFlow</a> request to package the latest changes into the <code>DRAFT</code> version.</p></li> <li> <p>Preparing – The flow is being prepared so that the <code>DRAFT</code> version contains the latest changes for testing.</p></li> <li> <p>Prepared – The flow is prepared and the <code>DRAFT</code> version contains the latest changes for testing.</p></li> <li> <p>Failed – The last API operation that you invoked on the flow failed. Send a <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetFlow.html">GetFlow</a> request and check the error message in the <code>validations</code> field.</p></li> </ul>
/// - [`created_at(DateTime)`](crate::operation::get_flow::GetFlowOutput::created_at): <p>The time at which the flow was created.</p>
/// - [`updated_at(DateTime)`](crate::operation::get_flow::GetFlowOutput::updated_at): <p>The time at which the flow was last updated.</p>
/// - [`version(String)`](crate::operation::get_flow::GetFlowOutput::version): <p>The version of the flow for which information was retrieved.</p>
/// - [`definition(Option<FlowDefinition>)`](crate::operation::get_flow::GetFlowOutput::definition): <p>The definition of the nodes and connections between the nodes in the flow.</p>
/// - [`validations(Option<Vec::<FlowValidation>>)`](crate::operation::get_flow::GetFlowOutput::validations): <p>A list of validation error messages related to the last failed operation on the flow.</p>
/// - On failure, responds with [`SdkError<GetFlowError>`](crate::operation::get_flow::GetFlowError)
pub fn get_flow(&self) -> crate::operation::get_flow::builders::GetFlowFluentBuilder {
crate::operation::get_flow::builders::GetFlowFluentBuilder::new(self.handle.clone())
}
}