public static interface CreateFunctionRequest.Builder extends LambdaRequest.Builder, SdkPojo, CopyableBuilder<CreateFunctionRequest.Builder,CreateFunctionRequest>
Modifier and Type | Method and Description |
---|---|
default CreateFunctionRequest.Builder |
code(Consumer<FunctionCode.Builder> code)
The code for the function.
|
CreateFunctionRequest.Builder |
code(FunctionCode code)
The code for the function.
|
default CreateFunctionRequest.Builder |
deadLetterConfig(Consumer<DeadLetterConfig.Builder> deadLetterConfig)
A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events
when they fail processing.
|
CreateFunctionRequest.Builder |
deadLetterConfig(DeadLetterConfig deadLetterConfig)
A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events
when they fail processing.
|
CreateFunctionRequest.Builder |
description(String description)
A description of the function.
|
default CreateFunctionRequest.Builder |
environment(Consumer<Environment.Builder> environment)
Environment variables that are accessible from function code during execution.
|
CreateFunctionRequest.Builder |
environment(Environment environment)
Environment variables that are accessible from function code during execution.
|
CreateFunctionRequest.Builder |
functionName(String functionName)
The name of the Lambda function.
|
CreateFunctionRequest.Builder |
handler(String handler)
The name of the method within your code that Lambda calls to execute your function.
|
CreateFunctionRequest.Builder |
kmsKeyArn(String kmsKeyArn)
The ARN of the KMS key used to encrypt your function's environment variables.
|
CreateFunctionRequest.Builder |
layers(Collection<String> layers)
A list of function layers
to add to the function's execution environment.
|
CreateFunctionRequest.Builder |
layers(String... layers)
A list of function layers
to add to the function's execution environment.
|
CreateFunctionRequest.Builder |
memorySize(Integer memorySize)
The amount of memory that your function has access to.
|
CreateFunctionRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateFunctionRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateFunctionRequest.Builder |
publish(Boolean publish)
Set to true to publish the first version of the function during creation.
|
CreateFunctionRequest.Builder |
role(String role)
The Amazon Resource Name (ARN) of the function's execution role.
|
CreateFunctionRequest.Builder |
runtime(Runtime runtime)
The runtime version for the function.
|
CreateFunctionRequest.Builder |
runtime(String runtime)
The runtime version for the function.
|
CreateFunctionRequest.Builder |
tags(Map<String,String> tags)
The list of tags (key-value pairs) assigned to the new function.
|
CreateFunctionRequest.Builder |
timeout(Integer timeout)
The amount of time that Lambda allows a function to run before terminating it.
|
default CreateFunctionRequest.Builder |
tracingConfig(Consumer<TracingConfig.Builder> tracingConfig)
Set
Mode to Active to sample and trace a subset of incoming requests with AWS
X-Ray. |
CreateFunctionRequest.Builder |
tracingConfig(TracingConfig tracingConfig)
Set
Mode to Active to sample and trace a subset of incoming requests with AWS
X-Ray. |
default CreateFunctionRequest.Builder |
vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of
security group IDs and subnet IDs.
|
CreateFunctionRequest.Builder |
vpcConfig(VpcConfig vpcConfig)
If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of
security group IDs and subnet IDs.
|
build
overrideConfiguration
copy
applyMutation, build
CreateFunctionRequest.Builder functionName(String functionName)
The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
functionName
- The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
CreateFunctionRequest.Builder runtime(String runtime)
The runtime version for the function.
CreateFunctionRequest.Builder runtime(Runtime runtime)
The runtime version for the function.
CreateFunctionRequest.Builder role(String role)
The Amazon Resource Name (ARN) of the function's execution role.
role
- The Amazon Resource Name (ARN) of the function's execution role.CreateFunctionRequest.Builder handler(String handler)
The name of the method within your code that Lambda calls to execute your function. For more information, see Programming Model.
handler
- The name of the method within your code that Lambda calls to execute your function. For more
information, see Programming Model.CreateFunctionRequest.Builder code(FunctionCode code)
The code for the function.
code
- The code for the function.default CreateFunctionRequest.Builder code(Consumer<FunctionCode.Builder> code)
The code for the function.
This is a convenience that creates an instance of theFunctionCode.Builder
avoiding the need to
create one manually via FunctionCode.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to code(FunctionCode)
.code
- a consumer that will call methods on FunctionCode.Builder
code(FunctionCode)
CreateFunctionRequest.Builder description(String description)
A description of the function.
description
- A description of the function.CreateFunctionRequest.Builder timeout(Integer timeout)
The amount of time that Lambda allows a function to run before terminating it. The default is 3 seconds. The maximum allowed value is 900 seconds.
timeout
- The amount of time that Lambda allows a function to run before terminating it. The default is 3
seconds. The maximum allowed value is 900 seconds.CreateFunctionRequest.Builder memorySize(Integer memorySize)
The amount of memory that your function has access to. Increasing the function's memory also increases it's CPU allocation. The default value is 128 MB. The value must be a multiple of 64 MB.
memorySize
- The amount of memory that your function has access to. Increasing the function's memory also increases
it's CPU allocation. The default value is 128 MB. The value must be a multiple of 64 MB.CreateFunctionRequest.Builder publish(Boolean publish)
Set to true to publish the first version of the function during creation.
publish
- Set to true to publish the first version of the function during creation.CreateFunctionRequest.Builder vpcConfig(VpcConfig vpcConfig)
If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID.
vpcConfig
- If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list
of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one
security group and one subnet ID.default CreateFunctionRequest.Builder vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID.
This is a convenience that creates an instance of theVpcConfig.Builder
avoiding the need to create
one manually via VpcConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to vpcConfig(VpcConfig)
.vpcConfig
- a consumer that will call methods on VpcConfig.Builder
vpcConfig(VpcConfig)
CreateFunctionRequest.Builder deadLetterConfig(DeadLetterConfig deadLetterConfig)
A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead Letter Queues.
deadLetterConfig
- A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous
events when they fail processing. For more information, see Dead Letter Queues.default CreateFunctionRequest.Builder deadLetterConfig(Consumer<DeadLetterConfig.Builder> deadLetterConfig)
A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead Letter Queues.
This is a convenience that creates an instance of theDeadLetterConfig.Builder
avoiding the need to
create one manually via DeadLetterConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to deadLetterConfig(DeadLetterConfig)
.deadLetterConfig
- a consumer that will call methods on DeadLetterConfig.Builder
deadLetterConfig(DeadLetterConfig)
CreateFunctionRequest.Builder environment(Environment environment)
Environment variables that are accessible from function code during execution.
environment
- Environment variables that are accessible from function code during execution.default CreateFunctionRequest.Builder environment(Consumer<Environment.Builder> environment)
Environment variables that are accessible from function code during execution.
This is a convenience that creates an instance of theEnvironment.Builder
avoiding the need to create
one manually via Environment.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to environment(Environment)
.environment
- a consumer that will call methods on Environment.Builder
environment(Environment)
CreateFunctionRequest.Builder kmsKeyArn(String kmsKeyArn)
The ARN of the KMS key used to encrypt your function's environment variables. If not provided, AWS Lambda will use a default service key.
kmsKeyArn
- The ARN of the KMS key used to encrypt your function's environment variables. If not provided, AWS
Lambda will use a default service key.CreateFunctionRequest.Builder tracingConfig(TracingConfig tracingConfig)
Set Mode
to Active
to sample and trace a subset of incoming requests with AWS
X-Ray.
tracingConfig
- Set Mode
to Active
to sample and trace a subset of incoming requests with
AWS X-Ray.default CreateFunctionRequest.Builder tracingConfig(Consumer<TracingConfig.Builder> tracingConfig)
Set Mode
to Active
to sample and trace a subset of incoming requests with AWS
X-Ray.
TracingConfig.Builder
avoiding the need to
create one manually via TracingConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to tracingConfig(TracingConfig)
.tracingConfig
- a consumer that will call methods on TracingConfig.Builder
tracingConfig(TracingConfig)
CreateFunctionRequest.Builder tags(Map<String,String> tags)
The list of tags (key-value pairs) assigned to the new function. For more information, see Tagging Lambda Functions in the AWS Lambda Developer Guide.
tags
- The list of tags (key-value pairs) assigned to the new function. For more information, see Tagging Lambda Functions in the
AWS Lambda Developer Guide.CreateFunctionRequest.Builder layers(Collection<String> layers)
A list of function layers to add to the function's execution environment.
layers
- A list of function
layers to add to the function's execution environment.CreateFunctionRequest.Builder layers(String... layers)
A list of function layers to add to the function's execution environment.
layers
- A list of function
layers to add to the function's execution environment.CreateFunctionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateFunctionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.