GetAlias

Provides information about a Lambda Alias.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var production = Output.Create(Aws.Lambda.GetAlias.InvokeAsync(new Aws.Lambda.GetAliasArgs
        {
            FunctionName = "my-lambda-func",
            Name = "production",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := lambda.LookupAlias(ctx, &lambda.LookupAliasArgs{
            FunctionName: "my-lambda-func",
            Name:         "production",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

production = aws.lambda.get_alias(function_name="my-lambda-func",
    name="production")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const production = pulumi.output(aws.lambda.getAlias({
    functionName: "my-lambda-func",
    name: "production",
}, { async: true }));

Using GetAlias

function getAlias(args: GetAliasArgs, opts?: InvokeOptions): Promise<GetAliasResult>
function  get_alias(function_name=None, name=None, opts=None)
func LookupAlias(ctx *Context, args *LookupAliasArgs, opts ...InvokeOption) (*LookupAliasResult, error)

Note: This function is named LookupAlias in the Go SDK.

public static class GetAlias {
    public static Task<GetAliasResult> InvokeAsync(GetAliasArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

FunctionName string

Name of the aliased Lambda function.

Name string

Name of the Lambda alias.

FunctionName string

Name of the aliased Lambda function.

Name string

Name of the Lambda alias.

functionName string

Name of the aliased Lambda function.

name string

Name of the Lambda alias.

function_name str

Name of the aliased Lambda function.

name str

Name of the Lambda alias.

GetAlias Result

The following output properties are available:

Arn string

The Amazon Resource Name (ARN) identifying the Lambda function alias.

Description string

Description of alias.

FunctionName string
FunctionVersion string

Lambda function version which the alias uses.

Id string

The provider-assigned unique ID for this managed resource.

InvokeArn string

The ARN to be used for invoking Lambda Function from API Gateway - to be used in aws_api_gateway_integration’s uri.

Name string
Arn string

The Amazon Resource Name (ARN) identifying the Lambda function alias.

Description string

Description of alias.

FunctionName string
FunctionVersion string

Lambda function version which the alias uses.

Id string

The provider-assigned unique ID for this managed resource.

InvokeArn string

The ARN to be used for invoking Lambda Function from API Gateway - to be used in aws_api_gateway_integration’s uri.

Name string
arn string

The Amazon Resource Name (ARN) identifying the Lambda function alias.

description string

Description of alias.

functionName string
functionVersion string

Lambda function version which the alias uses.

id string

The provider-assigned unique ID for this managed resource.

invokeArn string

The ARN to be used for invoking Lambda Function from API Gateway - to be used in aws_api_gateway_integration’s uri.

name string
arn str

The Amazon Resource Name (ARN) identifying the Lambda function alias.

description str

Description of alias.

function_name str
function_version str

Lambda function version which the alias uses.

id str

The provider-assigned unique ID for this managed resource.

invoke_arn str

The ARN to be used for invoking Lambda Function from API Gateway - to be used in aws_api_gateway_integration’s uri.

name str

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.