admin管理员组

文章数量:1428512

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

本文标签: angularjsAWSIAM is not a constructor JavaScript SDKStack Overflow