class AWS::IAM::UserCollection
def create name, options = {}
-
(User)
- Returns the newly created user.
Options Hash:
(**options)
-
:path
(String
) -- The path for the user name.
Parameters:
-
name
(String
) -- Name of the user to create.
def create name, options = {} create_opts = {} create_opts[:user_name] = name create_opts[:path] = options[:path] if options[:path] resp = client.create_user(create_opts) User.new_from(:create_user, resp.user, resp.user.user_name, :config => config) end