| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Evidently.StopExperiment
Description
Stops an experiment that is currently running. If you stop an experiment, you can't resume it or restart it.
Synopsis
- data StopExperiment = StopExperiment' {}
- newStopExperiment :: Text -> Text -> StopExperiment
- stopExperiment_desiredState :: Lens' StopExperiment (Maybe ExperimentStopDesiredState)
- stopExperiment_reason :: Lens' StopExperiment (Maybe Text)
- stopExperiment_experiment :: Lens' StopExperiment Text
- stopExperiment_project :: Lens' StopExperiment Text
- data StopExperimentResponse = StopExperimentResponse' {
- endedTime :: Maybe POSIX
- httpStatus :: Int
- newStopExperimentResponse :: Int -> StopExperimentResponse
- stopExperimentResponse_endedTime :: Lens' StopExperimentResponse (Maybe UTCTime)
- stopExperimentResponse_httpStatus :: Lens' StopExperimentResponse Int
Creating a Request
data StopExperiment Source #
See: newStopExperiment smart constructor.
Constructors
| StopExperiment' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> StopExperiment |
Create a value of StopExperiment with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:desiredState:StopExperiment', stopExperiment_desiredState - Specify whether the experiment is to be considered COMPLETED or
CANCELLED after it stops.
StopExperiment, stopExperiment_reason - A string that describes why you are stopping the experiment.
$sel:experiment:StopExperiment', stopExperiment_experiment - The name of the experiment to stop.
StopExperiment, stopExperiment_project - The name or ARN of the project that contains the experiment to stop.
Request Lenses
stopExperiment_desiredState :: Lens' StopExperiment (Maybe ExperimentStopDesiredState) Source #
Specify whether the experiment is to be considered COMPLETED or
CANCELLED after it stops.
stopExperiment_reason :: Lens' StopExperiment (Maybe Text) Source #
A string that describes why you are stopping the experiment.
stopExperiment_experiment :: Lens' StopExperiment Text Source #
The name of the experiment to stop.
stopExperiment_project :: Lens' StopExperiment Text Source #
The name or ARN of the project that contains the experiment to stop.
Destructuring the Response
data StopExperimentResponse Source #
See: newStopExperimentResponse smart constructor.
Constructors
| StopExperimentResponse' | |
Fields
| |
Instances
newStopExperimentResponse Source #
Create a value of StopExperimentResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
StopExperimentResponse, stopExperimentResponse_endedTime - The date and time that the experiment stopped.
$sel:httpStatus:StopExperimentResponse', stopExperimentResponse_httpStatus - The response's http status code.
Response Lenses
stopExperimentResponse_endedTime :: Lens' StopExperimentResponse (Maybe UTCTime) Source #
The date and time that the experiment stopped.
stopExperimentResponse_httpStatus :: Lens' StopExperimentResponse Int Source #
The response's http status code.