Interface UpdateFunctionConfigurationRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateFunctionConfigurationRequest.Builder,UpdateFunctionConfigurationRequest>
,LambdaRequest.Builder
,SdkBuilder<UpdateFunctionConfigurationRequest.Builder,UpdateFunctionConfigurationRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- UpdateFunctionConfigurationRequest
public static interface UpdateFunctionConfigurationRequest.Builder extends LambdaRequest.Builder, SdkPojo, CopyableBuilder<UpdateFunctionConfigurationRequest.Builder,UpdateFunctionConfigurationRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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 or ARN of the Lambda function.UpdateFunctionConfigurationRequest.Builder
handler(String handler)
The name of the method within your code that Lambda calls to run 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 Key Management Service (KMS) customer managed key that's used to encrypt the following resources:UpdateFunctionConfigurationRequest.Builder
layers(String... layers)
A list of function layers to add to the function's execution environment.UpdateFunctionConfigurationRequest.Builder
layers(Collection<String> layers)
A list of function layers to add to the function's execution environment.default UpdateFunctionConfigurationRequest.Builder
loggingConfig(Consumer<LoggingConfig.Builder> loggingConfig)
The function's Amazon CloudWatch Logs configuration settings.UpdateFunctionConfigurationRequest.Builder
loggingConfig(LoggingConfig loggingConfig)
The function's Amazon CloudWatch Logs configuration settings.UpdateFunctionConfigurationRequest.Builder
memorySize(Integer memorySize)
The amount of memory available to the function at runtime.UpdateFunctionConfigurationRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
UpdateFunctionConfigurationRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
UpdateFunctionConfigurationRequest.Builder
revisionId(String revisionId)
Update the function only 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(String runtime)
The identifier of the function's runtime.UpdateFunctionConfigurationRequest.Builder
runtime(Runtime runtime)
The identifier of the function's runtime.default UpdateFunctionConfigurationRequest.Builder
snapStart(Consumer<SnapStart.Builder> snapStart)
The function's SnapStart setting.UpdateFunctionConfigurationRequest.Builder
snapStart(SnapStart snapStart)
The function's SnapStart setting.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.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lambda.model.LambdaRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
functionName
UpdateFunctionConfigurationRequest.Builder functionName(String functionName)
The name or ARN 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.
- Parameters:
functionName
- The name or ARN 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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
role
UpdateFunctionConfigurationRequest.Builder role(String role)
The Amazon Resource Name (ARN) of the function's execution role.
- Parameters:
role
- The Amazon Resource Name (ARN) of the function's execution role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
handler
UpdateFunctionConfigurationRequest.Builder handler(String handler)
The name of the method within your code that Lambda calls to run 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 Lambda programming model.
- Parameters:
handler
- The name of the method within your code that Lambda calls to run 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 Lambda programming model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
UpdateFunctionConfigurationRequest.Builder description(String description)
A description of the function.
- Parameters:
description
- A description of the function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeout
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 more information, see Lambda execution environment.
- Parameters:
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 more information, see Lambda execution environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memorySize
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
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 access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.
- Parameters:
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 access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
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 access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.
This is a convenience method that creates an instance of theVpcConfig.Builder
avoiding the need to create one manually viaVpcConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovpcConfig(VpcConfig)
.- Parameters:
vpcConfig
- a consumer that will call methods onVpcConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
vpcConfig(VpcConfig)
-
environment
UpdateFunctionConfigurationRequest.Builder environment(Environment environment)
Environment variables that are accessible from function code during execution.
- Parameters:
environment
- Environment variables that are accessible from function code during execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
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 viaEnvironment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toenvironment(Environment)
.- Parameters:
environment
- a consumer that will call methods onEnvironment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
environment(Environment)
-
runtime
UpdateFunctionConfigurationRequest.Builder runtime(String runtime)
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results in an error if you're deploying a function using a container image.
The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing functions shortly after each runtime is deprecated. For more information, see Runtime use after deprecation.
For a list of all currently supported runtimes, see Supported runtimes.
- Parameters:
runtime
- The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results in an error if you're deploying a function using a container image.The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing functions shortly after each runtime is deprecated. For more information, see Runtime use after deprecation.
For a list of all currently supported runtimes, see Supported runtimes.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Runtime
,Runtime
-
runtime
UpdateFunctionConfigurationRequest.Builder runtime(Runtime runtime)
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results in an error if you're deploying a function using a container image.
The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing functions shortly after each runtime is deprecated. For more information, see Runtime use after deprecation.
For a list of all currently supported runtimes, see Supported runtimes.
- Parameters:
runtime
- The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results in an error if you're deploying a function using a container image.The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing functions shortly after each runtime is deprecated. For more information, see Runtime use after deprecation.
For a list of all currently supported runtimes, see Supported runtimes.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Runtime
,Runtime
-
deadLetterConfig
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deadLetterConfig
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 viaDeadLetterConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeadLetterConfig(DeadLetterConfig)
.- Parameters:
deadLetterConfig
- a consumer that will call methods onDeadLetterConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
deadLetterConfig(DeadLetterConfig)
-
kmsKeyArn
UpdateFunctionConfigurationRequest.Builder kmsKeyArn(String kmsKeyArn)
The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt the following resources:
-
The function's environment variables.
-
The function's Lambda SnapStart snapshots.
-
When used with
SourceKMSKeyArn
, the unzipped version of the .zip deployment package that's used for function invocations. For more information, see Specifying a customer managed key for Lambda. -
The optimized version of the container image that's used for function invocations. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). For more information, see Function lifecycle.
If you don't provide a customer managed key, Lambda uses an Amazon Web Services owned key or an Amazon Web Services managed key.
- Parameters:
kmsKeyArn
- The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt the following resources:-
The function's environment variables.
-
The function's Lambda SnapStart snapshots.
-
When used with
SourceKMSKeyArn
, the unzipped version of the .zip deployment package that's used for function invocations. For more information, see Specifying a customer managed key for Lambda. -
The optimized version of the container image that's used for function invocations. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). For more information, see Function lifecycle.
If you don't provide a customer managed key, Lambda uses an Amazon Web Services owned key or an Amazon Web Services managed key.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
tracingConfig
UpdateFunctionConfigurationRequest.Builder tracingConfig(TracingConfig tracingConfig)
Set
Mode
toActive
to sample and trace a subset of incoming requests with X-Ray.- Parameters:
tracingConfig
- SetMode
toActive
to sample and trace a subset of incoming requests with X-Ray.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tracingConfig
default UpdateFunctionConfigurationRequest.Builder tracingConfig(Consumer<TracingConfig.Builder> tracingConfig)
Set
This is a convenience method that creates an instance of theMode
toActive
to sample and trace a subset of incoming requests with X-Ray.TracingConfig.Builder
avoiding the need to create one manually viaTracingConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totracingConfig(TracingConfig)
.- Parameters:
tracingConfig
- a consumer that will call methods onTracingConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
tracingConfig(TracingConfig)
-
revisionId
UpdateFunctionConfigurationRequest.Builder revisionId(String revisionId)
Update the function only 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.
- Parameters:
revisionId
- Update the function only 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
layers
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.
- Parameters:
layers
- A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
layers
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.
- Parameters:
layers
- A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileSystemConfigs
UpdateFunctionConfigurationRequest.Builder fileSystemConfigs(Collection<FileSystemConfig> fileSystemConfigs)
Connection settings for an Amazon EFS file system.
- Parameters:
fileSystemConfigs
- Connection settings for an Amazon EFS file system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileSystemConfigs
UpdateFunctionConfigurationRequest.Builder fileSystemConfigs(FileSystemConfig... fileSystemConfigs)
Connection settings for an Amazon EFS file system.
- Parameters:
fileSystemConfigs
- Connection settings for an Amazon EFS file system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileSystemConfigs
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 theFileSystemConfig.Builder
avoiding the need to create one manually viaFileSystemConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#fileSystemConfigs(List
.) - Parameters:
fileSystemConfigs
- a consumer that will call methods onFileSystemConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#fileSystemConfigs(java.util.Collection
)
-
imageConfig
UpdateFunctionConfigurationRequest.Builder imageConfig(ImageConfig imageConfig)
Container image configuration values that override the values in the container image Docker file.
- Parameters:
imageConfig
- Container image configuration values that override the values in the container image Docker file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageConfig
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 viaImageConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimageConfig(ImageConfig)
.- Parameters:
imageConfig
- a consumer that will call methods onImageConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
imageConfig(ImageConfig)
-
ephemeralStorage
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 10,240 MB. For more information, see Configuring ephemeral storage (console).- Parameters:
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 10,240 MB. For more information, see Configuring ephemeral storage (console).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ephemeralStorage
default UpdateFunctionConfigurationRequest.Builder ephemeralStorage(Consumer<EphemeralStorage.Builder> ephemeralStorage)
The size of the function's
This is a convenience method that creates an instance of the/tmp
directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).EphemeralStorage.Builder
avoiding the need to create one manually viaEphemeralStorage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toephemeralStorage(EphemeralStorage)
.- Parameters:
ephemeralStorage
- a consumer that will call methods onEphemeralStorage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ephemeralStorage(EphemeralStorage)
-
snapStart
UpdateFunctionConfigurationRequest.Builder snapStart(SnapStart snapStart)
The function's SnapStart setting.
- Parameters:
snapStart
- The function's SnapStart setting.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapStart
default UpdateFunctionConfigurationRequest.Builder snapStart(Consumer<SnapStart.Builder> snapStart)
The function's SnapStart setting.
This is a convenience method that creates an instance of theSnapStart.Builder
avoiding the need to create one manually viaSnapStart.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosnapStart(SnapStart)
.- Parameters:
snapStart
- a consumer that will call methods onSnapStart.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
snapStart(SnapStart)
-
loggingConfig
UpdateFunctionConfigurationRequest.Builder loggingConfig(LoggingConfig loggingConfig)
The function's Amazon CloudWatch Logs configuration settings.
- Parameters:
loggingConfig
- The function's Amazon CloudWatch Logs configuration settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loggingConfig
default UpdateFunctionConfigurationRequest.Builder loggingConfig(Consumer<LoggingConfig.Builder> loggingConfig)
The function's Amazon CloudWatch Logs configuration settings.
This is a convenience method that creates an instance of theLoggingConfig.Builder
avoiding the need to create one manually viaLoggingConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tologgingConfig(LoggingConfig)
.- Parameters:
loggingConfig
- a consumer that will call methods onLoggingConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
loggingConfig(LoggingConfig)
-
overrideConfiguration
UpdateFunctionConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateFunctionConfigurationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-