def METHOD_NAME(conn, module, broker_id):
    try:
        return conn.METHOD_NAME(BrokerId=broker_id)
    except (botocore.exceptions.ClientError, botocore.exceptions.BotoCoreError) as e:
        module.fail_json_aws(e, msg="Couldn't reboot broker.")