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 |
Enables detailed monitoring for a running instance. Otherwise, basic monitoring is enabled. For more information, see Monitor your instances using CloudWatch in the Amazon EC2 User Guide.
To disable detailed monitoring, see UnmonitorInstances.
Synopsis
- data MonitorInstances = MonitorInstances' {
- dryRun :: Maybe Bool
- instanceIds :: [Text]
- newMonitorInstances :: MonitorInstances
- monitorInstances_dryRun :: Lens' MonitorInstances (Maybe Bool)
- monitorInstances_instanceIds :: Lens' MonitorInstances [Text]
- data MonitorInstancesResponse = MonitorInstancesResponse' {}
- newMonitorInstancesResponse :: Int -> MonitorInstancesResponse
- monitorInstancesResponse_instanceMonitorings :: Lens' MonitorInstancesResponse (Maybe [InstanceMonitoring])
- monitorInstancesResponse_httpStatus :: Lens' MonitorInstancesResponse Int
Creating a Request
data MonitorInstances Source #
See: newMonitorInstances
smart constructor.
MonitorInstances' | |
|
Instances
newMonitorInstances :: MonitorInstances Source #
Create a value of MonitorInstances
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:dryRun:MonitorInstances'
, monitorInstances_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
.
MonitorInstances
, monitorInstances_instanceIds
- The IDs of the instances.
Request Lenses
monitorInstances_dryRun :: Lens' MonitorInstances (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
.
monitorInstances_instanceIds :: Lens' MonitorInstances [Text] Source #
The IDs of the instances.
Destructuring the Response
data MonitorInstancesResponse Source #
See: newMonitorInstancesResponse
smart constructor.
MonitorInstancesResponse' | |
|
Instances
newMonitorInstancesResponse Source #
Create a value of MonitorInstancesResponse
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:instanceMonitorings:MonitorInstancesResponse'
, monitorInstancesResponse_instanceMonitorings
- The monitoring information.
$sel:httpStatus:MonitorInstancesResponse'
, monitorInstancesResponse_httpStatus
- The response's http status code.
Response Lenses
monitorInstancesResponse_instanceMonitorings :: Lens' MonitorInstancesResponse (Maybe [InstanceMonitoring]) Source #
The monitoring information.
monitorInstancesResponse_httpStatus :: Lens' MonitorInstancesResponse Int Source #
The response's http status code.