#[non_exhaustive]pub struct InferenceComponentContainerSpecification {
pub image: Option<String>,
pub artifact_url: Option<String>,
pub environment: Option<HashMap<String, String>>,
}
Expand description
Defines a container that provides the runtime environment for a model that you deploy with an inference component.
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.image: Option<String>
The Amazon Elastic Container Registry (Amazon ECR) path where the Docker image for the model is stored.
artifact_url: Option<String>
The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).
environment: Option<HashMap<String, String>>
The environment variables to set in the Docker container. Each key and value in the Environment string-to-string map can have length of up to 1024. We support up to 16 entries in the map.
Implementations§
source§impl InferenceComponentContainerSpecification
impl InferenceComponentContainerSpecification
sourcepub fn image(&self) -> Option<&str>
pub fn image(&self) -> Option<&str>
The Amazon Elastic Container Registry (Amazon ECR) path where the Docker image for the model is stored.
sourcepub fn artifact_url(&self) -> Option<&str>
pub fn artifact_url(&self) -> Option<&str>
The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).
source§impl InferenceComponentContainerSpecification
impl InferenceComponentContainerSpecification
sourcepub fn builder() -> InferenceComponentContainerSpecificationBuilder
pub fn builder() -> InferenceComponentContainerSpecificationBuilder
Creates a new builder-style object to manufacture InferenceComponentContainerSpecification
.
Trait Implementations§
source§impl Clone for InferenceComponentContainerSpecification
impl Clone for InferenceComponentContainerSpecification
source§fn clone(&self) -> InferenceComponentContainerSpecification
fn clone(&self) -> InferenceComponentContainerSpecification
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for InferenceComponentContainerSpecification
impl PartialEq for InferenceComponentContainerSpecification
source§fn eq(&self, other: &InferenceComponentContainerSpecification) -> bool
fn eq(&self, other: &InferenceComponentContainerSpecification) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for InferenceComponentContainerSpecification
Auto Trait Implementations§
impl Freeze for InferenceComponentContainerSpecification
impl RefUnwindSafe for InferenceComponentContainerSpecification
impl Send for InferenceComponentContainerSpecification
impl Sync for InferenceComponentContainerSpecification
impl Unpin for InferenceComponentContainerSpecification
impl UnwindSafe for InferenceComponentContainerSpecification
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