Interface AwsLambdaFunctionDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsLambdaFunctionDetails.Builder,
,AwsLambdaFunctionDetails> SdkBuilder<AwsLambdaFunctionDetails.Builder,
,AwsLambdaFunctionDetails> SdkPojo
- Enclosing class:
AwsLambdaFunctionDetails
-
Method Summary
Modifier and TypeMethodDescriptionarchitectures
(String... architectures) The instruction set architecture that the function uses.architectures
(Collection<String> architectures) The instruction set architecture that the function uses.default AwsLambdaFunctionDetails.Builder
AnAwsLambdaFunctionCode
object.code
(AwsLambdaFunctionCode code) AnAwsLambdaFunctionCode
object.codeSha256
(String codeSha256) The SHA256 hash of the function's deployment package.default AwsLambdaFunctionDetails.Builder
deadLetterConfig
(Consumer<AwsLambdaFunctionDeadLetterConfig.Builder> deadLetterConfig) The function's dead letter queue.deadLetterConfig
(AwsLambdaFunctionDeadLetterConfig deadLetterConfig) The function's dead letter queue.default AwsLambdaFunctionDetails.Builder
environment
(Consumer<AwsLambdaFunctionEnvironment.Builder> environment) The function's environment variables.environment
(AwsLambdaFunctionEnvironment environment) The function's environment variables.functionName
(String functionName) The name of the function.The function that Lambda calls to begin executing your function.The KMS key that is used to encrypt the function's environment variables.lastModified
(String lastModified) Indicates when the function was last updated.layers
(Collection<AwsLambdaFunctionLayer> layers) The function's layers.layers
(Consumer<AwsLambdaFunctionLayer.Builder>... layers) The function's layers.layers
(AwsLambdaFunctionLayer... layers) The function's layers.For Lambda@Edge functions, the ARN of the master function.memorySize
(Integer memorySize) The memory that is allocated to the function.packageType
(String packageType) The type of deployment package that's used to deploy the function code to Lambda.revisionId
(String revisionId) The latest updated revision of the function or alias.The function's execution role.The runtime environment for the Lambda function.The amount of time that Lambda allows a function to run before stopping it.default AwsLambdaFunctionDetails.Builder
tracingConfig
(Consumer<AwsLambdaFunctionTracingConfig.Builder> tracingConfig) The function's X-Ray tracing configuration.tracingConfig
(AwsLambdaFunctionTracingConfig tracingConfig) The function's X-Ray tracing configuration.The version of the Lambda function.default AwsLambdaFunctionDetails.Builder
vpcConfig
(Consumer<AwsLambdaFunctionVpcConfig.Builder> vpcConfig) The function's networking configuration.vpcConfig
(AwsLambdaFunctionVpcConfig vpcConfig) The function's networking configuration.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
code
An
AwsLambdaFunctionCode
object.- Parameters:
code
- AnAwsLambdaFunctionCode
object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
code
An
This is a convenience method that creates an instance of theAwsLambdaFunctionCode
object.AwsLambdaFunctionCode.Builder
avoiding the need to create one manually viaAwsLambdaFunctionCode.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocode(AwsLambdaFunctionCode)
.- Parameters:
code
- a consumer that will call methods onAwsLambdaFunctionCode.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
codeSha256
The SHA256 hash of the function's deployment package.
- Parameters:
codeSha256
- The SHA256 hash of the function's deployment package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deadLetterConfig
AwsLambdaFunctionDetails.Builder deadLetterConfig(AwsLambdaFunctionDeadLetterConfig deadLetterConfig) The function's dead letter queue.
- Parameters:
deadLetterConfig
- The function's dead letter queue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deadLetterConfig
default AwsLambdaFunctionDetails.Builder deadLetterConfig(Consumer<AwsLambdaFunctionDeadLetterConfig.Builder> deadLetterConfig) The function's dead letter queue.
This is a convenience method that creates an instance of theAwsLambdaFunctionDeadLetterConfig.Builder
avoiding the need to create one manually viaAwsLambdaFunctionDeadLetterConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeadLetterConfig(AwsLambdaFunctionDeadLetterConfig)
.- Parameters:
deadLetterConfig
- a consumer that will call methods onAwsLambdaFunctionDeadLetterConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
environment
The function's environment variables.
- Parameters:
environment
- The function's environment variables.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
default AwsLambdaFunctionDetails.Builder environment(Consumer<AwsLambdaFunctionEnvironment.Builder> environment) The function's environment variables.
This is a convenience method that creates an instance of theAwsLambdaFunctionEnvironment.Builder
avoiding the need to create one manually viaAwsLambdaFunctionEnvironment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toenvironment(AwsLambdaFunctionEnvironment)
.- Parameters:
environment
- a consumer that will call methods onAwsLambdaFunctionEnvironment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
functionName
The name of the function.
- Parameters:
functionName
- The name of the function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
handler
The function that Lambda calls to begin executing your function.
- Parameters:
handler
- The function that Lambda calls to begin executing your function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyArn
The KMS key that is used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed customer managed key.
- Parameters:
kmsKeyArn
- The KMS key that is used to encrypt the function's environment variables. This key is only returned if you've configured a customer managed customer managed key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModified
Indicates when the function was last updated.
This field accepts only the specified formats. Timestamps can end with
Z
or("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ
(for example,2019-01-31T23:00:00Z
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example,2019-01-31T23:00:00.123456789Z
) -
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example,2024-01-04T15:25:10+17:59
) -
YYYY-MM-DDTHH:MM:SS-HHMM
(for example,2024-01-04T15:25:10-1759
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,2024-01-04T15:25:10.123456789+17:59
)
- Parameters:
lastModified
- Indicates when the function was last updated.This field accepts only the specified formats. Timestamps can end with
Z
or("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ
(for example,2019-01-31T23:00:00Z
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example,2019-01-31T23:00:00.123456789Z
) -
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example,2024-01-04T15:25:10+17:59
) -
YYYY-MM-DDTHH:MM:SS-HHMM
(for example,2024-01-04T15:25:10-1759
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,2024-01-04T15:25:10.123456789+17:59
)
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
layers
The function's layers.
- Parameters:
layers
- The function's layers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
layers
The function's layers.
- Parameters:
layers
- The function's layers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
layers
The function's layers.
This is a convenience method that creates an instance of theAwsLambdaFunctionLayer.Builder
avoiding the need to create one manually viaAwsLambdaFunctionLayer.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolayers(List<AwsLambdaFunctionLayer>)
.- Parameters:
layers
- a consumer that will call methods onAwsLambdaFunctionLayer.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
masterArn
For Lambda@Edge functions, the ARN of the master function.
- Parameters:
masterArn
- For Lambda@Edge functions, the ARN of the master function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memorySize
The memory that is allocated to the function.
- Parameters:
memorySize
- The memory that is allocated to the function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
revisionId
The latest updated revision of the function or alias.
- Parameters:
revisionId
- The latest updated revision of the function or alias.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
role
The function's execution role.
- Parameters:
role
- The function's execution role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runtime
The runtime environment for the Lambda function.
- Parameters:
runtime
- The runtime environment for the Lambda function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeout
The amount of time that Lambda allows a function to run before stopping it.
- Parameters:
timeout
- The amount of time that Lambda allows a function to run before stopping it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tracingConfig
The function's X-Ray tracing configuration.
- Parameters:
tracingConfig
- The function's X-Ray tracing configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tracingConfig
default AwsLambdaFunctionDetails.Builder tracingConfig(Consumer<AwsLambdaFunctionTracingConfig.Builder> tracingConfig) The function's X-Ray tracing configuration.
This is a convenience method that creates an instance of theAwsLambdaFunctionTracingConfig.Builder
avoiding the need to create one manually viaAwsLambdaFunctionTracingConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totracingConfig(AwsLambdaFunctionTracingConfig)
.- Parameters:
tracingConfig
- a consumer that will call methods onAwsLambdaFunctionTracingConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vpcConfig
The function's networking configuration.
- Parameters:
vpcConfig
- The function's networking configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
default AwsLambdaFunctionDetails.Builder vpcConfig(Consumer<AwsLambdaFunctionVpcConfig.Builder> vpcConfig) The function's networking configuration.
This is a convenience method that creates an instance of theAwsLambdaFunctionVpcConfig.Builder
avoiding the need to create one manually viaAwsLambdaFunctionVpcConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovpcConfig(AwsLambdaFunctionVpcConfig)
.- Parameters:
vpcConfig
- a consumer that will call methods onAwsLambdaFunctionVpcConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
version
The version of the Lambda function.
- Parameters:
version
- The version of the Lambda function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
architectures
The instruction set architecture that the function uses. Valid values are
x86_64
orarm64
.- Parameters:
architectures
- The instruction set architecture that the function uses. Valid values arex86_64
orarm64
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
architectures
The instruction set architecture that the function uses. Valid values are
x86_64
orarm64
.- Parameters:
architectures
- The instruction set architecture that the function uses. Valid values arex86_64
orarm64
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageType
The type of deployment package that's used to deploy the function code to Lambda. Set to
Image
for a container image andZip
for a .zip file archive.- Parameters:
packageType
- The type of deployment package that's used to deploy the function code to Lambda. Set toImage
for a container image andZip
for a .zip file archive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-