Class: ZAWS::Services::IAM::Role

Inherits:
Object
  • Object
show all
Defined in:
lib/zaws/services/iam/role.rb

Instance Method Summary collapse

Constructor Details

#initialize(shellout, aws) ⇒ Role

Returns a new instance of Role.



10
11
12
13
# File 'lib/zaws/services/iam/role.rb', line 10

def initialize(shellout, aws)
  @shellout=shellout
  @aws=aws
end

Instance Method Details

#view_policy(role, policy, view, textout, verbose) ⇒ Object



15
16
17
18
# File 'lib/zaws/services/iam/role.rb', line 15

def view_policy(role, policy, view, textout, verbose)
  @aws.awscli.command_iam.getRolePolicy.execute(role, policy, view, verbose)
  textout.puts(@aws.awscli.data_iam.role_policy.view())
end