Class: Ansible::Ruby::Modules::Iam

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/cloud/amazon/iam.rb

Overview

Allows for the management of IAM users, user API keys, groups, roles.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#access_key_idsObject?

Returns A list of the keys that you want impacted by the access_key_state paramter.

Returns:

  • (Object, nil)

    A list of the keys that you want impacted by the access_key_state paramter.



41
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/iam.rb', line 41

attribute :access_key_ids

#access_key_state:create, ...

Returns When type is user, it creates, removes, deactivates or activates a user’s access key(s). Note that actions apply only to keys specified.

Returns:

  • (:create, :remove, :active, :inactive, nil)

    When type is user, it creates, removes, deactivates or activates a user’s access key(s). Note that actions apply only to keys specified.



33
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/iam.rb', line 33

attribute :access_key_state

#groupsObject?

Returns A list of groups the user should belong to. When update, will gracefully remove groups not listed.

Returns:

  • (Object, nil)

    A list of groups the user should belong to. When update, will gracefully remove groups not listed.



44
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/iam.rb', line 44

attribute :groups

#iam_type:user, ...

Returns Type of IAM resource.

Returns:

  • (:user, :group, :role)

    Type of IAM resource



11
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/iam.rb', line 11

attribute :iam_type

#key_countString?

Returns When access_key_state is create it will ensure this quantity of keys are present. Defaults to 1.

Returns:

  • (String, nil)

    When access_key_state is create it will ensure this quantity of keys are present. Defaults to 1.



37
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/iam.rb', line 37

attribute :key_count

#nameString

Returns Name of IAM resource to create or identify.

Returns:

  • (String)

    Name of IAM resource to create or identify



15
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/iam.rb', line 15

attribute :name

#new_nameObject?

Returns When state is update, will replace name with new_name on IAM resource.

Returns:

  • (Object, nil)

    When state is update, will replace name with new_name on IAM resource



19
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/iam.rb', line 19

attribute :new_name

#new_pathObject?

Returns When state is update, will replace the path with new_path on the IAM resource.

Returns:

  • (Object, nil)

    When state is update, will replace the path with new_path on the IAM resource



22
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/iam.rb', line 22

attribute :new_path

#passwordString?

Returns When type is user and state is present, define the users login password. Also works with update. Note that always returns changed.

Returns:

  • (String, nil)

    When type is user and state is present, define the users login password. Also works with update. Note that always returns changed.



47
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/iam.rb', line 47

attribute :password

#pathString?

Returns When creating or updating, specify the desired path of the resource. If state is present, it will replace the current path to match what is passed in when they do not match.

Returns:

  • (String, nil)

    When creating or updating, specify the desired path of the resource. If state is present, it will replace the current path to match what is passed in when they do not match.



29
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/iam.rb', line 29

attribute :path

#state:present, ...

Returns Whether to create, delete or update the IAM resource. Note, roles cannot be updated.

Returns:

  • (:present, :absent, :update)

    Whether to create, delete or update the IAM resource. Note, roles cannot be updated.



25
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/iam.rb', line 25

attribute :state

#update_password:always, ...

Returns C(always) will update passwords if they differ. C(on_create) will only set the password for newly created users.

Returns:

  • (:always, :on_create, nil)

    C(always) will update passwords if they differ. C(on_create) will only set the password for newly created users.



51
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/iam.rb', line 51

attribute :update_password