Copyright | (c) 2013-2017 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 |
Language | Haskell2010 |
Applies a pending maintenance action to a resource (for example, to a DB instance).
- applyPendingMaintenanceAction :: Text -> Text -> Text -> ApplyPendingMaintenanceAction
- data ApplyPendingMaintenanceAction
- apmaResourceIdentifier :: Lens' ApplyPendingMaintenanceAction Text
- apmaApplyAction :: Lens' ApplyPendingMaintenanceAction Text
- apmaOptInType :: Lens' ApplyPendingMaintenanceAction Text
- applyPendingMaintenanceActionResponse :: Int -> ApplyPendingMaintenanceActionResponse
- data ApplyPendingMaintenanceActionResponse
- apmarsResourcePendingMaintenanceActions :: Lens' ApplyPendingMaintenanceActionResponse (Maybe ResourcePendingMaintenanceActions)
- apmarsResponseStatus :: Lens' ApplyPendingMaintenanceActionResponse Int
Creating a Request
applyPendingMaintenanceAction Source #
:: Text | |
-> Text | |
-> Text | |
-> ApplyPendingMaintenanceAction |
Creates a value of ApplyPendingMaintenanceAction
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
apmaResourceIdentifier
- The RDS Amazon Resource Name (ARN) of the resource that the pending maintenance action applies to. For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN) .apmaApplyAction
- The pending maintenance action to apply to this resource. Valid values:system-update
,db-upgrade
apmaOptInType
- A value that specifies the type of opt-in request, or undoes an opt-in request. An opt-in request of typeimmediate
cannot 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.
data ApplyPendingMaintenanceAction Source #
See: applyPendingMaintenanceAction
smart constructor.
Request Lenses
apmaResourceIdentifier :: Lens' ApplyPendingMaintenanceAction Text Source #
The RDS Amazon Resource Name (ARN) of the resource that the pending maintenance action applies to. For information about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN) .
apmaApplyAction :: Lens' ApplyPendingMaintenanceAction Text Source #
The pending maintenance action to apply to this resource. Valid values: system-update
, db-upgrade
apmaOptInType :: 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
cannot 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 existing next-maintenance
opt-in requests.
Destructuring the Response
applyPendingMaintenanceActionResponse Source #
Creates a value of ApplyPendingMaintenanceActionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
apmarsResourcePendingMaintenanceActions
- Undocumented member.apmarsResponseStatus
- -- | The response status code.
data ApplyPendingMaintenanceActionResponse Source #
See: applyPendingMaintenanceActionResponse
smart constructor.
Response Lenses
apmarsResourcePendingMaintenanceActions :: Lens' ApplyPendingMaintenanceActionResponse (Maybe ResourcePendingMaintenanceActions) Source #
Undocumented member.
apmarsResponseStatus :: Lens' ApplyPendingMaintenanceActionResponse Int Source #
- - | The response status code.