NAME
Paws::Lambda::CreateFunction - Arguments for method CreateFunction on Paws::Lambda
DESCRIPTION
This class represents the parameters used for calling the method CreateFunction on the AWS Lambda service. Use the attributes of this class as arguments to method CreateFunction.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateFunction.
As an example:
$service_obj->CreateFunction(Att1 => $value1, Att2 => $value2, ...);
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
ATTRIBUTES
REQUIRED Code => Paws::Lambda::FunctionCode
The code for the Lambda function.
DeadLetterConfig => Paws::Lambda::DeadLetterConfig
The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic.
Description => Str
A short, user-defined function description. Lambda does not use this value. Assign a meaningful description as you see fit.
Environment => Paws::Lambda::Environment
REQUIRED FunctionName => Str
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.
REQUIRED Handler => Str
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 package.class-name::handler or package.class-name. For more information, see Lambda Function Handler (Java).
KMSKeyArn => Str
The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If not provided, AWS Lambda will use a default service key.
MemorySize => Int
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.
Publish => Bool
This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation.
REQUIRED Role => Str
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.
REQUIRED Runtime => Str
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".
You can no longer create functions using the v0.10.42 runtime version as of November, 2016. Existing functions will be supported until early 2017 but we recommend you migrate them to nodejs4.3 runtime version as soon as possible.
Valid values are: "nodejs", "nodejs4.3", "java8", "python2.7", "dotnetcore1.0", "nodejs4.3-edge"
Timeout => Int
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.
VpcConfig => Paws::Lambda::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.
SEE ALSO
This class forms part of Paws, documenting arguments for method CreateFunction in Paws::Lambda
BUGS and CONTRIBUTIONS
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues