1 | import { IConstruct } from 'constructs';
|
2 | /**
|
3 | * Features that are implemented behind a flag in order to preserve backwards
|
4 | * compatibility for existing apps. The list of flags are available in the
|
5 | * `@aws-cdk/cx-api` module.
|
6 | *
|
7 | * The state of the flag for this application is stored as a CDK context variable.
|
8 | */
|
9 | export declare class FeatureFlags {
|
10 | private readonly construct;
|
11 | /**
|
12 | * Inspect feature flags on the construct node's context.
|
13 | */
|
14 | static of(scope: IConstruct): FeatureFlags;
|
15 | private constructor();
|
16 | /**
|
17 | * Check whether a feature flag is enabled. If configured, the flag is present in
|
18 | * the construct node context. Falls back to the defaults defined in the `cx-api`
|
19 | * module.
|
20 | */
|
21 | isEnabled(featureFlag: string): boolean | undefined;
|
22 | }
|