Interface CfnAliasProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnAliasProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.566Z") @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();
 
  • Method Details

    • getFunctionName

      @Stability(Stable) @NotNull String getFunctionName()
      The name 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.

    • getFunctionVersion

      @Stability(Stable) @NotNull String getFunctionVersion()
      The function version that the alias invokes.
    • getName

      @Stability(Stable) @NotNull String getName()
      The name of the alias.
    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      A description of the alias.
    • getProvisionedConcurrencyConfig

      @Stability(Stable) @Nullable default Object getProvisionedConcurrencyConfig()
      Specifies a provisioned concurrency configuration for a function's alias.
    • getRoutingConfig

      @Stability(Stable) @Nullable default Object getRoutingConfig()
      The routing configuration of the alias.
    • builder

      @Stability(Stable) static CfnAliasProps.Builder builder()
      Returns:
      a CfnAliasProps.Builder of CfnAliasProps