Skip to main content

🧠 AWS WorkSpace is unused - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-02-10T22:33:23.288513525Z Open

ResultIdCondition IndexCondition TextRuntime 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​

FileMD5
Open/ce/ca/aws/workspaces/workspace-unused/policy.yamlD04FBBA061DB0A01179EE0D04F75D76D
Open/ce/ca/aws/workspaces/workspace-unused/prod.logic.yamlD3854921B10D1922603282CFBCF5ED9E
Open/ce/ca/aws/workspaces/workspace-unused/test-data.json5D59FA365188C2CECFF9D5602189E3D5
Open/types/CA10__CaAwsWorkspace__c/object.extracts.yaml653A7214D9FA947DB5A00F602EFFCB5C

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​

Open File

---
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 a 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: "Terminate 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: "Terminate 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."