π§ AWS API Gateway REST API Stage X-Ray Tracing is not enabled - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/apigateway/rest-api-stage-x-ray-tracing/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2026-02-10T22:32:32.045517014Z 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__xrayTracingEnabled__c') == 'No' | βοΈ null |
| π’ | test4 | βοΈ 399 | βοΈ extract('CA10__xrayTracingEnabled__c') == 'Yes' | βοΈ null |
| π’ | test5 | βοΈ 400 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/apigateway/rest-api-stage-x-ray-tracing/policy.yaml | E4832FD377DED7F5184E27F879FD51E3 |
| Open | /ce/ca/aws/apigateway/rest-api-stage-x-ray-tracing/prod.logic.yaml | 440C5BC8BBB8150C41CD872BFCE0B142 |
| Open | /ce/ca/aws/apigateway/rest-api-stage-x-ray-tracing/test-data.json | 155BFC58412A821ACF883B1E51413BAC |
| Open | /types/CA10__CaAwsApiGatewayStage__c/object.extracts.yaml | 4C63240D980BDDAFE321E6FFAC8F9034 |
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β
---
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."