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是有效的值。 :)

profile picture
EXPERTO
preguntada hace 5 meses15 visualizaciones
1 Respuesta
0

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

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

  • 错误的:JWTConfiguration
  • 正确的:JwtConfiguration
profile picture
EXPERTO
respondido hace 5 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas