# AliasAttributes

- Source: [`aws-lambda/lib/alias.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-lambda/lib/alias.ts#L91)

## Example

TypeScript:

```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';

declare const version: lambda.Version;
const aliasAttributes: lambda.AliasAttributes = {
  aliasName: 'aliasName',
  aliasVersion: version,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_

# version: lambda.Version

alias_attributes = lambda.AliasAttributes(
    alias_name="aliasName",
    alias_version=version
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;

Version version;

AliasAttributes aliasAttributes = AliasAttributes.builder()
        .aliasName("aliasName")
        .aliasVersion(version)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;

Version version;

var aliasAttributes = new AliasAttributes {
    AliasName = "aliasName",
    AliasVersion = version
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var version Version

aliasAttributes := &AliasAttributes{
	AliasName: jsii.String("aliasName"),
	AliasVersion: version,
}
```

## Properties

- `aliasName`: string (required)

- `aliasVersion`: [IVersion](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.IVersion.html) (required)
