Interface CfnExperimentDefinitionPropsMixin.TreatmentProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnExperimentDefinitionPropsMixin.TreatmentProperty.Jsii$Proxy
- Enclosing class:
CfnExperimentDefinitionPropsMixin
@Stability(Stable)
public static interface CfnExperimentDefinitionPropsMixin.TreatmentProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.cfnpropertymixins.services.appconfig.*;
TreatmentProperty treatmentProperty = TreatmentProperty.builder()
.attributeValues(Map.of(
"attributeValuesKey", AttributeValueProperty.builder()
.booleanValue(false)
.numberArray(List.of(123))
.numberValue(123)
.stringArray(List.of("stringArray"))
.stringValue("stringValue")
.build()))
.description("description")
.enabled(false)
.key("key")
.weight(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnExperimentDefinitionPropsMixin.TreatmentPropertystatic final classAn implementation forCfnExperimentDefinitionPropsMixin.TreatmentProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectMap of attribute name to attribute value.default Stringdefault ObjectWhether the flag is enabled for this variant.default StringgetKey()The treatment key (read-only, auto-generated by service).default NumberTraffic weight percentage.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAttributeValues
Map of attribute name to attribute value.Returns union: either
IResolvableor Mapinvalid input: '<'String, eitherIResolvableorCfnExperimentDefinitionPropsMixin.AttributeValueProperty>- See Also:
-
getDescription
- See Also:
-
getEnabled
Whether the flag is enabled for this variant.Returns union: either
BooleanorIResolvable- See Also:
-
getKey
The treatment key (read-only, auto-generated by service).- See Also:
-
getWeight
Traffic weight percentage.- See Also:
-
builder
-