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 an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon 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.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) -> &[String]
pub fn security_group_ids(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .security_group_ids.is_none()
.
sourcepub fn subnets(&self) -> &[String]
pub fn subnets(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .subnets.is_none()
.