โญ Repository โ ๐ Compliance Engine โ ๐ CloudAware โ ๐ AWS โ ๐ WorkSpaces โ ๐ก๏ธ WorkSpace is unused๐ข
๐ง AWS WorkSpace is unused - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/aws/workspaces/workspace-unused/prod.logic.yaml
- Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
- ๐ AWS WorkSpace
- ๐ AWS WorkSpace - object.extracts.yaml
- ๐งช test-data.json
Test Results ๐ขโ
Generated at: 2025-10-01T12:46:14.091315633Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
๐ข | test1 | โ๏ธ 99 | โ๏ธ isDisappeared(CA10__disappearanceTime__c) | โ๏ธ null |
๐ข | test2 | โ๏ธ 199 | โ๏ธ extract('CA10__state__c') != 'AVAILABLE' && extract('CA10__state__c') != 'STOPPED' | โ๏ธ null |
๐ข | test3 | โ๏ธ 299 | โ๏ธ extract('CA10__lastKnownUserConnectionTimestamp__c').isEmpty() | โ๏ธ null |
๐ข | test4 | โ๏ธ 399 | โ๏ธ extract('CA10__lastKnownUserConnectionTimestamp__c').beyondLastDays(30) | โ๏ธ null |
๐ข | test5 | โ๏ธ 400 | โ๏ธ otherwise | โ๏ธ null |
Generation Bundleโ
File | MD5 | |
---|---|---|
Open | /ce/ca/aws/workspaces/workspace-unused/policy.yaml | D04FBBA061DB0A01179EE0D04F75D76D |
Open | /ce/ca/aws/workspaces/workspace-unused/prod.logic.yaml | 5D62EA5229D9663089BBC787736B1215 |
Open | /ce/ca/aws/workspaces/workspace-unused/test-data.json | 5D59FA365188C2CECFF9D5602189E3D5 |
Open | /types/CA10__CaAwsWorkspace__c/object.extracts.yaml | 90A0668CDA6C0A4A2F287D14049B84C8 |
Available Commandsโ
repo-manager policies generate FULL /ce/ca/aws/workspaces/workspace-unused/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/workspaces/workspace-unused/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/workspaces/workspace-unused/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/workspaces/workspace-unused/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/workspaces/workspace-unused/prod.logic.yaml
Contentโ
---
inputType: "CA10__CaAwsWorkspace__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsWorkspace__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The WorkSpace is in transient state."
check:
AND:
args:
- NOT_EQUAL:
left:
EXTRACT: "CA10__state__c"
right:
TEXT: "AVAILABLE"
- NOT_EQUAL:
left:
EXTRACT: "CA10__state__c"
right:
TEXT: "STOPPED"
- status: "INCOMPLIANT"
currentStateMessage: "The last user connection time for the WorkSpace is unknown."
remediationMessage: "Consider terminating the unused WorkSpace."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__lastKnownUserConnectionTimestamp__c"
- status: "INCOMPLIANT"
currentStateMessage: "The WorkSpace has not been used in the last 30 days."
remediationMessage: "Consider terminating the unused WorkSpace."
check:
IS_BEYOND_LAST_DAYS:
offsetDays: 30
arg:
EXTRACT: "CA10__lastKnownUserConnectionTimestamp__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The WorkSpace has been used within the last 30 days."