Interface AliasOptions
- All Superinterfaces:
EventInvokeConfigOptions
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
AliasProps
- All Known Implementing Classes:
AliasOptions.Jsii$Proxy
,AliasProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.548Z")
@Stability(Stable)
public interface AliasOptions
extends software.amazon.jsii.JsiiSerializable, EventInvokeConfigOptions
Options for
lambda.Alias
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.lambda.*; import software.amazon.awscdk.core.*; IDestination destination; Version version; AliasOptions aliasOptions = AliasOptions.builder() .additionalVersions(List.of(VersionWeight.builder() .version(version) .weight(123) .build())) .description("description") .maxEventAge(Duration.minutes(30)) .onFailure(destination) .onSuccess(destination) .provisionedConcurrentExecutions(123) .retryAttempts(123) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAliasOptions
static final class
An implementation forAliasOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic AliasOptions.Builder
builder()
default List<VersionWeight>
Additional versions with individual weights this alias points to.default String
Description for the alias.default Number
Specifies a provisioned concurrency configuration for a function's alias.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
-
getAdditionalVersions
Additional versions with individual weights this alias points to.Individual additional version weights specified here should add up to (less than) one. All remaining weight is routed to the default version.
For example, the config is
version: "1" additionalVersions: [{ version: "2", weight: 0.05 }]
Then 5% of traffic will be routed to function version 2, while the remaining 95% of traffic will be routed to function version 1.
Default: No additional versions
-
getDescription
Description for the alias.Default: No description
-
getProvisionedConcurrentExecutions
Specifies a provisioned concurrency configuration for a function's alias.Default: No provisioned concurrency
-
builder
- Returns:
- a
AliasOptions.Builder
ofAliasOptions
-