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.QueueRef 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 |
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 |
withMemorySize(Number value)
Sets the value of MemorySize
|
SingletonFunctionProps.Builder |
withRole(software.amazon.awscdk.services.iam.Role value)
Sets the value of Role
|
SingletonFunctionProps.Builder |
withRuntime(Runtime value)
Sets the value of Runtime
|
SingletonFunctionProps.Builder |
withSecurityGroup(software.amazon.awscdk.services.ec2.SecurityGroupRef 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.VpcNetworkRef value)
Sets the value of Vpc
|
SingletonFunctionProps.Builder |
withVpcPlacement(software.amazon.awscdk.services.ec2.VpcPlacementStrategy value)
Sets the value of VpcPlacement
|
public SingletonFunctionProps.Builder withUuid(String value)
value - A unique identifier to identify this lambda
The identifier should be unique across all custom resource providers.
We recommend generating a UUID per provider.thispublic SingletonFunctionProps.Builder withLambdaPurpose(@Nullable String value)
value - A descriptive name for the purpose of this Lambda.
If the Lambda does not have a physical name, this string will be
reflected its generated name. The combination of lambdaPurpose
and uuid must be unique.thispublic SingletonFunctionProps.Builder withCode(Code value)
value - The source code of your Lambda function. You can point to a file in an
Amazon Simple Storage Service (Amazon S3) bucket or specify your source
code as inline text.thispublic SingletonFunctionProps.Builder withHandler(String value)
value - The name of the function (within your source code) that Lambda calls to
start running your code. For more information, see the Handler property
in the AWS Lambda Developer Guide.
NOTE: If you specify your source code as inline text by specifying the
ZipFile property within the Code property, specify index.function_name as
the handler.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
If set to false, you must individually add traffic rules to allow the
Lambda to connect to network targets.thispublic SingletonFunctionProps.Builder withDeadLetterQueue(@Nullable software.amazon.awscdk.services.sqs.QueueRef value)
value - The SQS queue to use if DLQ is enabled.thispublic SingletonFunctionProps.Builder withDeadLetterQueueEnabled(@Nullable Boolean value)
value - Enabled DLQ. If `deadLetterQueue` is undefined,
an SQS queue with default options will be defined for your Function.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. Use environment variables to apply configuration changes, such
as test and production environment configurations, without changing your
Lambda function source code.thispublic SingletonFunctionProps.Builder withFunctionName(@Nullable String value)
value - A name for the function. If you don't specify a name, AWS CloudFormation
generates a unique physical ID and uses that ID for the function's name.
For more information, see Name Type.thispublic SingletonFunctionProps.Builder withInitialPolicy(@Nullable List<software.amazon.awscdk.services.iam.PolicyStatement> value)
value - Initial policy statements to add to the created Lambda Role.
You can call `addToRolePolicy` to the created lambda to add statements post creation.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 withRole(@Nullable software.amazon.awscdk.services.iam.Role value)
value - Lambda execution role.
This is the role that will be assumed by the function upon execution.
It controls the permissions that the function will have. The Role must
be assumable by the 'lambda.amazonaws.com' service principal.thispublic SingletonFunctionProps.Builder withSecurityGroup(@Nullable software.amazon.awscdk.services.ec2.SecurityGroupRef value)
value - What security group to associate with the Lambda's network interfaces.
Only used if 'vpc' is supplied.thispublic SingletonFunctionProps.Builder withTimeout(@Nullable Number value)
value - The function execution time (in seconds) after which Lambda terminates
the function. Because the execution time affects cost, set this value
based on the function's expected execution time.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.VpcNetworkRef value)
value - VPC network to place Lambda network interfaces
Specify this if the Lambda function needs to access resources in a VPC.thispublic SingletonFunctionProps.Builder withVpcPlacement(@Nullable software.amazon.awscdk.services.ec2.VpcPlacementStrategy value)
value - Where to place the network interfaces within the VPC.
Only used if 'vpc' is supplied. Note: internet access for Lambdas
requires a NAT gateway, so picking Public subnets is not allowed.thispublic SingletonFunctionProps build()
SingletonFunctionPropsNullPointerException - if any required attribute was not providedCopyright © 2018. All rights reserved.