Interface CfnExperimentDefinitionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnExperimentDefinitionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:02.585Z")
@Stability(Stable)
public interface CfnExperimentDefinitionProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnExperimentDefinition.
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.*;
CfnExperimentDefinitionProps cfnExperimentDefinitionProps = CfnExperimentDefinitionProps.builder()
.applicationIdentifier("applicationIdentifier")
.audienceRule("audienceRule")
.configurationProfileIdentifier("configurationProfileIdentifier")
.control(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())
.environmentIdentifier("environmentIdentifier")
.flagKey("flagKey")
.name("name")
.treatments(List.of(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()))
// the properties below are optional
.audienceDescription("audienceDescription")
.hypothesis("hypothesis")
.launchCriteria("launchCriteria")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnExperimentDefinitionPropsstatic final classAn implementation forCfnExperimentDefinitionProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The application ID, name, or ARN.default StringHuman-readable description of the audience.Rule expression defining the experiment audience.The configuration profile ID, name, or ARN.A treatment variant with weight and flag value.The environment ID, name, or ARN.The key of the existing flag in the configuration profile to experiment on.default StringThe hypothesis of the experiment.default StringCriteria for launching the experiment.getName()A name for the experiment definition.getTags()Tags to associate with the experiment definition.Treatment variants (1-5).Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApplicationIdentifier
The application ID, name, or ARN.- See Also:
-
getAudienceRule
Rule expression defining the experiment audience.- See Also:
-
getConfigurationProfileIdentifier
The configuration profile ID, name, or ARN.- See Also:
-
getControl
A treatment variant with weight and flag value.The Key is auto-generated by the service.
Returns union: either
IResolvableorCfnExperimentDefinition.TreatmentProperty- See Also:
-
getEnvironmentIdentifier
The environment ID, name, or ARN.- See Also:
-
getFlagKey
The key of the existing flag in the configuration profile to experiment on.- See Also:
-
getName
A name for the experiment definition.- See Also:
-
getTreatments
Treatment variants (1-5).Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnExperimentDefinition.TreatmentProperty>- See Also:
-
getAudienceDescription
Human-readable description of the audience.- See Also:
-
getHypothesis
The hypothesis of the experiment.- See Also:
-
getLaunchCriteria
Criteria for launching the experiment.- See Also:
-
getTags
Tags to associate with the experiment definition.- See Also:
-
builder
-