π§ AWS API Gateway REST API Stage is not configured to use an SSL certificate for authentication - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/apigateway/rest-api-stage-ssl-certificate/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS API Gateway Stage
- π AWS API Gateway API - object.extracts.yaml
- π AWS API Gateway Method - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-02-10T22:32:31.763769361Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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β
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/apigateway/rest-api-stage-ssl-certificate/policy.yaml | 9C33486220F93D978B807D552A64FE95 |
| Open | /ce/ca/aws/apigateway/rest-api-stage-ssl-certificate/prod.logic.yaml | 2D4E40A822058B52700DF88C0F84BF44 |
| Open | /ce/ca/aws/apigateway/rest-api-stage-ssl-certificate/test-data.json | 5D239AF4482967939B29CD5D5E5307DF |
| Open | /types/CA10__CaAwsApiGatewayRestApi__c/object.extracts.yaml | 746F09341E8149BAD88C53E274DB1DD5 |
| Open | /types/CA10A1__CaAwsApiGatewayMethod__c/object.extracts.yaml | E28695D16341F6C70D3B2EE06BCEB425 |
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β
---
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."