@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:34.924Z") @Stability(value=Stable) public class CfnLaunch extends CfnResource implements IInspectable
Creates or updates a launch of a given feature. Before you create a launch, you must create the feature to use for the launch.
You can use a launch to safely validate new features by serving them to a specified percentage of your users while you roll out the feature. You can monitor the performance of the new feature to help you decide when to ramp up traffic to more users. This helps you reduce risk and identify unintended consequences before you fully launch the feature.
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.*;
CfnLaunch cfnLaunch = CfnLaunch.Builder.create(this, "MyCfnLaunch")
.groups(List.of(LaunchGroupObjectProperty.builder()
.feature("feature")
.groupName("groupName")
.variation("variation")
// the properties below are optional
.description("description")
.build()))
.name("name")
.project("project")
.scheduledSplitsConfig(List.of(StepConfigProperty.builder()
.groupWeights(List.of(GroupToWeightProperty.builder()
.groupName("groupName")
.splitWeight(123)
.build()))
.startTime("startTime")
// the properties below are optional
.segmentOverrides(List.of(SegmentOverrideProperty.builder()
.evaluationOrder(123)
.segment("segment")
.weights(List.of(GroupToWeightProperty.builder()
.groupName("groupName")
.splitWeight(123)
.build()))
.build()))
.build()))
// the properties below are optional
.description("description")
.executionStatus(ExecutionStatusObjectProperty.builder()
.status("status")
// the properties below are optional
.desiredState("desiredState")
.reason("reason")
.build())
.metricMonitors(List.of(MetricDefinitionObjectProperty.builder()
.entityIdKey("entityIdKey")
.eventPattern("eventPattern")
.metricName("metricName")
.valueKey("valueKey")
// the properties below are optional
.unitLabel("unitLabel")
.build()))
.randomizationSalt("randomizationSalt")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnLaunch.Builder
A fluent builder for
CfnLaunch. |
static interface |
CfnLaunch.ExecutionStatusObjectProperty
Use this structure to start and stop the launch.
|
static interface |
CfnLaunch.GroupToWeightProperty
A structure containing the percentage of launch traffic to allocate to one launch group.
|
static interface |
CfnLaunch.LaunchGroupObjectProperty
A structure that defines one launch group in a launch.
|
static interface |
CfnLaunch.MetricDefinitionObjectProperty
This structure defines a metric that you want to use to evaluate the variations during a launch or experiment.
|
static interface |
CfnLaunch.SegmentOverrideProperty
Use this structure to specify different traffic splits for one or more audience *segments* .
|
static interface |
CfnLaunch.StepConfigProperty
A structure that defines when each step of the launch is to start, and how much launch traffic is to be allocated to each variation during each step.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| 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 |
|---|---|
|
CfnLaunch(Construct scope,
String id,
CfnLaunchProps props)
Create a new `AWS::Evidently::Launch`.
|
protected |
CfnLaunch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnLaunch(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
The ARN of the launch.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
An optional description for the launch.
|
Object |
getExecutionStatus()
A structure that you can use to start and stop the launch.
|
Object |
getGroups()
An array of structures that contains the feature and variations that are to be used for the launch.
|
Object |
getMetricMonitors()
An array of structures that define the metrics that will be used to monitor the launch performance.
|
String |
getName()
The name for the launch.
|
String |
getProject()
The name or ARN of the project that you want to create the launch in.
|
String |
getRandomizationSalt()
When Evidently assigns a particular user session to a launch, it must use a randomization ID to determine which variation the user session is served.
|
Object |
getScheduledSplitsConfig()
An array of structures that define the traffic allocation percentages among the feature variations during each step of the launch.
|
TagManager |
getTags()
Assigns one or more tags (key-value pairs) to the launch.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
An optional description for the launch.
|
void |
setExecutionStatus(CfnLaunch.ExecutionStatusObjectProperty value)
A structure that you can use to start and stop the launch.
|
void |
setExecutionStatus(IResolvable value)
A structure that you can use to start and stop the launch.
|
void |
setGroups(IResolvable value)
An array of structures that contains the feature and variations that are to be used for the launch.
|
void |
setGroups(List<Object> value)
An array of structures that contains the feature and variations that are to be used for the launch.
|
void |
setMetricMonitors(IResolvable value)
An array of structures that define the metrics that will be used to monitor the launch performance.
|
void |
setMetricMonitors(List<Object> value)
An array of structures that define the metrics that will be used to monitor the launch performance.
|
void |
setName(String value)
The name for the launch.
|
void |
setProject(String value)
The name or ARN of the project that you want to create the launch in.
|
void |
setRandomizationSalt(String value)
When Evidently assigns a particular user session to a launch, it must use a randomization ID to determine which variation the user session is served.
|
void |
setScheduledSplitsConfig(IResolvable value)
An array of structures that define the traffic allocation percentages among the feature variations during each step of the launch.
|
void |
setScheduledSplitsConfig(List<Object> value)
An array of structures that define the traffic allocation percentages among the feature variations during each step of the launch.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnLaunch(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnLaunch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnLaunch(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnLaunchProps 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()
For example, arn:aws:evidently:us-west-2:0123455678912:project/myProject/launch/myLaunch
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with a launch.
For more information, see Tagging AWS resources .
@Stability(value=Stable) @NotNull public Object getGroups()
You can up to five launch groups in a launch.
@Stability(value=Stable)
public void setGroups(@NotNull
IResolvable value)
You can up to five launch groups in a launch.
@Stability(value=Stable)
public void setGroups(@NotNull
List<Object> value)
You can up to five launch groups in a launch.
@Stability(value=Stable) @NotNull public String getName()
It can include up to 127 characters.
@Stability(value=Stable)
public void setName(@NotNull
String value)
It can include up to 127 characters.
@Stability(value=Stable) @NotNull public String getProject()
@Stability(value=Stable)
public void setProject(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getScheduledSplitsConfig()
@Stability(value=Stable)
public void setScheduledSplitsConfig(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setScheduledSplitsConfig(@NotNull
List<Object> value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getExecutionStatus()
@Stability(value=Stable)
public void setExecutionStatus(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setExecutionStatus(@Nullable
CfnLaunch.ExecutionStatusObjectProperty value)
@Stability(value=Stable) @Nullable public Object getMetricMonitors()
You can have up to three metric monitors in the array.
@Stability(value=Stable)
public void setMetricMonitors(@Nullable
IResolvable value)
You can have up to three metric monitors in the array.
@Stability(value=Stable)
public void setMetricMonitors(@Nullable
List<Object> value)
You can have up to three metric monitors in the array.
@Stability(value=Stable) @Nullable public String getRandomizationSalt()
This randomization ID is a combination of the entity ID and randomizationSalt . If you omit randomizationSalt , Evidently uses the launch name as the randomizationsSalt .
@Stability(value=Stable)
public void setRandomizationSalt(@Nullable
String value)
This randomization ID is a combination of the entity ID and randomizationSalt . If you omit randomizationSalt , Evidently uses the launch name as the randomizationsSalt .
Copyright © 2022. All rights reserved.