--- inputType: "CA10__CaAwsAccount__c" testData: - file: test-data.json conditions: - status: "COMPLIANT" currentStateMessage: "The RDS event subscription for critical parameter group events is configured." check: RELATED_LIST_HAS: relationshipName: "CA10__AWS_RDS_Event_Subscriptions__r" status: "COMPLIANT" otherwise: status: "INCOMPLIANT" currentStateMessage: "The RDS event subscription is not configured for critical parameter group events." remediationMessage: "Configure an event subscription for critical parameter group events." relatedLists: - relationshipName: "CA10__AWS_RDS_Event_Subscriptions__r" importExtracts: - file: /types/CA10__CaAwsDbEventSubscription__c/object.extracts.yaml conditions: - status: "INAPPLICABLE" currentStateMessage: "This is not an active parameter group event subscription." check: NOT: arg: AND: args: - IS_EQUAL: left: EXTRACT: "CA10__enabled__c" right: BOOLEAN: true - IS_EQUAL: left: EXTRACT: "CA10__sourceType__c" right: TEXT: 'db-parameter-group' - status: "COMPLIANT" currentStateMessage: "This is an event subscription for critical parameter group events." check: CONTAINS_ALL: arg: EXTRACT: "CA10__eventCategories__c" search: LIST: itemType: TEXT items: ["configuration change"] otherwise: status: "INCOMPLIANT" currentStateMessage: "This is an event subscription for non-critical parameter group events."