Class CfnAliasPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnAliasPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:20:00.873Z")
@Stability(Stable)
public class CfnAliasPropsMixin
extends Mixin
implements software.constructs.IMixin
The
AWS::Lambda::Alias resource creates an alias for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version.
You can also map an alias to split invocation requests between two versions. Use the RoutingConfig parameter to specify a second version and the percentage of invocation requests that it receives.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.lambda.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnAliasPropsMixin cfnAliasPropsMixin = CfnAliasPropsMixin.Builder.create(CfnAliasMixinProps.builder()
.description("description")
.functionName("functionName")
.functionVersion("functionVersion")
.name("name")
.provisionedConcurrencyConfig(ProvisionedConcurrencyConfigurationProperty.builder()
.provisionedConcurrentExecutions(123)
.build())
.routingConfig(AliasRoutingConfigurationProperty.builder()
.additionalVersionWeights(List.of(VersionWeightProperty.builder()
.functionVersion("functionVersion")
.functionWeight(123)
.build()))
.build())
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe traffic-shifting configuration of a Lambda function alias.static final classA fluent builder forCfnAliasPropsMixin.static interfaceA provisioned concurrency configuration for a function's alias.static interfaceThe traffic-shifting configuration of a Lambda function alias.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::Lambda::Alias.CfnAliasPropsMixin(CfnAliasMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Lambda::Alias.protectedCfnAliasPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAliasPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnAliasMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnAliasPropsMixin
protected CfnAliasPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAliasPropsMixin
protected CfnAliasPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAliasPropsMixin
@Stability(Stable) public CfnAliasPropsMixin(@NotNull CfnAliasMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Lambda::Alias.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnAliasPropsMixin
Create a mixin to apply properties toAWS::Lambda::Alias.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-