Interface AwsLambdaFunctionDetails.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<AwsLambdaFunctionDetails.Builder,,- AwsLambdaFunctionDetails> - SdkBuilder<AwsLambdaFunctionDetails.Builder,,- AwsLambdaFunctionDetails> - SdkPojo
- Enclosing class:
- AwsLambdaFunctionDetails
- 
Method SummaryModifier 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.BuilderAnAwsLambdaFunctionCodeobject.code(AwsLambdaFunctionCode code) AnAwsLambdaFunctionCodeobject.codeSha256(String codeSha256) The SHA256 hash of the function's deployment package.default AwsLambdaFunctionDetails.BuilderdeadLetterConfig(Consumer<AwsLambdaFunctionDeadLetterConfig.Builder> deadLetterConfig) The function's dead letter queue.deadLetterConfig(AwsLambdaFunctionDeadLetterConfig deadLetterConfig) The function's dead letter queue.default AwsLambdaFunctionDetails.Builderenvironment(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.BuildertracingConfig(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.BuildervpcConfig(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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
codeAn AwsLambdaFunctionCodeobject.- Parameters:
- code- An- AwsLambdaFunctionCodeobject.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
codeAn 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 on- AwsLambdaFunctionCode.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
codeSha256The 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.
 
- 
deadLetterConfigAwsLambdaFunctionDetails.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.
 
- 
deadLetterConfigdefault 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 on- AwsLambdaFunctionDeadLetterConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
environmentThe 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.
 
- 
environmentdefault 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 on- AwsLambdaFunctionEnvironment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
functionNameThe 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.
 
- 
handlerThe 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.
 
- 
kmsKeyArnThe 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.
 
- 
lastModifiedIndicates 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.
 
- 
layersThe function's layers. - Parameters:
- layers- The function's layers.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
layersThe function's layers. - Parameters:
- layers- The function's layers.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
layersThe 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 tolayers(List<AwsLambdaFunctionLayer>).- Parameters:
- layers- a consumer that will call methods on- AwsLambdaFunctionLayer.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
masterArnFor 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.
 
- 
memorySizeThe 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.
 
- 
revisionIdThe 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.
 
- 
roleThe 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.
 
- 
runtimeThe 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.
 
- 
timeoutThe 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.
 
- 
tracingConfigThe 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.
 
- 
tracingConfigdefault 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 on- AwsLambdaFunctionTracingConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
vpcConfigThe 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.
 
- 
vpcConfigdefault 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 on- AwsLambdaFunctionVpcConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
versionThe 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.
 
- 
architecturesThe instruction set architecture that the function uses. Valid values are x86_64orarm64.- Parameters:
- architectures- The instruction set architecture that the function uses. Valid values are- x86_64or- arm64.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
architecturesThe instruction set architecture that the function uses. Valid values are x86_64orarm64.- Parameters:
- architectures- The instruction set architecture that the function uses. Valid values are- x86_64or- arm64.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
packageTypeThe 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 to- Imagefor a container image and- Zipfor a .zip file archive.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
 
-