amazonka-ec2-1.4.5: 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 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 .

Synopsis

Creating a Request

monitorInstances :: MonitorInstances #

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 is DryRunOperation . Otherwise, it is UnauthorizedOperation .
  • miInstanceIds - One or more instance IDs.

data MonitorInstances #

Contains the parameters for MonitorInstances.

See: monitorInstances smart constructor.

Instances

Eq MonitorInstances # 
Data MonitorInstances # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MonitorInstances -> c MonitorInstances #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MonitorInstances #

toConstr :: MonitorInstances -> Constr #

dataTypeOf :: MonitorInstances -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c MonitorInstances) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MonitorInstances) #

gmapT :: (forall b. Data b => b -> b) -> MonitorInstances -> MonitorInstances #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MonitorInstances -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MonitorInstances -> r #

gmapQ :: (forall d. Data d => d -> u) -> MonitorInstances -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> MonitorInstances -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MonitorInstances -> m MonitorInstances #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MonitorInstances -> m MonitorInstances #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MonitorInstances -> m MonitorInstances #

Read MonitorInstances # 
Show MonitorInstances # 
Generic MonitorInstances # 
Hashable MonitorInstances # 
NFData MonitorInstances # 

Methods

rnf :: MonitorInstances -> () #

AWSRequest MonitorInstances # 
ToQuery MonitorInstances # 
ToPath MonitorInstances # 
ToHeaders MonitorInstances # 
type Rep MonitorInstances # 
type Rep MonitorInstances = D1 (MetaData "MonitorInstances" "Network.AWS.EC2.MonitorInstances" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "MonitorInstances'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_miDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_miInstanceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]))))
type Rs MonitorInstances # 

Request Lenses

miDryRun :: Lens' MonitorInstances (Maybe Bool) #

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] #

One or more instance IDs.

Destructuring the Response

monitorInstancesResponse #

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:

data MonitorInstancesResponse #

Contains the output of MonitorInstances.

See: monitorInstancesResponse smart constructor.

Instances

Eq MonitorInstancesResponse # 
Data MonitorInstancesResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MonitorInstancesResponse -> c MonitorInstancesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MonitorInstancesResponse #

toConstr :: MonitorInstancesResponse -> Constr #

dataTypeOf :: MonitorInstancesResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c MonitorInstancesResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MonitorInstancesResponse) #

gmapT :: (forall b. Data b => b -> b) -> MonitorInstancesResponse -> MonitorInstancesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MonitorInstancesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MonitorInstancesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> MonitorInstancesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> MonitorInstancesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MonitorInstancesResponse -> m MonitorInstancesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MonitorInstancesResponse -> m MonitorInstancesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MonitorInstancesResponse -> m MonitorInstancesResponse #

Read MonitorInstancesResponse # 
Show MonitorInstancesResponse # 
Generic MonitorInstancesResponse # 
NFData MonitorInstancesResponse # 
type Rep MonitorInstancesResponse # 
type Rep MonitorInstancesResponse = D1 (MetaData "MonitorInstancesResponse" "Network.AWS.EC2.MonitorInstances" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "MonitorInstancesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_mirsInstanceMonitorings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [InstanceMonitoring]))) (S1 (MetaSel (Just Symbol "_mirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

mirsResponseStatus :: Lens' MonitorInstancesResponse Int #

  • - | The response status code.