# CfnAliasProps

Properties for defining a `CfnAlias`.

Extends: CfnAliasProps
Used as props by: CfnAlias

- Source: Generated code
- Type last changed: v2.239.0 · 19 Feb 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const cfnAliasProps: lambda.CfnAliasProps = {
  functionName: 'functionName',
  functionVersion: 'functionVersion',
  name: 'name',

  // the properties below are optional
  description: 'description',
  provisionedConcurrencyConfig: {
    provisionedConcurrentExecutions: 123,
  },
  routingConfig: {
    additionalVersionWeights: [{
      functionVersion: 'functionVersion',
      functionWeight: 123,
    }],
  },
};
```

## Properties

- `description`: string — A description of the alias.

- `functionName`: string | [IFunctionRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_lambda.IFunctionRef.html) (required) — 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.

- `functionVersion`: string (required) — The function version that the alias invokes.

- `name`: string (required) — The name of the alias.

- `provisionedConcurrencyConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAlias.ProvisionedConcurrencyConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnAlias.ProvisionedConcurrencyConfigurationProperty.html) — Specifies a [provisioned concurrency](https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html) configuration for a function's alias.

- `routingConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAlias.AliasRoutingConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnAlias.AliasRoutingConfigurationProperty.html) — The [routing configuration](https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html) of the alias.
