AWS SDK Version 2 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.

.NET Framework 4.5
 
Container for the parameters to the PublishVersion operation. Publishes a version of your function from the current snapshot of $LATEST. That is, AWS Lambda takes a snapshot of the function code and configuration information from $LATEST and publishes a new version. The code and configuration cannot be modified after publication. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.

Inheritance Hierarchy

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

Namespace: Amazon.Lambda.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class PublishVersionRequest : AmazonLambdaRequest
         IRequestEvents

The PublishVersionRequest type exposes the following members

Constructors

NameDescription
Public Method PublishVersionRequest()

Properties

NameTypeDescription
Public Property CodeSha256 System.String Gets and sets the property CodeSha256.

The SHA256 hash of the deployment package you want to publish. This provides validation on the code you are publishing. If you provide this parameter value must match the SHA256 of the $LATEST version for the publication to succeed.

Public Property Description System.String Gets and sets the property Description.

The description for the version you are publishing. If not provided, AWS Lambda copies the description from the $LATEST version.

Public Property FunctionName System.String Gets and sets the property FunctionName.

The Lambda function name. You can specify a function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

Version Information

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

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8