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:
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 badgesTypeError: AWS.IAM is not a constructor
1 Answer
Reset to default 5This 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
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745525480a4631450.html
评论列表(0条)