,比如'statemacine is not assignable to paramaeter of type AwsIntegrationProps‘ const resource = this.api.root.addResource, new apigw.AwsIntegration(handler), { apiKeyRequired: true });
//handler is above statemachine 我的api网关集成请求在控制台中如下所示。
我有一个带有IAM身份验证的API网关端点,没有自定义域名,没有API密钥,API被部署到Prod,也没有启用AWS WAF (TBMK)和VPC代理集成请求方法。我是从Lambda调用这个端点(附带了调用API的execute-api:Invoke权限),但是我在消息Forbidden中得到了一个403错误。在Lambda中调用API网关的示例代码:
final HttpURLC