amazonka-ec2-1.4.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.MonitorInstances

Contents

Description

Enables monitoring for a running instance. For more information about monitoring instances, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide.

Synopsis

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:

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:

Response Lenses

mirsInstanceMonitorings :: Lens' MonitorInstancesResponse [InstanceMonitoring] Source

Monitoring information for one or more instances.