Struct aws_sdk_sagemaker::operation::create_inference_component::builders::CreateInferenceComponentFluentBuilder
source · pub struct CreateInferenceComponentFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateInferenceComponent
.
Creates an inference component, which is a SageMaker hosting object that you can use to deploy a model to an endpoint. In the inference component settings, you specify the model, the endpoint, and how the model utilizes the resources that the endpoint hosts. You can optimize resource utilization by tailoring how the required CPU cores, accelerators, and memory are allocated. You can deploy multiple inference components to an endpoint, where each inference component contains one model and the resource utilization needs for that individual model. After you deploy an inference component, you can directly invoke the associated model when you use the InvokeEndpoint API action.
Implementations§
source§impl CreateInferenceComponentFluentBuilder
impl CreateInferenceComponentFluentBuilder
sourcepub fn as_input(&self) -> &CreateInferenceComponentInputBuilder
pub fn as_input(&self) -> &CreateInferenceComponentInputBuilder
Access the CreateInferenceComponent as a reference.
sourcepub async fn send(
self,
) -> Result<CreateInferenceComponentOutput, SdkError<CreateInferenceComponentError, HttpResponse>>
pub async fn send( self, ) -> Result<CreateInferenceComponentOutput, SdkError<CreateInferenceComponentError, HttpResponse>>
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 customize(
self,
) -> CustomizableOperation<CreateInferenceComponentOutput, CreateInferenceComponentError, Self>
pub fn customize( self, ) -> CustomizableOperation<CreateInferenceComponentOutput, CreateInferenceComponentError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn inference_component_name(self, input: impl Into<String>) -> Self
pub fn inference_component_name(self, input: impl Into<String>) -> Self
A unique name to assign to the inference component.
sourcepub fn set_inference_component_name(self, input: Option<String>) -> Self
pub fn set_inference_component_name(self, input: Option<String>) -> Self
A unique name to assign to the inference component.
sourcepub fn get_inference_component_name(&self) -> &Option<String>
pub fn get_inference_component_name(&self) -> &Option<String>
A unique name to assign to the inference component.
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 endpoint where you host the inference component.
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 endpoint where you host the inference component.
sourcepub fn get_endpoint_name(&self) -> &Option<String>
pub fn get_endpoint_name(&self) -> &Option<String>
The name of an existing endpoint where you host the inference component.
sourcepub fn variant_name(self, input: impl Into<String>) -> Self
pub fn variant_name(self, input: impl Into<String>) -> Self
The name of an existing production variant where you host the inference component.
sourcepub fn set_variant_name(self, input: Option<String>) -> Self
pub fn set_variant_name(self, input: Option<String>) -> Self
The name of an existing production variant where you host the inference component.
sourcepub fn get_variant_name(&self) -> &Option<String>
pub fn get_variant_name(&self) -> &Option<String>
The name of an existing production variant where you host the inference component.
sourcepub fn specification(self, input: InferenceComponentSpecification) -> Self
pub fn specification(self, input: InferenceComponentSpecification) -> Self
Details about the resources to deploy with this inference component, including the model, container, and compute resources.
sourcepub fn set_specification(
self,
input: Option<InferenceComponentSpecification>,
) -> Self
pub fn set_specification( self, input: Option<InferenceComponentSpecification>, ) -> Self
Details about the resources to deploy with this inference component, including the model, container, and compute resources.
sourcepub fn get_specification(&self) -> &Option<InferenceComponentSpecification>
pub fn get_specification(&self) -> &Option<InferenceComponentSpecification>
Details about the resources to deploy with this inference component, including the model, container, and compute resources.
sourcepub fn runtime_config(self, input: InferenceComponentRuntimeConfig) -> Self
pub fn runtime_config(self, input: InferenceComponentRuntimeConfig) -> Self
Runtime settings for a model that is deployed with an inference component.
sourcepub fn set_runtime_config(
self,
input: Option<InferenceComponentRuntimeConfig>,
) -> Self
pub fn set_runtime_config( self, input: Option<InferenceComponentRuntimeConfig>, ) -> Self
Runtime settings for a model that is deployed with an inference component.
sourcepub fn get_runtime_config(&self) -> &Option<InferenceComponentRuntimeConfig>
pub fn get_runtime_config(&self) -> &Option<InferenceComponentRuntimeConfig>
Runtime settings for a model that is deployed with an inference component.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
A list of key-value pairs associated with the model. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.
A list of key-value pairs associated with the model. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.
A list of key-value pairs associated with the model. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.
Trait Implementations§
source§impl Clone for CreateInferenceComponentFluentBuilder
impl Clone for CreateInferenceComponentFluentBuilder
source§fn clone(&self) -> CreateInferenceComponentFluentBuilder
fn clone(&self) -> CreateInferenceComponentFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateInferenceComponentFluentBuilder
impl !RefUnwindSafe for CreateInferenceComponentFluentBuilder
impl Send for CreateInferenceComponentFluentBuilder
impl Sync for CreateInferenceComponentFluentBuilder
impl Unpin for CreateInferenceComponentFluentBuilder
impl !UnwindSafe for CreateInferenceComponentFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more