最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

angularjs - AWS.IAM is not a constructor JavaScript SDK - Stack Overflow

programmeradmin0浏览0评论

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

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

Share Improve this question edited Nov 2, 2017 at 18:38 Sean the Bean 5,4125 gold badges39 silver badges40 bronze badges asked Nov 2, 2017 at 17:38 Cameron WilcoxCameron Wilcox 511 silver badge4 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

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

发布评论

评论列表(0)

  1. 暂无评论