

# sagemaker-notebook-instance-inside-vpc
<a name="sagemaker-notebook-instance-inside-vpc"></a>

Checks if an Amazon SageMaker notebook instance is launched within a VPC or within a list of approved subnets. The rule is NON\_COMPLIANT if a notebook instance is not launched within a VPC or if its subnet ID is not included in the parameter list. 



**Identifier:** SAGEMAKER\_NOTEBOOK\_INSTANCE\_INSIDE\_VPC

**Resource Types:** AWS::SageMaker::NotebookInstance

**Trigger type:** Configuration changes

**Amazon Web Services Region:** All supported Amazon regions except Asia Pacific (New Zealand), Asia Pacific (Thailand), Middle East (UAE), Asia Pacific (Hyderabad), Asia Pacific (Malaysia), Asia Pacific (Melbourne), Amazon GovCloud (US-East), Amazon GovCloud (US-West), Mexico (Central), Israel (Tel Aviv), Asia Pacific (Taipei), Canada West (Calgary), Europe (Spain), Europe (Zurich) Region

**Parameters:**

SubnetIds (Optional)Type: CSV  
Comma-separated list of subnet IDs that notebook instances can be launched in.

## Amazon CloudFormation template
<a name="w2aac20c16c17b7e1477c19"></a>

To create Amazon Config managed rules with Amazon CloudFormation templates, see [Creating Amazon Config Managed Rules With Amazon CloudFormation Templates](aws-config-managed-rules-cloudformation-templates.md).