Sha256: cfdfa8cce92b1632d2840ce7dfef05f9e3a278c06314f0cff8627df511a71141

Contents?: true

Size: 565 Bytes

Versions: 10

Compression:

Stored size: 565 Bytes

Contents

module Outliers
  module Resources
    module Aws
      module Iam
        class User < Resource

          def no_access_keys?
            logger.debug "#{id} has #{access_keys.count} access key(s)."
            !access_keys.any?
          end

          def no_password_set?
            !source.login_profile.exists?
          end

          def mfa_enabled?
            source.mfa_devices.count > 0
          end

          private

          def access_keys
            @access_keys ||= source.access_keys
          end

        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
outliers-0.6.0 lib/outliers/resources/aws/iam/user.rb
outliers-0.5.1 lib/outliers/resources/aws/iam/user.rb
outliers-0.5.0 lib/outliers/resources/aws/iam/user.rb
outliers-0.5.0.beta3 lib/outliers/resources/aws/iam/user.rb
outliers-0.5.0.beta2 lib/outliers/resources/aws/iam/user.rb
outliers-0.5.0.beta1 lib/outliers/resources/aws/iam/user.rb
outliers-0.3.3 lib/outliers/resources/aws/iam/user.rb
outliers-0.3.2 lib/outliers/resources/aws/iam/user.rb
outliers-0.3.1 lib/outliers/resources/aws/iam/user.rb
outliers-0.3.0 lib/outliers/resources/aws/iam/user.rb