public static final class FunctionProps.Builder extends Object
FunctionProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
FunctionProps |
build()
Builds the configured instance.
|
FunctionProps.Builder |
withAllowAllOutbound(Boolean value)
Sets the value of AllowAllOutbound
|
FunctionProps.Builder |
withCode(Code value)
Sets the value of Code
|
FunctionProps.Builder |
withDeadLetterQueue(software.amazon.awscdk.services.sqs.IQueue value)
Sets the value of DeadLetterQueue
|
FunctionProps.Builder |
withDeadLetterQueueEnabled(Boolean value)
Sets the value of DeadLetterQueueEnabled
|
FunctionProps.Builder |
withDescription(String value)
Sets the value of Description
|
FunctionProps.Builder |
withEnvironment(Map<String,Object> value)
Sets the value of Environment
|
FunctionProps.Builder |
withEvents(List<IEventSource> value)
Sets the value of Events
|
FunctionProps.Builder |
withFunctionName(String value)
Sets the value of FunctionName
|
FunctionProps.Builder |
withHandler(String value)
Sets the value of Handler
|
FunctionProps.Builder |
withInitialPolicy(List<software.amazon.awscdk.services.iam.PolicyStatement> value)
Sets the value of InitialPolicy
|
FunctionProps.Builder |
withLayers(List<ILayerVersion> value)
Sets the value of Layers
|
FunctionProps.Builder |
withLogRetentionDays(software.amazon.awscdk.services.logs.RetentionDays value)
Sets the value of LogRetentionDays
|
FunctionProps.Builder |
withMemorySize(Number value)
Sets the value of MemorySize
|
FunctionProps.Builder |
withReservedConcurrentExecutions(Number value)
Sets the value of ReservedConcurrentExecutions
|
FunctionProps.Builder |
withRole(software.amazon.awscdk.services.iam.IRole value)
Sets the value of Role
|
FunctionProps.Builder |
withRuntime(Runtime value)
Sets the value of Runtime
|
FunctionProps.Builder |
withSecurityGroup(software.amazon.awscdk.services.ec2.ISecurityGroup value)
Sets the value of SecurityGroup
|
FunctionProps.Builder |
withTimeout(Number value)
Sets the value of Timeout
|
FunctionProps.Builder |
withTracing(Tracing value)
Sets the value of Tracing
|
FunctionProps.Builder |
withVpc(software.amazon.awscdk.services.ec2.IVpcNetwork value)
Sets the value of Vpc
|
FunctionProps.Builder |
withVpcSubnets(software.amazon.awscdk.services.ec2.SubnetSelection value)
Sets the value of VpcSubnets
|
public FunctionProps.Builder withCode(Code value)
value - The source code of your Lambda function.thispublic FunctionProps.Builder withHandler(String value)
value - The name of the function (within your source code) that Lambda calls to start running your code.thispublic FunctionProps.Builder withRuntime(Runtime value)
value - The runtime environment for the Lambda function that you are uploading. For valid values, see the Runtime property in the AWS Lambda Developer Guide.thispublic FunctionProps.Builder withAllowAllOutbound(@Nullable Boolean value)
value - Whether to allow the Lambda to send all network traffic.thispublic FunctionProps.Builder withDeadLetterQueue(@Nullable software.amazon.awscdk.services.sqs.IQueue value)
value - The SQS queue to use if DLQ is enabled.thispublic FunctionProps.Builder withDeadLetterQueueEnabled(@Nullable Boolean value)
value - Enabled DLQ.thispublic FunctionProps.Builder withDescription(@Nullable String value)
value - A description of the function.thispublic FunctionProps.Builder withEnvironment(@Nullable Map<String,Object> value)
value - Key-value pairs that Lambda caches and makes available for your Lambda functions.thispublic FunctionProps.Builder withEvents(@Nullable List<IEventSource> value)
value - Event sources for this function.thispublic FunctionProps.Builder withFunctionName(@Nullable String value)
value - A name for the function.thispublic FunctionProps.Builder withInitialPolicy(@Nullable List<software.amazon.awscdk.services.iam.PolicyStatement> value)
value - Initial policy statements to add to the created Lambda Role.thispublic FunctionProps.Builder withLayers(@Nullable List<ILayerVersion> value)
value - A list of layers to add to the function's execution environment.thispublic FunctionProps.Builder withLogRetentionDays(@Nullable software.amazon.awscdk.services.logs.RetentionDays value)
value - The number of days log events are kept in CloudWatch Logs.thispublic FunctionProps.Builder withMemorySize(@Nullable Number value)
value - The amount of memory, in MB, that is allocated to your Lambda function. Lambda uses this value to proportionally allocate the amount of CPU power. For more information, see Resource Model in the AWS Lambda Developer Guide.thispublic FunctionProps.Builder withReservedConcurrentExecutions(@Nullable Number value)
value - The maximum of concurrent executions you want to reserve for the function.thispublic FunctionProps.Builder withRole(@Nullable software.amazon.awscdk.services.iam.IRole value)
value - Lambda execution role.thispublic FunctionProps.Builder withSecurityGroup(@Nullable software.amazon.awscdk.services.ec2.ISecurityGroup value)
value - What security group to associate with the Lambda's network interfaces.thispublic FunctionProps.Builder withTimeout(@Nullable Number value)
value - The function execution time (in seconds) after which Lambda terminates the function.thispublic FunctionProps.Builder withTracing(@Nullable Tracing value)
value - Enable AWS X-Ray Tracing for Lambda Function.thispublic FunctionProps.Builder withVpc(@Nullable software.amazon.awscdk.services.ec2.IVpcNetwork value)
value - VPC network to place Lambda network interfaces.thispublic FunctionProps.Builder withVpcSubnets(@Nullable software.amazon.awscdk.services.ec2.SubnetSelection value)
value - Where to place the network interfaces within the VPC.thispublic FunctionProps build()
FunctionPropsNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.