Struct aws_sdk_sagemaker::types::VpcConfig
source · #[non_exhaustive]pub struct VpcConfig {
pub security_group_ids: Option<Vec<String>>,
pub subnets: Option<Vec<String>>,
}
Expand description
Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud.
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.security_group_ids: Option<Vec<String>>
The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets
field.
subnets: Option<Vec<String>>
The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.
Implementations§
source§impl VpcConfig
impl VpcConfig
sourcepub fn security_group_ids(&self) -> Option<&[String]>
pub fn security_group_ids(&self) -> Option<&[String]>
The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets
field.
sourcepub fn subnets(&self) -> Option<&[String]>
pub fn subnets(&self) -> Option<&[String]>
The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.