1. Packages
  2. AWS Native
  3. API Docs
  4. lambda
  5. Alias

We recommend new projects start with resources from the AWS provider.

AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi

aws-native.lambda.Alias

Explore with Pulumi AI

aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi

    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)
    public Alias(String name, AliasArgs args)
    public Alias(String name, AliasArgs args, CustomResourceOptions options)
    
    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

    The Alias resource accepts the following input properties:

    FunctionName string
    The name of the Lambda function.
    FunctionVersion string
    The function version that the alias invokes.
    Description string
    A description of the alias.
    Name string
    The name of the alias.
    ProvisionedConcurrencyConfig Pulumi.AwsNative.Lambda.Inputs.AliasProvisionedConcurrencyConfiguration
    Specifies a provisioned concurrency configuration for a function's alias.
    RoutingConfig Pulumi.AwsNative.Lambda.Inputs.AliasRoutingConfiguration
    The routing configuration of the alias.
    FunctionName string
    The name of the Lambda function.
    FunctionVersion string
    The function version that the alias invokes.
    Description string
    A description of the alias.
    Name string
    The name of the alias.
    ProvisionedConcurrencyConfig AliasProvisionedConcurrencyConfigurationArgs
    Specifies a provisioned concurrency configuration for a function's alias.
    RoutingConfig AliasRoutingConfigurationArgs
    The routing configuration of the alias.
    functionName String
    The name of the Lambda function.
    functionVersion String
    The function version that the alias invokes.
    description String
    A description of the alias.
    name String
    The name of the alias.
    provisionedConcurrencyConfig AliasProvisionedConcurrencyConfiguration
    Specifies a provisioned concurrency configuration for a function's alias.
    routingConfig AliasRoutingConfiguration
    The routing configuration of the alias.
    functionName string
    The name of the Lambda function.
    functionVersion string
    The function version that the alias invokes.
    description string
    A description of the alias.
    name string
    The name of the alias.
    provisionedConcurrencyConfig AliasProvisionedConcurrencyConfiguration
    Specifies a provisioned concurrency configuration for a function's alias.
    routingConfig AliasRoutingConfiguration
    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_config lambda_.AliasProvisionedConcurrencyConfigurationArgs
    Specifies a provisioned concurrency configuration for a function's alias.
    routing_config lambda_.AliasRoutingConfigurationArgs
    The routing configuration of the alias.
    functionName String
    The name of the Lambda function.
    functionVersion String
    The function version that the alias invokes.
    description String
    A description of the alias.
    name String
    The name of the alias.
    provisionedConcurrencyConfig Property Map
    Specifies a provisioned concurrency configuration for a function's alias.
    routingConfig 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:

    AliasArn string
    Lambda Alias ARN generated by the service.
    Id string
    The provider-assigned unique ID for this managed resource.
    AliasArn string
    Lambda Alias ARN generated by the service.
    Id string
    The provider-assigned unique ID for this managed resource.
    aliasArn String
    Lambda Alias ARN generated by the service.
    id String
    The provider-assigned unique ID for this managed resource.
    aliasArn string
    Lambda Alias ARN generated by the service.
    id string
    The provider-assigned unique ID for this managed resource.
    alias_arn str
    Lambda Alias ARN generated by the service.
    id str
    The provider-assigned unique ID for this managed resource.
    aliasArn String
    Lambda Alias ARN generated by the service.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    AliasProvisionedConcurrencyConfiguration, AliasProvisionedConcurrencyConfigurationArgs

    ProvisionedConcurrentExecutions int
    The amount of provisioned concurrency to allocate for the alias.
    ProvisionedConcurrentExecutions int
    The amount of provisioned concurrency to allocate for the alias.
    provisionedConcurrentExecutions Integer
    The amount of provisioned concurrency to allocate for the alias.
    provisionedConcurrentExecutions number
    The amount of provisioned concurrency to allocate for the alias.
    provisioned_concurrent_executions int
    The amount of provisioned concurrency to allocate for the alias.
    provisionedConcurrentExecutions Number
    The amount of provisioned concurrency to allocate for the alias.

    AliasRoutingConfiguration, AliasRoutingConfigurationArgs

    AdditionalVersionWeights List<Pulumi.AwsNative.Lambda.Inputs.AliasVersionWeight>
    The second version, and the percentage of traffic that's routed to it.
    AdditionalVersionWeights []AliasVersionWeight
    The second version, and the percentage of traffic that's routed to it.
    additionalVersionWeights List<AliasVersionWeight>
    The second version, and the percentage of traffic that's routed to it.
    additionalVersionWeights AliasVersionWeight[]
    The second version, and the percentage of traffic that's routed to it.
    additional_version_weights Sequence[lambda_.AliasVersionWeight]
    The second version, and the percentage of traffic that's routed to it.
    additionalVersionWeights List<Property Map>
    The second version, and the percentage of traffic that's routed to it.

    AliasVersionWeight, AliasVersionWeightArgs

    FunctionVersion string
    The qualifier of the second version.
    FunctionWeight double
    The percentage of traffic that the alias routes to the second version.
    FunctionVersion string
    The qualifier of the second version.
    FunctionWeight float64
    The percentage of traffic that the alias routes to the second version.
    functionVersion String
    The qualifier of the second version.
    functionWeight Double
    The percentage of traffic that the alias routes to the second version.
    functionVersion string
    The qualifier of the second version.
    functionWeight 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.
    functionVersion String
    The qualifier of the second version.
    functionWeight 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
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi