We recommend new projects start with resources from the AWS provider.
aws-native.lambda.Alias
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::Lambda::Alias
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,
provisioned_concurrency_config: Optional[_lambda_.AliasProvisionedConcurrencyConfigurationArgs] = None,
routing_config: Optional[_lambda_.AliasRoutingConfigurationArgs] = None)
func NewAlias(ctx *Context, name string, args AliasArgs, opts ...ResourceOption) (*Alias, error)
public Alias(string name, AliasArgs args, CustomResourceOptions? opts = null)
type: aws-native: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.
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 - The name of the Lambda function.
- Function
Version string - The function version that the alias invokes.
- Description string
- A description of the alias.
- Name string
- The name of the alias.
- Provisioned
Concurrency Pulumi.Config Aws Native. Lambda. Inputs. Alias Provisioned Concurrency Configuration - Specifies a provisioned concurrency configuration for a function's alias.
- Routing
Config Pulumi.Aws Native. Lambda. Inputs. Alias Routing Configuration - The routing configuration of the alias.
- Function
Name string - The name of the Lambda function.
- Function
Version string - The function version that the alias invokes.
- Description string
- A description of the alias.
- Name string
- The name of the alias.
- Provisioned
Concurrency AliasConfig Provisioned Concurrency Configuration Args - Specifies a provisioned concurrency configuration for a function's alias.
- Routing
Config AliasRouting Configuration Args - The routing configuration of the alias.
- function
Name String - The name of the Lambda function.
- function
Version String - The function version that the alias invokes.
- description String
- A description of the alias.
- name String
- The name of the alias.
- provisioned
Concurrency AliasConfig Provisioned Concurrency Configuration - Specifies a provisioned concurrency configuration for a function's alias.
- routing
Config AliasRouting Configuration - The routing configuration of the alias.
- function
Name string - The name of the Lambda function.
- function
Version string - The function version that the alias invokes.
- description string
- A description of the alias.
- name string
- The name of the alias.
- provisioned
Concurrency AliasConfig Provisioned Concurrency Configuration - Specifies a provisioned concurrency configuration for a function's alias.
- routing
Config AliasRouting Configuration - The routing configuration of the alias.
- function_
name str - The name of the Lambda function.
- function_
version str - The function version that the alias invokes.
- description str
- A description of the alias.
- name str
- The name of the alias.
- provisioned_
concurrency_ lambda_.config Alias Provisioned Concurrency Configuration Args - Specifies a provisioned concurrency configuration for a function's alias.
- routing_
config lambda_.Alias Routing Configuration Args - The routing configuration of the alias.
- function
Name String - The name of the Lambda function.
- function
Version String - The function version that the alias invokes.
- description String
- A description of the alias.
- name String
- The name of the alias.
- provisioned
Concurrency Property MapConfig - Specifies a provisioned concurrency configuration for a function's alias.
- routing
Config Property Map - The routing configuration of the alias.
Outputs
All input properties are implicitly available as output properties. Additionally, the Alias resource produces the following output properties:
Supporting Types
AliasProvisionedConcurrencyConfiguration, AliasProvisionedConcurrencyConfigurationArgs
- Provisioned
Concurrent intExecutions - The amount of provisioned concurrency to allocate for the alias.
- Provisioned
Concurrent intExecutions - The amount of provisioned concurrency to allocate for the alias.
- provisioned
Concurrent IntegerExecutions - The amount of provisioned concurrency to allocate for the alias.
- provisioned
Concurrent numberExecutions - The amount of provisioned concurrency to allocate for the alias.
- provisioned_
concurrent_ intexecutions - The amount of provisioned concurrency to allocate for the alias.
- provisioned
Concurrent NumberExecutions - The amount of provisioned concurrency to allocate for the alias.
AliasRoutingConfiguration, AliasRoutingConfigurationArgs
- Additional
Version List<Pulumi.Weights Aws Native. Lambda. Inputs. Alias Version Weight> - The second version, and the percentage of traffic that's routed to it.
- Additional
Version []AliasWeights Version Weight - The second version, and the percentage of traffic that's routed to it.
- additional
Version List<AliasWeights Version Weight> - The second version, and the percentage of traffic that's routed to it.
- additional
Version AliasWeights Version Weight[] - The second version, and the percentage of traffic that's routed to it.
- additional_
version_ Sequence[lambda_.weights Alias Version Weight] - The second version, and the percentage of traffic that's routed to it.
- additional
Version List<Property Map>Weights - The second version, and the percentage of traffic that's routed to it.
AliasVersionWeight, AliasVersionWeightArgs
- Function
Version string - The qualifier of the second version.
- Function
Weight double - The percentage of traffic that the alias routes to the second version.
- Function
Version string - The qualifier of the second version.
- Function
Weight float64 - The percentage of traffic that the alias routes to the second version.
- function
Version String - The qualifier of the second version.
- function
Weight Double - The percentage of traffic that the alias routes to the second version.
- function
Version string - The qualifier of the second version.
- function
Weight number - The percentage of traffic that the alias routes to the second version.
- function_
version str - The qualifier of the second version.
- function_
weight float - The percentage of traffic that the alias routes to the second version.
- function
Version String - The qualifier of the second version.
- function
Weight Number - The percentage of traffic that the alias routes to the second version.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.