Class: ZAWS::Services::IAM::Policy

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

Instance Method Summary collapse

Constructor Details

#initialize(shellout, aws) ⇒ Policy

Returns a new instance of Policy.



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

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

Instance Method Details

#view_default_policy_version(policy_arn, view, textout, verbose) ⇒ Object



15
16
17
18
19
20
# 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