Skip to main content

🧠 AWS API Gateway REST API Stage is not configured to use an SSL certificate for authentication - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-02-10T22:32:31.763769361Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ not(setOfText(['restApiStage']).contains(RecordType.DeveloperName))βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10__restApi__r.CA10__endpointType__c') == 'PRIVATE'βœ”οΈ null
🟒test4βœ”οΈ 399βœ”οΈ CA10__restApi__r.CA10A1__AWS_API_Gateway_Methods__r.hasNo(COMPLIANT)βœ”οΈ null
🟒test5βœ”οΈ 499βœ”οΈ isEmptyLookup('CA10__clientCertificate__r')βœ”οΈ null
🟒test6βœ”οΈ 499βœ”οΈ isEmptyLookup('CA10__clientCertificate__r')βœ”οΈ null
🟒test7βœ”οΈ 499βœ”οΈ isEmptyLookup('CA10__clientCertificate__r')βœ”οΈ null
🟒test8βœ”οΈ 599βœ”οΈ notEmptyLookup('CA10__clientCertificate__r')βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/apigateway/rest-api-stage-ssl-certificate/policy.yaml9C33486220F93D978B807D552A64FE95
Open/ce/ca/aws/apigateway/rest-api-stage-ssl-certificate/prod.logic.yaml2D4E40A822058B52700DF88C0F84BF44
Open/ce/ca/aws/apigateway/rest-api-stage-ssl-certificate/test-data.json5D239AF4482967939B29CD5D5E5307DF
Open/types/CA10__CaAwsApiGatewayRestApi__c/object.extracts.yaml746F09341E8149BAD88C53E274DB1DD5
Open/types/CA10A1__CaAwsApiGatewayMethod__c/object.extracts.yamlE28695D16341F6C70D3B2EE06BCEB425

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/apigateway/rest-api-stage-ssl-certificate/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/apigateway/rest-api-stage-ssl-certificate/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/apigateway/rest-api-stage-ssl-certificate/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/apigateway/rest-api-stage-ssl-certificate/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/apigateway/rest-api-stage-ssl-certificate/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsApiGatewayStage__c"
importExtracts:
- file: "/types/CA10__CaAwsApiGatewayRestApi__c/object.extracts.yaml"
testData:
- file: test-data.json
recordTypes:
- "restApiStage"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The stage belongs to a private API endpoint."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__restApi__r.CA10__endpointType__c"
right:
TEXT: "PRIVATE"
- status: "INAPPLICABLE"
currentStateMessage: "The stage does not have HTTP integrations."
check:
RELATED_LIST_HAS_NO:
status: "COMPLIANT"
relationshipName: "CA10__restApi__r.CA10A1__AWS_API_Gateway_Methods__r"
- status: "INCOMPLIANT"
currentStateMessage: "The stage is not configured to use an SSL certificate."
remediationMessage: "Generate an SSL certificate for authentication."
check:
IS_EMPTY_LOOKUP: "CA10__clientCertificate__r"
- status: "COMPLIANT"
currentStateMessage: "The stage is configured to use an SSL certificate."
check:
NOT_EMPTY_LOOKUP: "CA10__clientCertificate__r"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the fields."
relatedLists:
- relationshipName: "CA10__restApi__r.CA10A1__AWS_API_Gateway_Methods__r"
importExtracts:
- file: "/types/CA10A1__CaAwsApiGatewayMethod__c/object.extracts.yaml"
conditions:
- status: "COMPLIANT"
currentStateMessage: "This is an HTTP integration."
check:
OR:
args:
- IS_EQUAL:
left:
EXTRACT: "CA10A1__integrationType__c"
right:
TEXT: "HTTP"
- IS_EQUAL:
left:
EXTRACT: "CA10A1__integrationType__c"
right:
TEXT: "HTTP_PROXY"
otherwise:
status: "INAPPLICABLE"
currentStateMessage: "This is not an HTTP integration."