#[non_exhaustive]pub struct InferenceComponentSpecification {
pub model_name: Option<String>,
pub container: Option<InferenceComponentContainerSpecification>,
pub startup_parameters: Option<InferenceComponentStartupParameters>,
pub compute_resource_requirements: Option<InferenceComponentComputeResourceRequirements>,
}
Expand description
Details about the resources to deploy with this inference component, including the model, container, and compute resources.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.model_name: Option<String>
The name of an existing SageMaker model object in your account that you want to deploy with the inference component.
container: Option<InferenceComponentContainerSpecification>
Defines a container that provides the runtime environment for a model that you deploy with an inference component.
startup_parameters: Option<InferenceComponentStartupParameters>
Settings that take effect while the model container starts up.
compute_resource_requirements: Option<InferenceComponentComputeResourceRequirements>
The compute resources allocated to run the model assigned to the inference component.
Implementations§
source§impl InferenceComponentSpecification
impl InferenceComponentSpecification
sourcepub fn model_name(&self) -> Option<&str>
pub fn model_name(&self) -> Option<&str>
The name of an existing SageMaker model object in your account that you want to deploy with the inference component.
sourcepub fn container(&self) -> Option<&InferenceComponentContainerSpecification>
pub fn container(&self) -> Option<&InferenceComponentContainerSpecification>
Defines a container that provides the runtime environment for a model that you deploy with an inference component.
sourcepub fn startup_parameters(&self) -> Option<&InferenceComponentStartupParameters>
pub fn startup_parameters(&self) -> Option<&InferenceComponentStartupParameters>
Settings that take effect while the model container starts up.
sourcepub fn compute_resource_requirements(
&self,
) -> Option<&InferenceComponentComputeResourceRequirements>
pub fn compute_resource_requirements( &self, ) -> Option<&InferenceComponentComputeResourceRequirements>
The compute resources allocated to run the model assigned to the inference component.
source§impl InferenceComponentSpecification
impl InferenceComponentSpecification
sourcepub fn builder() -> InferenceComponentSpecificationBuilder
pub fn builder() -> InferenceComponentSpecificationBuilder
Creates a new builder-style object to manufacture InferenceComponentSpecification
.
Trait Implementations§
source§impl Clone for InferenceComponentSpecification
impl Clone for InferenceComponentSpecification
source§fn clone(&self) -> InferenceComponentSpecification
fn clone(&self) -> InferenceComponentSpecification
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for InferenceComponentSpecification
impl PartialEq for InferenceComponentSpecification
source§fn eq(&self, other: &InferenceComponentSpecification) -> bool
fn eq(&self, other: &InferenceComponentSpecification) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InferenceComponentSpecification
Auto Trait Implementations§
impl Freeze for InferenceComponentSpecification
impl RefUnwindSafe for InferenceComponentSpecification
impl Send for InferenceComponentSpecification
impl Sync for InferenceComponentSpecification
impl Unpin for InferenceComponentSpecification
impl UnwindSafe for InferenceComponentSpecification
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