Skip to content
v2.275.0

TreatmentProperty Struct ​

A treatment variant with weight and flag value.

The Key is auto-generated by the service.

Example ​

ts
// 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 ​

attributeValuesoptionalIResolvable | { [key: string]: IResolvable | CfnExperimentDefinition.AttributeValueProperty }attribute_valuesoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, AttributeValueProperty]]]attributeValuesoptionalIResolvableAttributeValuesoptionalIResolvableAttributeValuesoptionalinterface{}#
Map of attribute name to attribute value.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
enabledboolean | IResolvableenabledtyping.Union[bool, IResolvable]enabledBooleanEnabledboolEnabledinterface{}required#
Whether the flag is enabled for this variant.
keyoptionalstringkeyoptionalstrkeyoptionalStringKeyoptionalstringKeyoptional*string#
The treatment key (read-only, auto-generated by service).
weightnumberweightint | floatweightNumberWeightdoubleWeight*float64required#
Traffic weight percentage.