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

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 # 
Instance details

Defined in Network.AWS.EC2.MonitorInstances

Data MonitorInstances # 
Instance details

Defined in Network.AWS.EC2.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 # 
Instance details

Defined in Network.AWS.EC2.MonitorInstances

Show MonitorInstances # 
Instance details

Defined in Network.AWS.EC2.MonitorInstances

Generic MonitorInstances # 
Instance details

Defined in Network.AWS.EC2.MonitorInstances

Associated Types

type Rep MonitorInstances :: Type -> Type #

Hashable MonitorInstances # 
Instance details

Defined in Network.AWS.EC2.MonitorInstances

AWSRequest MonitorInstances # 
Instance details

Defined in Network.AWS.EC2.MonitorInstances

Associated Types

type Rs MonitorInstances :: Type #

ToHeaders MonitorInstances # 
Instance details

Defined in Network.AWS.EC2.MonitorInstances

ToPath MonitorInstances # 
Instance details

Defined in Network.AWS.EC2.MonitorInstances

ToQuery MonitorInstances # 
Instance details

Defined in Network.AWS.EC2.MonitorInstances

NFData MonitorInstances # 
Instance details

Defined in Network.AWS.EC2.MonitorInstances

Methods

rnf :: MonitorInstances -> () #

type Rep MonitorInstances # 
Instance details

Defined in Network.AWS.EC2.MonitorInstances

type Rep MonitorInstances = D1 (MetaData "MonitorInstances" "Network.AWS.EC2.MonitorInstances" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "MonitorInstances'" PrefixI True) (S1 (MetaSel (Just "_miDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_miInstanceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])))
type Rs MonitorInstances # 
Instance details

Defined in Network.AWS.EC2.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 # 
Instance details

Defined in Network.AWS.EC2.MonitorInstances

Data MonitorInstancesResponse # 
Instance details

Defined in Network.AWS.EC2.MonitorInstances

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 # 
Instance details

Defined in Network.AWS.EC2.MonitorInstances

Show MonitorInstancesResponse # 
Instance details

Defined in Network.AWS.EC2.MonitorInstances

Generic MonitorInstancesResponse # 
Instance details

Defined in Network.AWS.EC2.MonitorInstances

Associated Types

type Rep MonitorInstancesResponse :: Type -> Type #

NFData MonitorInstancesResponse # 
Instance details

Defined in Network.AWS.EC2.MonitorInstances

type Rep MonitorInstancesResponse # 
Instance details

Defined in Network.AWS.EC2.MonitorInstances

type Rep MonitorInstancesResponse = D1 (MetaData "MonitorInstancesResponse" "Network.AWS.EC2.MonitorInstances" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "MonitorInstancesResponse'" PrefixI True) (S1 (MetaSel (Just "_mirsInstanceMonitorings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [InstanceMonitoring])) :*: S1 (MetaSel (Just "_mirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

mirsResponseStatus :: Lens' MonitorInstancesResponse Int #

  • - | The response status code.