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 |
Modifies the recovery behavior of your instance to disable simplified automatic recovery or set the recovery behavior to default. The default configuration will not enable simplified automatic recovery for an unsupported instance type. For more information, see Simplified automatic recovery.
Synopsis
- data ModifyInstanceMaintenanceOptions = ModifyInstanceMaintenanceOptions' {}
- newModifyInstanceMaintenanceOptions :: Text -> ModifyInstanceMaintenanceOptions
- modifyInstanceMaintenanceOptions_autoRecovery :: Lens' ModifyInstanceMaintenanceOptions (Maybe InstanceAutoRecoveryState)
- modifyInstanceMaintenanceOptions_dryRun :: Lens' ModifyInstanceMaintenanceOptions (Maybe Bool)
- modifyInstanceMaintenanceOptions_instanceId :: Lens' ModifyInstanceMaintenanceOptions Text
- data ModifyInstanceMaintenanceOptionsResponse = ModifyInstanceMaintenanceOptionsResponse' {}
- newModifyInstanceMaintenanceOptionsResponse :: Int -> ModifyInstanceMaintenanceOptionsResponse
- modifyInstanceMaintenanceOptionsResponse_autoRecovery :: Lens' ModifyInstanceMaintenanceOptionsResponse (Maybe InstanceAutoRecoveryState)
- modifyInstanceMaintenanceOptionsResponse_instanceId :: Lens' ModifyInstanceMaintenanceOptionsResponse (Maybe Text)
- modifyInstanceMaintenanceOptionsResponse_httpStatus :: Lens' ModifyInstanceMaintenanceOptionsResponse Int
Creating a Request
data ModifyInstanceMaintenanceOptions Source #
See: newModifyInstanceMaintenanceOptions
smart constructor.
ModifyInstanceMaintenanceOptions' | |
|
Instances
newModifyInstanceMaintenanceOptions Source #
Create a value of ModifyInstanceMaintenanceOptions
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:
ModifyInstanceMaintenanceOptions
, modifyInstanceMaintenanceOptions_autoRecovery
- Disables the automatic recovery behavior of your instance or sets it to
default.
$sel:dryRun:ModifyInstanceMaintenanceOptions'
, modifyInstanceMaintenanceOptions_dryRun
- Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
ModifyInstanceMaintenanceOptions
, modifyInstanceMaintenanceOptions_instanceId
- The ID of the instance.
Request Lenses
modifyInstanceMaintenanceOptions_autoRecovery :: Lens' ModifyInstanceMaintenanceOptions (Maybe InstanceAutoRecoveryState) Source #
Disables the automatic recovery behavior of your instance or sets it to default.
modifyInstanceMaintenanceOptions_dryRun :: Lens' ModifyInstanceMaintenanceOptions (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
modifyInstanceMaintenanceOptions_instanceId :: Lens' ModifyInstanceMaintenanceOptions Text Source #
The ID of the instance.
Destructuring the Response
data ModifyInstanceMaintenanceOptionsResponse Source #
See: newModifyInstanceMaintenanceOptionsResponse
smart constructor.
ModifyInstanceMaintenanceOptionsResponse' | |
|
Instances
newModifyInstanceMaintenanceOptionsResponse Source #
Create a value of ModifyInstanceMaintenanceOptionsResponse
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:
ModifyInstanceMaintenanceOptions
, modifyInstanceMaintenanceOptionsResponse_autoRecovery
- Provides information on the current automatic recovery behavior of your
instance.
ModifyInstanceMaintenanceOptions
, modifyInstanceMaintenanceOptionsResponse_instanceId
- The ID of the instance.
$sel:httpStatus:ModifyInstanceMaintenanceOptionsResponse'
, modifyInstanceMaintenanceOptionsResponse_httpStatus
- The response's http status code.
Response Lenses
modifyInstanceMaintenanceOptionsResponse_autoRecovery :: Lens' ModifyInstanceMaintenanceOptionsResponse (Maybe InstanceAutoRecoveryState) Source #
Provides information on the current automatic recovery behavior of your instance.
modifyInstanceMaintenanceOptionsResponse_instanceId :: Lens' ModifyInstanceMaintenanceOptionsResponse (Maybe Text) Source #
The ID of the instance.
modifyInstanceMaintenanceOptionsResponse_httpStatus :: Lens' ModifyInstanceMaintenanceOptionsResponse Int Source #
The response's http status code.