Class: AWS::IAM::Role

Inherits:
ModelElement show all
Defined in:
lib/cfn-model/model/iam_role.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

#initializeRole

Returns a new instance of Role.



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

def initialize
  @policies = []
  @managedPolicyArns = []
  @policy_objects = []
  @resource_type = 'AWS::IAM::Role'
end

Dynamic Method Handling

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

Instance Attribute Details

#assume_role_policy_documentObject

Returns the value of attribute assume_role_policy_document.



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

def assume_role_policy_document
  @assume_role_policy_document
end

#assumeRolePolicyDocumentObject

Returns the value of attribute assumeRolePolicyDocument.



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

def assumeRolePolicyDocument
  @assumeRolePolicyDocument
end

#managedPolicyArnsObject

Returns the value of attribute managedPolicyArns.



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

def managedPolicyArns
  @managedPolicyArns
end

#pathObject

Returns the value of attribute path.



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

def path
  @path
end

#policiesObject

Returns the value of attribute policies.



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

def policies
  @policies
end

#policy_objectsObject

Returns the value of attribute policy_objects.



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

def policy_objects
  @policy_objects
end

#roleNameObject

Returns the value of attribute roleName.



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

def roleName
  @roleName
end