| 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.MigrationHub.NotifyApplicationState
Description
Sets the migration state of an application. For a given application
identified by the value passed to ApplicationId, its status is set or
updated by passing one of three values to Status:
NOT_STARTED | IN_PROGRESS | COMPLETED.
Synopsis
- data NotifyApplicationState = NotifyApplicationState' {}
- newNotifyApplicationState :: Text -> ApplicationStatus -> NotifyApplicationState
- notifyApplicationState_dryRun :: Lens' NotifyApplicationState (Maybe Bool)
- notifyApplicationState_updateDateTime :: Lens' NotifyApplicationState (Maybe UTCTime)
- notifyApplicationState_applicationId :: Lens' NotifyApplicationState Text
- notifyApplicationState_status :: Lens' NotifyApplicationState ApplicationStatus
- data NotifyApplicationStateResponse = NotifyApplicationStateResponse' {
- httpStatus :: Int
- newNotifyApplicationStateResponse :: Int -> NotifyApplicationStateResponse
- notifyApplicationStateResponse_httpStatus :: Lens' NotifyApplicationStateResponse Int
Creating a Request
data NotifyApplicationState Source #
See: newNotifyApplicationState smart constructor.
Constructors
| NotifyApplicationState' | |
Fields
| |
Instances
newNotifyApplicationState Source #
Arguments
| :: Text | |
| -> ApplicationStatus | |
| -> NotifyApplicationState |
Create a value of NotifyApplicationState 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:dryRun:NotifyApplicationState', notifyApplicationState_dryRun - Optional boolean flag to indicate whether any effect should take place.
Used to test if the caller has permission to make the call.
NotifyApplicationState, notifyApplicationState_updateDateTime - The timestamp when the application state changed.
NotifyApplicationState, notifyApplicationState_applicationId - The configurationId in Application Discovery Service that uniquely
identifies the grouped application.
NotifyApplicationState, notifyApplicationState_status - Status of the application - Not Started, In-Progress, Complete.
Request Lenses
notifyApplicationState_dryRun :: Lens' NotifyApplicationState (Maybe Bool) Source #
Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
notifyApplicationState_updateDateTime :: Lens' NotifyApplicationState (Maybe UTCTime) Source #
The timestamp when the application state changed.
notifyApplicationState_applicationId :: Lens' NotifyApplicationState Text Source #
The configurationId in Application Discovery Service that uniquely identifies the grouped application.
notifyApplicationState_status :: Lens' NotifyApplicationState ApplicationStatus Source #
Status of the application - Not Started, In-Progress, Complete.
Destructuring the Response
data NotifyApplicationStateResponse Source #
See: newNotifyApplicationStateResponse smart constructor.
Constructors
| NotifyApplicationStateResponse' | |
Fields
| |
Instances
newNotifyApplicationStateResponse Source #
Create a value of NotifyApplicationStateResponse 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:httpStatus:NotifyApplicationStateResponse', notifyApplicationStateResponse_httpStatus - The response's http status code.
Response Lenses
notifyApplicationStateResponse_httpStatus :: Lens' NotifyApplicationStateResponse Int Source #
The response's http status code.