I am trying to send templated email with command:
aws ses send-templated-email --source "temp@gmail.com" --destination "ToAddresses=example@gmail.com" --template-data "{ "firstName": "temp", "lastName": "temp" }" --cli-input-json file://temp.json
but I do not know why I get the following error
Invalid type for parameter Template, value: {'TemplateName': 'temp', 'SubjectPart': 'Greetings!', 'HtmlPart': '<h3>Dear {{firstName}} {{lastName}}</h3>', 'TextPart': ''}, type: <class 'dict'>, valid types: <class 'str'>
The template file content is exactly like this
{
"Template": {
"TemplateName": "temp",
"SubjectPart": "Greetings!",
"HtmlPart": "<h3>Dear {{firstName}} {{lastName}}</h3>",
"TextPart": ""
}
}
I do not know what I am doing wrong. How it should be correcltly done with send-templated-email command?