Skip to main content

🧠 AWS ACM Certificate with Wildcard Domain Name - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• AWS ACM CertificateCA10__CaAwsAcmCertificate__c514

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-04-24T23:44:16.384577059Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 101βœ”οΈ CA10__status__c.delegatedTo(CA10__status__c).isEmpty()βœ”οΈ null
🟒test3βœ”οΈ 199βœ”οΈ extract('CA10__status__c') != 'ISSUED' && extract('CA10__domainName__c').startsWith('*')βœ”οΈ null
🟒test4βœ”οΈ 200βœ”οΈ otherwiseβœ”οΈ null

Generation​

FileMD5
Open/ce/ca/aws/acm/certificate-with-wildcard-domain-name/policy.yamlE56C2E34D6975950BE89B74D85601474
Open/ce/ca/aws/acm/certificate-with-wildcard-domain-name/prod.logic.yamlE5241D6D51376FCC00449A1864FFE883
Open/ce/ca/aws/acm/certificate-with-wildcard-domain-name/test-data.json78732DBEB4638EC3512CD40D52EEC979
Open/types/CA10__CaAwsAcmCertificate__c/object.extracts.yamlD20EE095842A506CDEF3AC47E90A5A3B

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/aws/acm/certificate-with-wildcard-domain-name/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/aws/acm/certificate-with-wildcard-domain-name/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/aws/acm/certificate-with-wildcard-domain-name/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/aws/acm/certificate-with-wildcard-domain-name/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/aws/acm/certificate-with-wildcard-domain-name/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsAcmCertificate__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaAwsAcmCertificate__c/object.extracts.yaml
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "This certificate is issued for a wildcard (*) domain."
remediationMessage: "Delete the wildcard certificate and add single domain certificates\
\ for each domain you use."
check:
AND:
args:
- NOT_EQUAL:
left:
EXTRACT: CA10__status__c
right:
TEXT: "ISSUED"
- STARTS_WITH:
arg:
EXTRACT: CA10__domainName__c
prefix:
TEXT: "*"
otherwise:
status: "COMPLIANT"
currentStateMessage: "This is not a wildcard certificate."