Cameron Wilcox
Cameron Wilcox

Reputation: 51

AWS.IAM is not a constructor JavaScript SDK

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

Upvotes: 2

Views: 4975

Answers (1)

John Hanley
John Hanley

Reputation: 81356

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

Upvotes: 5

Related Questions