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 |
Reverts the application to the previous running version. You can roll back an application if you suspect it is stuck in a transient status.
You can roll back an application only if it is in the UPDATING
or
AUTOSCALING
status.
When you rollback an application, it loads state data from the last successful snapshot. If the application has no snapshots, Kinesis Data Analytics rejects the rollback request.
This action is not supported for Kinesis Data Analytics for SQL applications.
Synopsis
- data RollbackApplication = RollbackApplication' {}
- newRollbackApplication :: Text -> Natural -> RollbackApplication
- rollbackApplication_applicationName :: Lens' RollbackApplication Text
- rollbackApplication_currentApplicationVersionId :: Lens' RollbackApplication Natural
- data RollbackApplicationResponse = RollbackApplicationResponse' {}
- newRollbackApplicationResponse :: Int -> ApplicationDetail -> RollbackApplicationResponse
- rollbackApplicationResponse_httpStatus :: Lens' RollbackApplicationResponse Int
- rollbackApplicationResponse_applicationDetail :: Lens' RollbackApplicationResponse ApplicationDetail
Creating a Request
data RollbackApplication Source #
See: newRollbackApplication
smart constructor.
RollbackApplication' | |
|
Instances
newRollbackApplication Source #
:: Text | |
-> Natural | |
-> RollbackApplication |
Create a value of RollbackApplication
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:applicationName:RollbackApplication'
, rollbackApplication_applicationName
- The name of the application.
$sel:currentApplicationVersionId:RollbackApplication'
, rollbackApplication_currentApplicationVersionId
- The current application version ID. You can retrieve the application
version ID using DescribeApplication.
Request Lenses
rollbackApplication_applicationName :: Lens' RollbackApplication Text Source #
The name of the application.
rollbackApplication_currentApplicationVersionId :: Lens' RollbackApplication Natural Source #
The current application version ID. You can retrieve the application version ID using DescribeApplication.
Destructuring the Response
data RollbackApplicationResponse Source #
See: newRollbackApplicationResponse
smart constructor.
RollbackApplicationResponse' | |
|
Instances
newRollbackApplicationResponse Source #
Create a value of RollbackApplicationResponse
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:RollbackApplicationResponse'
, rollbackApplicationResponse_httpStatus
- The response's http status code.
$sel:applicationDetail:RollbackApplicationResponse'
, rollbackApplicationResponse_applicationDetail
- Undocumented member.
Response Lenses
rollbackApplicationResponse_httpStatus :: Lens' RollbackApplicationResponse Int Source #
The response's http status code.
rollbackApplicationResponse_applicationDetail :: Lens' RollbackApplicationResponse ApplicationDetail Source #
Undocumented member.