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 3.5
 
Container for the parameters to the UpdateFunctionCode operation. Updates the code for the specified Lambda function. This operation must only be used on an existing Lambda function and cannot be used to update the function configuration.

If you are using the versioning feature, note this API will always update the $LATEST version of your Lambda function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.

This operation requires permission for the lambda:UpdateFunctionCode action.

Inheritance Hierarchy

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

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

Syntax

C#
public class UpdateFunctionCodeRequest : AmazonLambdaRequest
         IRequestEvents

The UpdateFunctionCodeRequest type exposes the following members

Constructors

NameDescription
Public Method UpdateFunctionCodeRequest()

Properties

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

The existing Lambda function name whose code you want to replace.

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.

Public Property Publish System.Boolean Gets and sets the property Publish.

This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.

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

Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS region where you are creating the Lambda function.

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

The Amazon S3 object (the deployment package) key name you want to upload.

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

The Amazon S3 object (the deployment package) version you want to upload.

Public Property ZipFile System.IO.MemoryStream Gets and sets the property ZipFile.

Based64-encoded .zip file containing your packaged source code.

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