AmazonLambda

FREE
By stefan.skliarov
Updated 5 months ago
Tools
-/10
Popularity Score
-
Latency
-
Success Rate

AmazonLambda API Documentation

AWS Lambda is a compute service that lets you run code without provisioning or managing servers.

View API Details
POSTaddPermission
POSTcreateAlias
POSTcreateEventSourceMapping
POSTcreateFunction
POSTcreateFunctionWithBucket
POSTdeleteAlias
POSTdeleteEventSourceMapping
POSTdeleteFunction
POSTgetAlias
POSTgetEventSourceMapping
POSTgetFunction
POSTgetFunctionConfiguration
POSTgetPolicy
POSTinvoke
POSTlistAliases
POSTlistEventSourceMappings
POSTlistFunctions
POSTlistVersionsByFunction
POSTpublishVersion
POSTremovePermission
POSTupdateAlias
POSTupdateEventSourceMapping
POSTupdateFunctionCode
POSTupdateFunctionCodeWithBucket
POSTupdateFunctionConfiguration
POSTaddPermission

Adds a permission to the resource policy associated with the specified AWS Lambda function.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
versionSTRING
REQUIREDYour Amazon Lambda service version
principalSTRING
REQUIREDThe principal who is getting this permission.
apiSecretCREDENTIALS
REQUIREDYour Amazon AWS_SECRET_ACCESS_KEY
statementIdSTRING
REQUIREDA unique statement identifier.
functionNameSTRING
REQUIREDName of the Lambda function
actionSTRING
REQUIREDThe AWS Lambda action you want to allow in this statement. Each Lambda action is a string starting with "lambda:" followed by the API name .
apiKeyCREDENTIALS
REQUIREDYour Amazon AWS_ACCESS_KEY_ID
regionSTRING
REQUIREDYour Amazon region
Optional Parameters
sourceAccountSTRING
OPTIONALThe AWS account ID (without a hyphen) of the source owner.
sourceArnSTRING
OPTIONALThis is optional; however, when granting Amazon S3 permission to invoke your function, you should specify this field with the bucket Amazon Resource Name (ARN) as its value.
qualifierSTRING
OPTIONALYou can specify this optional query parameter to specify function version or alias name
Code Snippet
unirest.post("https://AmazonLambdastefan-skliarovV1.p.rapidapi.com/addPermission")
.header("X-RapidAPI-Host", "AmazonLambdastefan-skliarovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://AmazonLambdastefan-skliarovV1.p.rapidapi.com/addPermission
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://AmazonLambdastefan-skliarovV1.p.rapidapi.com/addPermission")
.header("X-RapidAPI-Host", "AmazonLambdastefan-skliarovV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication