interface TreatmentProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AppConfig.CfnExperimentDefinition.TreatmentProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappconfig#CfnExperimentDefinition_TreatmentProperty |
Java | software.amazon.awscdk.services.appconfig.CfnExperimentDefinition.TreatmentProperty |
Python | aws_cdk.aws_appconfig.CfnExperimentDefinition.TreatmentProperty |
TypeScript | aws-cdk-lib » aws_appconfig » CfnExperimentDefinition » TreatmentProperty |
A treatment variant with weight and flag value.
The Key is auto-generated by the service.
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 treatmentProperty: appconfig.CfnExperimentDefinition.TreatmentProperty = {
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',
};
Properties
| Name | Type | Description |
|---|---|---|
| enabled | boolean | IResolvable | Whether the flag is enabled for this variant. |
| weight | number | Traffic weight percentage. |
| attribute | IResolvable | { [string]: IResolvable | Attribute } | Map of attribute name to attribute value. |
| description? | string | |
| key? | string | The treatment key (read-only, auto-generated by service). |
enabled
Type:
boolean | IResolvable
Whether the flag is enabled for this variant.
weight
Type:
number
Traffic weight percentage.
attributeValues?
Type:
IResolvable | { [string]: IResolvable | Attribute }
(optional)
Map of attribute name to attribute value.
description?
Type:
string
(optional)
key?
Type:
string
(optional)
The treatment key (read-only, auto-generated by service).

.NET
Go
Java
Python
TypeScript