UNPKG

aws-cdk

Version:

AWS CDK Toolkit CLI, the command line tool for CDK apps

40 lines (39 loc) 1.19 kB
import { ProxyAgent } from 'proxy-agent'; import type { IoHelper } from '../api-private'; /** * Validate a proxy address up front. * * `proxy-agent` only rejects an address with a missing or unsupported protocol * lazily, on the first request, so without `-vvv` the CLI appears to hang or * fails later with a misleading error (e.g. missing credentials). Fail fast * here with an actionable message instead. */ export declare function validateProxyAddress(proxyAddress: string): void; /** * Options for proxy-agent SDKs */ interface ProxyAgentOptions { /** * Proxy address to use * * @default No proxy */ readonly proxyAddress?: string; /** * A path to a certificate bundle that contains a cert to be trusted. * * @default No certificate bundle */ readonly caBundlePath?: string; } export declare class ProxyAgentProvider { private readonly ioHelper; constructor(ioHelper: IoHelper); create(options: ProxyAgentOptions): Promise<ProxyAgent>; private tryGetCACert; /** * Find and return a CA certificate bundle path to be passed into the SDK. */ private caBundlePathFromEnvironment; } export {};