| 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.DocumentDB.ApplyPendingMaintenanceAction
Description
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.
Constructors
| ApplyPendingMaintenanceAction' | |
Fields
| |
Instances
newApplyPendingMaintenanceAction Source #
Arguments
| :: 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:
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-maintenanceopt-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-maintenanceopt-in requests.
Destructuring the Response
data ApplyPendingMaintenanceActionResponse Source #
See: newApplyPendingMaintenanceActionResponse smart constructor.
Constructors
| ApplyPendingMaintenanceActionResponse' | |
Fields
| |
Instances
newApplyPendingMaintenanceActionResponse Source #
Arguments
| :: Int | |
| -> ApplyPendingMaintenanceActionResponse |
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.