Class: AWS::IAM::Policy
- Inherits:
-
ModelElement
- Object
- ModelElement
- AWS::IAM::Policy
- Defined in:
- lib/cfn-model/model/iam_policy.rb
Instance Attribute Summary collapse
-
#policy_document ⇒ Object
Returns the value of attribute policy_document.
Attributes inherited from ModelElement
#logical_resource_id, #metadata, #resource_type
Instance Method Summary collapse
-
#initialize(cfn_model) ⇒ Policy
constructor
A new instance of Policy.
Methods inherited from ModelElement
Constructor Details
#initialize(cfn_model) ⇒ Policy
Returns a new instance of Policy.
8 9 10 11 12 13 14 |
# File 'lib/cfn-model/model/iam_policy.rb', line 8 def initialize(cfn_model) super @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
#policy_document ⇒ Object
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 |