Class: AWS::IAM::ManagedPolicy

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

#initializeManagedPolicy

Returns a new instance of ManagedPolicy.



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

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

Dynamic Method Handling

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

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#groupsObject

Returns the value of attribute groups.



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

def groups
  @groups
end

#managedPolicyNameObject

Returns the value of attribute managedPolicyName.



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

def managedPolicyName
  @managedPolicyName
end

#pathObject

Returns the value of attribute path.



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

def path
  @path
end

#policy_documentObject

Returns the value of attribute policy_document.



6
7
8
# File 'lib/cfn-model/model/iam_managed_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_managed_policy.rb', line 4

def policyDocument
  @policyDocument
end

#rolesObject

Returns the value of attribute roles.



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

def roles
  @roles
end

#usersObject

Returns the value of attribute users.



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

def users
  @users
end