Fugue.AWS.Lambda.Qualifier

Module Members

alias

(Function)

alias Create a Lambda Qualifier specifying a function alias.

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,
}


  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",
}

aliasQualifier: Lambda.Qualifier.alias(dev)

Type Signature

 fun (Alias) -> Qualifier
Argument: functionAlias

The alias to use as the qualifier.

Type: Alias

Returns:

A Fugue.Core.AWS.Lambda.Qualifier value.

Type: Qualifier

version

(Function)

version Create a Lambda Qualifier specifying a function version.

Example usage:

version: Lambda.Qualifier.version(42)

Type Signature

 fun (Int) -> Qualifier
Argument: functionVersion

The version to use as the qualifier.

Type: Int

Returns:

A Fugue.Core.AWS.Lambda.Qualifier value.

Type: Qualifier