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 |
Applies a pending maintenance action to a resource (for example, to an Amazon DocumentDB instance).
Synopsis
- data ApplyPendingMaintenanceAction = ApplyPendingMaintenanceAction' {}
- newApplyPendingMaintenanceAction :: Text -> Text -> Text -> ApplyPendingMaintenanceAction
- applyPendingMaintenanceAction_resourceIdentifier :: Lens' ApplyPendingMaintenanceAction Text
- applyPendingMaintenanceAction_applyAction :: Lens' ApplyPendingMaintenanceAction Text
- applyPendingMaintenanceAction_optInType :: Lens' ApplyPendingMaintenanceAction Text
- data ApplyPendingMaintenanceActionResponse = ApplyPendingMaintenanceActionResponse' {}
- newApplyPendingMaintenanceActionResponse :: Int -> ApplyPendingMaintenanceActionResponse
- applyPendingMaintenanceActionResponse_resourcePendingMaintenanceActions :: Lens' ApplyPendingMaintenanceActionResponse (Maybe ResourcePendingMaintenanceActions)
- applyPendingMaintenanceActionResponse_httpStatus :: Lens' ApplyPendingMaintenanceActionResponse Int
Creating a Request
data ApplyPendingMaintenanceAction Source #
Represents the input to ApplyPendingMaintenanceAction.
See: newApplyPendingMaintenanceAction
smart constructor.
ApplyPendingMaintenanceAction' | |
|
Instances
newApplyPendingMaintenanceAction Source #
:: Text | |
-> Text | |
-> Text | |
-> ApplyPendingMaintenanceAction |
Create a value of ApplyPendingMaintenanceAction
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:resourceIdentifier:ApplyPendingMaintenanceAction'
, applyPendingMaintenanceAction_resourceIdentifier
- The Amazon Resource Name (ARN) of the resource that the pending
maintenance action applies to.
$sel:applyAction:ApplyPendingMaintenanceAction'
, applyPendingMaintenanceAction_applyAction
- The pending maintenance action to apply to this resource.
Valid values: system-update
, db-upgrade
$sel:optInType:ApplyPendingMaintenanceAction'
, applyPendingMaintenanceAction_optInType
- A value that specifies the type of opt-in request or undoes an opt-in
request. An opt-in request of type immediate
can't be undone.
Valid values:
immediate
- Apply the maintenance action immediately.next-maintenance
- Apply the maintenance action during the next maintenance window for the resource.undo-opt-in
- Cancel any existingnext-maintenance
opt-in requests.
Request Lenses
applyPendingMaintenanceAction_resourceIdentifier :: Lens' ApplyPendingMaintenanceAction Text Source #
The Amazon Resource Name (ARN) of the resource that the pending maintenance action applies to.
applyPendingMaintenanceAction_applyAction :: Lens' ApplyPendingMaintenanceAction Text Source #
The pending maintenance action to apply to this resource.
Valid values: system-update
, db-upgrade
applyPendingMaintenanceAction_optInType :: Lens' ApplyPendingMaintenanceAction Text Source #
A value that specifies the type of opt-in request or undoes an opt-in
request. An opt-in request of type immediate
can't be undone.
Valid values:
immediate
- Apply the maintenance action immediately.next-maintenance
- Apply the maintenance action during the next maintenance window for the resource.undo-opt-in
- Cancel any existingnext-maintenance
opt-in requests.
Destructuring the Response
data ApplyPendingMaintenanceActionResponse Source #
See: newApplyPendingMaintenanceActionResponse
smart constructor.
ApplyPendingMaintenanceActionResponse' | |
|
Instances
newApplyPendingMaintenanceActionResponse Source #
Create a value of ApplyPendingMaintenanceActionResponse
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:resourcePendingMaintenanceActions:ApplyPendingMaintenanceActionResponse'
, applyPendingMaintenanceActionResponse_resourcePendingMaintenanceActions
- Undocumented member.
$sel:httpStatus:ApplyPendingMaintenanceActionResponse'
, applyPendingMaintenanceActionResponse_httpStatus
- The response's http status code.
Response Lenses
applyPendingMaintenanceActionResponse_resourcePendingMaintenanceActions :: Lens' ApplyPendingMaintenanceActionResponse (Maybe ResourcePendingMaintenanceActions) Source #
Undocumented member.
applyPendingMaintenanceActionResponse_httpStatus :: Lens' ApplyPendingMaintenanceActionResponse Int Source #
The response's http status code.