v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1421274230.6 KB

Returns the projected utilization metrics of Amazon EC2 instance recommendations.

The Cpu and Memory metrics are the only projected utilization metrics returned when you run this action. Additionally, the Memory metric is returned only for resources that have the unified CloudWatch agent installed on them. For more information, see Enabling Memory Utilization with the CloudWatch Agent.

post/#X-Amz-Target=ComputeOptimizerService.GetEC2RecommendationProjectedMetrics

Headers

X-Amz-Target'ComputeOptimizerService.GetEC2RecommendationProjectedMetrics' required

Request body

instanceArnstring required

The Amazon Resource Name (ARN) of the instances for which to return recommendation projected metrics.

stat'Maximum' | 'Average' required

The statistic of the projected metrics.

periodinteger required

The granularity, in seconds, of the projected metrics data points.

startTimestring date-time required

The timestamp of the first projected metrics data point to return.

endTimestring date-time required

The timestamp of the last projected metrics data point to return.

Response

Success