Sha256: 1660fded1307e639e5bca810b8c77e655a35aacae609fe1890e871b82deb762f

Contents?: true

Size: 490 Bytes

Versions: 9

Compression:

Stored size: 490 Bytes

Contents

require "swa/resource"
require "swa/iam/credentials"
require "swa/iam/role_policy"

module Swa
  module IAM

    class Role < Resource

      def id
        role.role_id
      end

      def arn
        role.arn
      end

      def summary
        role.name
      end

      def policies
        RolePolicy.list(role.policies)
      end

      def policy(name)
        RolePolicy.new(role.policy(name))
      end

      private

      alias_method :role, :aws_resource

    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
swa-0.8.2 lib/swa/iam/role.rb
swa-0.8.1 lib/swa/iam/role.rb
swa-0.8.0 lib/swa/iam/role.rb
swa-0.7.7 lib/swa/iam/role.rb
swa-0.7.6 lib/swa/iam/role.rb
swa-0.7.5 lib/swa/iam/role.rb
swa-0.7.4 lib/swa/iam/role.rb
swa-0.7.3 lib/swa/iam/role.rb
swa-0.7.2 lib/swa/iam/role.rb