Class: Ansible::Ruby::Modules::Iam_role
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Iam_role
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/amazon/iam_role.rb
Overview
Manage AWS IAM roles
Instance Method Summary collapse
-
#assume_role_policy_document ⇒ String?
The trust relationship policy document that grants an entity permission to assume the role.,This parameter is required when C(state=present).
-
#boundary ⇒ Object?
Add the ARN of an IAM managed policy to restrict the permissions this role can pass on to IAM roles/users that it creates.,Boundaries cannot be set on Instance Profiles, so if this option is specified then C(create_instance_profile) must be false.,This is intended for roles/users that have permissions to create new IAM objects.,For more information on boundaries, see U(docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html).
-
#create_instance_profile ⇒ Boolean?
Creates an IAM instance profile along with the role.
-
#description ⇒ String?
Provide a description of the new role.
-
#managed_policy ⇒ Array<String>, ...
A list of managed policy ARNs or, since Ansible 2.4, a list of either managed policy ARNs or friendly names.
-
#name ⇒ String
The name of the role to create.
-
#path ⇒ String?
The path to the role.
-
#purge_policies ⇒ Boolean?
Detaches any managed policies not listed in the “managed_policy” option.
-
#state ⇒ :present, ...
Create or remove the IAM role.
Methods inherited from Base
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
#assume_role_policy_document ⇒ String?
27 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/iam_role.rb', line 27 attribute :assume_role_policy_document |
#boundary ⇒ Object?
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/iam_role.rb', line 24 attribute :boundary |
#create_instance_profile ⇒ Boolean?
43 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/iam_role.rb', line 43 attribute :create_instance_profile |
#description ⇒ String?
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/iam_role.rb', line 20 attribute :description |
#managed_policy ⇒ Array<String>, ...
31 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/iam_role.rb', line 31 attribute :managed_policy |
#name ⇒ String
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/iam_role.rb', line 16 attribute :name |
#path ⇒ String?
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/iam_role.rb', line 12 attribute :path |
#purge_policies ⇒ Boolean?
35 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/iam_role.rb', line 35 attribute :purge_policies |
#state ⇒ :present, ...
39 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/iam_role.rb', line 39 attribute :state |