@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-28T18:14:31.978Z") @Stability(value=Stable) public class FeatureFlags extends software.amazon.jsii.JsiiObject
The list of flags are available in the
@aws-cdk/cx-api
module.
The state of the flag for this application is stored as a CDK context variable.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.core.*; FeatureFlags featureFlags = FeatureFlags.of(this);
Modifier | Constructor and Description |
---|---|
protected |
FeatureFlags(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
FeatureFlags(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
Boolean |
isEnabled(String featureFlag)
Check whether a feature flag is enabled.
|
static FeatureFlags |
of(software.constructs.IConstruct scope)
Inspect feature flags on the construct node's context.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected FeatureFlags(software.amazon.jsii.JsiiObjectRef objRef)
protected FeatureFlags(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static FeatureFlags of(@NotNull software.constructs.IConstruct scope)
scope
- This parameter is required.@Stability(value=Stable) @Nullable public Boolean isEnabled(@NotNull String featureFlag)
If configured, the flag is present in
the construct node context. Falls back to the defaults defined in the cx-api
module.
featureFlag
- This parameter is required.Copyright © 2022. All rights reserved.