Skip to content

CreateAliasRequest

Source code in docs_src/capo_lambda/types/create_alias_request.py
class CreateAliasRequest(TypedDict, closed=True):
    function_name: "capo_lambda.types.function_name.FunctionName"
    """<p>The name or ARN of the Lambda function.</p> <p class="title"> <b>Name formats</b> </p> <ul> <li> <p> <b>Function name</b> - <code>MyFunction</code>.</p> </li> <li> <p> <b>Function ARN</b> - <code>arn:aws:lambda:us-west-2:123456789012:function:MyFunction</code>.</p> </li> <li> <p> <b>Partial ARN</b> - <code>123456789012:function:MyFunction</code>.</p> </li> </ul> <p>The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>"""
    name: "capo_lambda.types.alias.Alias"
    """<p>The name of the alias.</p>"""
    function_version: (
        "capo_lambda.types.version_with_latest_published.VersionWithLatestPublished"
    )
    """<p>The function version that the alias invokes.</p>"""
    description: NotRequired["capo_lambda.types.description.Description"]
    """<p>A description of the alias.</p>"""
    routing_config: NotRequired[
        "capo_lambda.types.alias_routing_configuration.AliasRoutingConfiguration"
    ]
    """<p>The <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing">routing configuration</a> of the alias.</p>"""

description instance-attribute

description: NotRequired[Description]

A description of the alias.

function_name instance-attribute

function_name: FunctionName

The name or ARN of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

function_version instance-attribute

function_version: VersionWithLatestPublished

The function version that the alias invokes.

name instance-attribute

name: Alias

The name of the alias.

routing_config instance-attribute

routing_config: NotRequired[AliasRoutingConfiguration]

The routing configuration of the alias.