describe_replication_tasks filter on 'cdc' migration-type

Viewed 572

I'm trying to use boto3 to filter replication tasks by cdc migration-type. However, I cannot seem to find or guess correctly the different possible string Values. Does anyone know what they are or where I can find them?

migration_type_filter = { 'Name': 'migration-type', 'Values': 'cdc' }
tasks = boto3.client('dms').describe_replication_tasks(Filters=[migration_type_filter])

Error: "errorMessage": "Parameter validation failed:\nInvalid type for parameter Filters[0].Values, value: cdc, type: , valid types: , "

2 Answers

'MigrationType': 'full-load'|'cdc'|'full-load-and-cdc'

'cdc' works. I had the wrong syntax for the filter.

wrong: migration_type_filter = { 'Name': 'migration-type', 'Values': 'cdc' }

correct: migration_type_filter = { 'Name': 'migration-type', 'Values': ['cdc'] }

Related