aws-cdk-lib.aws_sagemaker.CfnModel.VpcConfigProperty

interface VpcConfigProperty

LanguageType name
.NETAmazon.CDK.AWS.Sagemaker.CfnModel.VpcConfigProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssagemaker#CfnModel_VpcConfigProperty
Javasoftware.amazon.awscdk.services.sagemaker.CfnModel.VpcConfigProperty
Pythonaws_cdk.aws_sagemaker.CfnModel.VpcConfigProperty
TypeScript aws-cdk-lib » aws_sagemaker » CfnModel » VpcConfigProperty

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 .

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const vpcConfigProperty: sagemaker.CfnModel.VpcConfigProperty = {
  securityGroupIds: ['securityGroupIds'],
  subnets: ['subnets'],
};

Properties

NameTypeDescription
securityGroupIdsstring[]The VPC security group IDs, in the form sg-xxxxxxxx.
subnetsstring[]The ID of the subnets in the VPC to which you want to connect your training job or model.

securityGroupIds

Type: 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

Type: 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 .