@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:17.697Z") @Stability(value=Stable) public class CfnExperiment extends CfnResource implements IInspectable
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.evidently.*;
CfnExperiment cfnExperiment = CfnExperiment.Builder.create(this, "MyCfnExperiment")
.metricGoals(List.of(MetricGoalObjectProperty.builder()
.desiredChange("desiredChange")
.entityIdKey("entityIdKey")
.eventPattern("eventPattern")
.metricName("metricName")
.valueKey("valueKey")
// the properties below are optional
.unitLabel("unitLabel")
.build()))
.name("name")
.onlineAbConfig(OnlineAbConfigObjectProperty.builder()
.controlTreatmentName("controlTreatmentName")
.treatmentWeights(List.of(TreatmentToWeightProperty.builder()
.splitWeight(123)
.treatment("treatment")
.build()))
.build())
.project("project")
.treatments(List.of(TreatmentObjectProperty.builder()
.feature("feature")
.treatmentName("treatmentName")
.variation("variation")
// the properties below are optional
.description("description")
.build()))
// the properties below are optional
.description("description")
.randomizationSalt("randomizationSalt")
.samplingRate(123)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnExperiment.Builder
A fluent builder for
CfnExperiment. |
static interface |
CfnExperiment.MetricGoalObjectProperty
Example:
|
static interface |
CfnExperiment.OnlineAbConfigObjectProperty
Example:
|
static interface |
CfnExperiment.TreatmentObjectProperty
Example:
|
static interface |
CfnExperiment.TreatmentToWeightProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnExperiment(software.constructs.Construct scope,
String id,
CfnExperimentProps props)
Create a new `AWS::Evidently::Experiment`.
|
protected |
CfnExperiment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnExperiment(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn() |
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
`AWS::Evidently::Experiment.Description`.
|
Object |
getMetricGoals()
`AWS::Evidently::Experiment.MetricGoals`.
|
String |
getName()
`AWS::Evidently::Experiment.Name`.
|
Object |
getOnlineAbConfig()
`AWS::Evidently::Experiment.OnlineAbConfig`.
|
String |
getProject()
`AWS::Evidently::Experiment.Project`.
|
String |
getRandomizationSalt()
`AWS::Evidently::Experiment.RandomizationSalt`.
|
Number |
getSamplingRate()
`AWS::Evidently::Experiment.SamplingRate`.
|
TagManager |
getTags()
`AWS::Evidently::Experiment.Tags`.
|
Object |
getTreatments()
`AWS::Evidently::Experiment.Treatments`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
`AWS::Evidently::Experiment.Description`.
|
void |
setMetricGoals(IResolvable value)
`AWS::Evidently::Experiment.MetricGoals`.
|
void |
setMetricGoals(List<Object> value)
`AWS::Evidently::Experiment.MetricGoals`.
|
void |
setName(String value)
`AWS::Evidently::Experiment.Name`.
|
void |
setOnlineAbConfig(CfnExperiment.OnlineAbConfigObjectProperty value)
`AWS::Evidently::Experiment.OnlineAbConfig`.
|
void |
setOnlineAbConfig(IResolvable value)
`AWS::Evidently::Experiment.OnlineAbConfig`.
|
void |
setProject(String value)
`AWS::Evidently::Experiment.Project`.
|
void |
setRandomizationSalt(String value)
`AWS::Evidently::Experiment.RandomizationSalt`.
|
void |
setSamplingRate(Number value)
`AWS::Evidently::Experiment.SamplingRate`.
|
void |
setTreatments(IResolvable value)
`AWS::Evidently::Experiment.Treatments`.
|
void |
setTreatments(List<Object> value)
`AWS::Evidently::Experiment.Treatments`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnExperiment(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnExperiment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnExperiment(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnExperimentProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @NotNull public Object getMetricGoals()
@Stability(value=Stable)
public void setMetricGoals(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setMetricGoals(@NotNull
List<Object> value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getOnlineAbConfig()
@Stability(value=Stable)
public void setOnlineAbConfig(@NotNull
CfnExperiment.OnlineAbConfigObjectProperty value)
@Stability(value=Stable)
public void setOnlineAbConfig(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public String getProject()
@Stability(value=Stable)
public void setProject(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getRandomizationSalt()
@Stability(value=Stable)
public void setRandomizationSalt(@Nullable
String value)
@Stability(value=Stable) @Nullable public Number getSamplingRate()
@Stability(value=Stable)
public void setSamplingRate(@Nullable
Number value)
@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public Object getTreatments()
@Stability(value=Stable)
public void setTreatments(@NotNull
IResolvable value)
Copyright © 2021. All rights reserved.