import { IListener } from 'aws-cdk-lib/aws-elasticloadbalancingv2'; import { Construct } from 'constructs'; /** * Construction properties of ListenerNextAvailablePriority. */ export interface ListenerNextAvailablePriorityProps { /** * The listener to retrieve the next available priority from */ readonly listener: IListener; } /** * Get the next available priority for a listener. Useful when constructing listener rules * that target a specific hostname. You may not want to have to manage setting the priority * yourself since it's currently a required field. * * Caveat: This uses a custom resource to look up the next available priority using the AWS SDK. * It currently only supports getting one priority at a time -- if you are creating multiple rules * in the same context, you may need to create dependencies between the constructs to ensure rules * are added in sequence. * * */ export declare class ListenerNextAvailablePriority extends Construct { /** The next available priority */ readonly nextPriority: number; constructor(scope: Construct, id: string, props: ListenerNextAvailablePriorityProps); }