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 description of the function.
|
default UpdateFunctionConfigurationRequest.Builder |
environment(Consumer<Environment.Builder> environment)
Environment variables that are accessible from function code during execution.
|
UpdateFunctionConfigurationRequest.Builder |
environment(Environment environment)
Environment variables that are accessible from function code during execution.
|
default UpdateFunctionConfigurationRequest.Builder |
ephemeralStorage(Consumer<EphemeralStorage.Builder> ephemeralStorage)
The size of the function’s /tmp directory in MB.
|
UpdateFunctionConfigurationRequest.Builder |
ephemeralStorage(EphemeralStorage ephemeralStorage)
The size of the function’s /tmp directory in MB.
|
UpdateFunctionConfigurationRequest.Builder |
fileSystemConfigs(Collection<FileSystemConfig> fileSystemConfigs)
Connection settings for an Amazon EFS file system.
|
UpdateFunctionConfigurationRequest.Builder |
fileSystemConfigs(Consumer<FileSystemConfig.Builder>... fileSystemConfigs)
Connection settings for an Amazon EFS file system.
|
UpdateFunctionConfigurationRequest.Builder |
fileSystemConfigs(FileSystemConfig... fileSystemConfigs)
Connection settings for an Amazon EFS file system.
|
UpdateFunctionConfigurationRequest.Builder |
functionName(String functionName)
The name of the Lambda function.
|
UpdateFunctionConfigurationRequest.Builder |
handler(String handler)
The name of the method within your code that Lambda calls to execute your function.
|
default UpdateFunctionConfigurationRequest.Builder |
imageConfig(Consumer<ImageConfig.Builder> imageConfig)
Container image configuration
values that override the values in the container image Docker file.
|
UpdateFunctionConfigurationRequest.Builder |
imageConfig(ImageConfig imageConfig)
Container image configuration
values that override the values in the container image Docker file.
|
UpdateFunctionConfigurationRequest.Builder |
kmsKeyArn(String kmsKeyArn)
The ARN of the Amazon Web Services Key Management Service (KMS) key that's 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
available to the function at runtime.
|
UpdateFunctionConfigurationRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
UpdateFunctionConfigurationRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
UpdateFunctionConfigurationRequest.Builder |
revisionId(String revisionId)
Only update the function if the revision ID matches the ID that's specified.
|
UpdateFunctionConfigurationRequest.Builder |
role(String role)
The Amazon Resource Name (ARN) of the function's execution role.
|
UpdateFunctionConfigurationRequest.Builder |
runtime(Runtime runtime)
The identifier of the function's runtime.
|
UpdateFunctionConfigurationRequest.Builder |
runtime(String runtime)
The identifier of the function's runtime.
|
UpdateFunctionConfigurationRequest.Builder |
timeout(Integer timeout)
The amount of time (in seconds) that Lambda allows a function to run before stopping it.
|
default UpdateFunctionConfigurationRequest.Builder |
tracingConfig(Consumer<TracingConfig.Builder> tracingConfig)
|
UpdateFunctionConfigurationRequest.Builder |
tracingConfig(TracingConfig tracingConfig)
|
default UpdateFunctionConfigurationRequest.Builder |
vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and
subnets in the VPC.
|
UpdateFunctionConfigurationRequest.Builder |
vpcConfig(VpcConfig vpcConfig)
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and
subnets in the VPC.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
UpdateFunctionConfigurationRequest.Builder functionName(String functionName)
The name of the Lambda function.
Name formats
Function name - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
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 - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
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 function's execution role.
role
- The Amazon Resource Name (ARN) of the function's execution role.UpdateFunctionConfigurationRequest.Builder handler(String handler)
The name of the method within your code that Lambda calls to execute your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.
handler
- The name of the method within your code that Lambda calls to execute your function. Handler is
required if the deployment package is a .zip file archive. The format includes the file name. It can
also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.UpdateFunctionConfigurationRequest.Builder description(String description)
A description of the function.
description
- A description of the function.UpdateFunctionConfigurationRequest.Builder timeout(Integer timeout)
The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For additional information, see Lambda execution environment.
timeout
- The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default
is 3 seconds. The maximum allowed value is 900 seconds. For additional information, see Lambda execution
environment.UpdateFunctionConfigurationRequest.Builder memorySize(Integer memorySize)
The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
memorySize
- The amount of memory
available to the function at runtime. Increasing the function memory also increases its CPU
allocation. The default value is 128 MB. The value can be any multiple of 1 MB.UpdateFunctionConfigurationRequest.Builder vpcConfig(VpcConfig vpcConfig)
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can only access resources and the internet through that VPC. For more information, see VPC Settings.
vpcConfig
- For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups
and subnets in the VPC. When you connect a function to a VPC, it can only access resources and the
internet through that VPC. For more information, see VPC Settings.default UpdateFunctionConfigurationRequest.Builder vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can only access resources and the internet through that VPC. For more information, see VPC Settings.
This is a convenience method 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)
Environment variables that are accessible from function code during execution.
environment
- Environment variables that are accessible from function code during execution.default UpdateFunctionConfigurationRequest.Builder environment(Consumer<Environment.Builder> environment)
Environment variables that are accessible from function code during execution.
This is a convenience method 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 identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
UpdateFunctionConfigurationRequest.Builder runtime(Runtime runtime)
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
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 method 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 ARN of the Amazon Web Services Key Management Service (KMS) key that's used to encrypt your function's environment variables. If it's not provided, Lambda uses a default service key.
kmsKeyArn
- The ARN of the Amazon Web Services Key Management Service (KMS) key that's used to encrypt your
function's environment variables. If it's not provided, Lambda uses a default service key.UpdateFunctionConfigurationRequest.Builder tracingConfig(TracingConfig tracingConfig)
Set Mode
to Active
to sample and trace a subset of incoming requests with X-Ray.
tracingConfig
- Set Mode
to Active
to sample and trace a subset of incoming requests with X-Ray.default UpdateFunctionConfigurationRequest.Builder tracingConfig(Consumer<TracingConfig.Builder> tracingConfig)
Set Mode
to Active
to sample and trace a subset of incoming requests with 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)
Only update the function if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.
revisionId
- Only update the function if the revision ID matches the ID that's specified. Use this option to avoid
modifying a function that has changed since you last read it.UpdateFunctionConfigurationRequest.Builder layers(Collection<String> layers)
A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
layers
- A list of function
layers to add to the function's execution environment. Specify each layer by its ARN, including
the version.UpdateFunctionConfigurationRequest.Builder layers(String... layers)
A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
layers
- A list of function
layers to add to the function's execution environment. Specify each layer by its ARN, including
the version.UpdateFunctionConfigurationRequest.Builder fileSystemConfigs(Collection<FileSystemConfig> fileSystemConfigs)
Connection settings for an Amazon EFS file system.
fileSystemConfigs
- Connection settings for an Amazon EFS file system.UpdateFunctionConfigurationRequest.Builder fileSystemConfigs(FileSystemConfig... fileSystemConfigs)
Connection settings for an Amazon EFS file system.
fileSystemConfigs
- Connection settings for an Amazon EFS file system.UpdateFunctionConfigurationRequest.Builder fileSystemConfigs(Consumer<FileSystemConfig.Builder>... fileSystemConfigs)
Connection settings for an Amazon EFS file system.
This is a convenience method that creates an instance of theList.Builder
avoiding
the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #fileSystemConfigs(List)
.fileSystemConfigs
- a consumer that will call methods on List.Builder
#fileSystemConfigs(List)
UpdateFunctionConfigurationRequest.Builder imageConfig(ImageConfig imageConfig)
Container image configuration values that override the values in the container image Docker file.
imageConfig
- Container image configuration
values that override the values in the container image Docker file.default UpdateFunctionConfigurationRequest.Builder imageConfig(Consumer<ImageConfig.Builder> imageConfig)
Container image configuration values that override the values in the container image Docker file.
This is a convenience method that creates an instance of theImageConfig.Builder
avoiding the need to
create one manually via ImageConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to imageConfig(ImageConfig)
.imageConfig
- a consumer that will call methods on ImageConfig.Builder
imageConfig(ImageConfig)
UpdateFunctionConfigurationRequest.Builder ephemeralStorage(EphemeralStorage ephemeralStorage)
The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.
ephemeralStorage
- The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number
between 512 and 10240 MB.default UpdateFunctionConfigurationRequest.Builder ephemeralStorage(Consumer<EphemeralStorage.Builder> ephemeralStorage)
The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.
This is a convenience method that creates an instance of theEphemeralStorage.Builder
avoiding the
need to create one manually via EphemeralStorage.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to ephemeralStorage(EphemeralStorage)
.ephemeralStorage
- a consumer that will call methods on EphemeralStorage.Builder
ephemeralStorage(EphemeralStorage)
UpdateFunctionConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
UpdateFunctionConfigurationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2022. All rights reserved.