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 UpdateFunctionConfiguration operation. Updates the configuration parameters for the specified Lambda function by using the values provided in the request. You provide only the parameters you want to change. This operation must only be used on an existing Lambda function and cannot be used to update the function's code.

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:UpdateFunctionConfiguration action.

Inheritance Hierarchy


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


public class UpdateFunctionConfigurationRequest : AmazonLambdaRequest

The UpdateFunctionConfigurationRequest type exposes the following members



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. For more information, see dlq.

Public Property Description System.String

Gets and sets the property Description.

A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.

Public Property Environment Amazon.Lambda.Model.Environment

Gets and sets the property Environment.

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

Public Property FunctionName System.String

Gets and sets the property FunctionName.

The name of the Lambda function.

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 Handler System.String

Gets and sets the property Handler.

The function that Lambda calls to begin executing your function. For Node.js, it is the module-name.export value in your function.

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 you elect to use the AWS Lambda default service key, pass in an empty string ("") for this parameter.

Public Property MemorySize System.Int32

Gets and sets the property MemorySize.

The amount of memory, in MB, your Lambda function is given. AWS Lambda uses this memory size to infer the amount of CPU allocated to your function. Your function use-case determines your CPU and memory requirements. For example, a database operation might need less memory compared to an image processing function. The default value is 128 MB. The value must be a multiple of 64 MB.

Public Property RevisionId System.String

Gets and sets the property RevisionId.

An optional value you can use to ensure you are updating the latest update of the function version or alias. If the RevisionID you pass doesn't match the latest RevisionId of the function or alias, it will fail with an error message, advising you to retrieve the latest function version or alias RevisionID using either or .

Public Property Role System.String

Gets and sets the property Role.

The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.

Public Property Runtime Amazon.Lambda.Runtime

Gets and sets the property Runtime.

The runtime environment for the Lambda function.

To use the Python runtime v3.6, set the value to "python3.6". To use the Python runtime v2.7, set the value to "python2.7". To use the Node.js runtime v6.10, set the value to "nodejs6.10". To use the Node.js runtime v4.3, set the value to "nodejs4.3". To use the .NET Core runtime v1.0, set the value to "dotnetcore1.0". To use the .NET Core runtime v2.0, set the value to "dotnetcore2.0".

Node v0.10.42 is currently marked as deprecated. You must migrate existing functions to the newer Node.js runtime versions available on AWS Lambda (nodejs4.3 or nodejs6.10) as soon as possible. Failure to do so will result in an invalid parameter error being returned. Note that you will have to follow this procedure for each region that contains functions written in the Node v0.10.42 runtime.

Public Property Timeout System.Int32

Gets and sets the property Timeout.

The function execution time at which AWS 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.TracingConfig

Gets and sets the property TracingConfig.

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

Public Property VpcConfig Amazon.Lambda.Model.VpcConfig

Gets and sets the property VpcConfig.


This operation updates a Lambda function's configuration

To update a Lambda function's configuration

var response = client.UpdateFunctionConfiguration(new UpdateFunctionConfigurationRequest 
    Description = "",
    FunctionName = "myFunction",
    Handler = "index.handler",
    MemorySize = 128,
    Role = "arn:aws:iam::123456789012:role/lambda_basic_execution",
    Runtime = "python2.7",
    Timeout = 123,
    VpcConfig = new VpcConfig {  }

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

Supported Versions: 4.6 and above
Supported Platforms: Android, iOS, Standalone