Learn R Programming

paws.compute (version 0.1.12)

ec2_monitor_instances: Enables detailed monitoring for a running instance

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 .

Usage

ec2_monitor_instances(InstanceIds, DryRun)

Value

A list with the following syntax:

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

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.

Request syntax

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