AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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:
aws-sdk-resources/lib/aws-sdk-resources/services/iam.rb

Overview

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

Aws::IAM::Client

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

iam = Aws::IAM::Client.new(region: 'us-east-1')
iam.operation_names
#=> [: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.

Aws::IAM::Errors

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

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

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