FeatureFlagReportProperties Struct
Artifact properties for a feature flag report.
A feature flag report is small enough that all the properties can be inlined here, and doesn't need an additional file.
| Source | lib/cloud-assembly/artifact-schema.ts |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cloud_assembly_schema } from 'aws-cdk-lib';
declare const recommendedValue: any;
declare const userValue: any;
declare const v1: any;
declare const v2: any;
const featureFlagReportProperties: cloud_assembly_schema.FeatureFlagReportProperties = {
flags: {
flagsKey: {
explanation: 'explanation',
recommendedValue: recommendedValue,
unconfiguredBehavesLike: {
v1: v1,
v2: v2,
},
userValue: userValue,
},
},
module: 'module',
};
python
from aws_cdk.cloud_assembly_schema import FeatureFlagReportProperties, FeatureFlag, UnconfiguredBehavesLike
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import cloud_assembly_schema
# recommended_value: Any
# user_value: Any
# v1: Any
# v2: Any
feature_flag_report_properties = FeatureFlagReportProperties(
flags={
"flags_key": FeatureFlag(
explanation="explanation",
recommended_value=recommended_value,
unconfigured_behaves_like=UnconfiguredBehavesLike(
v1=v1,
v2=v2
),
user_value=user_value
)
},
module="module"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cloud_assembly_schema.*;
Object recommendedValue;
Object userValue;
Object v1;
Object v2;
FeatureFlagReportProperties featureFlagReportProperties = FeatureFlagReportProperties.builder()
.flags(Map.of(
"flagsKey", FeatureFlag.builder()
.explanation("explanation")
.recommendedValue(recommendedValue)
.unconfiguredBehavesLike(UnconfiguredBehavesLike.builder()
.v1(v1)
.v2(v2)
.build())
.userValue(userValue)
.build()))
.module("module")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Cloud_assembly_schema;
var recommendedValue;
var userValue;
var v1;
var v2;
var featureFlagReportProperties = new FeatureFlagReportProperties {
Flags = new Dictionary<string, FeatureFlag> {
{ "flagsKey", new FeatureFlag {
Explanation = "explanation",
RecommendedValue = recommendedValue,
UnconfiguredBehavesLike = new UnconfiguredBehavesLike {
V1 = v1,
V2 = v2
},
UserValue = userValue
} }
},
Module = "module"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var recommendedValue interface{}
var userValue interface{}
var v1 interface{}
var v2 interface{}
featureFlagReportProperties := &FeatureFlagReportProperties{
Flags: map[string]FeatureFlag{
"flagsKey": &FeatureFlag{
"explanation": jsii.String("explanation"),
"recommendedValue": recommendedValue,
"unconfiguredBehavesLike": &UnconfiguredBehavesLike{
"v1": v1,
"v2": v2,
},
"userValue": userValue,
},
},
Module: jsii.String("module"),
}
Properties
flags{ [key: string]: FeatureFlag }flagstyping.Mapping[str, FeatureFlag]flagsMap<String, FeatureFlag>FlagsIDictionary<string, FeatureFlag>Flags*map[string]FeatureFlag required #Information about every feature flag supported by this library.
The library that this feature flag report applies to.