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 GetAlias operation. Returns the specified alias information such as the alias ARN, description, and function version it is pointing to. For more information, see Introduction to AWS Lambda Aliases.

This requires permission for the lambda:GetAlias action.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Lambda.AmazonLambdaRequest
      Amazon.Lambda.Model.GetAliasRequest

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

Syntax

C#
public class GetAliasRequest : AmazonLambdaRequest
         IAmazonWebServiceRequest

The GetAliasRequest type exposes the following members

Constructors

NameDescription
Public Method GetAliasRequest()

Properties

NameTypeDescription
Public Property FunctionName System.String

Gets and sets the property FunctionName.

Function name for which the alias is created. An alias is a subresource that exists only in the context of an existing Lambda function so you must specify the function name. 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 Name System.String

Gets and sets the property Name.

Name of the alias for which you want to retrieve information.

Examples

This operation retrieves a Lambda function alias

To retrieve a Lambda function alias


var response = client.GetAlias(new GetAliasRequest 
{
    FunctionName = "myFunction",
    Name = "myFunctionAlias"
});

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

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