#[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 ==
.