aws compute-optimizer get-ec2-recommendation-projected-metrics

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


--instance-arn <string>The Amazon Resource Name (ARN) of the instances for which to return recommendation projected metrics
--stat <string>The statistic of the projected metrics
--period <integer>The granularity, in seconds, of the projected metrics data points
--start-time <timestamp>The time stamp of the first projected metrics data point to return
--end-time <timestamp>The time stamp of the last projected metrics data point to return
--cli-input-json <string>Performs service operation based on the JSON string provided. The JSON string follows the format provided by ``--generate-cli-skeleton``. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally
--generate-cli-skeleton <string>Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value ``input``, prints a sample input JSON that can be used as an argument for ``--cli-input-json``. If provided with the value ``output``, it validates the command inputs and returns a sample output JSON for that command