A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/sdkforruby/api/Aws/IAM/Resource.html below:

Resource — AWS SDK for Ruby V2

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

Class: Aws::IAM::Resource Overview

This class provides a resource oriented interface for IAM. To create a resource object:

resource = Aws::IAM::Resource.new

You can supply a client object with custom configuration that will be used for all resource operations. If you do not pass :client, a default client will be constructed.

client = Aws::IAM::Client.new(region: 'us-west-2')
resource = Aws::IAM::Resource.new(client: client)
Resource Resource Classes

Aws::IAM::Resource has the following resource classes:

Attribute Summary collapse Instance Attribute Summary Attributes inherited from Resources::Resource

#client, #identifiers

Instance Method Summary collapse Methods inherited from Resources::Resource

add_data_attribute, add_identifier, #data, data_attributes, #data_loaded?, identifiers, #load, #wait_until

Methods included from Resources::OperationMethods

#add_batch_operation, #add_operation, #batch_operation, #batch_operation_names, #batch_operations, #operation, #operation_names, #operations

Constructor Details #initialize(options = {}) ⇒ Object #initialize(options = {}) ⇒ Object Instance Method Details #change_password(options = {}) ⇒ Struct

Changes the password of the IAM user who is calling this operation. The AWS account root user password is not affected by this operation.

To change the password for a different user, see UpdateLoginProfile. For more information about modifying passwords, see Managing Passwords in the IAM User Guide.

#create_account_alias(options = {}) ⇒ Struct #create_group(options = {}) ⇒ Group #create_policy(options = {}) ⇒ Policy #create_role(options = {}) ⇒ Role #create_user(options = {}) ⇒ User #delete_account_aliasSeahorse::Client::Response, false
9
10
11
12
13
14
15
# File 'aws-sdk-resources/lib/aws-sdk-resources/services/iam.rb', line 9

def delete_account_alias
  if name = @client.list_account_aliases.account_aliases.first
    @client.delete_account_alias(account_alias: name)
  else
    false
  end
end
#groups(options = {}) ⇒ Collection<Group>

Returns a Collection of Group resources. No API requests are made until you call an enumerable method on the collection. Client#list_groups will be called multiple times until every Group has been yielded.

#policies(options = {}) ⇒ Collection<Policy> #roles(options = {}) ⇒ Collection<Role> #users(options = {}) ⇒ Collection<User>

Returns a Collection of User resources. No API requests are made until you call an enumerable method on the collection. Client#list_users will be called multiple times until every User has been yielded.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4