EC2.Instance.
monitor
(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = instance.monitor(
DryRun=True|False
)
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.{
'InstanceMonitorings': [
{
'InstanceId': 'string',
'Monitoring': {
'State': 'disabled'|'disabling'|'enabled'|'pending'
}
},
]
}
Response Structure
The monitoring information.
Describes the monitoring of an instance.
The ID of the instance.
The monitoring for the instance.
Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring is enabled.