amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.MonitorInstances

Description

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

Creating a Request

data MonitorInstances Source #

See: newMonitorInstances smart constructor.

Constructors

MonitorInstances' 

Fields

  • dryRun :: 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.

  • instanceIds :: [Text]

    The IDs of the instances.

Instances

Instances details
ToHeaders MonitorInstances Source # 
Instance details

Defined in Amazonka.EC2.MonitorInstances

ToPath MonitorInstances Source # 
Instance details

Defined in Amazonka.EC2.MonitorInstances

ToQuery MonitorInstances Source # 
Instance details

Defined in Amazonka.EC2.MonitorInstances

AWSRequest MonitorInstances Source # 
Instance details

Defined in Amazonka.EC2.MonitorInstances

Associated Types

type AWSResponse MonitorInstances #

Generic MonitorInstances Source # 
Instance details

Defined in Amazonka.EC2.MonitorInstances

Associated Types

type Rep MonitorInstances :: Type -> Type #

Read MonitorInstances Source # 
Instance details

Defined in Amazonka.EC2.MonitorInstances

Show MonitorInstances Source # 
Instance details

Defined in Amazonka.EC2.MonitorInstances

NFData MonitorInstances Source # 
Instance details

Defined in Amazonka.EC2.MonitorInstances

Methods

rnf :: MonitorInstances -> () #

Eq MonitorInstances Source # 
Instance details

Defined in Amazonka.EC2.MonitorInstances

Hashable MonitorInstances Source # 
Instance details

Defined in Amazonka.EC2.MonitorInstances

type AWSResponse MonitorInstances Source # 
Instance details

Defined in Amazonka.EC2.MonitorInstances

type Rep MonitorInstances Source # 
Instance details

Defined in Amazonka.EC2.MonitorInstances

type Rep MonitorInstances = D1 ('MetaData "MonitorInstances" "Amazonka.EC2.MonitorInstances" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "MonitorInstances'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "instanceIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text])))

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.

Destructuring the Response

data MonitorInstancesResponse Source #

See: newMonitorInstancesResponse smart constructor.

Constructors

MonitorInstancesResponse' 

Fields

Instances

Instances details
Generic MonitorInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.MonitorInstances

Associated Types

type Rep MonitorInstancesResponse :: Type -> Type #

Read MonitorInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.MonitorInstances

Show MonitorInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.MonitorInstances

NFData MonitorInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.MonitorInstances

Eq MonitorInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.MonitorInstances

type Rep MonitorInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.MonitorInstances

type Rep MonitorInstancesResponse = D1 ('MetaData "MonitorInstancesResponse" "Amazonka.EC2.MonitorInstances" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "MonitorInstancesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceMonitorings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InstanceMonitoring])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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