public abstract class AbstractLambdaMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
String |
accessKey
The AWS access key.
|
String |
alias |
Map<String,String> |
clientConfiguration
Allows for proxy settings to passed to the lambda client.
|
com.amazonaws.services.cloudwatchevents.AmazonCloudWatchEvents |
cloudWatchEventsClient |
com.amazonaws.auth.AWSCredentials |
credentials |
com.amazonaws.services.dynamodbv2.AmazonDynamoDBStreams |
dynamoDBStreamsClient |
Map<String,String> |
environmentVariables
This map parameter can be used to define environment variables for Lambda functions enable you to dynamically pass settings to your function code and libraries, without making changes to your code.
|
com.amazonaws.services.cloudwatchevents.AmazonCloudWatchEvents |
eventsClient |
String |
fileName |
boolean |
forceUpdate
This boolean parameter can be used to force update of existing configuration.
|
String |
functionCode
The path to deliverable.
|
String |
functionNameSuffix
The suffix for the lambda function.
|
com.amazonaws.services.kinesis.AmazonKinesis |
kinesisClient |
com.amazonaws.services.lambda.AWSLambda |
lambdaClient |
List<LambdaFunction> |
lambdaFunctions
The confuguration for Lambda functions.
|
String |
lambdaFunctionsJSON
The JSON confuguration for Lambda functions.
|
String |
lambdaRoleArn
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
|
int |
memorySize
The amount of memory, in MB, your Lambda function is given.
|
String |
passThrough |
static String |
PERM_LAMBDA_INVOKE |
static String |
PRINCIPAL_ALEXA |
static String |
PRINCIPAL_EVENTS |
static String |
PRINCIPAL_LEX |
static String |
PRINCIPAL_SNS |
boolean |
publish
This boolean parameter can be used to request AWS Lambda to update the
Lambda function and publish a version as an atomic operation.
|
String |
regionName
Amazon region.
|
String |
runtime
The runtime environment for the Lambda function.
|
String |
s3Bucket
Amazon S3 bucket name where the .zip file containing your deployment
package is stored.
|
com.amazonaws.services.s3.AmazonS3 |
s3Client |
String |
secretKey
The AWS secret access key.
|
com.amazonaws.services.sns.AmazonSNS |
snsClient |
int |
timeout
The function execution time at which AWS Lambda should terminate the
function.
|
static String |
TRIG_INT_LABEL_ALEXA_SK |
static String |
TRIG_INT_LABEL_CLOUDWATCH_EVENTS |
static String |
TRIG_INT_LABEL_DYNAMO_DB |
static String |
TRIG_INT_LABEL_KINESIS |
static String |
TRIG_INT_LABEL_LEX |
static String |
TRIG_INT_LABEL_SNS |
String |
version
The version of deliverable.
|
List<String> |
vpcSecurityGroupIds
A list of one or more security groups IDs in your VPC.
|
List<String> |
vpcSubnetIds
A list of one or more subnet IDs in your VPC.
|
| Constructor and Description |
|---|
AbstractLambdaMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
public static final String TRIG_INT_LABEL_CLOUDWATCH_EVENTS
public static final String TRIG_INT_LABEL_DYNAMO_DB
public static final String TRIG_INT_LABEL_KINESIS
public static final String TRIG_INT_LABEL_SNS
public static final String TRIG_INT_LABEL_ALEXA_SK
public static final String TRIG_INT_LABEL_LEX
public static final String PERM_LAMBDA_INVOKE
public static final String PRINCIPAL_ALEXA
public static final String PRINCIPAL_LEX
public static final String PRINCIPAL_SNS
public static final String PRINCIPAL_EVENTS
@Parameter(property="accessKey",
defaultValue="${accessKey}")
public String accessKey
The AWS access key.
@Parameter(property="secretKey",
defaultValue="${secretKey}")
public String secretKey
The AWS secret access key.
@Parameter(property="functionCode",
defaultValue="${functionCode}",
required=true)
public String functionCode
The path to deliverable.
@Parameter(property="version",
defaultValue="${version}",
required=true)
public String version
The version of deliverable. Example value can be 1.0-SNAPSHOT.
@Parameter(property="alias") public String alias
@Parameter(property="region",
alias="region",
defaultValue="us-east-1")
public String regionName
Amazon region. Default value is us-east-1.
@Parameter(property="s3Bucket",
defaultValue="lambda-function-code")
public String s3Bucket
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.
@Parameter(property="runtime",
defaultValue="java8")
public String runtime
The runtime environment for the Lambda function.
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".
@Parameter(property="lambdaRoleArn",
defaultValue="${lambdaRoleArn}",
required=true)
public String lambdaRoleArn
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
@Parameter(property="lambdaFunctionsJSON") public String lambdaFunctionsJSON
The JSON confuguration for Lambda functions. @see LambdaFunction.
@Parameter(property="lambdaFunctions",
defaultValue="${lambdaFunctions}")
public List<LambdaFunction> lambdaFunctions
The confuguration for Lambda functions. @see LambdaFunction. Can be configured in pom.xml. Automaticall parsed from JSON configuration.
@Parameter(property="timeout",
defaultValue="30")
public int timeout
The function execution time at which AWS 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 30 seconds.
@Parameter(property="memorySize",
defaultValue="1024")
public int memorySize
The amount of memory, in MB, your Lambda function is given. AWS 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, a database operation might need less memory compared to an image processing function. The default value is 1024 MB. The value must be a multiple of 64 MB.
@Parameter(property="vpcSecurityGroupIds",
defaultValue="${vpcSecurityGroupIds}")
public List<String> vpcSecurityGroupIds
A list of one or more security groups IDs in your VPC.
@Parameter(property="vpcSubnetIds",
defaultValue="${vpcSubnetIds}")
public List<String> vpcSubnetIds
A list of one or more subnet IDs in your VPC.
@Parameter(property="publish",
defaultValue="true")
public boolean publish
This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.
@Parameter(property="functionNameSuffix") public String functionNameSuffix
The suffix for the lambda function.
@Parameter(property="forceUpdate",
defaultValue="false")
public boolean forceUpdate
This boolean parameter can be used to force update of existing configuration. Use it when you don't publish a function and want to replece code in your Lambda function.
@Parameter(property="environmentVariables",
defaultValue="${environmentVariables}")
public Map<String,String> environmentVariables
This map parameter can be used to define environment variables for Lambda functions enable you to dynamically pass settings to your function code and libraries, without making changes to your code. Deployment functionality merges those variables with the one provided in json configuration.
@Parameter(property="passThrough") public String passThrough
@Parameter(property="clientConfiguration") public Map<String,String> clientConfiguration
public String fileName
public com.amazonaws.auth.AWSCredentials credentials
public com.amazonaws.services.s3.AmazonS3 s3Client
public com.amazonaws.services.lambda.AWSLambda lambdaClient
public com.amazonaws.services.sns.AmazonSNS snsClient
public com.amazonaws.services.cloudwatchevents.AmazonCloudWatchEvents eventsClient
public com.amazonaws.services.dynamodbv2.AmazonDynamoDBStreams dynamoDBStreamsClient
public com.amazonaws.services.kinesis.AmazonKinesis kinesisClient
public com.amazonaws.services.cloudwatchevents.AmazonCloudWatchEvents cloudWatchEventsClient
Copyright © 2018. All rights reserved.