You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Module: Aws::IAM

Defined in:


This module provides a client for making API requests to AWS Identity and Access Management.


The Client class provides one-to-one mapping for each API operation.

iam = 'us-east-1')
#=> [:add_client_id_to_open_id_connect_provider, :add_role_to_instance_profile, :add_user_to_group, :attach_group_policy, ...]

Each API operation method accepts a hash of request parameters and returns a response object.

resp = iam.add_client_id_to_open_id_connect_provider(params)

See Client for more information.


Errors returned from AWS Identity and Access Management are defined in the Errors module and extend Errors::ServiceError.

  # do stuff
rescue Aws::IAM::Errors::ServiceError
  # rescues all errors returned by AWS Identity and Access Management

See Errors for more information.

Defined Under Namespace

Modules: Errors, Types Classes: AccessKey, AccessKeyPair, AccountPasswordPolicy, AccountSummary, AssumeRolePolicy, Client, CurrentUser, Group, GroupPolicy, InstanceProfile, LoginProfile, MfaDevice, Policy, PolicyVersion, Resource, Role, RolePolicy, SamlProvider, ServerCertificate, SigningCertificate, User, UserPolicy, VirtualMfaDevice