@Generated(value="jsii-pacmak/0.7.8 (build 100f5ad)", date="2018-10-26T17:58:07.464Z") public interface FunctionProps extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
FunctionProps.Builder
A builder for
FunctionProps |
static class |
FunctionProps.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
| Modifier and Type | Method and Description |
|---|---|
static FunctionProps.Builder |
builder() |
Boolean |
getAllowAllOutbound()
Whether to allow the Lambda to send all network traffic
If set to false, you must individually add traffic rules to allow the
Lambda to connect to network targets.
|
Code |
getCode()
The source code of your Lambda function.
|
software.amazon.awscdk.services.sqs.QueueRef |
getDeadLetterQueue()
The SQS queue to use if DLQ is enabled.
|
Boolean |
getDeadLetterQueueEnabled()
Enabled DLQ.
|
String |
getDescription()
A description of the function.
|
Map<String,Object> |
getEnvironment()
Key-value pairs that Lambda caches and makes available for your Lambda
functions.
|
String |
getFunctionName()
A name for the function.
|
String |
getHandler()
The name of the function (within your source code) that Lambda calls to
start running your code.
|
List<software.amazon.awscdk.services.iam.PolicyStatement> |
getInitialPolicy()
Initial policy statements to add to the created Lambda Role.
|
Number |
getMemorySize()
The amount of memory, in MB, that is allocated to your Lambda function.
|
software.amazon.awscdk.services.iam.Role |
getRole()
Lambda execution role.
|
Runtime |
getRuntime()
The runtime environment for the Lambda function that you are uploading.
|
software.amazon.awscdk.services.ec2.SecurityGroupRef |
getSecurityGroup()
What security group to associate with the Lambda's network interfaces.
|
Number |
getTimeout()
The function execution time (in seconds) after which Lambda terminates
the function.
|
Tracing |
getTracing()
Enable AWS X-Ray Tracing for Lambda Function.
|
software.amazon.awscdk.services.ec2.VpcNetworkRef |
getVpc()
VPC network to place Lambda network interfaces
Specify this if the Lambda function needs to access resources in a VPC.
|
software.amazon.awscdk.services.ec2.VpcPlacementStrategy |
getVpcPlacement()
Where to place the network interfaces within the VPC.
|
void |
setAllowAllOutbound(Boolean value)
Whether to allow the Lambda to send all network traffic
If set to false, you must individually add traffic rules to allow the
Lambda to connect to network targets.
|
void |
setCode(Code value)
The source code of your Lambda function.
|
void |
setDeadLetterQueue(software.amazon.awscdk.services.sqs.QueueRef value)
The SQS queue to use if DLQ is enabled.
|
void |
setDeadLetterQueueEnabled(Boolean value)
Enabled DLQ.
|
void |
setDescription(String value)
A description of the function.
|
void |
setEnvironment(Map<String,Object> value)
Key-value pairs that Lambda caches and makes available for your Lambda
functions.
|
void |
setFunctionName(String value)
A name for the function.
|
void |
setHandler(String value)
The name of the function (within your source code) that Lambda calls to
start running your code.
|
void |
setInitialPolicy(List<software.amazon.awscdk.services.iam.PolicyStatement> value)
Initial policy statements to add to the created Lambda Role.
|
void |
setMemorySize(Number value)
The amount of memory, in MB, that is allocated to your Lambda function.
|
void |
setRole(software.amazon.awscdk.services.iam.Role value)
Lambda execution role.
|
void |
setRuntime(Runtime value)
The runtime environment for the Lambda function that you are uploading.
|
void |
setSecurityGroup(software.amazon.awscdk.services.ec2.SecurityGroupRef value)
What security group to associate with the Lambda's network interfaces.
|
void |
setTimeout(Number value)
The function execution time (in seconds) after which Lambda terminates
the function.
|
void |
setTracing(Tracing value)
Enable AWS X-Ray Tracing for Lambda Function.
|
void |
setVpc(software.amazon.awscdk.services.ec2.VpcNetworkRef value)
VPC network to place Lambda network interfaces
Specify this if the Lambda function needs to access resources in a VPC.
|
void |
setVpcPlacement(software.amazon.awscdk.services.ec2.VpcPlacementStrategy value)
Where to place the network interfaces within the VPC.
|
Code getCode()
void setCode(Code value)
String getHandler()
void setHandler(String value)
Runtime getRuntime()
void setRuntime(Runtime value)
Boolean getAllowAllOutbound()
void setAllowAllOutbound(Boolean value)
software.amazon.awscdk.services.sqs.QueueRef getDeadLetterQueue()
void setDeadLetterQueue(software.amazon.awscdk.services.sqs.QueueRef value)
Boolean getDeadLetterQueueEnabled()
void setDeadLetterQueueEnabled(Boolean value)
String getDescription()
void setDescription(String value)
Map<String,Object> getEnvironment()
void setEnvironment(Map<String,Object> value)
String getFunctionName()
void setFunctionName(String value)
List<software.amazon.awscdk.services.iam.PolicyStatement> getInitialPolicy()
void setInitialPolicy(List<software.amazon.awscdk.services.iam.PolicyStatement> value)
Number getMemorySize()
void setMemorySize(Number value)
software.amazon.awscdk.services.iam.Role getRole()
void setRole(software.amazon.awscdk.services.iam.Role value)
software.amazon.awscdk.services.ec2.SecurityGroupRef getSecurityGroup()
void setSecurityGroup(software.amazon.awscdk.services.ec2.SecurityGroupRef value)
Number getTimeout()
void setTimeout(Number value)
Tracing getTracing()
void setTracing(Tracing value)
software.amazon.awscdk.services.ec2.VpcNetworkRef getVpc()
void setVpc(software.amazon.awscdk.services.ec2.VpcNetworkRef value)
software.amazon.awscdk.services.ec2.VpcPlacementStrategy getVpcPlacement()
void setVpcPlacement(software.amazon.awscdk.services.ec2.VpcPlacementStrategy value)
static FunctionProps.Builder builder()
FunctionProps.Builder of FunctionPropsCopyright © 2018. All rights reserved.