AWS.IAM不是构造函数JavaScript SDK [英] AWS.IAM is not a constructor JavaScript SDK

查看:244
本文介绍了AWS.IAM不是构造函数JavaScript SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用AWS JavaScript SDK

两者 -

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

工作正常。

当我尝试 -

var iam = new AWS.IAM();

我看到:


TypeError:AWS.IAM不是构造函数

TypeError: AWS.IAM is not a constructor


推荐答案

这意味着IAM不是您下载的SDK的一部分。

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

在当前的SDK构建器中,默认情况下不启用IAM。转到此页面并添加所需的服务并下载新版本。

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

这篇关于AWS.IAM不是构造函数JavaScript SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆