@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:44.010Z") public interface AliasProps extends AliasOptions
Example:
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() |
java.lang.String |
getAliasName()
Name of this alias.
|
IVersion |
getVersion()
Function version this alias refers to.
|
getAdditionalVersions, getDescription, getProvisionedConcurrentExecutions
getMaxEventAge, getOnFailure, getOnSuccess, getRetryAttempts
java.lang.String getAliasName()
IVersion getVersion()
Use lambda.currentVersion to reference a version with your latest changes.
static AliasProps.Builder builder()
builder
in interface AliasOptions
builder
in interface EventInvokeConfigOptions
AliasProps.Builder
of AliasProps