Skip to content

Monitor Instances

ec2_monitor_instances R Documentation

Enables detailed monitoring for a running instance

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 unmonitor_instances.

Usage

ec2_monitor_instances(InstanceIds, DryRun)

Arguments

InstanceIds

[required] The IDs of the instances.

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.

Value

A list with the following syntax:

list(
  InstanceMonitorings = list(
    list(
      InstanceId = "string",
      Monitoring = list(
        State = "disabled"|"disabling"|"enabled"|"pending"
      )
    )
  )
)

Request syntax

svc$monitor_instances(
  InstanceIds = list(
    "string"
  ),
  DryRun = TRUE|FALSE
)