@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.376Z") @Stability(value=Stable) public interface AliasProps extends software.amazon.jsii.JsiiSerializable, AliasOptions
Example:
// Example automatically generated from non-compiling source. May contain errors.
CfnParametersCode lambdaCode = Code.fromCfnParameters();
Function func = Function.Builder.create(this, "Lambda")
.code(lambdaCode)
.handler("index.handler")
.runtime(Runtime.NODEJS_14_X)
.build();
// used to make sure each CDK synthesis produces a different Version
Version version = func.getCurrentVersion();
Alias alias = Alias.Builder.create(this, "LambdaAlias")
.aliasName("Prod")
.version(version)
.build();
LambdaDeploymentGroup.Builder.create(this, "DeploymentGroup")
.alias(alias)
.deploymentConfig(LambdaDeploymentConfig.LINEAR_10PERCENT_EVERY_1MINUTE)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
AliasProps.Builder
A builder for
AliasProps |
static class |
AliasProps.Jsii$Proxy
An implementation for
AliasProps |
| Modifier and Type | Method and Description |
|---|---|
static AliasProps.Builder |
builder() |
String |
getAliasName()
Name of this alias.
|
IVersion |
getVersion()
Function version this alias refers to.
|
getAdditionalVersions, getDescription, getProvisionedConcurrentExecutionsgetMaxEventAge, getOnFailure, getOnSuccess, getRetryAttempts@Stability(value=Stable) @NotNull String getAliasName()
@Stability(value=Stable) @NotNull IVersion getVersion()
Use lambda.currentVersion to reference a version with your latest changes.
@Stability(value=Stable) static AliasProps.Builder builder()
builder in interface AliasOptionsbuilder in interface EventInvokeConfigOptionsAliasProps.Builder of AliasPropsCopyright © 2022. All rights reserved.