def update_weight()

in functions/simple/simple.py [0:0]


def update_weight(func_name, alias_name, version, next_weight):
	log.info("Updating weight of alias {1}:{2} for version {0} to {3}".format(version, func_name, alias_name, next_weight))
	client = get_lambda_client()

	weights = {
		version : next_weight
	}
	routing_config = {
		'AdditionalVersionWeights' : weights
	}

	client.update_alias(FunctionName=func_name, Name=alias_name, RoutingConfig=routing_config)
	return