AWSLambdaCreateFunctionRequest Class Reference

Inherits from AWSRequest : AWSModel : AWSMTLModel
Declared in AWSLambdaModel.h
AWSLambdaModel.m

Overview

Required parameters: [FunctionName, Runtime, Role, Handler, Code]

  code

The code for the Lambda function.

@property (nonatomic, strong) AWSLambdaFunctionCode *code

Declared In

AWSLambdaModel.h

  detail

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

@property (nonatomic, strong) NSString *detail

Declared In

AWSLambdaModel.h

  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 Invoke.

@property (nonatomic, strong) NSString *functionName

Declared In

AWSLambdaModel.h

  handler

The function within your code that Lambda calls to begin execution. For Node.js, it is the module-name.export value in your function. For Java, it can be [code](#//api/name/code)package.class-name::handler or [code](#//api/name/code)package.class-name. For more information, see Lambda Function Handler (Java).

@property (nonatomic, strong) NSString *handler

Declared In

AWSLambdaModel.h

  memorySize

The amount of memory, in MB, your Lambda function is given. Lambda uses this memory size to infer the amount of CPU and memory 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.

@property (nonatomic, strong) NSNumber *memorySize

Declared In

AWSLambdaModel.h

  publish

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

@property (nonatomic, strong) NSNumber *publish

Declared In

AWSLambdaModel.h

  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. For more information, see AWS Lambda: How it Works.

@property (nonatomic, strong) NSString *role

Declared In

AWSLambdaModel.h

  runtime

The runtime environment for the Lambda function you are uploading.

To use the Node.js runtime v4.3, set the value to "nodejs4.3". To use earlier runtime (v0.10.42), set the value to "nodejs".

@property (nonatomic, assign) AWSLambdaRuntime runtime

Declared In

AWSLambdaModel.h

  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.

@property (nonatomic, strong) NSNumber *timeout

Declared In

AWSLambdaModel.h

  vpcConfig

If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID.

@property (nonatomic, strong) AWSLambdaVpcConfig *vpcConfig

Declared In

AWSLambdaModel.h