Cloudformation => 使用 Cloudformation 创建 ApiGateaway 的授权方 => 创建授权方时 JWTConfiguration 出错。应该如何修正?

0

【以下的问题经过翻译处理】 通过AWS Cloudformation创建网关API时,在创建授权程序时遇到了JWTConfiguration的问题。

Authorizer:
   Type:'AWS :: ApiGatewayV2 :: Authorizer'
   Properties:
     Name:VSTORES_Api_CognitoAuthorizer
     ApiId:zzzzzzzzzzzz
     AuthorizerType:JWT
     IdentitySource:
       -'$ request.header.Authorization'
     AuthorizerResultTtlInSeconds:3600
     JWTConfiguration:
       受众:
         - xxxxxxxxxxxxxxxxxxxxx
       发行人:https://cognito-idp.us-east-1.amazonaws.com/us-east-xxxxxxx

我收到了以下错误:

属性验证失败:[{/}中遇到不支持的属性:[JWTConfiguration]]

我做错了什么?

PD:显然,xxxxx和zzzz是有效的值。 :)

1개 답변
0

【以下的回答经过翻译处理】 你好,@Mariano Gomez Bidondo

你的一些属性名称使用了大写。

  • 错误的:JWTConfiguration
  • 正确的:JwtConfiguration
profile picture
전문가
답변함 5달 전

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

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

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