Class: AwsIamUser
- Inherits:
-
Object
- Object
- AwsIamUser
- Includes:
- AwsSingularResourceMixin
- Defined in:
- lib/resources/aws/aws_iam_user.rb
Overview
author: Alex Bedley author: Steffanie Freeman author: Simon Varlow author: Chris Redekop
Defined Under Namespace
Classes: Backend
Instance Attribute Summary collapse
-
#access_keys ⇒ Object
readonly
Returns the value of attribute access_keys.
-
#attached_policy_arns ⇒ Object
readonly
Returns the value of attribute attached_policy_arns.
-
#attached_policy_names ⇒ Object
readonly
Returns the value of attribute attached_policy_names.
-
#has_console_password ⇒ Object
(also: #has_console_password?)
readonly
Returns the value of attribute has_console_password.
-
#has_mfa_enabled ⇒ Object
(also: #has_mfa_enabled?)
readonly
Returns the value of attribute has_mfa_enabled.
-
#inline_policy_names ⇒ Object
readonly
Returns the value of attribute inline_policy_names.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
Methods included from AwsSingularResourceMixin
Methods included from AwsResourceMixin
#catch_aws_errors, #check_resource_param_names, #initialize, #inspec_runner
Instance Attribute Details
#access_keys ⇒ Object (readonly)
Returns the value of attribute access_keys.
19 20 21 |
# File 'lib/resources/aws/aws_iam_user.rb', line 19 def access_keys @access_keys end |
#attached_policy_arns ⇒ Object (readonly)
Returns the value of attribute attached_policy_arns.
19 20 21 |
# File 'lib/resources/aws/aws_iam_user.rb', line 19 def attached_policy_arns @attached_policy_arns end |
#attached_policy_names ⇒ Object (readonly)
Returns the value of attribute attached_policy_names.
19 20 21 |
# File 'lib/resources/aws/aws_iam_user.rb', line 19 def attached_policy_names @attached_policy_names end |
#has_console_password ⇒ Object (readonly) Also known as: has_console_password?
Returns the value of attribute has_console_password.
19 20 21 |
# File 'lib/resources/aws/aws_iam_user.rb', line 19 def has_console_password @has_console_password end |
#has_mfa_enabled ⇒ Object (readonly) Also known as: has_mfa_enabled?
Returns the value of attribute has_mfa_enabled.
19 20 21 |
# File 'lib/resources/aws/aws_iam_user.rb', line 19 def has_mfa_enabled @has_mfa_enabled end |
#inline_policy_names ⇒ Object (readonly)
Returns the value of attribute inline_policy_names.
19 20 21 |
# File 'lib/resources/aws/aws_iam_user.rb', line 19 def inline_policy_names @inline_policy_names end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
19 20 21 |
# File 'lib/resources/aws/aws_iam_user.rb', line 19 def username @username end |
Instance Method Details
#has_attached_policies? ⇒ Boolean
33 34 35 36 |
# File 'lib/resources/aws/aws_iam_user.rb', line 33 def has_attached_policies? return nil unless exists? !attached_policy_names.empty? end |
#has_inline_policies? ⇒ Boolean
38 39 40 41 |
# File 'lib/resources/aws/aws_iam_user.rb', line 38 def has_inline_policies? return nil unless exists? !inline_policy_names.empty? end |
#name ⇒ Object
24 25 26 27 |
# File 'lib/resources/aws/aws_iam_user.rb', line 24 def name warn "[DEPRECATION] - Property ':name' is deprecated on the aws_iam_user resource. Use ':username' instead." username end |
#to_s ⇒ Object
29 30 31 |
# File 'lib/resources/aws/aws_iam_user.rb', line 29 def to_s "IAM User #{username}" end |