Struct aws_sdk_sagemaker::types::ImageConfig
source · #[non_exhaustive]pub struct ImageConfig {
pub repository_access_mode: Option<RepositoryAccessMode>,
pub repository_auth_config: Option<RepositoryAuthConfig>,
}
Expand description
Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC).
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.repository_access_mode: Option<RepositoryAccessMode>
Set this to one of the following values:
-
Platform
- The model image is hosted in Amazon ECR. -
Vpc
- The model image is hosted in a private Docker registry in your VPC.
repository_auth_config: Option<RepositoryAuthConfig>
(Optional) Specifies an authentication configuration for the private docker registry where your model image is hosted. Specify a value for this property only if you specified Vpc
as the value for the RepositoryAccessMode
field, and the private Docker registry where the model image is hosted requires authentication.
Implementations§
source§impl ImageConfig
impl ImageConfig
sourcepub fn repository_access_mode(&self) -> Option<&RepositoryAccessMode>
pub fn repository_access_mode(&self) -> Option<&RepositoryAccessMode>
Set this to one of the following values:
-
Platform
- The model image is hosted in Amazon ECR. -
Vpc
- The model image is hosted in a private Docker registry in your VPC.
sourcepub fn repository_auth_config(&self) -> Option<&RepositoryAuthConfig>
pub fn repository_auth_config(&self) -> Option<&RepositoryAuthConfig>
(Optional) Specifies an authentication configuration for the private docker registry where your model image is hosted. Specify a value for this property only if you specified Vpc
as the value for the RepositoryAccessMode
field, and the private Docker registry where the model image is hosted requires authentication.
source§impl ImageConfig
impl ImageConfig
sourcepub fn builder() -> ImageConfigBuilder
pub fn builder() -> ImageConfigBuilder
Creates a new builder-style object to manufacture ImageConfig
.
Trait Implementations§
source§impl Clone for ImageConfig
impl Clone for ImageConfig
source§fn clone(&self) -> ImageConfig
fn clone(&self) -> ImageConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImageConfig
impl Debug for ImageConfig
source§impl PartialEq for ImageConfig
impl PartialEq for ImageConfig
source§fn eq(&self, other: &ImageConfig) -> bool
fn eq(&self, other: &ImageConfig) -> bool
self
and other
values to be equal, and is used
by ==
.