interface CfnExperimentDefinitionProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AppConfig.CfnExperimentDefinitionProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappconfig#CfnExperimentDefinitionProps |
Java | software.amazon.awscdk.services.appconfig.CfnExperimentDefinitionProps |
Python | aws_cdk.aws_appconfig.CfnExperimentDefinitionProps |
TypeScript | aws-cdk-lib » aws_appconfig » CfnExperimentDefinitionProps |
Properties for defining a CfnExperimentDefinition.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appconfig as appconfig } from 'aws-cdk-lib';
const cfnExperimentDefinitionProps: appconfig.CfnExperimentDefinitionProps = {
applicationIdentifier: 'applicationIdentifier',
audienceRule: 'audienceRule',
configurationProfileIdentifier: 'configurationProfileIdentifier',
control: {
enabled: false,
weight: 123,
// the properties below are optional
attributeValues: {
attributeValuesKey: {
booleanValue: false,
numberArray: [123],
numberValue: 123,
stringArray: ['stringArray'],
stringValue: 'stringValue',
},
},
description: 'description',
key: 'key',
},
environmentIdentifier: 'environmentIdentifier',
flagKey: 'flagKey',
name: 'name',
treatments: [{
enabled: false,
weight: 123,
// the properties below are optional
attributeValues: {
attributeValuesKey: {
booleanValue: false,
numberArray: [123],
numberValue: 123,
stringArray: ['stringArray'],
stringValue: 'stringValue',
},
},
description: 'description',
key: 'key',
}],
// the properties below are optional
audienceDescription: 'audienceDescription',
hypothesis: 'hypothesis',
launchCriteria: 'launchCriteria',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| application | string | The application ID, name, or ARN. |
| audience | string | Rule expression defining the experiment audience. |
| configuration | string | The configuration profile ID, name, or ARN. |
| control | IResolvable | Treatment | A treatment variant with weight and flag value. |
| environment | string | The environment ID, name, or ARN. |
| flag | string | The key of the existing flag in the configuration profile to experiment on. |
| name | string | A name for the experiment definition. |
| treatments | IResolvable | (IResolvable | Treatment)[] | Treatment variants (1-5). |
| audience | string | Human-readable description of the audience. |
| hypothesis? | string | The hypothesis of the experiment. |
| launch | string | Criteria for launching the experiment. |
| tags? | Cfn[] | Tags to associate with the experiment definition. |
applicationIdentifier
Type:
string
The application ID, name, or ARN.
audienceRule
Type:
string
Rule expression defining the experiment audience.
configurationProfileIdentifier
Type:
string
The configuration profile ID, name, or ARN.
control
Type:
IResolvable | Treatment
A treatment variant with weight and flag value.
The Key is auto-generated by the service.
environmentIdentifier
Type:
string
The environment ID, name, or ARN.
flagKey
Type:
string
The key of the existing flag in the configuration profile to experiment on.
name
Type:
string
A name for the experiment definition.
treatments
Type:
IResolvable | (IResolvable | Treatment)[]
Treatment variants (1-5).
audienceDescription?
Type:
string
(optional)
Human-readable description of the audience.
hypothesis?
Type:
string
(optional)
The hypothesis of the experiment.
launchCriteria?
Type:
string
(optional)
Criteria for launching the experiment.
tags?
Type:
Cfn[]
(optional)
Tags to associate with the experiment definition.

.NET
Go
Java
Python
TypeScript