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.

A complex type that describes function metadata.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.Lambda.Model.PublishVersionResponse

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

Syntax

C#
public class PublishVersionResponse : AmazonWebServiceResponse

The PublishVersionResponse type exposes the following members

Constructors

NameDescription
Public Method PublishVersionResponse()

Properties

NameTypeDescription
Public Property CodeSha256 System.String

Gets and sets the property CodeSha256.

It is the SHA256 hash of your function deployment package.

Public Property CodeSize System.Int64

Gets and sets the property CodeSize.

The size, in bytes, of the function .zip file you uploaded.

Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property DeadLetterConfig Amazon.Lambda.Model.DeadLetterConfig

Gets and sets the property DeadLetterConfig.

The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic.

Public Property Description System.String

Gets and sets the property Description.

The user-provided description.

Public Property Environment Amazon.Lambda.Model.EnvironmentResponse

Gets and sets the property Environment.

The parent object that contains your environment's configuration settings.

Public Property FunctionArn System.String

Gets and sets the property FunctionArn.

The Amazon Resource Name (ARN) assigned to the function.

Public Property FunctionName System.String

Gets and sets the property FunctionName.

The name of the function. 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 Handler System.String

Gets and sets the property Handler.

The function Lambda calls to begin executing your function.

Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property KMSKeyArn System.String

Gets and sets the property KMSKeyArn.

The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If empty, it means you are using the AWS Lambda default service key.

Public Property LastModified System.String

Gets and sets the property LastModified.

The time stamp of the last time you updated the function. The time stamp is conveyed as a string complying with ISO-8601 in this way YYYY-MM-DDThh:mm:ssTZD (e.g., 1997-07-16T19:20:30+01:00). For more information, see Date and Time Formats.

Public Property MasterArn System.String

Gets and sets the property MasterArn.

Returns the ARN (Amazon Resource Name) of the master function.

Public Property MemorySize System.Int32

Gets and sets the property MemorySize.

The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property Role System.String

Gets and sets the property Role.

The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.

Public Property Runtime Amazon.Lambda.Runtime

Gets and sets the property Runtime.

The runtime environment for the Lambda function.

Public Property Timeout System.Int32

Gets and sets the property Timeout.

The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

Public Property TracingConfig Amazon.Lambda.Model.TracingConfigResponse

Gets and sets the property TracingConfig.

The parent object that contains your function's tracing settings.

Public Property Version System.String

Gets and sets the property Version.

The version of the Lambda function.

Public Property VpcConfig Amazon.Lambda.Model.VpcConfigDetail

Gets and sets the property VpcConfig.

VPC configuration associated with your Lambda function.

Examples

This operation publishes a version of a Lambda function

To publish a version of a Lambda function


var response = client.PublishVersion(new PublishVersionRequest 
{
    CodeSha256 = "",
    Description = "",
    FunctionName = "myFunction"
});

string codeSha256 = response.CodeSha256;
long codeSize = response.CodeSize;
string description = response.Description;
string functionArn = response.FunctionArn;
string functionName = response.FunctionName;
string handler = response.Handler;
string lastModified = response.LastModified;
integer memorySize = response.MemorySize;
string role = response.Role;
string runtime = response.Runtime;
integer timeout = response.Timeout;
string version = response.Version;
VpcConfigDetail vpcConfig = response.VpcConfig;

            

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