// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`InvokeInferenceRouter`](crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`inference_router_name(impl Into<String>)`](crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder::inference_router_name) / [`set_inference_router_name(Option<String>)`](crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder::set_inference_router_name):<br>required: **true**<br><p>The name of the inference router to invoke.</p><br>
/// - [`routing_target_name(impl Into<String>)`](crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder::routing_target_name) / [`set_routing_target_name(Option<String>)`](crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder::set_routing_target_name):<br>required: **true**<br><p>The name of the routing target in the inference router. The routing target lists the destinations that can serve the request.</p><br>
/// - [`content_type(impl Into<String>)`](crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder::content_type) / [`set_content_type(Option<String>)`](crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder::set_content_type):<br>required: **false**<br><p>The MIME type of the input data in the request body. The router passes it to the destination.</p><br>
/// - [`accept(impl Into<String>)`](crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder::accept) / [`set_accept(Option<String>)`](crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder::set_accept):<br>required: **false**<br><p>The MIME type that you want for the inference response. The router passes it to the destination.</p><br>
/// - [`inference_id(impl Into<String>)`](crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder::inference_id) / [`set_inference_id(Option<String>)`](crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder::set_inference_id):<br>required: **false**<br><p>An identifier for the inference request. The router passes it to the destination.</p><br>
/// - [`prefix_aware_id(impl Into<String>)`](crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder::prefix_aware_id) / [`set_prefix_aware_id(Option<String>)`](crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder::set_prefix_aware_id):<br>required: **false**<br><p>An optional, stable identifier that serves as a routing hint for prefix-aware routing. The router passes it to the destination that serves the request. Within that destination, requests with the same prefix and the same identifier go to the same instance. If requests from different applications might have the same prompt prefix, set a different identifier for each application to differentiate their routing decisions.</p> <p>Applies only to destination endpoints configured with a <code>RoutingStrategy</code> of <code>PREFIX_AWARE</code>.</p><br>
/// - [`custom_attributes(impl Into<String>)`](crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder::custom_attributes) / [`set_custom_attributes(Option<String>)`](crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder::set_custom_attributes):<br>required: **false**<br><p>Provides additional information about the inference request. The value is an opaque string that the router passes, unchanged, to the model container of the destination that serves the request. The value can contain up to 1,024 visible US-ASCII characters.</p><br>
/// - [`body(Blob)`](crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder::body) / [`set_body(Option<Blob>)`](crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder::set_body):<br>required: **true**<br><p>The input data for the inference, in the format that your model expects. The body can't be empty.</p><br>
/// - On success, responds with [`InvokeInferenceRouterOutput`](crate::operation::invoke_inference_router::InvokeInferenceRouterOutput) with field(s):
/// - [`body(Option<Blob>)`](crate::operation::invoke_inference_router::InvokeInferenceRouterOutput::body): <p>The inference that the model returned.</p>
/// - [`content_type(Option<String>)`](crate::operation::invoke_inference_router::InvokeInferenceRouterOutput::content_type): <p>The MIME type of the inference returned in the response body.</p>
/// - [`invoked_routed_resource_arn(Option<String>)`](crate::operation::invoke_inference_router::InvokeInferenceRouterOutput::invoked_routed_resource_arn): <p>The Amazon Resource Name (ARN) of the endpoint or inference component that served the request.</p>
/// - [`routing_reason(Option<String>)`](crate::operation::invoke_inference_router::InvokeInferenceRouterOutput::routing_reason): <p>The reason that the router chose the destination that served the request. Possible values:</p> <ul> <li> <p><code>local-preferred</code> – The destination is a healthy destination in the router's Region.</p></li> <li> <p><code>capacity-available</code> – No destination in the router's Region could take the request, and two or more destinations in other Regions could.</p></li> <li> <p><code>only-healthy</code> – No destination in the router's Region could take the request, and exactly one destination in another Region could.</p></li> <li> <p><code>failover</code> – The router moved the request away from destinations in its Region because they were overloaded or returning errors. You also see this value when the router can't assess destination health, and when no destination is healthy and the router tries one anyway.</p></li> </ul>
/// - [`invoked_production_variant(Option<String>)`](crate::operation::invoke_inference_router::InvokeInferenceRouterOutput::invoked_production_variant): <p>The production variant of the destination endpoint that served the request.</p>
/// - [`custom_attributes(Option<String>)`](crate::operation::invoke_inference_router::InvokeInferenceRouterOutput::custom_attributes): <p>Provides additional information in the response about the inference. This is the value that the model container of the destination returned, unchanged.</p>
/// - On failure, responds with [`SdkError<InvokeInferenceRouterError>`](crate::operation::invoke_inference_router::InvokeInferenceRouterError)
pub fn invoke_inference_router(&self) -> crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder {
crate::operation::invoke_inference_router::builders::InvokeInferenceRouterFluentBuilder::new(self.handle.clone())
}
}