update_experiment
async
¶
update_experiment(
experiment_id: ExperimentId,
*,
config_overrides: Optional[AsyncCloudWatchOmniClientConfig] = None,
name: Optional[ExperimentName] = None,
description: Optional[Description] = None,
experiment_config: Optional[ExperimentConfig] = None,
baseline_run_id: Optional[ExperimentRunIdOrEmpty] = None,
) -> UpdateExperimentOutput
Updates an experiment. Only the provided fields are changed; omitted fields are left unchanged. A request must set at least one of name, description, experimentConfig, or baselineRunId, and the target and type cannot be changed. Fails with a ConflictException if experimentConfig is changed while a run is RUNNING or STOPPING. Changes to the name, description, or baseline run are always allowed.
Parameters:
-
experiment_id(ExperimentId) –The ID of the experiment to update.
-
name(Optional[ExperimentName], default:None) –A new name for the experiment. Omit to leave unchanged.
-
description(Optional[Description], default:None) –A new description of the experiment. Omit to leave unchanged; an empty string clears it.
-
experiment_config(Optional[ExperimentConfig], default:None) –A new configuration for the experiment. Omit to leave unchanged. Replaces the configuration in full, and its member must match the experiment's type: a DATASET experiment takes only experimentConfig.dataset. The configuration is validated as in CreateExperiment: a new execution role requires iam:PassRole, the role must be assumable, and the results log group must exist and use the Standard log class. Applies to runs started after the update.
-
baseline_run_id(Optional[ExperimentRunIdOrEmpty], default:None) –The ID of the run to make the experiment's baseline. Omit to leave unchanged; an empty string clears it. The run must be a COMPLETED target run of this experiment. A live control's run is rejected whether or not it has ended, but a run used as another run's historical control is a target run and is accepted. Otherwise fails with a ValidationException. Deleting the baseline run clears the baseline.
Raises:
-
AccessDeniedException–The caller is not authorized to perform this action.
-
ConflictException–The operation could not be completed because of a conflict with the current state of the resource.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The specified resource does not exist.
-
ThrottlingException–The request was throttled due to exceeding the allowed request rate.
-
ValidationException–A parameter is specified incorrectly.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Set an experiment's baseline run and description The following example makes a completed run the experiment's baseline and changes its description; omitted fields, including the configuration, are left unchanged. Payloads are shown as JSON; on the wire they are CBOR-encoded.
>>> await client.update_experiment(experiment_id='exp-01JC8Z5V7Q3M9K2T4R6W8Y0ABC', description='Checks booking accuracy before each release. Baseline is the November release.', baseline_run_id='ci-build-4790')
Source code in docs_src/capo_cloudwatchomni/_services/async_cloud_watch_omni.py
6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 | |