Class: AwsIamUser

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from AwsSingularResourceMixin

#exists?, included

Methods included from AwsResourceMixin

#catch_aws_errors, #check_resource_param_names, #initialize, #inspec_runner

Instance Attribute Details

#access_keysObject (readonly)

Returns the value of attribute access_keys.



17
18
19
# File 'lib/resources/aws/aws_iam_user.rb', line 17

def access_keys
  @access_keys
end

#has_console_passwordObject (readonly) Also known as: has_console_password?

Returns the value of attribute has_console_password.



17
18
19
# File 'lib/resources/aws/aws_iam_user.rb', line 17

def has_console_password
  @has_console_password
end

#has_mfa_enabledObject (readonly) Also known as: has_mfa_enabled?

Returns the value of attribute has_mfa_enabled.



17
18
19
# File 'lib/resources/aws/aws_iam_user.rb', line 17

def has_mfa_enabled
  @has_mfa_enabled
end

#usernameObject (readonly)

Returns the value of attribute username.



17
18
19
# File 'lib/resources/aws/aws_iam_user.rb', line 17

def username
  @username
end

Instance Method Details

#nameObject



21
22
23
24
# File 'lib/resources/aws/aws_iam_user.rb', line 21

def name
  warn "[DEPRECATION] - Property ':name' is deprecated on the aws_iam_user resource.  Use ':username' instead."
  username
end

#to_sObject



26
27
28
# File 'lib/resources/aws/aws_iam_user.rb', line 26

def to_s
  "IAM User #{username}"
end