π§ AWS ACM Certificate expires in the next 7 days - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/aws/acm/certificate-expires-in-7-days/prod.logic.yaml
- Located in: π AWS ACM Certificate expires in the next 7 days π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π AWS ACM Certificate | CA10__CaAwsAcmCertificate__c | 5 | 1 | 4 |
Usesβ
Test Results π’β
Generated at: 2025-04-24T23:44:15.570008917Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
π’ | test2 | βοΈ 199 | βοΈ extract('CA10__status__c') != 'ISSUED' | βοΈ null |
π’ | test3 | βοΈ 299 | βοΈ extract('CA10__renewalEligibility__c') != 'INELIGIBLE' | βοΈ null |
π’ | test4 | βοΈ 399 | βοΈ extract('CA10__notAfter__c').withinNextDays(7) | βοΈ null |
π’ | test5 | βοΈ 400 | βοΈ otherwise | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/aws/acm/certificate-expires-in-7-days/policy.yaml | 28343019C083D93F4E1531FFD63AAC86 |
Open | /ce/ca/aws/acm/certificate-expires-in-7-days/prod.logic.yaml | 7D93C4B0816729C101BC343594613448 |
Open | /ce/ca/aws/acm/certificate-expires-in-7-days/test-data.json | EAEC25F87A3E816CE43AF203CD79CAAA |
Open | /types/CA10__CaAwsAcmCertificate__c/object.extracts.yaml | D20EE095842A506CDEF3AC47E90A5A3B |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/aws/acm/certificate-expires-in-7-days/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/aws/acm/certificate-expires-in-7-days/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/aws/acm/certificate-expires-in-7-days/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/aws/acm/certificate-expires-in-7-days/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/aws/acm/certificate-expires-in-7-days/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsAcmCertificate__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaAwsAcmCertificate__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The certificate is not active."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "ISSUED"
- status: "INAPPLICABLE"
currentStateMessage: "The certificate is eligible for automatic renewal."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__renewalEligibility__c"
right:
TEXT: "INELIGIBLE"
- status: "INCOMPLIANT"
currentStateMessage: "The certificate is ineligible for automatic renewal and expires in 7 days or less."
remediationMessage: "Consider reissuing the expiring certificate."
check:
IS_WITHIN_NEXT_DAYS:
offsetDays: 7
arg:
EXTRACT: CA10__notAfter__c
otherwise:
status: "COMPLIANT"
currentStateMessage: "The certificate is not expiring."