@almamedia-open-source/cdk-project-target
Version:
 
40 lines (39 loc) • 843 B
TypeScript
import { Construct } from 'constructs';
/**
* @experimental
*/
export declare class AccountContext {
/**
* @experimental
*/
static getAccountId(scope: Construct): string;
/**
* @experimental
*/
static getAccountConfig(scope: Construct, key: string): any;
/**
* @experimental
*/
static getAccountType(scope: Construct): string;
/**
* @experimental
*/
static isMock(scope: Construct): boolean;
/**
* @experimental
*/
static isShared(scope: Construct): boolean;
/**
* @experimental
*/
static isDev(scope: Construct): boolean;
/**
* @experimental
*/
static isPreProd(scope: Construct): boolean;
/**
* @experimental
*/
static isProd(scope: Construct): boolean;
private static isAccountTypeMatch;
}