public static interface UpdateFunctionConfigurationRequest.Builder extends LambdaRequest.Builder, SdkPojo, CopyableBuilder<UpdateFunctionConfigurationRequest.Builder,UpdateFunctionConfigurationRequest>
Modifier and Type | Method and Description |
---|---|
default UpdateFunctionConfigurationRequest.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.
|
UpdateFunctionConfigurationRequest.Builder |
deadLetterConfig(DeadLetterConfig deadLetterConfig)
A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events
when they fail processing.
|
UpdateFunctionConfigurationRequest.Builder |
description(String description)
A short user-defined function description.
|
default UpdateFunctionConfigurationRequest.Builder |
environment(Consumer<Environment.Builder> environment)
The parent object that contains your environment's configuration settings.
|
UpdateFunctionConfigurationRequest.Builder |
environment(Environment environment)
The parent object that contains your environment's configuration settings.
|
UpdateFunctionConfigurationRequest.Builder |
functionName(String functionName)
The name of the Lambda function.
|
UpdateFunctionConfigurationRequest.Builder |
handler(String handler)
The function that Lambda calls to begin executing your function.
|
UpdateFunctionConfigurationRequest.Builder |
kmsKeyArn(String kmsKeyArn)
The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables.
|
UpdateFunctionConfigurationRequest.Builder |
layers(Collection<String> layers)
A list of function layers
to add to the function's execution environment.
|
UpdateFunctionConfigurationRequest.Builder |
layers(String... layers)
A list of function layers
to add to the function's execution environment.
|
UpdateFunctionConfigurationRequest.Builder |
memorySize(Integer memorySize)
The amount of memory, in MB, your Lambda function is given.
|
UpdateFunctionConfigurationRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
UpdateFunctionConfigurationRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
UpdateFunctionConfigurationRequest.Builder |
revisionId(String revisionId)
An optional value you can use to ensure you are updating the latest update of the function version or alias.
|
UpdateFunctionConfigurationRequest.Builder |
role(String role)
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
|
UpdateFunctionConfigurationRequest.Builder |
runtime(Runtime runtime)
The runtime version for the function.
|
UpdateFunctionConfigurationRequest.Builder |
runtime(String runtime)
The runtime version for the function.
|
UpdateFunctionConfigurationRequest.Builder |
timeout(Integer timeout)
The amount of time that Lambda allows a function to run before terminating it.
|
default UpdateFunctionConfigurationRequest.Builder |
tracingConfig(Consumer<TracingConfig.Builder> tracingConfig)
Set
Mode to Active to sample and trace a subset of incoming requests with AWS
X-Ray. |
UpdateFunctionConfigurationRequest.Builder |
tracingConfig(TracingConfig tracingConfig)
Set
Mode to Active to sample and trace a subset of incoming requests with AWS
X-Ray. |
default UpdateFunctionConfigurationRequest.Builder |
vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
Specify security groups and subnets in a VPC to which your Lambda function needs access.
|
UpdateFunctionConfigurationRequest.Builder |
vpcConfig(VpcConfig vpcConfig)
Specify security groups and subnets in a VPC to which your Lambda function needs access.
|
build
overrideConfiguration
copy
applyMutation, build
UpdateFunctionConfigurationRequest.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.
UpdateFunctionConfigurationRequest.Builder role(String role)
The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.
role
- The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.UpdateFunctionConfigurationRequest.Builder handler(String handler)
The function that Lambda calls to begin executing your function. For Node.js, it is the
module-name.export
value in your function.
handler
- The function that Lambda calls to begin executing your function. For Node.js, it is the
module-name.export
value in your function.UpdateFunctionConfigurationRequest.Builder description(String description)
A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.
description
- A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful
description as you see fit.UpdateFunctionConfigurationRequest.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.UpdateFunctionConfigurationRequest.Builder memorySize(Integer memorySize)
The amount of memory, in MB, your Lambda function is given. AWS Lambda uses this memory size to infer the amount of CPU allocated to your function. Your function use-case determines your CPU and memory requirements. For example, a database operation might need less memory compared to an image processing function. The default value is 128 MB. The value must be a multiple of 64 MB.
memorySize
- The amount of memory, in MB, your Lambda function is given. AWS Lambda uses this memory size to infer
the amount of CPU allocated to your function. Your function use-case determines your CPU and memory
requirements. For example, a database operation might need less memory compared to an image processing
function. The default value is 128 MB. The value must be a multiple of 64 MB.UpdateFunctionConfigurationRequest.Builder vpcConfig(VpcConfig vpcConfig)
Specify security groups and subnets in a VPC to which your Lambda function needs access.
vpcConfig
- Specify security groups and subnets in a VPC to which your Lambda function needs access.default UpdateFunctionConfigurationRequest.Builder vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
Specify security groups and subnets in a VPC to which your Lambda function needs access.
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)
UpdateFunctionConfigurationRequest.Builder environment(Environment environment)
The parent object that contains your environment's configuration settings.
environment
- The parent object that contains your environment's configuration settings.default UpdateFunctionConfigurationRequest.Builder environment(Consumer<Environment.Builder> environment)
The parent object that contains your environment's configuration settings.
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)
UpdateFunctionConfigurationRequest.Builder runtime(String runtime)
The runtime version for the function.
UpdateFunctionConfigurationRequest.Builder runtime(Runtime runtime)
The runtime version for the function.
UpdateFunctionConfigurationRequest.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 UpdateFunctionConfigurationRequest.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)
UpdateFunctionConfigurationRequest.Builder kmsKeyArn(String kmsKeyArn)
The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables. If you elect to use the AWS Lambda default service key, pass in an empty string ("") for this parameter.
kmsKeyArn
- The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's environment variables.
If you elect to use the AWS Lambda default service key, pass in an empty string ("") for this
parameter.UpdateFunctionConfigurationRequest.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 UpdateFunctionConfigurationRequest.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)
UpdateFunctionConfigurationRequest.Builder revisionId(String revisionId)
An optional value you can use to ensure you are updating the latest update of the function version or alias.
If the RevisionID
you pass doesn't match the latest RevisionId
of the function or
alias, it will fail with an error message, advising you to retrieve the latest function version or alias
RevisionID
using either GetFunction or GetAlias.
revisionId
- An optional value you can use to ensure you are updating the latest update of the function version or
alias. If the RevisionID
you pass doesn't match the latest RevisionId
of the
function or alias, it will fail with an error message, advising you to retrieve the latest function
version or alias RevisionID
using either GetFunction or GetAlias.UpdateFunctionConfigurationRequest.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.UpdateFunctionConfigurationRequest.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.UpdateFunctionConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.UpdateFunctionConfigurationRequest.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.