UNPKG

@almamedia-open-source/cdk-project-target

Version:

![CDK Version](https://img.shields.io/badge/CDK-v2-informational "CDK v2") ![Stability](https://img.shields.io/badge/Stability-Experimental-yellow "Stability: Experimental")

40 lines (39 loc) 843 B
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; }