Skip to main content

🧠 AWS Lambda Function has low invocation activity - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-10-17T12:03:41.653111650Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒invocations-0βœ”οΈ 499βœ”οΈ CA10__sumTwoWeekInvocationCount__c.isEmpty() || CA10__sumTwoWeekInvocationCount__c < number(10.0)βœ”οΈ null
🟒invocations-1βœ”οΈ 499βœ”οΈ CA10__sumTwoWeekInvocationCount__c.isEmpty() || CA10__sumTwoWeekInvocationCount__c < number(10.0)βœ”οΈ null
🟒invocations-9βœ”οΈ 499βœ”οΈ CA10__sumTwoWeekInvocationCount__c.isEmpty() || CA10__sumTwoWeekInvocationCount__c < number(10.0)βœ”οΈ null
🟒invocations-10βœ”οΈ 500βœ”οΈ otherwiseβœ”οΈ null
🟒invocations-Noneβœ”οΈ 499βœ”οΈ CA10__sumTwoWeekInvocationCount__c.isEmpty() || CA10__sumTwoWeekInvocationCount__c < number(10.0)βœ”οΈ null
🟒invocations--1βœ”οΈ 299βœ”οΈ CA10__sumTwoWeekInvocationCount__c < number(0.0)βœ”οΈ null
🟒newβœ”οΈ 199βœ”οΈ not(extract('CreatedDate').beyondLastDays(14))βœ”οΈ null
🟒14-day-boundaryβœ”οΈ 199βœ”οΈ not(extract('CreatedDate').beyondLastDays(14))βœ”οΈ null
🟒missing-ageβœ”οΈ 101βœ”οΈ CreatedDate.isEmpty()βœ”οΈ null
🟒disappearedβœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒zero-stale-recordβœ”οΈ 499βœ”οΈ CA10__sumTwoWeekInvocationCount__c.isEmpty() || CA10__sumTwoWeekInvocationCount__c < number(10.0)βœ”οΈ null
🟒zero-recent-record-changeβœ”οΈ 499βœ”οΈ CA10__sumTwoWeekInvocationCount__c.isEmpty() || CA10__sumTwoWeekInvocationCount__c < number(10.0)βœ”οΈ null
🟒zero-recent-vulnerability-scanβœ”οΈ 499βœ”οΈ CA10__sumTwoWeekInvocationCount__c.isEmpty() || CA10__sumTwoWeekInvocationCount__c < number(10.0)βœ”οΈ null
🟒just-before-age-boundaryβœ”οΈ 499βœ”οΈ CA10__sumTwoWeekInvocationCount__c.isEmpty() || CA10__sumTwoWeekInvocationCount__c < number(10.0)βœ”οΈ null
🟒omitted-countβœ”οΈ 499βœ”οΈ CA10__sumTwoWeekInvocationCount__c.isEmpty() || CA10__sumTwoWeekInvocationCount__c < number(10.0)βœ”οΈ null
🟒future-created-dateβœ”οΈ 199βœ”οΈ not(extract('CreatedDate').beyondLastDays(14))βœ”οΈ null
🟒new-null-countβœ”οΈ 199βœ”οΈ not(extract('CreatedDate').beyondLastDays(14))βœ”οΈ null
🟒age-boundary-null-countβœ”οΈ 199βœ”οΈ not(extract('CreatedDate').beyondLastDays(14))βœ”οΈ null
🟒missing-age-null-countβœ”οΈ 101βœ”οΈ CreatedDate.isEmpty()βœ”οΈ null
🟒new-low-countβœ”οΈ 199βœ”οΈ not(extract('CreatedDate').beyondLastDays(14))βœ”οΈ null
🟒14-day-boundary-low-countβœ”οΈ 199βœ”οΈ not(extract('CreatedDate').beyondLastDays(14))βœ”οΈ null
🟒missing-age-low-countβœ”οΈ 101βœ”οΈ CreatedDate.isEmpty()βœ”οΈ null
🟒older-than-14-day-cutoffβœ”οΈ 499βœ”οΈ CA10__sumTwoWeekInvocationCount__c.isEmpty() || CA10__sumTwoWeekInvocationCount__c < number(10.0)βœ”οΈ null
🟒stale-record-low-countβœ”οΈ 499βœ”οΈ CA10__sumTwoWeekInvocationCount__c.isEmpty() || CA10__sumTwoWeekInvocationCount__c < number(10.0)βœ”οΈ null
🟒recent-record-update-low-countβœ”οΈ 499βœ”οΈ CA10__sumTwoWeekInvocationCount__c.isEmpty() || CA10__sumTwoWeekInvocationCount__c < number(10.0)βœ”οΈ null
🟒stale-record-high-countβœ”οΈ 500βœ”οΈ otherwiseβœ”οΈ null
🟒null-count-high-execution-errorsβœ”οΈ 399βœ”οΈ CA10__sumTwoWeekInvocationErrors__c >= number(10.0) || CA10__sumTwoWeekInvocationThrottled__c >= number(10.0)βœ”οΈ null
🟒error-exclusion-boundaryβœ”οΈ 399βœ”οΈ CA10__sumTwoWeekInvocationErrors__c >= number(10.0) || CA10__sumTwoWeekInvocationThrottled__c >= number(10.0)βœ”οΈ null
🟒low-count-high-throttlesβœ”οΈ 399βœ”οΈ CA10__sumTwoWeekInvocationErrors__c >= number(10.0) || CA10__sumTwoWeekInvocationThrottled__c >= number(10.0)βœ”οΈ null
🟒throttle-exclusion-boundaryβœ”οΈ 399βœ”οΈ CA10__sumTwoWeekInvocationErrors__c >= number(10.0) || CA10__sumTwoWeekInvocationThrottled__c >= number(10.0)βœ”οΈ null
🟒auxiliary-counters-below-thresholdβœ”οΈ 499βœ”οΈ CA10__sumTwoWeekInvocationCount__c.isEmpty() || CA10__sumTwoWeekInvocationCount__c < number(10.0)βœ”οΈ null
🟒all-activity-counters-nullβœ”οΈ 499βœ”οΈ CA10__sumTwoWeekInvocationCount__c.isEmpty() || CA10__sumTwoWeekInvocationCount__c < number(10.0)βœ”οΈ null
🟒invalid-count-before-activity-exclusionβœ”οΈ 299βœ”οΈ CA10__sumTwoWeekInvocationCount__c < number(0.0)βœ”οΈ null
🟒new-function-before-activity-exclusionβœ”οΈ 199βœ”οΈ not(extract('CreatedDate').beyondLastDays(14))βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/lambda/function-low-invocation-activity/policy.yaml4BA80F38AC09312B10B8277A68E19F97
Open/ce/ca/aws/lambda/function-low-invocation-activity/prod.logic.yamlDE2C60660156221006AF8750F2762682
Open/ce/ca/aws/lambda/function-low-invocation-activity/test-data.json8206BD3257944662053E92ADB5820FCA
Open/types/CA10__CaAwsLambdaFunction__c/object.extracts.yaml6BD1B54FA0262220283211F236C080FA

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/lambda/function-low-invocation-activity/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/lambda/function-low-invocation-activity/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/lambda/function-low-invocation-activity/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/lambda/function-low-invocation-activity/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/lambda/function-low-invocation-activity/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsLambdaFunction__c"

testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsLambdaFunction__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The function CMDB creation date is not earlier than UTC midnight 14 days ago."
check:
NOT:
arg:
IS_BEYOND_LAST_DAYS:
offsetDays: 14
arg:
EXTRACT: "CreatedDate"
- status: "UNDETERMINED"
currentStateMessage: "The 14-day invocation count is invalid."
check:
LESS_THAN:
left:
FIELD:
path: "CA10__sumTwoWeekInvocationCount__c"
right:
NUMBER: 0
- status: "COMPLIANT"
currentStateMessage: "The function has at least 10 recorded execution errors or throttled requests over the last 14 days."
check:
OR:
args:
- GREATER_THAN_EQUAL:
left:
FIELD:
path: "CA10__sumTwoWeekInvocationErrors__c"
right:
NUMBER: 10
- GREATER_THAN_EQUAL:
left:
FIELD:
path: "CA10__sumTwoWeekInvocationThrottled__c"
right:
NUMBER: 10
- status: "INCOMPLIANT"
currentStateMessage: "The function has fewer than 10 invocations over the last 14 days."
remediationMessage: "Review ownership, schedules, and dependencies; decommission the function only if it is no longer required."
check:
OR:
args:
# Under the CMDB data contract, null invocation counts represent zero activity.
- IS_EMPTY:
arg:
FIELD:
path: "CA10__sumTwoWeekInvocationCount__c"
- LESS_THAN:
left:
FIELD:
path: "CA10__sumTwoWeekInvocationCount__c"
right:
NUMBER: 10
otherwise:
status: "COMPLIANT"
currentStateMessage: "The function has at least 10 invocations over the last 14 days."