24 lines
833 B
TypeScript
24 lines
833 B
TypeScript
import { ArgumentsCamelCase } from 'yargs';
|
|
import { Printer } from '@aws-amplify/cli-core';
|
|
/**
|
|
* Contains middleware functions.
|
|
*/
|
|
export declare class CommandMiddleware {
|
|
private readonly printer;
|
|
/**
|
|
* Creates command middleware.
|
|
*/
|
|
constructor(printer: Printer);
|
|
/**
|
|
* Ensure AWS credentials and region of the input profile (or 'default' if undefined) are available in the provider chain.
|
|
* If the input profile is defined, the environment variable AWS_PROFILE will be set accordingly.
|
|
*/
|
|
ensureAwsCredentialAndRegion: <T extends {
|
|
profile: string | undefined;
|
|
}>(argv: ArgumentsCamelCase<T>) => Promise<void>;
|
|
/**
|
|
* Maps one environment variable name to the other
|
|
*/
|
|
private mapEnvironmentVariables;
|
|
}
|
|
//# sourceMappingURL=command_middleware.d.ts.map
|