@wheatstalk/aws-cdk-exec
Version:
An AWS CDK Cloud Assembly-aware command to help find and execute lambda functions and state machines
53 lines (52 loc) • 1.24 kB
TypeScript
#!/usr/bin/env node
import { MetadataMatch, TagsMatch } from '../find-matching-resources';
export interface CdkExecOptions {
/**
* App directory.
*/
readonly app: string;
/**
* Execute all matches rather than erroring on ambiguity
*/
readonly all: string;
/**
* Path of the construct to execute.
*/
readonly constructPath?: string;
/**
* Match records with the given metadata
*/
readonly metadata?: MetadataMatch;
/**
* Match records with the given tags
*/
readonly tags?: TagsMatch;
/**
* Execution input.
*/
readonly input?: string;
/**
* Show output.
*/
readonly showOutput: boolean;
}
export declare function cdkExec(options: CdkExecOptions): Promise<number>;
export interface ExportEnv {
/**
* App directory.
*/
readonly app: string;
/**
* Path of the construct to execute.
*/
readonly constructPath?: string;
/**
* Match records with the given metadata
*/
readonly metadata?: MetadataMatch;
/**
* Match records with the given tags
*/
readonly tags?: TagsMatch;
}
export declare function exportEnv(options: ExportEnv): Promise<number>;