π§ AWS SageMaker Notebook Instance is not in a VPC - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/sagemaker/notebook-instance-in-vpc/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS SageMaker Notebook Instance
- π AWS SageMaker Notebook Instance - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-01-24T12:02:26.757652612Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test1 | βοΈ 199 | βοΈ extract('CA10A1__status__c') != 'InService' | βοΈ null |
| π’ | test2 | βοΈ 299 | βοΈ isEmptyLookup('CA10A1__subnet__r') | βοΈ null |
| π’ | test3 | βοΈ 399 | βοΈ notEmptyLookup('CA10A1__subnet__r') | βοΈ null |
| π’ | test4 | βοΈ 99 | βοΈ isDisappeared(CA10A1__disappearanceTime__c) | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/sagemaker/notebook-instance-in-vpc/policy.yaml | 96EA542826B9BDC78B531FCD11A5A693 |
| Open | /ce/ca/aws/sagemaker/notebook-instance-in-vpc/prod.logic.yaml | 4D3E398E3FC7CC20B1B30726AE19D95E |
| Open | /ce/ca/aws/sagemaker/notebook-instance-in-vpc/test-data.json | 2B1FB79E0FB62C8688FF65B66F9F88EA |
| Open | /types/CA10A1__CaAwsSageMakerNotebookInstance__c/object.extracts.yaml | 6890CE14909F3170C7201BDF33753985 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/sagemaker/notebook-instance-in-vpc/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/sagemaker/notebook-instance-in-vpc/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/sagemaker/notebook-instance-in-vpc/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/sagemaker/notebook-instance-in-vpc/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/sagemaker/notebook-instance-in-vpc/prod.logic.yaml
Contentβ
---
inputType: "CA10A1__CaAwsSageMakerNotebookInstance__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10A1__CaAwsSageMakerNotebookInstance__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The SageMaker Notebook Instance is not currently in service."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10A1__status__c"
right:
TEXT: "InService"
- status: "INCOMPLIANT"
currentStateMessage: "The notebook instance is not associated with a VPC."
remediationMessage: "Configure the notebook instance to reside within a VPC subnet."
check:
IS_EMPTY_LOOKUP: "CA10A1__subnet__r"
- status: "COMPLIANT"
currentStateMessage: "The notebook instance is launched within a VPC."
check:
NOT_EMPTY_LOOKUP: "CA10A1__subnet__r"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the fields."