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