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