interface TreatmentProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.AppConfig.CfnExperimentDefinitionPropsMixin.TreatmentProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsappconfig#CfnExperimentDefinitionPropsMixin_TreatmentProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.appconfig.CfnExperimentDefinitionPropsMixin.TreatmentProperty |
Python | aws_cdk.cfn_property_mixins.aws_appconfig.CfnExperimentDefinitionPropsMixin.TreatmentProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_appconfig » CfnExperimentDefinitionPropsMixin » 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/cfn-property-mixins';
const treatmentProperty: appconfig.CfnExperimentDefinitionPropsMixin.TreatmentProperty = {
attributeValues: {
attributeValuesKey: {
booleanValue: false,
numberArray: [123],
numberValue: 123,
stringArray: ['stringArray'],
stringValue: 'stringValue',
},
},
description: 'description',
enabled: false,
key: 'key',
weight: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| attribute | IResolvable | { [string]: IResolvable | Attribute } | Map of attribute name to attribute value. |
| description? | string | |
| enabled? | boolean | IResolvable | Whether the flag is enabled for this variant. |
| key? | string | The treatment key (read-only, auto-generated by service). |
| weight? | number | Traffic weight percentage. |
attributeValues?
Type:
IResolvable | { [string]: IResolvable | Attribute }
(optional)
Map of attribute name to attribute value.
description?
Type:
string
(optional)
enabled?
Type:
boolean | IResolvable
(optional)
Whether the flag is enabled for this variant.
key?
Type:
string
(optional)
The treatment key (read-only, auto-generated by service).
weight?
Type:
number
(optional)
Traffic weight percentage.

.NET
Go
Java
Python
TypeScript