UNPKG

@aws-cdk/integ-runner

Version:

CDK Integration Testing Tool

37 lines 1.11 kB
import { ProxyAgent } from 'proxy-agent'; /** * Options for creating a proxy agent */ export interface ProxyAgentOptions { /** * Proxy address to use * * @default - ProxyAgent auto-detects from environment variables */ readonly proxyAddress?: string; /** * A path to a certificate bundle that contains a cert to be trusted. * * @default - reads from AWS_CA_BUNDLE environment variable */ readonly caBundlePath?: string; } /** * Cached provider for proxy-aware HTTP agents. * * Reuses the same ProxyAgent instance for identical configurations * to avoid creating multiple agents across engine instances. */ export declare class ProxyAgentProvider { /** * Get or create a ProxyAgent for the given options. * Returns a cached instance if one already exists for the same configuration. */ static getOrCreate(options?: ProxyAgentOptions): ProxyAgent; /** * Clear the cache. Intended for testing only. */ static clearCache(): void; private static readonly cache; } //# sourceMappingURL=proxy-agent.d.ts.map