aws_sdk_comprehend/client/
update_endpoint.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateEndpoint`](crate::operation::update_endpoint::builders::UpdateEndpointFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`endpoint_arn(impl Into<String>)`](crate::operation::update_endpoint::builders::UpdateEndpointFluentBuilder::endpoint_arn) / [`set_endpoint_arn(Option<String>)`](crate::operation::update_endpoint::builders::UpdateEndpointFluentBuilder::set_endpoint_arn):<br>required: **true**<br><p>The Amazon Resource Number (ARN) of the endpoint being updated.</p><br>
7    ///   - [`desired_model_arn(impl Into<String>)`](crate::operation::update_endpoint::builders::UpdateEndpointFluentBuilder::desired_model_arn) / [`set_desired_model_arn(Option<String>)`](crate::operation::update_endpoint::builders::UpdateEndpointFluentBuilder::set_desired_model_arn):<br>required: **false**<br><p>The ARN of the new model to use when updating an existing endpoint.</p><br>
8    ///   - [`desired_inference_units(i32)`](crate::operation::update_endpoint::builders::UpdateEndpointFluentBuilder::desired_inference_units) / [`set_desired_inference_units(Option<i32>)`](crate::operation::update_endpoint::builders::UpdateEndpointFluentBuilder::set_desired_inference_units):<br>required: **false**<br><p>The desired number of inference units to be used by the model using this endpoint. Each inference unit represents of a throughput of 100 characters per second.</p><br>
9    ///   - [`desired_data_access_role_arn(impl Into<String>)`](crate::operation::update_endpoint::builders::UpdateEndpointFluentBuilder::desired_data_access_role_arn) / [`set_desired_data_access_role_arn(Option<String>)`](crate::operation::update_endpoint::builders::UpdateEndpointFluentBuilder::set_desired_data_access_role_arn):<br>required: **false**<br><p>Data access role ARN to use in case the new model is encrypted with a customer CMK.</p><br>
10    ///   - [`flywheel_arn(impl Into<String>)`](crate::operation::update_endpoint::builders::UpdateEndpointFluentBuilder::flywheel_arn) / [`set_flywheel_arn(Option<String>)`](crate::operation::update_endpoint::builders::UpdateEndpointFluentBuilder::set_flywheel_arn):<br>required: **false**<br><p>The Amazon Resource Number (ARN) of the flywheel</p><br>
11    /// - On success, responds with [`UpdateEndpointOutput`](crate::operation::update_endpoint::UpdateEndpointOutput) with field(s):
12    ///   - [`desired_model_arn(Option<String>)`](crate::operation::update_endpoint::UpdateEndpointOutput::desired_model_arn): <p>The Amazon Resource Number (ARN) of the new model.</p>
13    /// - On failure, responds with [`SdkError<UpdateEndpointError>`](crate::operation::update_endpoint::UpdateEndpointError)
14    pub fn update_endpoint(&self) -> crate::operation::update_endpoint::builders::UpdateEndpointFluentBuilder {
15        crate::operation::update_endpoint::builders::UpdateEndpointFluentBuilder::new(self.handle.clone())
16    }
17}