LambdaClient.create_alias
rboto-lambda==0.4.0 · Service index · Types
Model summary (excerpt): Creates an alias for a Lambda Event Function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version. You can also map an alias to split invocation requests between two versions. Use the RoutingConfig parameter to specify a second version and the percentage of invocation requests that it receives.
Install and imports
from rboto import LambdaClient
from rboto_lambda.types import (
AliasRoutingConfiguration,
CreateAliasOutput,
)
Signature
async def create_alias(
*,
function_name: str,
name: str,
function_version: str,
description: str | None = None,
routing_config: AliasRoutingConfiguration | None = None,
) -> CreateAliasOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
function_name |
Yes | 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. |
name |
Yes | The name of the alias. |
function_version |
Yes | The function version that the alias invokes. |
description |
No | A description of the alias. |
routing_config |
No | The routing configuration of the alias. |
Output
CreateAliasOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
alias_arn |
str | None |
Always present | — |
name |
str | None |
Always present | — |
function_version |
str | None |
Always present | — |
description |
str | None |
Always present | — |
routing_config |
AliasRoutingConfigurationOutput | None |
Always present | AliasRoutingConfigurationOutput |
revision_id |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
AliasRoutingConfiguration, CreateAliasOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_lambda.exceptions:
AliasLimitExceededError, InvalidParameterValueError, ResourceConflictError, ResourceNotFoundError, ServiceError, TooManyRequestsError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.