Class CfnExperimentDefinition
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.appconfig.CfnExperimentDefinition
- All Implemented Interfaces:
IInspectable,IExperimentDefinitionRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:02.582Z")
@Stability(Stable)
public class CfnExperimentDefinition
extends CfnResource
implements IInspectable, IExperimentDefinitionRef, ITaggableV2
Resource Type definition for AWS::AppConfig::ExperimentDefinition.
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.*;
CfnExperimentDefinition cfnExperimentDefinition = CfnExperimentDefinition.Builder.create(this, "MyCfnExperimentDefinition")
.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 TypeClassDescriptionstatic interfaceA typed attribute value for a treatment flag.static final classA fluent builder forCfnExperimentDefinition.static interfaceA treatment variant with weight and flag value.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.appconfig.IExperimentDefinitionRef
IExperimentDefinitionRef.Jsii$Default, IExperimentDefinitionRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnExperimentDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnExperimentDefinition(software.amazon.jsii.JsiiObjectRef objRef) CfnExperimentDefinition(software.constructs.Construct scope, String id, CfnExperimentDefinitionProps props) Create a newAWS::AppConfig::ExperimentDefinition. -
Method Summary
Modifier and TypeMethodDescriptionThe application ID, name, or ARN.The resolved application ID (read-only, assigned by service).The treatment key (read-only, auto-generated by service).ISO-8601 creation timestamp.The experiment definition ID.Current status.ISO-8601 last update timestamp.Human-readable description of the audience.Rule expression defining the experiment audience.Tag Manager which manages the tags for this resource.The configuration profile ID, name, or ARN.A treatment variant with weight and flag value.The environment ID, name, or ARN.A reference to a ExperimentDefinition resource.The key of the existing flag in the configuration profile to experiment on.The hypothesis of the experiment.Criteria for launching the experiment.getName()A name for the experiment definition.getTags()Tags to associate with the experiment definition.Treatment variants (1-5).voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnExperimentDefinition.renderProperties(Map<String, Object> props) voidsetApplicationIdentifier(String value) The application ID, name, or ARN.voidsetAudienceDescription(String value) Human-readable description of the audience.voidsetAudienceRule(String value) Rule expression defining the experiment audience.voidThe configuration profile ID, name, or ARN.voidsetControl(IResolvable value) A treatment variant with weight and flag value.voidA treatment variant with weight and flag value.voidsetEnvironmentIdentifier(String value) The environment ID, name, or ARN.voidsetFlagKey(String value) The key of the existing flag in the configuration profile to experiment on.voidsetHypothesis(String value) The hypothesis of the experiment.voidsetLaunchCriteria(String value) Criteria for launching the experiment.voidA name for the experiment definition.voidTags to associate with the experiment definition.voidsetTreatments(List<Object> value) Treatment variants (1-5).voidsetTreatments(IResolvable value) Treatment variants (1-5).Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnExperimentDefinition
protected CfnExperimentDefinition(software.amazon.jsii.JsiiObjectRef objRef) -
CfnExperimentDefinition
protected CfnExperimentDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnExperimentDefinition
@Stability(Stable) public CfnExperimentDefinition(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnExperimentDefinitionProps props) Create a newAWS::AppConfig::ExperimentDefinition.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
isCfnExperimentDefinition
Checks whether the given object is a CfnExperimentDefinition.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrApplicationId
The resolved application ID (read-only, assigned by service). -
getAttrControlKey
The treatment key (read-only, auto-generated by service). -
getAttrCreatedAt
ISO-8601 creation timestamp. -
getAttrId
The experiment definition ID. -
getAttrStatus
Current status. -
getAttrUpdatedAt
ISO-8601 last update timestamp. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getExperimentDefinitionRef
A reference to a ExperimentDefinition resource.- Specified by:
getExperimentDefinitionRefin interfaceIExperimentDefinitionRef
-
getApplicationIdentifier
The application ID, name, or ARN. -
setApplicationIdentifier
The application ID, name, or ARN. -
getAudienceRule
Rule expression defining the experiment audience. -
setAudienceRule
Rule expression defining the experiment audience. -
getConfigurationProfileIdentifier
The configuration profile ID, name, or ARN. -
setConfigurationProfileIdentifier
The configuration profile ID, name, or ARN. -
getControl
A treatment variant with weight and flag value.Returns union: either
IResolvableorCfnExperimentDefinition.TreatmentProperty -
setControl
A treatment variant with weight and flag value. -
setControl
A treatment variant with weight and flag value. -
getEnvironmentIdentifier
The environment ID, name, or ARN. -
setEnvironmentIdentifier
The environment ID, name, or ARN. -
getFlagKey
The key of the existing flag in the configuration profile to experiment on. -
setFlagKey
The key of the existing flag in the configuration profile to experiment on. -
getName
A name for the experiment definition. -
setName
A name for the experiment definition. -
getTreatments
Treatment variants (1-5).Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnExperimentDefinition.TreatmentProperty> -
setTreatments
Treatment variants (1-5). -
setTreatments
Treatment variants (1-5). -
getAudienceDescription
Human-readable description of the audience. -
setAudienceDescription
Human-readable description of the audience. -
getHypothesis
The hypothesis of the experiment. -
setHypothesis
The hypothesis of the experiment. -
getLaunchCriteria
Criteria for launching the experiment. -
setLaunchCriteria
Criteria for launching the experiment. -
getTags
Tags to associate with the experiment definition. -
setTags
Tags to associate with the experiment definition.
-