class ZAWS::Services::IAM::Policy

Public Class Methods

new(shellout, aws) click to toggle source
# File lib/zaws/services/iam/policy.rb, line 10
def initialize(shellout, aws)
  @shellout=shellout
  @aws=aws
end

Public Instance Methods

view_default_policy_version(policy_arn, view, textout, verbose) click to toggle source
# File lib/zaws/services/iam/policy.rb, line 15
def view_default_policy_version(policy_arn, view, textout, verbose)
  @aws.awscli.command_iam.getPolicy.execute(policy_arn, 'json', verbose)
  version=@aws.awscli.data_iam.policy.defaultVersion
  @aws.awscli.command_iam.getPolicyVersion.execute(policy_arn, version, view, verbose)
  textout.puts(@aws.awscli.data_iam.policy_version.view()) if textout
end