--- inputType: "CA10__CaAwsApiGatewayRestApi__c" importExtracts: - file: "/types/CA10__CaAwsApiGatewayStage__c/object.extracts.yaml" - file: "/types/CA10__CaAwsApiGatewayRestApi__c/object.extracts.yaml" testData: - file: test-data.json conditions: - status: "INAPPLICABLE" currentStateMessage: "HTTP APIs do not support execution logs." check: IS_EQUAL: left: EXTRACT: "CA10__protocolType__c" right: TEXT: "HTTP" - status: "INCOMPLIANT" currentStateMessage: "At least one API stage does not have CloudWatch execution logs enabled." remediationMessage: "Enable CloudWatch execution logs for the API stage." check: RELATED_LIST_HAS: relationshipName: "CA10__AWS_API_Gateway_Stages__r" status: "INCOMPLIANT" otherwise: status: "COMPLIANT" currentStateMessage: "All API stages have CloudWatch execution logs enabled." relatedLists: - relationshipName: "CA10__AWS_API_Gateway_Stages__r" conditions: - status: "INCOMPLIANT" currentStateMessage: "CloudWatch execution logs are not enabled for this API stage." remediationMessage: "Enable CloudWatch execution logs for this API stage." check: IS_EMPTY: arg: EXTRACT: "CA10__cloudWatchLogLevel__c" - status: "INCOMPLIANT" currentStateMessage: "CloudWatch execution logs are turned off for this API stage." remediationMessage: "Enable CloudWatch execution logs for this API stage." check: IS_EQUAL: left: EXTRACT: "CA10__cloudWatchLogLevel__c" right: TEXT: "OFF" otherwise: status: "COMPLIANT" currentStateMessage: "CloudWatch execution logs are enabled for this API stage."