0

AWS Apigateway を介して ssm パラメータを解決しようとしていますが、例が見つかりません。メソッドの統合を定義するクラウド形成部分は次のとおりです。

Integration:
   Type: AWS
   Uri: !Sub "arn:aws:apigateway:us-west-2:ssm:action/GetParameter"
   IntegrationHttpMethod: POST
   PassthroughBehavior: NEVER
   RequestTemplates: 
      application/json: ' 
            {
              "Name": "/dev/configs/xoxo"
            }
      '

AWSコンソールでテストすると、これはログです

Mon Aug 10 18:14:10 UTC 2020 : Method request body before transformations: 
Mon Aug 10 18:14:10 UTC 2020 : Endpoint request URI: https://ssm.us-west-2.amazonaws.com/?Action=GetParameter
Mon Aug 10 18:14:10 UTC 2020 : Endpoint request headers: {Authorization=**********************************************************************************************************************************************************************************************************************************************************************dbf24f, X-Amz-Date=20200810T181410Z, x-amzn-apigateway-api-id=mrvijesndc, Accept=application/json, User-Agent=AmazonAPIGateway_mrvijesndc, X-Amz-Security-Token=...[TRUNCATED]
Mon Aug 10 18:14:10 UTC 2020 : Endpoint request body after transformations: { "Name": "/dev/configs/xoxo"}
Mon Aug 10 18:14:10 UTC 2020 : Sending request to https://ssm.us-west-2.amazonaws.com/?Action=GetParameter
Mon Aug 10 18:14:10 UTC 2020 : Received response. Status: 400, Integration latency: 43 ms
Mon Aug 10 18:14:10 UTC 2020 : Endpoint response headers: {Server=Server, Date=Mon, 10 Aug 2020 18:14:10 GMT, Content-Type=application/json, Content-Length=220, Connection=keep-alive, x-amzn-RequestId=c2e56a30-d846-4cd6-b4af-1df95267a3fd}
Mon Aug 10 18:14:10 UTC 2020 : Endpoint response body before transformations: {"Error":{"Code":"ValidationError","Message":"1 validation error detected: Value null at 'name' failed to satisfy constraint: Member must not be null.","Type":"Sender"},"RequestId":"c2e56a30-d846-4cd6-b4af-1df95267a3fd"}

正しく電話をかけていないと思いますが、誰か助けてもらえますか?

4

1 に答える 1