Skip to content
v2.277.0

AliasAttributes Struct ​

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

declare const version: lambda.Version;
const aliasAttributes: lambda.AliasAttributes = {
  aliasName: 'aliasName',
  aliasVersion: version,
};
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
// 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();
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
};
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 ​

aliasNamestringalias_namestraliasNameStringAliasNamestringAliasName*string required #
aliasVersionIVersionalias_versionIVersionaliasVersionIVersionAliasVersionIVersionAliasVersionIVersion required #