Copyright | (c) 2013-2018 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 |
Enables detailed monitoring for a running instance. Otherwise, basic monitoring is enabled. For more information, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide .
To disable detailed monitoring, see .
- monitorInstances :: MonitorInstances
- data MonitorInstances
- miDryRun :: Lens' MonitorInstances (Maybe Bool)
- miInstanceIds :: Lens' MonitorInstances [Text]
- monitorInstancesResponse :: Int -> MonitorInstancesResponse
- data MonitorInstancesResponse
- mirsInstanceMonitorings :: Lens' MonitorInstancesResponse [InstanceMonitoring]
- mirsResponseStatus :: Lens' MonitorInstancesResponse Int
Creating a Request
monitorInstances :: MonitorInstances Source #
Creates a value of MonitorInstances
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
miDryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.miInstanceIds
- One or more instance IDs.
data MonitorInstances Source #
Contains the parameters for MonitorInstances.
See: monitorInstances
smart constructor.
Request Lenses
miDryRun :: 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
.
miInstanceIds :: Lens' MonitorInstances [Text] Source #
One or more instance IDs.
Destructuring the Response
monitorInstancesResponse Source #
Creates a value of MonitorInstancesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mirsInstanceMonitorings
- The monitoring information.mirsResponseStatus
- -- | The response status code.
data MonitorInstancesResponse Source #
Contains the output of MonitorInstances.
See: monitorInstancesResponse
smart constructor.
Response Lenses
mirsInstanceMonitorings :: Lens' MonitorInstancesResponse [InstanceMonitoring] Source #
The monitoring information.
mirsResponseStatus :: Lens' MonitorInstancesResponse Int Source #
- - | The response status code.