# AWS Lambda

{% hint style="info" %}
The content of this documentation is under revision and may change. We appreciate your understanding as we work to improve it.
{% endhint %}

**AWS Lambda** manages and invokes AWS Lambda functions using AWS SDK version 2.x.

## **Parameters**

Take a look at the configuration parameters for the connector. Parameters supported by [Double Braces expressions](https://docs.digibee.com/documentation/connectors-and-triggers/double-braces/overview) are marked with `(DB)`.

### **General tab**

<table data-full-width="true"><thead><tr><th>Parameter</th><th>Description</th><th>Default value</th><th>Data type</th></tr></thead><tbody><tr><td><strong>Dynamic Account</strong></td><td>When active, the connector will use the account dynamically. Otherwise, it will use the account statically.</td><td>False</td><td>Boolean</td></tr><tr><td><strong>Account Name</strong> <code>(DB)</code></td><td>The name of the dynamic account used by the connector. This account must have been previously configured in a <a href="../tools/store-account"><strong>Store Account</strong></a> connector in the pipeline for this process to take effect. It is only available if the <strong>Dynamic Account</strong> parameter is active.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Account</strong></td><td>The account used by the connector. It is only available if the <strong>Dynamic Account</strong> parameter is inactive.</td><td>N/A</td><td>Account</td></tr><tr><td><strong>Function</strong> <code>(DB)</code></td><td>Name of the Lambda function.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Fail On Error</strong></td><td>If the option is activated, the pipeline's execution with an error will be interrupted. Otherwise, the pipeline execution proceeds, but the result will show a false value for the <code>"success"</code> property.</td><td>False</td><td>Boolean</td></tr></tbody></table>

### **Optional tab**

<table data-full-width="true"><thead><tr><th>Parameter</th><th>Description</th><th>Default value</th><th>Data type</th></tr></thead><tbody><tr><td><strong>Override Endpoint</strong></td><td>Set the need for overidding the endpoint. This option needs to be used in combination with the <strong>Uri Endpoint Override</strong> option.</td><td>False</td><td>Boolean</td></tr><tr><td><strong>Pojo Request</strong></td><td>Whether to use a POJO request as body or not.</td><td>False</td><td>Boolean</td></tr><tr><td><strong>Region</strong> <code>(DB)</code></td><td>The region in which the Lambda client needs to work. When using this parameter, the configuration will expect the lowercase name of the region (for example ap-east-1) You’ll need to use the name Region.EU_WEST_1.id()</td><td>N/A</td><td>String</td></tr><tr><td><strong>Trust All Certificates</strong></td><td>Whether to trust all certificates in case of overriding the endpoint.</td><td>False</td><td>Boolean</td></tr><tr><td><strong>Uri Endpoint Override</strong> <code>(DB)</code></td><td>Set the overriding URI endpoint. This option needs to be used in combination with the Override <strong>Endpoint</strong> option.</td><td>N/A</td><td>String</td></tr></tbody></table>

### **Headers tab**

<table data-full-width="true"><thead><tr><th>Parameter</th><th>Description</th><th>Default value</th><th>Data type</th></tr></thead><tbody><tr><td><strong>Operation</strong> <code>(DB)</code></td><td>The operation we want to perform. Override operation passed as query parameter.</td><td>N/A</td><td>String</td></tr><tr><td><strong>S3 Bucket</strong> <code>(DB)</code></td><td>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.</td><td>N/A</td><td>String</td></tr><tr><td><strong>S3 Key</strong> <code>(DB)</code></td><td>The Amazon S3 object (the deployment package) key name you want to upload.</td><td>N/A</td><td>String</td></tr><tr><td><strong>S3 Object Version</strong> <code>(DB)</code></td><td>The Amazon S3 object (the deployment package) version you want to upload.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Zip File</strong> <code>(DB)</code></td><td>The local path of the zip file (the deployment package). Content of zip file can also be put in Message body.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Description</strong> <code>(DB)</code></td><td>The user-provided description.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Role</strong> <code>(DB)</code></td><td>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.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Runtime</strong> <code>(DB)</code></td><td>The runtime environment for the Lambda function you are uploading. (nodejs, nodejs4.3, nodejs6.10, java8, python2.7, python3.6, dotnetcore1.0, nodejs4.3-edge).</td><td>N/A</td><td>String</td></tr><tr><td><strong>Handler</strong> <code>(DB)</code></td><td>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.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Target Arn</strong> <code>(DB)</code></td><td>The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Memory Size</strong></td><td>The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.</td><td>N/A</td><td>Integer</td></tr><tr><td><strong>KMS Key Arn</strong> <code>(DB)</code></td><td>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.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Environment Variables</strong></td><td>The key-value pairs that represent your environment’s configuration settings.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Publish</strong></td><td>This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation.</td><td>false</td><td>Boolean</td></tr><tr><td><strong>Timeout</strong></td><td>The function execution time at which Lambda should terminate the function. The default is 3 seconds.</td><td>N/A</td><td>Integer</td></tr><tr><td><strong>Tags</strong></td><td>The list of tags (key-value pairs) assigned to the new function.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Tracing Config</strong> <code>(DB)</code></td><td>Your function’s tracing settings (Active or PassThrough).</td><td>N/A</td><td>String</td></tr><tr><td><strong>Security Group Ids</strong> <code>(DB)</code></td><td>If your Lambda function accesses resources in a VPC, a list of one or more security group IDs in your VPC.</td><td>N/A</td><td>JSON</td></tr><tr><td><strong>Subnet Ids</strong> <code>(DB)</code></td><td>If your Lambda function accesses resources in a VPC, a list of one or more subnet IDs in your VPC.</td><td>N/A</td><td>JSON</td></tr><tr><td><strong>Event Source Arn</strong> <code>(DB)</code></td><td>The Amazon Resource Name (ARN) of the event source.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Event Source Batch Size</strong></td><td>The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function.</td><td>N/A</td><td>Integer</td></tr><tr><td><strong>Event Source Uuid</strong> <code>(DB)</code></td><td>The identifier of the event source mapping.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Resource Arn</strong> <code>(DB)</code></td><td>The function’s Amazon Resource Name (ARN).</td><td>N/A</td><td>String</td></tr><tr><td><strong>Resource Tags</strong></td><td>A list of tags to apply to the function.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Resource Tag Keys</strong> <code>(DB)</code></td><td>A list of tag keys to remove from the function.</td><td>N/A</td><td>Json</td></tr><tr><td><strong>Version Description</strong> <code>(DB)</code></td><td>A description for the version to override the description in the function configuration.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Version Revision Id</strong> <code>(DB)</code></td><td>Only update the function if the revision ID matches the ID that’s specified.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Function Version</strong> <code>(DB)</code></td><td>The function version to set in the alias.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Alias Function Name</strong> <code>(DB)</code></td><td>The function name of the alias.</td><td>N/A</td><td>String</td></tr><tr><td><strong>Alias Function Description</strong> <code>(DB)</code></td><td>The function description to set in the alias.</td><td>N/A</td><td>String</td></tr></tbody></table>

### **Documentation tab**

<table data-full-width="true"><thead><tr><th>Parameter</th><th>Description</th><th>Default value</th><th>Data type</th></tr></thead><tbody><tr><td><strong>Documentation</strong></td><td>Section for documenting any necessary information about the connector configuration and business rules.</td><td>N/A</td><td>String</td></tr></tbody></table>
