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 UploadFunction operation. Creates a new Lambda function or updates an existing function. The function metadata is created from the request parameters, and the code for the function is provided by a .zip file in the request body. If the function name already exists, the existing Lambda function is updated with the new code and metadata.

This operation requires permission for the

lambda:UploadFunction
action.

Inheritance Hierarchy

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

Namespace: Amazon.Lambda.Model
Assembly: AWSSDK.dll
Version: 0.0.3.0

Syntax

C#
public class UploadFunctionRequest : AmazonLambdaRequest
         IRequestEvents

The UploadFunctionRequest type exposes the following members

Constructors

  Name Description
Public Method UploadFunctionRequest()

Properties

  Name Description
Public Property Description Gets and sets the property Description.

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

Public Property FunctionName Gets and sets the property FunctionName.

The name you want to assign to the function you are uploading. The function names appear in the console and are returned in the ListFunctions API. Function names are used to specify functions to other AWS Lambda APIs, such as InvokeAsync.

Public Property FunctionZip Gets and sets the property FunctionZip.

A .zip file containing your packaged source code. For more information about creating a .zip file, go to AWS LambdaL How it Works in the AWS Lambda Developer Guide.

Public Property Handler Gets and sets the property Handler.

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

Public Property MemorySize Gets and sets the property MemorySize.

The amount of memory, in MB, your Lambda function is given. 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, database operation might need less memory compared to image processing function. The default value is 128 MB. The value must be a multiple of 64 MB.

Public Property Mode Gets and sets the property Mode.

How the Lambda function will be invoked. Lambda supports only the "event" mode.

Public Property Role 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 Gets and sets the property Runtime.

The runtime environment for the Lambda function you are uploading. Currently, Lambda supports only "nodejs" as the runtime.

Public Property Timeout 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.

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