Interface AliasProps
- All Superinterfaces:
AliasOptions
,EventInvokeConfigOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AliasProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.549Z")
@Stability(Stable)
public interface AliasProps
extends software.amazon.jsii.JsiiSerializable, AliasOptions
Properties for a new Lambda alias.
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAliasProps
static final class
An implementation forAliasProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic AliasProps.Builder
builder()
Name of this alias.Function version this alias refers to.Methods inherited from interface software.amazon.awscdk.services.lambda.AliasOptions
getAdditionalVersions, getDescription, getProvisionedConcurrentExecutions
Methods inherited from interface software.amazon.awscdk.services.lambda.EventInvokeConfigOptions
getMaxEventAge, getOnFailure, getOnSuccess, getRetryAttempts
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAliasName
Name of this alias. -
getVersion
Function version this alias refers to.Use lambda.currentVersion to reference a version with your latest changes.
-
builder
- Returns:
- a
AliasProps.Builder
ofAliasProps
-