aws.lambda.Alias
Explore with Pulumi AI
Manages an AWS Lambda Alias. Use this resource to create an alias that points to a specific Lambda function version for traffic management and deployment strategies.
For information about Lambda and how to use it, see What is AWS Lambda?. For information about function aliases, see CreateAlias and AliasRoutingConfiguration in the API docs.
Example Usage
Basic Alias
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.lambda.Alias("example", {
name: "production",
description: "Production environment alias",
functionName: exampleAwsLambdaFunction.arn,
functionVersion: "1",
});
import pulumi
import pulumi_aws as aws
example = aws.lambda_.Alias("example",
name="production",
description="Production environment alias",
function_name=example_aws_lambda_function["arn"],
function_version="1")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lambda.NewAlias(ctx, "example", &lambda.AliasArgs{
Name: pulumi.String("production"),
Description: pulumi.String("Production environment alias"),
FunctionName: pulumi.Any(exampleAwsLambdaFunction.Arn),
FunctionVersion: pulumi.String("1"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Lambda.Alias("example", new()
{
Name = "production",
Description = "Production environment alias",
FunctionName = exampleAwsLambdaFunction.Arn,
FunctionVersion = "1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambda.Alias;
import com.pulumi.aws.lambda.AliasArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Alias("example", AliasArgs.builder()
.name("production")
.description("Production environment alias")
.functionName(exampleAwsLambdaFunction.arn())
.functionVersion("1")
.build());
}
}
resources:
example:
type: aws:lambda:Alias
properties:
name: production
description: Production environment alias
functionName: ${exampleAwsLambdaFunction.arn}
functionVersion: '1'
Alias with Traffic Splitting
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.lambda.Alias("example", {
name: "staging",
description: "Staging environment with traffic splitting",
functionName: exampleAwsLambdaFunction.functionName,
functionVersion: "2",
routingConfig: {
additionalVersionWeights: {
"1": 0.1,
"3": 0.2,
},
},
});
import pulumi
import pulumi_aws as aws
example = aws.lambda_.Alias("example",
name="staging",
description="Staging environment with traffic splitting",
function_name=example_aws_lambda_function["functionName"],
function_version="2",
routing_config={
"additional_version_weights": {
"1": 0.1,
"3": 0.2,
},
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lambda.NewAlias(ctx, "example", &lambda.AliasArgs{
Name: pulumi.String("staging"),
Description: pulumi.String("Staging environment with traffic splitting"),
FunctionName: pulumi.Any(exampleAwsLambdaFunction.FunctionName),
FunctionVersion: pulumi.String("2"),
RoutingConfig: &lambda.AliasRoutingConfigArgs{
AdditionalVersionWeights: pulumi.Float64Map{
"1": pulumi.Float64(0.1),
"3": pulumi.Float64(0.2),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Lambda.Alias("example", new()
{
Name = "staging",
Description = "Staging environment with traffic splitting",
FunctionName = exampleAwsLambdaFunction.FunctionName,
FunctionVersion = "2",
RoutingConfig = new Aws.Lambda.Inputs.AliasRoutingConfigArgs
{
AdditionalVersionWeights =
{
{ "1", 0.1 },
{ "3", 0.2 },
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambda.Alias;
import com.pulumi.aws.lambda.AliasArgs;
import com.pulumi.aws.lambda.inputs.AliasRoutingConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Alias("example", AliasArgs.builder()
.name("staging")
.description("Staging environment with traffic splitting")
.functionName(exampleAwsLambdaFunction.functionName())
.functionVersion("2")
.routingConfig(AliasRoutingConfigArgs.builder()
.additionalVersionWeights(Map.ofEntries(
Map.entry("1", 0.1),
Map.entry("3", 0.2)
))
.build())
.build());
}
}
resources:
example:
type: aws:lambda:Alias
properties:
name: staging
description: Staging environment with traffic splitting
functionName: ${exampleAwsLambdaFunction.functionName}
functionVersion: '2'
routingConfig:
additionalVersionWeights:
'1': 0.1
'3': 0.2
Blue-Green Deployment Alias
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
// Alias for gradual rollout
const example = new aws.lambda.Alias("example", {
name: "live",
description: "Live traffic with gradual rollout to new version",
functionName: exampleAwsLambdaFunction.functionName,
functionVersion: "5",
routingConfig: {
additionalVersionWeights: {
"6": 0.05,
},
},
});
import pulumi
import pulumi_aws as aws
# Alias for gradual rollout
example = aws.lambda_.Alias("example",
name="live",
description="Live traffic with gradual rollout to new version",
function_name=example_aws_lambda_function["functionName"],
function_version="5",
routing_config={
"additional_version_weights": {
"6": 0.05,
},
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Alias for gradual rollout
_, err := lambda.NewAlias(ctx, "example", &lambda.AliasArgs{
Name: pulumi.String("live"),
Description: pulumi.String("Live traffic with gradual rollout to new version"),
FunctionName: pulumi.Any(exampleAwsLambdaFunction.FunctionName),
FunctionVersion: pulumi.String("5"),
RoutingConfig: &lambda.AliasRoutingConfigArgs{
AdditionalVersionWeights: pulumi.Float64Map{
"6": pulumi.Float64(0.05),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
// Alias for gradual rollout
var example = new Aws.Lambda.Alias("example", new()
{
Name = "live",
Description = "Live traffic with gradual rollout to new version",
FunctionName = exampleAwsLambdaFunction.FunctionName,
FunctionVersion = "5",
RoutingConfig = new Aws.Lambda.Inputs.AliasRoutingConfigArgs
{
AdditionalVersionWeights =
{
{ "6", 0.05 },
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambda.Alias;
import com.pulumi.aws.lambda.AliasArgs;
import com.pulumi.aws.lambda.inputs.AliasRoutingConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Alias for gradual rollout
var example = new Alias("example", AliasArgs.builder()
.name("live")
.description("Live traffic with gradual rollout to new version")
.functionName(exampleAwsLambdaFunction.functionName())
.functionVersion("5")
.routingConfig(AliasRoutingConfigArgs.builder()
.additionalVersionWeights(Map.of("6", 0.05))
.build())
.build());
}
}
resources:
# Alias for gradual rollout
example:
type: aws:lambda:Alias
properties:
name: live
description: Live traffic with gradual rollout to new version
functionName: ${exampleAwsLambdaFunction.functionName}
functionVersion: '5'
routingConfig:
additionalVersionWeights:
'6': 0.05
Development Alias
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.lambda.Alias("example", {
name: "dev",
description: "Development environment - always points to latest",
functionName: exampleAwsLambdaFunction.functionName,
functionVersion: "$LATEST",
});
import pulumi
import pulumi_aws as aws
example = aws.lambda_.Alias("example",
name="dev",
description="Development environment - always points to latest",
function_name=example_aws_lambda_function["functionName"],
function_version="$LATEST")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lambda.NewAlias(ctx, "example", &lambda.AliasArgs{
Name: pulumi.String("dev"),
Description: pulumi.String("Development environment - always points to latest"),
FunctionName: pulumi.Any(exampleAwsLambdaFunction.FunctionName),
FunctionVersion: pulumi.String("$LATEST"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Lambda.Alias("example", new()
{
Name = "dev",
Description = "Development environment - always points to latest",
FunctionName = exampleAwsLambdaFunction.FunctionName,
FunctionVersion = "$LATEST",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambda.Alias;
import com.pulumi.aws.lambda.AliasArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Alias("example", AliasArgs.builder()
.name("dev")
.description("Development environment - always points to latest")
.functionName(exampleAwsLambdaFunction.functionName())
.functionVersion("$LATEST")
.build());
}
}
resources:
example:
type: aws:lambda:Alias
properties:
name: dev
description: Development environment - always points to latest
functionName: ${exampleAwsLambdaFunction.functionName}
functionVersion: $LATEST
Create Alias Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Alias(name: string, args: AliasArgs, opts?: CustomResourceOptions);
@overload
def Alias(resource_name: str,
args: AliasArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Alias(resource_name: str,
opts: Optional[ResourceOptions] = None,
function_name: Optional[str] = None,
function_version: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
routing_config: Optional[AliasRoutingConfigArgs] = None)
func NewAlias(ctx *Context, name string, args AliasArgs, opts ...ResourceOption) (*Alias, error)
public Alias(string name, AliasArgs args, CustomResourceOptions? opts = null)
type: aws:lambda:Alias
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AliasArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AliasArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AliasArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AliasArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AliasArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var examplealiasResourceResourceFromLambdaalias = new Aws.Lambda.Alias("examplealiasResourceResourceFromLambdaalias", new()
{
FunctionName = "string",
FunctionVersion = "string",
Description = "string",
Name = "string",
Region = "string",
RoutingConfig = new Aws.Lambda.Inputs.AliasRoutingConfigArgs
{
AdditionalVersionWeights =
{
{ "string", 0 },
},
},
});
example, err := lambda.NewAlias(ctx, "examplealiasResourceResourceFromLambdaalias", &lambda.AliasArgs{
FunctionName: pulumi.String("string"),
FunctionVersion: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
RoutingConfig: &lambda.AliasRoutingConfigArgs{
AdditionalVersionWeights: pulumi.Float64Map{
"string": pulumi.Float64(0),
},
},
})
var examplealiasResourceResourceFromLambdaalias = new com.pulumi.aws.lambda.Alias("examplealiasResourceResourceFromLambdaalias", com.pulumi.aws.lambda.AliasArgs.builder()
.functionName("string")
.functionVersion("string")
.description("string")
.name("string")
.region("string")
.routingConfig(AliasRoutingConfigArgs.builder()
.additionalVersionWeights(Map.of("string", 0.0))
.build())
.build());
examplealias_resource_resource_from_lambdaalias = aws.lambda_.Alias("examplealiasResourceResourceFromLambdaalias",
function_name="string",
function_version="string",
description="string",
name="string",
region="string",
routing_config={
"additional_version_weights": {
"string": 0,
},
})
const examplealiasResourceResourceFromLambdaalias = new aws.lambda.Alias("examplealiasResourceResourceFromLambdaalias", {
functionName: "string",
functionVersion: "string",
description: "string",
name: "string",
region: "string",
routingConfig: {
additionalVersionWeights: {
string: 0,
},
},
});
type: aws:lambda:Alias
properties:
description: string
functionName: string
functionVersion: string
name: string
region: string
routingConfig:
additionalVersionWeights:
string: 0
Alias Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Alias resource accepts the following input properties:
- Function
Name string - Name or ARN of the Lambda function.
- Function
Version string - Lambda function version for which you are creating the alias. Pattern:
(\$LATEST|[0-9]+)
. - Description string
- Description of the alias.
- Name string
Name for the alias. Pattern:
(?!^[0-9]+$)([a-zA-Z0-9-_]+)
.The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Routing
Config AliasRouting Config - Lambda alias' route configuration settings. See below.
- Function
Name string - Name or ARN of the Lambda function.
- Function
Version string - Lambda function version for which you are creating the alias. Pattern:
(\$LATEST|[0-9]+)
. - Description string
- Description of the alias.
- Name string
Name for the alias. Pattern:
(?!^[0-9]+$)([a-zA-Z0-9-_]+)
.The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Routing
Config AliasRouting Config Args - Lambda alias' route configuration settings. See below.
- function
Name String - Name or ARN of the Lambda function.
- function
Version String - Lambda function version for which you are creating the alias. Pattern:
(\$LATEST|[0-9]+)
. - description String
- Description of the alias.
- name String
Name for the alias. Pattern:
(?!^[0-9]+$)([a-zA-Z0-9-_]+)
.The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- routing
Config AliasRouting Config - Lambda alias' route configuration settings. See below.
- function
Name string - Name or ARN of the Lambda function.
- function
Version string - Lambda function version for which you are creating the alias. Pattern:
(\$LATEST|[0-9]+)
. - description string
- Description of the alias.
- name string
Name for the alias. Pattern:
(?!^[0-9]+$)([a-zA-Z0-9-_]+)
.The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- routing
Config AliasRouting Config - Lambda alias' route configuration settings. See below.
- function_
name str - Name or ARN of the Lambda function.
- function_
version str - Lambda function version for which you are creating the alias. Pattern:
(\$LATEST|[0-9]+)
. - description str
- Description of the alias.
- name str
Name for the alias. Pattern:
(?!^[0-9]+$)([a-zA-Z0-9-_]+)
.The following arguments are optional:
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- routing_
config AliasRouting Config Args - Lambda alias' route configuration settings. See below.
- function
Name String - Name or ARN of the Lambda function.
- function
Version String - Lambda function version for which you are creating the alias. Pattern:
(\$LATEST|[0-9]+)
. - description String
- Description of the alias.
- name String
Name for the alias. Pattern:
(?!^[0-9]+$)([a-zA-Z0-9-_]+)
.The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- routing
Config Property Map - Lambda alias' route configuration settings. See below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Alias resource produces the following output properties:
- arn str
- ARN identifying your Lambda function alias.
- id str
- The provider-assigned unique ID for this managed resource.
- invoke_
arn str - ARN to be used for invoking Lambda Function from API Gateway - to be used in
aws.apigateway.Integration
'suri
.
Look up Existing Alias Resource
Get an existing Alias resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AliasState, opts?: CustomResourceOptions): Alias
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
description: Optional[str] = None,
function_name: Optional[str] = None,
function_version: Optional[str] = None,
invoke_arn: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
routing_config: Optional[AliasRoutingConfigArgs] = None) -> Alias
func GetAlias(ctx *Context, name string, id IDInput, state *AliasState, opts ...ResourceOption) (*Alias, error)
public static Alias Get(string name, Input<string> id, AliasState? state, CustomResourceOptions? opts = null)
public static Alias get(String name, Output<String> id, AliasState state, CustomResourceOptions options)
resources: _: type: aws:lambda:Alias get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- ARN identifying your Lambda function alias.
- Description string
- Description of the alias.
- Function
Name string - Name or ARN of the Lambda function.
- Function
Version string - Lambda function version for which you are creating the alias. Pattern:
(\$LATEST|[0-9]+)
. - Invoke
Arn string - ARN to be used for invoking Lambda Function from API Gateway - to be used in
aws.apigateway.Integration
'suri
. - Name string
Name for the alias. Pattern:
(?!^[0-9]+$)([a-zA-Z0-9-_]+)
.The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Routing
Config AliasRouting Config - Lambda alias' route configuration settings. See below.
- Arn string
- ARN identifying your Lambda function alias.
- Description string
- Description of the alias.
- Function
Name string - Name or ARN of the Lambda function.
- Function
Version string - Lambda function version for which you are creating the alias. Pattern:
(\$LATEST|[0-9]+)
. - Invoke
Arn string - ARN to be used for invoking Lambda Function from API Gateway - to be used in
aws.apigateway.Integration
'suri
. - Name string
Name for the alias. Pattern:
(?!^[0-9]+$)([a-zA-Z0-9-_]+)
.The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Routing
Config AliasRouting Config Args - Lambda alias' route configuration settings. See below.
- arn String
- ARN identifying your Lambda function alias.
- description String
- Description of the alias.
- function
Name String - Name or ARN of the Lambda function.
- function
Version String - Lambda function version for which you are creating the alias. Pattern:
(\$LATEST|[0-9]+)
. - invoke
Arn String - ARN to be used for invoking Lambda Function from API Gateway - to be used in
aws.apigateway.Integration
'suri
. - name String
Name for the alias. Pattern:
(?!^[0-9]+$)([a-zA-Z0-9-_]+)
.The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- routing
Config AliasRouting Config - Lambda alias' route configuration settings. See below.
- arn string
- ARN identifying your Lambda function alias.
- description string
- Description of the alias.
- function
Name string - Name or ARN of the Lambda function.
- function
Version string - Lambda function version for which you are creating the alias. Pattern:
(\$LATEST|[0-9]+)
. - invoke
Arn string - ARN to be used for invoking Lambda Function from API Gateway - to be used in
aws.apigateway.Integration
'suri
. - name string
Name for the alias. Pattern:
(?!^[0-9]+$)([a-zA-Z0-9-_]+)
.The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- routing
Config AliasRouting Config - Lambda alias' route configuration settings. See below.
- arn str
- ARN identifying your Lambda function alias.
- description str
- Description of the alias.
- function_
name str - Name or ARN of the Lambda function.
- function_
version str - Lambda function version for which you are creating the alias. Pattern:
(\$LATEST|[0-9]+)
. - invoke_
arn str - ARN to be used for invoking Lambda Function from API Gateway - to be used in
aws.apigateway.Integration
'suri
. - name str
Name for the alias. Pattern:
(?!^[0-9]+$)([a-zA-Z0-9-_]+)
.The following arguments are optional:
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- routing_
config AliasRouting Config Args - Lambda alias' route configuration settings. See below.
- arn String
- ARN identifying your Lambda function alias.
- description String
- Description of the alias.
- function
Name String - Name or ARN of the Lambda function.
- function
Version String - Lambda function version for which you are creating the alias. Pattern:
(\$LATEST|[0-9]+)
. - invoke
Arn String - ARN to be used for invoking Lambda Function from API Gateway - to be used in
aws.apigateway.Integration
'suri
. - name String
Name for the alias. Pattern:
(?!^[0-9]+$)([a-zA-Z0-9-_]+)
.The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- routing
Config Property Map - Lambda alias' route configuration settings. See below.
Supporting Types
AliasRoutingConfig, AliasRoutingConfigArgs
- Additional
Version Dictionary<string, double>Weights - Map that defines the proportion of events that should be sent to different versions of a Lambda function.
- Additional
Version map[string]float64Weights - Map that defines the proportion of events that should be sent to different versions of a Lambda function.
- additional
Version Map<String,Double>Weights - Map that defines the proportion of events that should be sent to different versions of a Lambda function.
- additional
Version {[key: string]: number}Weights - Map that defines the proportion of events that should be sent to different versions of a Lambda function.
- additional_
version_ Mapping[str, float]weights - Map that defines the proportion of events that should be sent to different versions of a Lambda function.
- additional
Version Map<Number>Weights - Map that defines the proportion of events that should be sent to different versions of a Lambda function.
Import
For backwards compatibility, the following legacy pulumi import
command is also supported:
$ pulumi import aws:lambda/alias:Alias example example/production
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.