class AWS::IAM::AccountAliasCollection

3 methods will be deprecated and this interface will be exposed.
If IAM allows accounts to have multiple aliases, then those previous
* remove_account_alias
* account_alias
* create_account_alias
the following methods:
to work with it, but instead we consume this by the IAM class for
Because the API is modeled as a collection this class could be used
alias.
creating a 2nd alias replaces the first, it does not add an additional
could create/manage multiple aliases for a single account. However,
Currently IAM exposes the account alias in a collection, as if you
@private

def create account_alias

Returns:
  • (String) - Returns the account_alias string that was passed.

Parameters:
  • account_alias (String) --
def create account_alias
  client.create_account_alias(:account_alias => account_alias)
  account_alias
end

def delete account_alias

Returns:
  • (nil) -

Parameters:
  • account_alias (String) -- The account alias to delete.
def delete account_alias
  client.delete_account_alias(:account_alias => account_alias)
  nil
end

def each_item response, &block

def each_item response, &block
  response.account_aliases.each do |account_alias|
    yield(account_alias)
  end
end

def request_method

def request_method
  :list_account_aliases
end