UNPKG

928 BTypeScriptView Raw
1import { Destination } from './destination-service-types';
2import type { DestinationOptions } from './destination-accessor';
3/**
4 * Retrieves a destination with the given name from the Cloud Foundry destination service.
5 * Returns `null`, if no destination can be found.
6 * Requires the following service bindings: destination, XSUAA
7 * By default, selects subscriber over provider and instance over subaccount destinations.
8 *
9 * If the destinations are read from the environment, the jwt will be ignored.
10 * @param name - The name of the destination to be retrieved.
11 * @param options - Configuration for how to retrieve destinations from the destination service.
12 * @returns A promise returning the requested destination on success.
13 */
14export declare function getDestinationFromDestinationService(name: string, options: DestinationOptions): Promise<Destination | null>;
15//# sourceMappingURL=destination-from-service.d.ts.map
\No newline at end of file