AWS.IAM is not a constructor JavaScript SDK

北城余情 提交于 2019-12-22 17:05:48

问题


I'm using the AWS JavaScript SDK.

Both -

var s3 = new AWS.S3();
var dynamodb = new AWS.DynamoDB();

Works fine.

When I try -

var iam = new AWS.IAM();

I am presented with:

TypeError: AWS.IAM is not a constructor


回答1:


This means that IAM is not part of the SDK that you downloaded.

In the current SDK builder, IAM is not enabled by default. Go to this page and add the services that you need and download a new version.

SDK Builder



来源:https://stackoverflow.com/questions/47081457/aws-iam-is-not-a-constructor-javascript-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!