This is the preferred interface for making Lambda Aliases with Fugue. If you want to manage a Lambda Alias with Fugue, the new function is the right place to start.

Table of Contents

Module Members



new Lambda Alias (Constructor)

Call this constructor to create a new Fugue.Core.AWS.Lambda.Alias value.

Example usage:

import Fugue.AWS as AWS
import Fugue.AWS.IAM as IAM
import Fugue.AWS.Lambda as Lambda

lambda-role: IAM.Role.new {
  roleName: 'lambda-role',
  assumeRolePolicyDocument: IAM.Policy.AssumeRole.lambda,

fn: Lambda.Function.new {
  functionName: 'lambda1',
  runtime: Lambda.Nodejs4_3,
  role: lambda-role,
  handler: 'exports.myHandler',
  code: Lambda.Code.fromZipFile {
    path: "handler.zip",
  region: AWS.Us-east-2,

dev: Lambda.Alias.new {
  name: "DEV",
  function: fn,
  functionVersion: "42",
  description: "Current development version",

Type Signature

 fun { name: String,
       function: Function,
       functionVersion: String,
       description: Optional<String>,
       resourceId: Optional<String> } -> Alias
Argument: name

The name you want to assign to the alias for the function. The alias names appear in the console and are returned in the ListAliases API. Alias names are used in qualifiers for other Lambda APIs, such as AddPermission.

Type: String

Argument: function

The function for which the alias is being created.

Type: Function

Argument: functionVersion

The version of the function to which the alias points. Mutable.

Type: String

Argument: description

A short, user-defined alias description. Lambda does not use this value. Assign a meaningful description as you see fit. Mutable.

Type: Optional<String>

Argument: resourceId

Resource ID of the resource to import with Fugue Import. This field is only honored on fugue run. This resource ID is the Alias ARN. Mutable. Example: arn:aws:lambda:us-east-1:123456789012:function:FunctionName:Alias

Type: Optional<String>


A Fugue.Core.AWS.Lambda.Alias value.

Type: Alias