Struct aws_sdk_comprehend::input::UpdateEndpointInput
source · #[non_exhaustive]pub struct UpdateEndpointInput { /* private fields */ }Implementations§
source§impl UpdateEndpointInput
impl UpdateEndpointInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateEndpoint, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateEndpoint, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateEndpoint>
Examples found in repository?
src/client.rs (line 8626)
8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateEndpoint,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateEndpointError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateEndpointOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateEndpointError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateEndpointInput.
source§impl UpdateEndpointInput
impl UpdateEndpointInput
sourcepub fn endpoint_arn(&self) -> Option<&str>
pub fn endpoint_arn(&self) -> Option<&str>
The Amazon Resource Number (ARN) of the endpoint being updated.
sourcepub fn desired_model_arn(&self) -> Option<&str>
pub fn desired_model_arn(&self) -> Option<&str>
The ARN of the new model to use when updating an existing endpoint.
sourcepub fn desired_inference_units(&self) -> Option<i32>
pub fn desired_inference_units(&self) -> Option<i32>
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.
sourcepub fn desired_data_access_role_arn(&self) -> Option<&str>
pub fn desired_data_access_role_arn(&self) -> Option<&str>
Data access role ARN to use in case the new model is encrypted with a customer CMK.
Trait Implementations§
source§impl Clone for UpdateEndpointInput
impl Clone for UpdateEndpointInput
source§fn clone(&self) -> UpdateEndpointInput
fn clone(&self) -> UpdateEndpointInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more