pub struct UpdateEndpointWeightsAndCapacities { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateEndpointWeightsAndCapacities
.
Updates variant weight of one or more variants associated with an existing endpoint, or capacity of one variant associated with an existing endpoint. When it receives the request, SageMaker sets the endpoint status to Updating
. After updating the endpoint, it sets the status to InService
. To check the status of an endpoint, use the DescribeEndpoint
API.
Implementations§
source§impl UpdateEndpointWeightsAndCapacities
impl UpdateEndpointWeightsAndCapacities
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateEndpointWeightsAndCapacities, AwsResponseRetryClassifier>, SdkError<UpdateEndpointWeightsAndCapacitiesError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<UpdateEndpointWeightsAndCapacities, AwsResponseRetryClassifier>, SdkError<UpdateEndpointWeightsAndCapacitiesError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<UpdateEndpointWeightsAndCapacitiesOutput, SdkError<UpdateEndpointWeightsAndCapacitiesError>>
pub async fn send(
self
) -> Result<UpdateEndpointWeightsAndCapacitiesOutput, SdkError<UpdateEndpointWeightsAndCapacitiesError>>
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, which can be set when configuring the client.
sourcepub fn endpoint_name(self, input: impl Into<String>) -> Self
pub fn endpoint_name(self, input: impl Into<String>) -> Self
The name of an existing SageMaker endpoint.
sourcepub fn set_endpoint_name(self, input: Option<String>) -> Self
pub fn set_endpoint_name(self, input: Option<String>) -> Self
The name of an existing SageMaker endpoint.
sourcepub fn desired_weights_and_capacities(
self,
input: DesiredWeightAndCapacity
) -> Self
pub fn desired_weights_and_capacities(
self,
input: DesiredWeightAndCapacity
) -> Self
Appends an item to DesiredWeightsAndCapacities
.
To override the contents of this collection use set_desired_weights_and_capacities
.
An object that provides new capacity and weight values for a variant.
sourcepub fn set_desired_weights_and_capacities(
self,
input: Option<Vec<DesiredWeightAndCapacity>>
) -> Self
pub fn set_desired_weights_and_capacities(
self,
input: Option<Vec<DesiredWeightAndCapacity>>
) -> Self
An object that provides new capacity and weight values for a variant.
Trait Implementations§
source§impl Clone for UpdateEndpointWeightsAndCapacities
impl Clone for UpdateEndpointWeightsAndCapacities
source§fn clone(&self) -> UpdateEndpointWeightsAndCapacities
fn clone(&self) -> UpdateEndpointWeightsAndCapacities
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more