@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:54.641Z") public interface VersionOptions extends EventInvokeConfigOptions
Example:
Function fn = Function.Builder.create(this, "MyFunction") .currentVersionOptions(VersionOptions.builder() .removalPolicy(RemovalPolicy.RETAIN) // retain old versions .retryAttempts(1) .build()) .runtime(Runtime.NODEJS_16_X) .handler("index.handler") .code(Code.fromAsset(join(__dirname, "lambda-handler"))) .build(); fn.addAlias("live");
Modifier and Type | Interface and Description |
---|---|
static class |
VersionOptions.Builder
A builder for
VersionOptions |
static class |
VersionOptions.Jsii$Proxy
An implementation for
VersionOptions |
Modifier and Type | Method and Description |
---|---|
static VersionOptions.Builder |
builder() |
default java.lang.String |
getCodeSha256()
SHA256 of the version of the Lambda source code.
|
default java.lang.String |
getDescription()
Description of the version.
|
default java.lang.Number |
getProvisionedConcurrentExecutions()
Specifies a provisioned concurrency configuration for a function's version.
|
default RemovalPolicy |
getRemovalPolicy()
Whether to retain old versions of this function when a new version is created.
|
getMaxEventAge, getOnFailure, getOnSuccess, getRetryAttempts
default java.lang.String getCodeSha256()
Specify to validate that you're deploying the right version.
Default: No validation is performed
default java.lang.String getDescription()
Default: Description of the Lambda
default java.lang.Number getProvisionedConcurrentExecutions()
Default: No provisioned concurrency
default RemovalPolicy getRemovalPolicy()
Default: RemovalPolicy.DESTROY
static VersionOptions.Builder builder()
builder
in interface EventInvokeConfigOptions
VersionOptions.Builder
of VersionOptions