AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the UpdateAlias operation. Using this API you can update the function version to which the alias points and the alias description. For more information, see Introduction to AWS Lambda Aliases.

This requires permission for the lambda:UpdateAlias action.

Inheritance Hierarchy


Namespace: Amazon.Lambda.Model
Assembly: AWSSDK.Lambda.dll
Version: 3.x.y.z


public class UpdateAliasRequest : AmazonLambdaRequest

The UpdateAliasRequest type exposes the following members


Public Method UpdateAliasRequest()


Public Property Description System.String

Gets and sets the property Description.

You can change the description of the alias using this parameter.

Public Property FunctionName System.String

Gets and sets the property FunctionName.

The function name for which the alias is created. Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.

Public Property FunctionVersion System.String

Gets and sets the property FunctionVersion.

Using this parameter you can change the Lambda function version to which the alias points.

Public Property Name System.String

Gets and sets the property Name.

The alias name.

Public Property RevisionId System.String

Gets and sets the property RevisionId.

An optional value you can use to ensure you are updating the latest update of the function version or alias. If the RevisionID you pass doesn't match the latest RevisionId of the function or alias, it will fail with an error message, advising you to retrieve the latest function version or alias RevisionID using either or .

Public Property RoutingConfig Amazon.Lambda.Model.AliasRoutingConfiguration

Gets and sets the property RoutingConfig.

Specifies an additional version your alias can point to, allowing you to dictate what percentage of traffic will invoke each version. For more information, see lambda-traffic-shifting-using-aliases.


This operation updates a Lambda function alias

To update a Lambda function alias

var response = client.UpdateAlias(new UpdateAliasRequest 
    Description = "",
    FunctionName = "myFunction",
    FunctionVersion = "1",
    Name = "functionAlias"

string aliasArn = response.AliasArn;
string description = response.Description;
string functionVersion = response.FunctionVersion;
string name = response.Name;


Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

Supported Versions: 4.6 and above
Supported Platforms: Android, iOS, Standalone