Class CfnExperimentRun

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IExperimentRunRef, IEnvironmentAware, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-10T17:51:37.973Z") @Stability(Stable) public class CfnExperimentRun extends CfnResource implements IInspectable, IExperimentRunRef, ITaggableV2
Resource Type definition for AWS::AppConfig::ExperimentRun.

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.*;
 CfnExperimentRun cfnExperimentRun = CfnExperimentRun.Builder.create(this, "MyCfnExperimentRun")
         .applicationIdentifier("applicationIdentifier")
         .experimentDefinitionIdentifier("experimentDefinitionIdentifier")
         .exposurePercentage(123)
         // the properties below are optional
         .description("description")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .treatmentOverrides(TreatmentOverridesProperty.builder()
                 .inline(Map.of(
                         "inlineKey", "inline"))
                 .build())
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnExperimentRun

      protected CfnExperimentRun(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnExperimentRun

      protected CfnExperimentRun(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnExperimentRun

      @Stability(Stable) public CfnExperimentRun(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnExperimentRunProps props)
      Create a new AWS::AppConfig::ExperimentRun.

      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

    • isCfnExperimentRun

      @Stability(Stable) @NotNull public static Boolean isCfnExperimentRun(@NotNull Object x)
      Checks whether the given object is a CfnExperimentRun.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrApplicationId

      @Stability(Stable) @NotNull public String getAttrApplicationId()
      The resolved application ID.
    • getAttrExperimentDefinitionId

      @Stability(Stable) @NotNull public String getAttrExperimentDefinitionId()
      The resolved experiment definition ID.
    • getAttrRun

      @Stability(Stable) @NotNull public String getAttrRun()
      The run number (auto-assigned by the service).
    • getAttrStartedAt

      @Stability(Stable) @NotNull public String getAttrStartedAt()
      ISO-8601 timestamp when the run started.
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
      Current status of the run.
    • getAttrUpdatedAt

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
      ISO-8601 timestamp when the run was last updated.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getExperimentRunRef

      @Stability(Stable) @NotNull public ExperimentRunReference getExperimentRunRef()
      A reference to a ExperimentRun resource.
      Specified by:
      getExperimentRunRef in interface IExperimentRunRef
    • getApplicationIdentifier

      @Stability(Stable) @NotNull public String getApplicationIdentifier()
      The application name or ID used to create the experiment run.
    • setApplicationIdentifier

      @Stability(Stable) public void setApplicationIdentifier(@NotNull String value)
      The application name or ID used to create the experiment run.
    • getExperimentDefinitionIdentifier

      @Stability(Stable) @NotNull public String getExperimentDefinitionIdentifier()
      The experiment definition name or ID used to create the experiment run.
    • setExperimentDefinitionIdentifier

      @Stability(Stable) public void setExperimentDefinitionIdentifier(@NotNull String value)
      The experiment definition name or ID used to create the experiment run.
    • getExposurePercentage

      @Stability(Stable) @NotNull public Number getExposurePercentage()
      Percentage of traffic exposed to the experiment (0-100).
    • setExposurePercentage

      @Stability(Stable) public void setExposurePercentage(@NotNull Number value)
      Percentage of traffic exposed to the experiment (0-100).
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      Description of the experiment run.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      Description of the experiment run.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      Tags to associate with the experiment run.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      Tags to associate with the experiment run.
    • getTreatmentOverrides

      @Stability(Stable) @Nullable public Object getTreatmentOverrides()
      Treatment overrides for specific entities.

      Returns union: either IResolvable or CfnExperimentRun.TreatmentOverridesProperty

    • setTreatmentOverrides

      @Stability(Stable) public void setTreatmentOverrides(@Nullable IResolvable value)
      Treatment overrides for specific entities.
    • setTreatmentOverrides

      @Stability(Stable) public void setTreatmentOverrides(@Nullable CfnExperimentRun.TreatmentOverridesProperty value)
      Treatment overrides for specific entities.