GradientEdge CDK Utils
    Preparing search index...
    interface LambdaAliasProps {
        additionalVersions?: VersionWeight[];
        aliasName: string;
        description?: string;
        id?: string;
        maxEventAge?: Duration;
        onFailure?: IDestination;
        onSuccess?: IDestination;
        provisionedConcurrency?: ProvisionedConcurrencyProps;
        provisionedConcurrentExecutions?: number;
        retryAttempts?: number;
        version: IVersion;
    }

    Hierarchy

    • AliasProps
      • LambdaAliasProps
    Index

    Properties

    additionalVersions?: VersionWeight[]

    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.

    No additional versions
    
    aliasName: string

    Name of this alias

    description?: string

    Description for the alias

    No description
    
    id?: string
    maxEventAge?: Duration

    The maximum age of a request that Lambda sends to a function for processing.

    Minimum: 60 seconds Maximum: 6 hours

    Duration.hours(6)
    
    onFailure?: IDestination

    The destination for failed invocations.

    - no destination
    
    onSuccess?: IDestination

    The destination for successful invocations.

    - no destination
    
    provisionedConcurrency?: ProvisionedConcurrencyProps
    provisionedConcurrentExecutions?: number

    Specifies a provisioned concurrency configuration for a function's alias.

    No provisioned concurrency
    
    retryAttempts?: number

    The maximum number of times to retry when the function returns an error.

    Minimum: 0 Maximum: 2

    2
    
    version: IVersion

    Function version this alias refers to

    Use lambda.currentVersion to reference a version with your latest changes.