Skip to main content

🧠 AWS API Gateway REST API Stage X-Ray Tracing is not enabled - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-02-10T22:32:32.045517014Z 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__xrayTracingEnabled__c') == 'No'βœ”οΈ null
🟒test4βœ”οΈ 399βœ”οΈ extract('CA10__xrayTracingEnabled__c') == 'Yes'βœ”οΈ null
🟒test5βœ”οΈ 400βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/apigateway/rest-api-stage-x-ray-tracing/policy.yamlE4832FD377DED7F5184E27F879FD51E3
Open/ce/ca/aws/apigateway/rest-api-stage-x-ray-tracing/prod.logic.yaml440C5BC8BBB8150C41CD872BFCE0B142
Open/ce/ca/aws/apigateway/rest-api-stage-x-ray-tracing/test-data.json155BFC58412A821ACF883B1E51413BAC
Open/types/CA10__CaAwsApiGatewayStage__c/object.extracts.yaml4C63240D980BDDAFE321E6FFAC8F9034

Available Commands​

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

Content​

Open File

---
inputType: "CA10__CaAwsApiGatewayStage__c"
importExtracts:
- file: "/types/CA10__CaAwsApiGatewayStage__c/object.extracts.yaml"
testData:
- file: test-data.json
recordTypes:
- "restApiStage"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "AWS X-Ray is not enabled in API Gateway."
remediationMessage: "Enable AWS X-Ray in API Gateway."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__xrayTracingEnabled__c"
right:
TEXT: "No"
- status: "COMPLIANT"
currentStateMessage: "AWS X-Ray is enabled in API Gateway."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__xrayTracingEnabled__c"
right:
TEXT: "Yes"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the fields."