Interface CfnAliasProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAliasProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:24.213Z")
@Stability(Stable)
public interface CfnAliasProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnAlias.
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.*;
CfnAliasProps cfnAliasProps = CfnAliasProps.builder()
.functionName("functionName")
.functionVersion("functionVersion")
.name("name")
// the properties below are optional
.description("description")
.provisionedConcurrencyConfig(ProvisionedConcurrencyConfigurationProperty.builder()
.provisionedConcurrentExecutions(123)
.build())
.routingConfig(AliasRoutingConfigurationProperty.builder()
.additionalVersionWeights(List.of(VersionWeightProperty.builder()
.functionVersion("functionVersion")
.functionWeight(123)
.build()))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAliasPropsstatic final classAn implementation forCfnAliasProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnAliasProps.Builderbuilder()default StringA description of the alias.The name or ARN of the Lambda function.The function version that the alias invokes.getName()The name of the alias.default ObjectSpecifies a provisioned concurrency configuration for a function's alias.default ObjectThe routing configuration of the alias.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFunctionName
The name or ARN of the Lambda function.Name formats - Function name -
MyFunction.- Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:MyFunction. - Partial ARN -
123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
- See Also:
- Function ARN -
-
getFunctionVersion
The function version that the alias invokes.- See Also:
-
getName
The name of the alias.- See Also:
-
getDescription
A description of the alias.- See Also:
-
getProvisionedConcurrencyConfig
Specifies a provisioned concurrency configuration for a function's alias.Returns union: either
IResolvableorCfnAlias.ProvisionedConcurrencyConfigurationProperty- See Also:
-
getRoutingConfig
The routing configuration of the alias.Returns union: either
IResolvableorCfnAlias.AliasRoutingConfigurationProperty- See Also:
-
builder
- Returns:
- a
CfnAliasProps.BuilderofCfnAliasProps
-