Interface AwsLambdaFunctionDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsLambdaFunctionDetails.Builder,AwsLambdaFunctionDetails>,SdkBuilder<AwsLambdaFunctionDetails.Builder,AwsLambdaFunctionDetails>,SdkPojo
- Enclosing class:
- AwsLambdaFunctionDetails
public static interface AwsLambdaFunctionDetails.Builder extends SdkPojo, CopyableBuilder<AwsLambdaFunctionDetails.Builder,AwsLambdaFunctionDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AwsLambdaFunctionDetails.Builderarchitectures(String... architectures)The instruction set architecture that the function uses.AwsLambdaFunctionDetails.Builderarchitectures(Collection<String> architectures)The instruction set architecture that the function uses.default AwsLambdaFunctionDetails.Buildercode(Consumer<AwsLambdaFunctionCode.Builder> code)AnAwsLambdaFunctionCodeobject.AwsLambdaFunctionDetails.Buildercode(AwsLambdaFunctionCode code)AnAwsLambdaFunctionCodeobject.AwsLambdaFunctionDetails.BuildercodeSha256(String codeSha256)The SHA256 hash of the function's deployment package.default AwsLambdaFunctionDetails.BuilderdeadLetterConfig(Consumer<AwsLambdaFunctionDeadLetterConfig.Builder> deadLetterConfig)The function's dead letter queue.AwsLambdaFunctionDetails.BuilderdeadLetterConfig(AwsLambdaFunctionDeadLetterConfig deadLetterConfig)The function's dead letter queue.default AwsLambdaFunctionDetails.Builderenvironment(Consumer<AwsLambdaFunctionEnvironment.Builder> environment)The function's environment variables.AwsLambdaFunctionDetails.Builderenvironment(AwsLambdaFunctionEnvironment environment)The function's environment variables.AwsLambdaFunctionDetails.BuilderfunctionName(String functionName)The name of the function.AwsLambdaFunctionDetails.Builderhandler(String handler)The function that Lambda calls to begin executing your function.AwsLambdaFunctionDetails.BuilderkmsKeyArn(String kmsKeyArn)The KMS key that is used to encrypt the function's environment variables.AwsLambdaFunctionDetails.BuilderlastModified(String lastModified)Indicates when the function was last updated.AwsLambdaFunctionDetails.Builderlayers(Collection<AwsLambdaFunctionLayer> layers)The function's layers.AwsLambdaFunctionDetails.Builderlayers(Consumer<AwsLambdaFunctionLayer.Builder>... layers)The function's layers.AwsLambdaFunctionDetails.Builderlayers(AwsLambdaFunctionLayer... layers)The function's layers.AwsLambdaFunctionDetails.BuildermasterArn(String masterArn)For Lambda@Edge functions, the ARN of the master function.AwsLambdaFunctionDetails.BuildermemorySize(Integer memorySize)The memory that is allocated to the function.AwsLambdaFunctionDetails.BuilderpackageType(String packageType)The type of deployment package that's used to deploy the function code to Lambda.AwsLambdaFunctionDetails.BuilderrevisionId(String revisionId)The latest updated revision of the function or alias.AwsLambdaFunctionDetails.Builderrole(String role)The function's execution role.AwsLambdaFunctionDetails.Builderruntime(String runtime)The runtime environment for the Lambda function.AwsLambdaFunctionDetails.Buildertimeout(Integer timeout)The amount of time that Lambda allows a function to run before stopping it.default AwsLambdaFunctionDetails.BuildertracingConfig(Consumer<AwsLambdaFunctionTracingConfig.Builder> tracingConfig)The function's X-Ray tracing configuration.AwsLambdaFunctionDetails.BuildertracingConfig(AwsLambdaFunctionTracingConfig tracingConfig)The function's X-Ray tracing configuration.AwsLambdaFunctionDetails.Builderversion(String version)The version of the Lambda function.default AwsLambdaFunctionDetails.BuildervpcConfig(Consumer<AwsLambdaFunctionVpcConfig.Builder> vpcConfig)The function's networking configuration.AwsLambdaFunctionDetails.BuildervpcConfig(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
code
AwsLambdaFunctionDetails.Builder code(AwsLambdaFunctionCode code)
An
AwsLambdaFunctionCodeobject.- Parameters:
code- AnAwsLambdaFunctionCodeobject.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
code
default AwsLambdaFunctionDetails.Builder code(Consumer<AwsLambdaFunctionCode.Builder> code)
An
This is a convenience method that creates an instance of theAwsLambdaFunctionCodeobject.AwsLambdaFunctionCode.Builderavoiding the need to create one manually viaAwsLambdaFunctionCode.builder().When the
Consumercompletes,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:
code(AwsLambdaFunctionCode)
-
codeSha256
AwsLambdaFunctionDetails.Builder codeSha256(String 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.Builderavoiding the need to create one manually viaAwsLambdaFunctionDeadLetterConfig.builder().When the
Consumercompletes,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:
deadLetterConfig(AwsLambdaFunctionDeadLetterConfig)
-
environment
AwsLambdaFunctionDetails.Builder environment(AwsLambdaFunctionEnvironment 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.Builderavoiding the need to create one manually viaAwsLambdaFunctionEnvironment.builder().When the
Consumercompletes,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:
environment(AwsLambdaFunctionEnvironment)
-
functionName
AwsLambdaFunctionDetails.Builder functionName(String 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
AwsLambdaFunctionDetails.Builder handler(String 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
AwsLambdaFunctionDetails.Builder kmsKeyArn(String 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
AwsLambdaFunctionDetails.Builder lastModified(String lastModified)
Indicates when the function was last updated.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Parameters:
lastModified- Indicates when the function was last updated.For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
layers
AwsLambdaFunctionDetails.Builder layers(Collection<AwsLambdaFunctionLayer> 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
AwsLambdaFunctionDetails.Builder layers(AwsLambdaFunctionLayer... 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
AwsLambdaFunctionDetails.Builder layers(Consumer<AwsLambdaFunctionLayer.Builder>... layers)
The function's layers.
This is a convenience method that creates an instance of theAwsLambdaFunctionLayer.Builderavoiding the need to create one manually viaAwsLambdaFunctionLayer.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#layers(List.) - 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:
#layers(java.util.Collection)
-
masterArn
AwsLambdaFunctionDetails.Builder masterArn(String 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
AwsLambdaFunctionDetails.Builder memorySize(Integer 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
AwsLambdaFunctionDetails.Builder revisionId(String 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
AwsLambdaFunctionDetails.Builder role(String 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
AwsLambdaFunctionDetails.Builder runtime(String 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
AwsLambdaFunctionDetails.Builder timeout(Integer 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
AwsLambdaFunctionDetails.Builder tracingConfig(AwsLambdaFunctionTracingConfig 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.Builderavoiding the need to create one manually viaAwsLambdaFunctionTracingConfig.builder().When the
Consumercompletes,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:
tracingConfig(AwsLambdaFunctionTracingConfig)
-
vpcConfig
AwsLambdaFunctionDetails.Builder vpcConfig(AwsLambdaFunctionVpcConfig 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.Builderavoiding the need to create one manually viaAwsLambdaFunctionVpcConfig.builder().When the
Consumercompletes,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:
vpcConfig(AwsLambdaFunctionVpcConfig)
-
version
AwsLambdaFunctionDetails.Builder version(String 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
AwsLambdaFunctionDetails.Builder architectures(Collection<String> architectures)
The instruction set architecture that the function uses. Valid values are
x86_64orarm64.- Parameters:
architectures- The instruction set architecture that the function uses. Valid values arex86_64orarm64.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
architectures
AwsLambdaFunctionDetails.Builder architectures(String... architectures)
The instruction set architecture that the function uses. Valid values are
x86_64orarm64.- Parameters:
architectures- The instruction set architecture that the function uses. Valid values arex86_64orarm64.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageType
AwsLambdaFunctionDetails.Builder packageType(String packageType)
The type of deployment package that's used to deploy the function code to Lambda. Set to
Imagefor a container image andZipfor a .zip file archive.- Parameters:
packageType- The type of deployment package that's used to deploy the function code to Lambda. Set toImagefor a container image andZipfor a .zip file archive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-