def _construct_alias(self, name, function, version):
if not name:<EOL><INDENT>raise InvalidResourceException(self.logical_id, "<STR_LIT>")<EOL><DEDENT>logical_id = "<STR_LIT>".format(id=function.logical_id, suffix=name)<EOL>alias = LambdaAlias(logical_id=logical_id, attributes=self.get_passthrough_resource_attributes())<EOL>alias.Name = name<EOL>alias.FunctionName = function.get_runtime_attr('<STR_LIT:name>')<EOL>alias.FunctionVersion = version.get_runtime_attr("<STR_LIT:version>")<EOL>return alias<EOL>
Constructs a Lambda Alias for the given function and pointing to the given version

        :param string name: Name of the alias
        :param model.lambda_.LambdaFunction function: Lambda function object to associate the alias with
        :param model.lambda_.LambdaVersion version: Lambda version object to associate the alias with
        :return: Lambda alias object
        :rtype model.lambda_.LambdaAlias