interface VpcConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.SageMaker.Mixins.CfnModelPropsMixin.VpcConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awssagemaker/mixins#CfnModelPropsMixin_VpcConfigProperty |
Java | software.amazon.awscdk.mixins.preview.services.sagemaker.mixins.CfnModelPropsMixin.VpcConfigProperty |
Python | aws_cdk.mixins_preview.aws_sagemaker.mixins.CfnModelPropsMixin.VpcConfigProperty |
TypeScript | @aws-cdk/mixins-preview » aws_sagemaker » mixins » CfnModelPropsMixin » VpcConfigProperty |
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 .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as sagemaker_mixins } from '@aws-cdk/mixins-preview/aws-sagemaker';
const vpcConfigProperty: sagemaker_mixins.CfnModelPropsMixin.VpcConfigProperty = {
securityGroupIds: ['securityGroupIds'],
subnets: ['subnets'],
};
Properties
| Name | Type | Description |
|---|---|---|
| security | string[] | The VPC security group IDs, in the form sg-xxxxxxxx . |
| subnets? | string[] | The ID of the subnets in the VPC to which you want to connect your training job or model. |
securityGroupIds?
Type:
string[]
(optional)
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[]
(optional)
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 .

.NET
Go
Java
Python
TypeScript