Skip to main content

🧠 AWS DMS Migration Task Logging is not enabled - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• AWS DMS Migration TaskCA10A1__CaAwsDmsMigrationTask__c611

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-07-12T12:02:31.556506719Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10A1__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 299βœ”οΈ not(extract('caJsonBoolean__settingsJsonEnableLogging__c'))βœ”οΈ null
🟒test3βœ”οΈ 399βœ”οΈ extract('caJsonText__settingsJsonTargetApplySeverity__c').isEmpty()βœ”οΈ null
🟒test4βœ”οΈ 499βœ”οΈ setOfText(['LOGGER_SEVERITY_INFO', 'LOGGER_SEVERITY_WARNING', 'LOGGER_SEVERITY_ERROR']).contains(extract('caJsonText__settingsJsonTargetApplySeverity__c'))βœ”οΈ null
🟒test5βœ”οΈ 599βœ”οΈ extract('caJsonText__settingsJsonTargetLoadSeverity__c').isEmpty()βœ”οΈ null
🟒test6βœ”οΈ 699βœ”οΈ setOfText(['LOGGER_SEVERITY_INFO', 'LOGGER_SEVERITY_WARNING', 'LOGGER_SEVERITY_ERROR']).contains(extract('caJsonText__settingsJsonTargetLoadSeverity__c'))βœ”οΈ null
🟒test7βœ”οΈ 799βœ”οΈ extract('caJsonText__settingsJsonSourceCaptureSeverity__c').isEmpty()βœ”οΈ null
🟒test8βœ”οΈ 899βœ”οΈ setOfText(['LOGGER_SEVERITY_INFO', 'LOGGER_SEVERITY_WARNING', 'LOGGER_SEVERITY_ERROR']).contains(extract('caJsonText__settingsJsonSourceCaptureSeverity__c'))βœ”οΈ null
🟒test9βœ”οΈ 999βœ”οΈ extract('caJsonText__settingsJsonSourceUnloadSeverity__c').isEmpty()βœ”οΈ null
🟒test10βœ”οΈ 1099βœ”οΈ setOfText(['LOGGER_SEVERITY_INFO', 'LOGGER_SEVERITY_WARNING', 'LOGGER_SEVERITY_ERROR']).contains(extract('caJsonText__settingsJsonSourceUnloadSeverity__c'))βœ”οΈ null
🟒test11βœ”οΈ 1100βœ”οΈ otherwiseβœ”οΈ null
🟒test12βœ”οΈ 399βœ”οΈ extract('caJsonText__settingsJsonTargetApplySeverity__c').isEmpty()βœ”οΈ null
🟒test13βœ”οΈ 399βœ”οΈ extract('caJsonText__settingsJsonTargetApplySeverity__c').isEmpty()βœ”οΈ null
🟒test14βœ”οΈ 199βœ”οΈ extract('caJsonBoolean__settingsJsonEnableLogging__c').isEmpty()βœ”οΈ null
🟒test15βœ”οΈ 103βœ”οΈ extract('caJsonFrom__settingsJson__c').jsonQueryText('Logging.EnableLogging').isEvaluationFailed()βœ”οΈ UNDETERMINED condition:102
🟒test16βœ”οΈ 199βœ”οΈ extract('caJsonBoolean__settingsJsonEnableLogging__c').isEmpty()βœ”οΈ null
🟒test17βœ”οΈ 199βœ”οΈ extract('caJsonBoolean__settingsJsonEnableLogging__c').isEmpty()βœ”οΈ null
🟒test18βœ”οΈ 199βœ”οΈ extract('caJsonBoolean__settingsJsonEnableLogging__c').isEmpty()βœ”οΈ null

Generation​

FileMD5
Open/ce/ca/aws/dms/migration-task-logging/policy.yamlACCE68DE6436BCE24FCF1B86911024F3
Open/ce/ca/aws/dms/migration-task-logging/prod.logic.yaml72B013D6D8DFFE59BDB71D994DDCA831
Open/types/CA10A1__CaAwsDmsMigrationTask__c/object.extracts.yaml3B65C1EB3540C862016725CADD685D5B
Open/ce/ca/aws/dms/migration-task-logging/test-data.json44246BC726AD7A1BAD52D8F80CEA5FB3

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/aws/dms/migration-task-logging/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/aws/dms/migration-task-logging/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/aws/dms/migration-task-logging/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/aws/dms/migration-task-logging/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/aws/dms/migration-task-logging/prod.logic.yaml

Content​

Open File

---
inputType: "CA10A1__CaAwsDmsMigrationTask__c"
importExtracts:
- file: /types/CA10A1__CaAwsDmsMigrationTask__c/object.extracts.yaml
testData:
- file: "test-data.json"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "CloudWatch logging is disabled for the DMS replication task."
remediationMessage: "Consider enable CloudWatch logging for this DMS replication task."
check:
IS_EMPTY:
arg:
EXTRACT: "caJsonBoolean__settingsJsonEnableLogging__c"
- status: "INCOMPLIANT"
currentStateMessage: "CloudWatch logging is disabled for the DMS replication task."
remediationMessage: "Consider enable CloudWatch logging for this DMS replication task."
check:
NOT:
arg:
EXTRACT: "caJsonBoolean__settingsJsonEnableLogging__c"
- status: "INCOMPLIANT"
currentStateMessage: "Logging for the TARGET_APPLY component is not enabled."
remediationMessage: "Ensure the TARGET_APPLY log component is enabled with a minimum severity of LOGGER_SEVERITY_DEFAULT."
check:
IS_EMPTY:
arg:
EXTRACT: "caJsonText__settingsJsonTargetApplySeverity__c"
- status: "INCOMPLIANT"
currentStateMessage: "Logging for the TARGET_APPLY component is below the required LOGGER_SEVERITY_DEFAULT level."
remediationMessage: "Ensure the TARGET_APPLY log component is enabled with a minimum severity of LOGGER_SEVERITY_DEFAULT."
check:
CONTAINS:
arg:
SET:
itemType: TEXT
items:
- LOGGER_SEVERITY_INFO
- LOGGER_SEVERITY_WARNING
- LOGGER_SEVERITY_ERROR
search:
EXTRACT: "caJsonText__settingsJsonTargetApplySeverity__c"
- status: "INCOMPLIANT"
currentStateMessage: "Logging for the TARGET_LOAD component is not enabled."
remediationMessage: "Ensure the TARGET_LOAD log component is enabled with a minimum severity of LOGGER_SEVERITY_DEFAULT."
check:
IS_EMPTY:
arg:
EXTRACT: "caJsonText__settingsJsonTargetLoadSeverity__c"
- status: "INCOMPLIANT"
currentStateMessage: "Logging for the TARGET_LOAD component is below the required LOGGER_SEVERITY_DEFAULT level."
remediationMessage: "Ensure the TARGET_LOAD log component is enabled with a minimum severity of LOGGER_SEVERITY_DEFAULT."
check:
CONTAINS:
arg:
SET:
itemType: TEXT
items:
- LOGGER_SEVERITY_INFO
- LOGGER_SEVERITY_WARNING
- LOGGER_SEVERITY_ERROR
search:
EXTRACT: "caJsonText__settingsJsonTargetLoadSeverity__c"
- status: "INCOMPLIANT"
currentStateMessage: "Logging for the SOURCE_CAPTURE component is not enabled."
remediationMessage: "Ensure the SOURCE_CAPTURE log component is enabled with a minimum severity of LOGGER_SEVERITY_DEFAULT."
check:
IS_EMPTY:
arg:
EXTRACT: "caJsonText__settingsJsonSourceCaptureSeverity__c"
- status: "INCOMPLIANT"
currentStateMessage: "Logging for the SOURCE_CAPTURE component is below the required LOGGER_SEVERITY_DEFAULT level."
remediationMessage: "Ensure the SOURCE_CAPTURE log component is enabled with a minimum severity of LOGGER_SEVERITY_DEFAULT."
check:
CONTAINS:
arg:
SET:
itemType: TEXT
items:
- LOGGER_SEVERITY_INFO
- LOGGER_SEVERITY_WARNING
- LOGGER_SEVERITY_ERROR
search:
EXTRACT: "caJsonText__settingsJsonSourceCaptureSeverity__c"
- status: "INCOMPLIANT"
currentStateMessage: "Logging for the SOURCE_UNLOAD component is not enabled."
remediationMessage: "Ensure the SOURCE_UNLOAD log component is enabled with a minimum severity of LOGGER_SEVERITY_DEFAULT."
check:
IS_EMPTY:
arg:
EXTRACT: "caJsonText__settingsJsonSourceUnloadSeverity__c"
- status: "INCOMPLIANT"
currentStateMessage: "Logging for the SOURCE_UNLOAD component is below the required LOGGER_SEVERITY_DEFAULT level."
remediationMessage: "Ensure the SOURCE_UNLOAD log component is enabled with a minimum severity of LOGGER_SEVERITY_DEFAULT."
check:
CONTAINS:
arg:
SET:
itemType: TEXT
items:
- LOGGER_SEVERITY_INFO
- LOGGER_SEVERITY_WARNING
- LOGGER_SEVERITY_ERROR
search:
EXTRACT: "caJsonText__settingsJsonSourceUnloadSeverity__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "DMS Migration Task Logging is enabled for all required components with the appropriate severity level."