truffle-ts API reference - v0.4.2
    Preparing search index...

    Interface LiveFinder

    A live backend that also answers region/spot queries. Methods beyond search are OPTIONAL extensions so the v0.1.0 Finder contract stays satisfiable by the bundled catalog. Capacity/quota/SageMaker methods land here later.

    interface LiveFinder {
        isLive: boolean;
        label: string;
        getEnabledRegions(): Promise<string[]>;
        getSpotPricing(
            instances: InstanceType[],
            opts: SpotOptions,
        ): Promise<SpotPriceResult[]>;
        search(matcher: RegExp, filters: FilterOptions): Promise<InstanceType[]>;
    }

    Hierarchy (View Summary)

    Index
    isLive: boolean

    Whether this hits real, billable AWS APIs — drives UI staleness warnings.

    label: string

    Human label for the active source: "bundled", "aws:us-east-1", "substrate".

    • Return instance types whose name matches matcher and that pass filters. The bundled impl runs this in-memory over the snapshot; a live impl fans out DescribeInstanceTypes across regions (as Go SearchInstanceTypes does).

      Parameters

      Returns Promise<InstanceType[]>