public static final class VersionProps.Builder
extends java.lang.Object
VersionProps
Constructor and Description |
---|
Builder() |
public VersionProps.Builder lambda(IFunction lambda)
VersionProps.getLambda()
lambda
- Function to get the value of. This parameter is required.this
public VersionProps.Builder codeSha256(java.lang.String codeSha256)
VersionOptions.getCodeSha256()
codeSha256
- SHA256 of the version of the Lambda source code.
Specify to validate that you're deploying the right version.this
public VersionProps.Builder description(java.lang.String description)
VersionOptions.getDescription()
description
- Description of the version.this
public VersionProps.Builder provisionedConcurrentExecutions(java.lang.Number provisionedConcurrentExecutions)
VersionOptions.getProvisionedConcurrentExecutions()
provisionedConcurrentExecutions
- Specifies a provisioned concurrency configuration for a function's version.this
public VersionProps.Builder removalPolicy(RemovalPolicy removalPolicy)
VersionOptions.getRemovalPolicy()
removalPolicy
- Whether to retain old versions of this function when a new version is created.this
public VersionProps.Builder maxEventAge(Duration maxEventAge)
EventInvokeConfigOptions.getMaxEventAge()
maxEventAge
- The maximum age of a request that Lambda sends to a function for processing.
Minimum: 60 seconds
Maximum: 6 hoursthis
public VersionProps.Builder onFailure(IDestination onFailure)
EventInvokeConfigOptions.getOnFailure()
onFailure
- The destination for failed invocations.this
public VersionProps.Builder onSuccess(IDestination onSuccess)
EventInvokeConfigOptions.getOnSuccess()
onSuccess
- The destination for successful invocations.this
public VersionProps.Builder retryAttempts(java.lang.Number retryAttempts)
EventInvokeConfigOptions.getRetryAttempts()
retryAttempts
- The maximum number of times to retry when the function returns an error.
Minimum: 0
Maximum: 2this
public VersionProps build()
VersionProps
java.lang.NullPointerException
- if any required attribute was not provided