Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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_updateDateTime :: Lens' NotifyApplicationState (Maybe UTCTime)
- notifyApplicationState_dryRun :: Lens' NotifyApplicationState (Maybe Bool)
- 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.
NotifyApplicationState' | |
|
Instances
newNotifyApplicationState Source #
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:updateDateTime:NotifyApplicationState'
, notifyApplicationState_updateDateTime
- The timestamp when the application state changed.
$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.
$sel:applicationId:NotifyApplicationState'
, notifyApplicationState_applicationId
- The configurationId in Application Discovery Service that uniquely
identifies the grouped application.
$sel:status:NotifyApplicationState'
, notifyApplicationState_status
- Status of the application - Not Started, In-Progress, Complete.
Request Lenses
notifyApplicationState_updateDateTime :: Lens' NotifyApplicationState (Maybe UTCTime) Source #
The timestamp when the application state changed.
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_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.
NotifyApplicationStateResponse' | |
|
Instances
Eq NotifyApplicationStateResponse Source # | |
Read NotifyApplicationStateResponse Source # | |
Show NotifyApplicationStateResponse Source # | |
Defined in Amazonka.MigrationHub.NotifyApplicationState | |
Generic NotifyApplicationStateResponse Source # | |
NFData NotifyApplicationStateResponse Source # | |
Defined in Amazonka.MigrationHub.NotifyApplicationState rnf :: NotifyApplicationStateResponse -> () # | |
type Rep NotifyApplicationStateResponse Source # | |
Defined in Amazonka.MigrationHub.NotifyApplicationState type Rep NotifyApplicationStateResponse = D1 ('MetaData "NotifyApplicationStateResponse" "Amazonka.MigrationHub.NotifyApplicationState" "libZSservicesZSamazonka-migrationhubZSamazonka-migrationhub" 'False) (C1 ('MetaCons "NotifyApplicationStateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.