public static interface UpdateFunctionConfigurationRequest.Builder extends LambdaRequest.Builder, CopyableBuilder<UpdateFunctionConfigurationRequest.Builder,UpdateFunctionConfigurationRequest>
Modifier and Type | Method and Description |
---|---|
default UpdateFunctionConfigurationRequest.Builder |
deadLetterConfig(Consumer<DeadLetterConfig.Builder> deadLetterConfig)
The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS
topic.
|
UpdateFunctionConfigurationRequest.Builder |
deadLetterConfig(DeadLetterConfig deadLetterConfig)
The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS
topic.
|
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 |
memorySize(Integer memorySize)
The amount of memory, in MB, your Lambda function is given.
|
UpdateFunctionConfigurationRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
UpdateFunctionConfigurationRequest.Builder |
requestOverrideConfig(Consumer<AwsRequestOverrideConfig.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 environment for the Lambda function.
|
UpdateFunctionConfigurationRequest.Builder |
runtime(String runtime)
The runtime environment for the Lambda function.
|
UpdateFunctionConfigurationRequest.Builder |
timeout(Integer timeout)
The function execution time at which AWS Lambda should terminate the function.
|
default UpdateFunctionConfigurationRequest.Builder |
tracingConfig(Consumer<TracingConfig.Builder> tracingConfig)
The parent object that contains your function's tracing settings.
|
UpdateFunctionConfigurationRequest.Builder |
tracingConfig(TracingConfig tracingConfig)
The parent object that contains your function's tracing settings.
|
default UpdateFunctionConfigurationRequest.Builder |
vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
Sets the value of the VpcConfig property for this object.
|
UpdateFunctionConfigurationRequest.Builder |
vpcConfig(VpcConfig vpcConfig)
Sets the value of the VpcConfig property for this object.
|
build
requestOverrideConfig
copy
apply, build
UpdateFunctionConfigurationRequest.Builder functionName(String functionName)
The name of the Lambda function.
You can specify a function name (for example, Thumbnail
) or you can specify Amazon Resource Name
(ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail
). AWS
Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail
). Note that
the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64
character in length.
functionName
- The name of the Lambda function.
You can specify a function name (for example, Thumbnail
) or you can specify Amazon
Resource Name (ARN) of the function (for example,
arn:aws:lambda:us-west-2:account-id:function:ThumbNail
). AWS Lambda also allows you to
specify a partial ARN (for example, account-id:Thumbnail
). Note that the length
constraint applies only to the ARN. If you specify only the function name, it is limited to 64
character 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 function execution time at which AWS Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.
timeout
- The function execution time at which AWS Lambda should terminate the function. Because the execution
time has cost implications, we recommend you set this value based on your expected execution time. The
default is 3 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)
vpcConfig
- The new value for the VpcConfig property for this object.default UpdateFunctionConfigurationRequest.Builder vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
VpcConfig.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 environment for the Lambda function.
To use the Python runtime v3.6, set the value to "python3.6". To use the Python runtime v2.7, set the value to "python2.7". To use the Node.js runtime v6.10, set the value to "nodejs6.10". To use the Node.js runtime v4.3, set the value to "nodejs4.3". To use the Python runtime v3.6, set the value to "python3.6".
Node v0.10.42 is currently marked as deprecated. You must migrate existing functions to the newer Node.js runtime versions available on AWS Lambda (nodejs4.3 or nodejs6.10) as soon as possible. Failure to do so will result in an invalid parameter error being returned. Note that you will have to follow this procedure for each region that contains functions written in the Node v0.10.42 runtime.
runtime
- The runtime environment for the Lambda function.
To use the Python runtime v3.6, set the value to "python3.6". To use the Python runtime v2.7, set the value to "python2.7". To use the Node.js runtime v6.10, set the value to "nodejs6.10". To use the Node.js runtime v4.3, set the value to "nodejs4.3". To use the Python runtime v3.6, set the value to "python3.6".
Node v0.10.42 is currently marked as deprecated. You must migrate existing functions to the newer Node.js runtime versions available on AWS Lambda (nodejs4.3 or nodejs6.10) as soon as possible. Failure to do so will result in an invalid parameter error being returned. Note that you will have to follow this procedure for each region that contains functions written in the Node v0.10.42 runtime.
Runtime
,
Runtime
UpdateFunctionConfigurationRequest.Builder runtime(Runtime runtime)
The runtime environment for the Lambda function.
To use the Python runtime v3.6, set the value to "python3.6". To use the Python runtime v2.7, set the value to "python2.7". To use the Node.js runtime v6.10, set the value to "nodejs6.10". To use the Node.js runtime v4.3, set the value to "nodejs4.3". To use the Python runtime v3.6, set the value to "python3.6".
Node v0.10.42 is currently marked as deprecated. You must migrate existing functions to the newer Node.js runtime versions available on AWS Lambda (nodejs4.3 or nodejs6.10) as soon as possible. Failure to do so will result in an invalid parameter error being returned. Note that you will have to follow this procedure for each region that contains functions written in the Node v0.10.42 runtime.
runtime
- The runtime environment for the Lambda function.
To use the Python runtime v3.6, set the value to "python3.6". To use the Python runtime v2.7, set the value to "python2.7". To use the Node.js runtime v6.10, set the value to "nodejs6.10". To use the Node.js runtime v4.3, set the value to "nodejs4.3". To use the Python runtime v3.6, set the value to "python3.6".
Node v0.10.42 is currently marked as deprecated. You must migrate existing functions to the newer Node.js runtime versions available on AWS Lambda (nodejs4.3 or nodejs6.10) as soon as possible. Failure to do so will result in an invalid parameter error being returned. Note that you will have to follow this procedure for each region that contains functions written in the Node v0.10.42 runtime.
Runtime
,
Runtime
UpdateFunctionConfigurationRequest.Builder deadLetterConfig(DeadLetterConfig deadLetterConfig)
The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic.
deadLetterConfig
- The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon
SNS topic.default UpdateFunctionConfigurationRequest.Builder deadLetterConfig(Consumer<DeadLetterConfig.Builder> deadLetterConfig)
The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic.
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)
The parent object that contains your function's tracing settings.
tracingConfig
- The parent object that contains your function's tracing settings.default UpdateFunctionConfigurationRequest.Builder tracingConfig(Consumer<TracingConfig.Builder> tracingConfig)
The parent object that contains your function's tracing settings.
This is a convenience that creates an instance of theTracingConfig.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 or .
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 or .UpdateFunctionConfigurationRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.UpdateFunctionConfigurationRequest.Builder requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfig.Builder
will be given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.