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 ListAliases operation. Returns a list of aliases for a Lambda function.

Inheritance Hierarchy

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

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

Syntax

C#
public class ListAliasesRequest : AmazonLambdaRequest
         IAmazonWebServiceRequest

The ListAliasesRequest type exposes the following members

Constructors

NameDescription
Public Method ListAliasesRequest()

Properties

NameTypeDescription
Public Property FunctionName System.String

Gets and sets the property FunctionName.

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.

Public Property FunctionVersion System.String

Gets and sets the property FunctionVersion.

Specify a function version to only list aliases that invoke that version.

Public Property Marker System.String

Gets and sets the property Marker.

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

Public Property MaxItems System.Int32

Gets and sets the property MaxItems.

Limit the number of aliases returned.

Examples

The following example returns a list of aliases for a function named my-function.

To list a function's aliases


var response = client.ListAliases(new ListAliasesRequest 
{
    FunctionName = "my-function"
});

List<AliasConfiguration> aliases = response.Aliases;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

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