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 |
Stops a launch that is currently running. After you stop a launch, you will not be able to resume it or restart it. Also, it will not be evaluated as a rule for traffic allocation, and the traffic that was allocated to the launch will instead be available to the feature's experiment, if there is one. Otherwise, all traffic will be served the default variation after the launch is stopped.
Synopsis
- data StopLaunch = StopLaunch' {}
- newStopLaunch :: Text -> Text -> StopLaunch
- stopLaunch_desiredState :: Lens' StopLaunch (Maybe LaunchStopDesiredState)
- stopLaunch_reason :: Lens' StopLaunch (Maybe Text)
- stopLaunch_launch :: Lens' StopLaunch Text
- stopLaunch_project :: Lens' StopLaunch Text
- data StopLaunchResponse = StopLaunchResponse' {
- endedTime :: Maybe POSIX
- httpStatus :: Int
- newStopLaunchResponse :: Int -> StopLaunchResponse
- stopLaunchResponse_endedTime :: Lens' StopLaunchResponse (Maybe UTCTime)
- stopLaunchResponse_httpStatus :: Lens' StopLaunchResponse Int
Creating a Request
data StopLaunch Source #
See: newStopLaunch
smart constructor.
StopLaunch' | |
|
Instances
Create a value of StopLaunch
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:StopLaunch'
, stopLaunch_desiredState
- Specify whether to consider the launch as COMPLETED
or CANCELLED
after it stops.
StopLaunch
, stopLaunch_reason
- A string that describes why you are stopping the launch.
$sel:launch:StopLaunch'
, stopLaunch_launch
- The name of the launch to stop.
StopLaunch
, stopLaunch_project
- The name or ARN of the project that contains the launch that you want to
stop.
Request Lenses
stopLaunch_desiredState :: Lens' StopLaunch (Maybe LaunchStopDesiredState) Source #
Specify whether to consider the launch as COMPLETED
or CANCELLED
after it stops.
stopLaunch_reason :: Lens' StopLaunch (Maybe Text) Source #
A string that describes why you are stopping the launch.
stopLaunch_launch :: Lens' StopLaunch Text Source #
The name of the launch to stop.
stopLaunch_project :: Lens' StopLaunch Text Source #
The name or ARN of the project that contains the launch that you want to stop.
Destructuring the Response
data StopLaunchResponse Source #
See: newStopLaunchResponse
smart constructor.
StopLaunchResponse' | |
|
Instances
newStopLaunchResponse Source #
Create a value of StopLaunchResponse
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:
StopLaunchResponse
, stopLaunchResponse_endedTime
- The date and time that the launch stopped.
$sel:httpStatus:StopLaunchResponse'
, stopLaunchResponse_httpStatus
- The response's http status code.
Response Lenses
stopLaunchResponse_endedTime :: Lens' StopLaunchResponse (Maybe UTCTime) Source #
The date and time that the launch stopped.
stopLaunchResponse_httpStatus :: Lens' StopLaunchResponse Int Source #
The response's http status code.