Class CfnLaunch
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::Evidently::Launch
.
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") .metricName("metricName") .valueKey("valueKey") // the properties below are optional .eventPattern("eventPattern") .unitLabel("unitLabel") .build())) .randomizationSalt("randomizationSalt") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnLaunch
.static interface
Use this structure to start and stop the launch.static interface
A structure containing the percentage of launch traffic to allocate to one launch group.static interface
A structure that defines one launch group in a launch.static interface
This structure defines a metric that you want to use to evaluate the variations during a launch or experiment.static interface
Use this structure to specify different traffic splits for one or more audience segments .static interface
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.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the launch.An optional description for the launch.A structure that you can use to start and stop the launch.An array of structures that contains the feature and variations that are to be used for the launch.An array of structures that define the metrics that will be used to monitor the launch performance.getName()
The name for the launch.The name or ARN of the project that you want to create the launch in.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.An array of structures that define the traffic allocation percentages among the feature variations during each step of the launch.getTags()
Assigns one or more tags (key-value pairs) to the launch.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDescription
(String value) An optional description for the launch.void
setExecutionStatus
(IResolvable value) A structure that you can use to start and stop the launch.void
A structure that you can use to start and stop the launch.void
An array of structures that contains the feature and variations that are to be used for 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
setMetricMonitors
(List<Object> value) An array of structures that define the metrics that will be used to monitor the launch performance.void
setMetricMonitors
(IResolvable value) An array of structures that define the metrics that will be used to monitor the launch performance.void
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
(List<Object> value) An array of structures that define the traffic allocation percentages among the feature variations during each step of the launch.void
An array of structures that define the traffic allocation percentages among the feature variations during each step of the launch.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-
CfnLaunch
protected CfnLaunch(software.amazon.jsii.JsiiObjectRef objRef) -
CfnLaunch
protected CfnLaunch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnLaunch
@Stability(Stable) public CfnLaunch(@NotNull Construct scope, @NotNull String id, @NotNull CfnLaunchProps props) Create a newAWS::Evidently::Launch
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The ARN of the launch.For example,
arn:aws:evidently:us-west-2:0123455678912:project/myProject/launch/myLaunch
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Assigns one or more tags (key-value pairs) to the launch.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 .
-
getGroups
An array of structures that contains the feature and variations that are to be used for the launch.You can up to five launch groups in a launch.
-
setGroups
An array of structures that contains the feature and variations that are to be used for the launch.You can up to five launch groups in a launch.
-
setGroups
An array of structures that contains the feature and variations that are to be used for the launch.You can up to five launch groups in a launch.
-
getName
The name for the launch.It can include up to 127 characters.
-
setName
The name for the launch.It can include up to 127 characters.
-
getProject
The name or ARN of the project that you want to create the launch in. -
setProject
The name or ARN of the project that you want to create the launch in. -
getScheduledSplitsConfig
An array of structures that define the traffic allocation percentages among the feature variations during each step of the launch. -
setScheduledSplitsConfig
An array of structures that define the traffic allocation percentages among the feature variations during each step of the launch. -
setScheduledSplitsConfig
An array of structures that define the traffic allocation percentages among the feature variations during each step of the launch. -
getDescription
An optional description for the launch. -
setDescription
An optional description for the launch. -
getExecutionStatus
A structure that you can use to start and stop the launch. -
setExecutionStatus
A structure that you can use to start and stop the launch. -
setExecutionStatus
@Stability(Stable) public void setExecutionStatus(@Nullable CfnLaunch.ExecutionStatusObjectProperty value) A structure that you can use to start and stop the launch. -
getMetricMonitors
An array of structures that define the metrics that will be used to monitor the launch performance.You can have up to three metric monitors in the array.
-
setMetricMonitors
An array of structures that define the metrics that will be used to monitor the launch performance.You can have up to three metric monitors in the array.
-
setMetricMonitors
An array of structures that define the metrics that will be used to monitor the launch performance.You can have up to three metric monitors in the array.
-
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.This randomization ID is a combination of the entity ID and
randomizationSalt
. If you omitrandomizationSalt
, Evidently uses the launch name as therandomizationsSalt
. -
setRandomizationSalt
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.This randomization ID is a combination of the entity ID and
randomizationSalt
. If you omitrandomizationSalt
, Evidently uses the launch name as therandomizationsSalt
.
-