// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`InvokeInferenceRouterAsync`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`inference_router_name(impl Into<String>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::inference_router_name) / [`set_inference_router_name(Option<String>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::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_async::builders::InvokeInferenceRouterAsyncFluentBuilder::routing_target_name) / [`set_routing_target_name(Option<String>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::set_routing_target_name):<br>required: **true**<br><p>The name of the routing target in the inference router. The routing target must be configured for asynchronous inference.</p><br>
/// - [`content_type(impl Into<String>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::content_type) / [`set_content_type(Option<String>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::set_content_type):<br>required: **false**<br><p>The MIME type of the input data in Amazon S3. The router passes it to the destination.</p><br>
/// - [`accept(impl Into<String>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::accept) / [`set_accept(Option<String>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::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>
/// - [`custom_attributes(impl Into<String>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::custom_attributes) / [`set_custom_attributes(Option<String>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::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>
/// - [`inference_id(impl Into<String>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::inference_id) / [`set_inference_id(Option<String>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::set_inference_id):<br>required: **false**<br><p>An identifier for the inference request. If you don't provide one, SageMaker AI generates one and returns it in the response.</p><br>
/// - [`input_location(impl Into<String>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::input_location) / [`set_input_location(Option<String>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::set_input_location):<br>required: **true**<br><p>The Amazon S3 URI of the object that contains the input data for the inference. The bucket must be in the inference router's Amazon Web Services Region and owned by the router's account. The destination endpoint's execution role reads the object, and the destination's asynchronous inference limits apply to it.</p><br>
/// - [`s3_output_path_extension(impl Into<String>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::s3_output_path_extension) / [`set_s3_output_path_extension(Option<String>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::set_s3_output_path_extension):<br>required: **false**<br><p>The path extension that is appended to the routing target's Amazon S3 output path where the inference response is stored.</p><br>
/// - [`filename(impl Into<String>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::filename) / [`set_filename(Option<String>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::set_filename):<br>required: **false**<br><p>The file name of the inference response stored in Amazon S3. If you don't provide one, SageMaker AI generates one.</p><br>
/// - [`request_ttl_seconds(i32)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::request_ttl_seconds) / [`set_request_ttl_seconds(Option<i32>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::set_request_ttl_seconds):<br>required: **false**<br><p>The time to live of the request, in seconds, measured from when the router accepts it. If no destination starts the request in this time, the request fails. The default is 21,600 seconds (6 hours).</p><br>
/// - [`invocation_timeout_seconds(i32)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::invocation_timeout_seconds) / [`set_invocation_timeout_seconds(Option<i32>)`](crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::set_invocation_timeout_seconds):<br>required: **false**<br><p>The maximum time, in seconds, that a destination can spend processing the request before the request is marked as expired. The default is 900 seconds (15 minutes).</p><br>
/// - On success, responds with [`InvokeInferenceRouterAsyncOutput`](crate::operation::invoke_inference_router_async::InvokeInferenceRouterAsyncOutput) with field(s):
/// - [`inference_id(Option<String>)`](crate::operation::invoke_inference_router_async::InvokeInferenceRouterAsyncOutput::inference_id): <p>The identifier for the inference request. This is the <code>InferenceId</code> that you provided, or the one that SageMaker AI generated.</p>
/// - [`output_location(Option<String>)`](crate::operation::invoke_inference_router_async::InvokeInferenceRouterAsyncOutput::output_location): <p>The Amazon S3 URI where the inference response is written. The location doesn't change if the router moves the request to another destination.</p>
/// - [`failure_location(Option<String>)`](crate::operation::invoke_inference_router_async::InvokeInferenceRouterAsyncOutput::failure_location): <p>The Amazon S3 URI where the failure details are written if the inference fails.</p>
/// - On failure, responds with [`SdkError<InvokeInferenceRouterAsyncError>`](crate::operation::invoke_inference_router_async::InvokeInferenceRouterAsyncError)
pub fn invoke_inference_router_async(
&self,
) -> crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder {
crate::operation::invoke_inference_router_async::builders::InvokeInferenceRouterAsyncFluentBuilder::new(self.handle.clone())
}
}