public static final class VersionOptions.Builder
extends java.lang.Object
VersionOptions
Constructor and Description |
---|
Builder() |
public VersionOptions.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 VersionOptions.Builder description(java.lang.String description)
VersionOptions.getDescription()
description
- Description of the version.this
public VersionOptions.Builder provisionedConcurrentExecutions(java.lang.Number provisionedConcurrentExecutions)
VersionOptions.getProvisionedConcurrentExecutions()
provisionedConcurrentExecutions
- Specifies a provisioned concurrency configuration for a function's version.this
public VersionOptions.Builder removalPolicy(RemovalPolicy removalPolicy)
VersionOptions.getRemovalPolicy()
removalPolicy
- Whether to retain old versions of this function when a new version is created.this
public VersionOptions.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 VersionOptions.Builder onFailure(IDestination onFailure)
EventInvokeConfigOptions.getOnFailure()
onFailure
- The destination for failed invocations.this
public VersionOptions.Builder onSuccess(IDestination onSuccess)
EventInvokeConfigOptions.getOnSuccess()
onSuccess
- The destination for successful invocations.this
public VersionOptions.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 VersionOptions build()
VersionOptions
java.lang.NullPointerException
- if any required attribute was not provided