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
LookupAliasin the Go SDK.
public static class GetAlias {
public static Task<GetAliasResult> InvokeAsync(GetAliasArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Function
Name string Name of the aliased Lambda function.
- Name string
Name of the Lambda alias.
- Function
Name string Name of the aliased Lambda function.
- Name string
Name of the Lambda alias.
- function
Name 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.
- Function
Name string - Function
Version string Lambda function version which the alias uses.
- Id string
The provider-assigned unique ID for this managed resource.
- Invoke
Arn 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.
- Function
Name string - Function
Version string Lambda function version which the alias uses.
- Id string
The provider-assigned unique ID for this managed resource.
- Invoke
Arn 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.
- function
Name string - function
Version string Lambda function version which the alias uses.
- id string
The provider-assigned unique ID for this managed resource.
- invoke
Arn 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
awsTerraform Provider.