The AWS SDK for JavaScript v2 has reached end-of-support.
We recommend that you migrate to AWS SDK for JavaScript v3. For additional details and information on how to migrate, please refer to the announcement.

Class: AWS.IAM

Inherits:
AWS.Service show all
Identifier:
iam
API Version:
2010-05-08
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

Identity and Access Management (IAM) is a web service for securely controlling access to Amazon Web Services services. With IAM, you can centrally manage users, security credentials such as access keys, and permissions that control which Amazon Web Services resources users and applications can access. For more information about IAM, see Identity and Access Management (IAM) and the Identity and Access Management User Guide.

Sending a Request Using IAM

var iam = new AWS.IAM();
iam.addClientIDToOpenIDConnectProvider(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the IAM object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var iam = new AWS.IAM({apiVersion: '2010-05-08'});

You can also set the API version globally in AWS.config.apiVersions using the iam service identifier:

AWS.config.apiVersions = {
  iam: '2010-05-08',
  // other service API versions
};

var iam = new AWS.IAM();

Version:

  • 2010-05-08

Waiter Resource States

This service supports a list of resource states that can be polled using the waitFor() method. The resource states are:

instanceProfileExists, userExists, roleExists, policyExists

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse