aws-cdk
Version:
CDK Toolkit, the command line tool for CDK apps
25 lines (24 loc) • 873 B
TypeScript
import type { CloudFormationStackArtifact, Environment } from '@aws-cdk/cx-api';
import type { SDK, SdkProvider } from '../aws-auth';
/**
* Configuration needed to monitor CloudWatch Log Groups
* found in a given CloudFormation Stack
*/
export interface FoundLogGroupsResult {
/**
* The resolved environment (account/region) that the log
* groups are deployed in
*/
readonly env: Environment;
/**
* The SDK that can be used to read events from the CloudWatch
* Log Groups in the given environment
*/
readonly sdk: SDK;
/**
* The names of the relevant CloudWatch Log Groups
* in the given CloudFormation template
*/
readonly logGroupNames: string[];
}
export declare function findCloudWatchLogGroups(sdkProvider: SdkProvider, stackArtifact: CloudFormationStackArtifact): Promise<FoundLogGroupsResult>;