'Send notification to specified SNS ARN.'

def send_message(self, message='', **kwargs):

    targets = kwargs.get(ATTR_TARGET)
    if (not targets):
        _LOGGER.info('At    least    1    target    is    required')
        return
    message_attributes = {k: {'StringValue': json.dumps(v), 'DataType': 'String'} for (k, v) in kwargs.items() if v}
    for target in targets:
        self.client.publish(TargetArn=target, Message=message, Subject=kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT), MessageAttributes=message_attributes)
