# 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](https://docs.aws.amazon.com/sagemaker/latest/dg/infrastructure-give-access.html) .

- Source: Generated code
- Type last changed: v2.157.0 · 10 Sep 2024

## Example

```ts
// 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.CfnCluster.VpcConfigProperty = {
  securityGroupIds: ['securityGroupIds'],
  subnets: ['subnets'],
};
```

## Properties

- `securityGroupIds`: string[] (required) — 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`: string[] (required) — 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](https://docs.aws.amazon.com/sagemaker/latest/dg/instance-types-az.html) .
