简体   繁体   中英

AWS API Gateway Generated SDK does not contain client js file

I have created an API using the AWS Api Gateway Service, and am ready to use the javascript sdk in a simple webpage.

However, the instructions for using the javascript SDK here show an import for a js file called apigClient. I can only assume this is where the client class is stored for the api. However, when I generate the SDK for MY API, there is no such file (as in, the older file in the unzipped folder is lib. There is no js file in the root directory.)

Am I expected to create this file on my own? If so, I did not see any instructions to do so. Are there? What am I missing here?

I had the same problem, and I fixed it by deploying API .

See step4 "Deploy Your API" in this link.

https://aws.amazon.com/getting-started/projects/build-serverless-web-app-lambda-apigateway-s3-dynamodb-cognito/module-4/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM