def _build_message(params, key, value):
    # Build up the Message data structure
    if 'Message' not in params:
        params['Message'] = {'Subject': {}, 'Body': {}}
    if key in ('Text', 'Html'):
        params['Message']['Body'][key] = {'Data': value}
    elif key == 'Subject':
        params['Message']['Subject'] = {'Data': value}
dataset/ETHPy150Open aws/aws-cli/awscli/customizations/sessendemail.py/_build_message/original