I have this command that works as expected. But I will like to use boto instead.
aws cloudwatch get-metric-statistics \
--region ap-south-1 \
--namespace AWS/RDS \
--metric-name DBLoad \
--period 60 \
--statistics Average \
--start-time 2023-06-12T21:00:00Z \
--end-time 2023-06-12T23:59:00Z \
--dimensions Name=DBInstanceIdentifier,Value=sql-rds
Does boto support all the parameters?
The AWS CloudWatch functionality, including the get_metric_statistics operation, is available in Boto3
See here: Boto3 documentation - CloudWatch Client - get_metric_statistics
Using Boto3 - the code would be :
However, if you need to use Boto the documentation is here: boto.ec2.cloudwatch
Using Boto - the code would be :