How to update API Version that is being called for CloudWatch?

0

I'm using API Gateway to integrate with CloudWatch and when using majority of actions I get the following error message as the returned response.

{
"Error": {
"Code": "InvalidAction",
"Message": "Could not find operation DescribeAlarms for version 2009-05-15",
"Type": "Sender"
},
"RequestId": "828bf814-a81a-41d2-8560-f1f64b81d977"
}

This is happening as the API Version it should be using is 2010-08-01, I tried updating the HTTP Header with X-Amz-Target and putting 'GraniteServiceVersion20100801.DescribeAlarms' as the value in Integration Request but nothing changed.

Edited by: pixpixpix on Dec 14, 2020 2:45 PM

1개 답변
1

Under Method Integration -> URL Query String Parameters > I added Version as the name and '2010-08-01' as the value.

All actions are now working as expected.

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠