{
    "connector.class": "io.debezium.connector.mysql.MySqlConnector",
    "topic.creation.enable": true,
    "topic.creation.default.cleanup.policy": "{{ env['DEFAULT_CLEANUP_POLICY'] }}",  
    "topic.creation.default.replication.factor": {{ env['DEFAULT_REPLICATION_FACTOR'] }},
    "topic.creation.default.partitions": {{ env['DEFAULT_PARTITIONS'] }},
 
    "snapshot.mode": "{{ env['SNAPSHOT_MODE'] }}",
    "snapshot.locking.mode": "{{ env['SNAPSHOT_LOCKING_MODE'] }}",
    "database.hostname": "${file:/etc/debezium-mysql/mysql.properties:host}",
    "database.port": "${file:/etc/debezium-mysql/mysql.properties:port}",
    "database.user": "${file:/etc/debezium-mysql/mysql.properties:user}",
    "database.password": "${file:/etc/debezium-mysql/mysql.properties:password}",
    "database.server.id": "{{ env['DATABASE_SERVER_ID'] }}",

    "database.connectionTimeZone": "{{ env['DATABASE_TIMEZONE'] }}",
    "database.include.list": "{{ env['DATABASE_INCLUDE_LIST'] }}",
    "table.include.list": "{{ env['TABLE_INCLUDE_LIST'] }}",
    "topic.prefix": "{{ env['TOPIC_CUSTOM_PREFIX'] }}",
    "decimal.handling.mode":"{{ env['DECIMAL_HANDLING_MODE'] }}",
    "include.schema.changes": "true",
    "custom.metric.tags": "service_name={{ env['SERVICE_NAME']}}",

    "schema.history.internal.kafka.bootstrap.servers": "{{ env['CONNECT_BOOTSTRAP_SERVERS'] }}",
    "schema.history.internal.kafka.topic": "{{ env['DATABASE_HISTORY_KAFKA_TOPIC'] }}",
    "schema.history.internal.store.only.captured.tables.ddl": "true",
    "schema.history.internal.store.only.captured.databases.ddl": "true",
    "schema.history.internal.skip.unparseable.ddl": "true",
    "schema.history.internal.producer.security.protocol": "{{ env['CONNECT_PRODUCER_SECURITY_PROTOCOL'] }}",
    "schema.history.internal.producer.ssl.truststore.location": "{{ env['CONNECT_PRODUCER_SSL_TRUSTSTORE_LOCATION'] }}",
    "schema.history.internal.consumer.security.protocol": "{{ env['CONNECT_CONSUMER_SECURITY_PROTOCOL'] }}",
    "schema.history.internal.consumer.ssl.truststore.location": "{{ env['CONNECT_CONSUMER_SSL_TRUSTSTORE_LOCATION'] }}",
    "inconsistent.schema.handling.mode": "{{ env['INCONSISTENT_SCHEMA_HANDLING_MODE'] }}"
    {% if env['CHANGE_TOPIC_CASE_FROM'] -%}
    ,
    "transforms": "changeTopicCase",
    "transforms.changeTopicCase.type": "com.github.jcustenborder.kafka.connect.transform.common.ChangeTopicCase",
    "transforms.changeTopicCase.from": "{{ env['CHANGE_TOPIC_CASE_FROM'] }}",
    "transforms.changeTopicCase.to": "{{ env['CHANGE_TOPIC_CASE_TO'] }}"
    {% endif -%}
}
