Class: AWS::IAM::Policy

Inherits:
ModelElement show all
Defined in:
lib/cfn-model/model/iam_policy.rb

Instance Attribute Summary collapse

Attributes inherited from ModelElement

#logical_resource_id, #resource_type

Instance Method Summary collapse

Methods inherited from ModelElement

#==, #to_s

Constructor Details

#initializePolicy

Returns a new instance of Policy.



8
9
10
11
12
13
# File 'lib/cfn-model/model/iam_policy.rb', line 8

def initialize
  @groups = []
  @roles = []
  @users = []
  @resource_type = 'AWS::IAM::Policy'
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ModelElement

Instance Attribute Details

#groupsObject

Returns the value of attribute groups.



4
5
6
# File 'lib/cfn-model/model/iam_policy.rb', line 4

def groups
  @groups
end

#policy_documentObject

Returns the value of attribute policy_document.



6
7
8
# File 'lib/cfn-model/model/iam_policy.rb', line 6

def policy_document
  @policy_document
end

#policyDocumentObject

Returns the value of attribute policyDocument.



4
5
6
# File 'lib/cfn-model/model/iam_policy.rb', line 4

def policyDocument
  @policyDocument
end

#policyNameObject

Returns the value of attribute policyName.



4
5
6
# File 'lib/cfn-model/model/iam_policy.rb', line 4

def policyName
  @policyName
end

#rolesObject

Returns the value of attribute roles.



4
5
6
# File 'lib/cfn-model/model/iam_policy.rb', line 4

def roles
  @roles
end

#usersObject

Returns the value of attribute users.



4
5
6
# File 'lib/cfn-model/model/iam_policy.rb', line 4

def users
  @users
end