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 ListVersionsByFunction operation. Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.

Inheritance Hierarchy

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

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

Syntax

C#
public class ListVersionsByFunctionRequest : AmazonLambdaRequest
         IAmazonWebServiceRequest

The ListVersionsByFunctionRequest type exposes the following members

Constructors

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 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.

The maximum number of versions to return. Note that ListVersionsByFunction returns a maximum of 50 items in each response, even if you set the number higher.

Examples

The following example returns a list of versions of a function named my-function

To list versions of a function


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

List<FunctionConfiguration> versions = response.Versions;

            

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