Class: Convection::Model::Template::Resource::IAMManagedPolicy
- Inherits:
-
Convection::Model::Template::Resource
- Object
- Convection::Model::Template::Resource
- Convection::Model::Template::Resource::IAMManagedPolicy
- Extended by:
- Forwardable
- Defined in:
- lib/convection/model/template/resource/aws_iam_managed_policy.rb
Overview
AWS::IAM::ManagedPolicy
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
Returns the value of attribute document.
Attributes inherited from Convection::Model::Template::Resource
#exist, #name, #parent, #properties, #resource_attributes, #template
Instance Method Summary collapse
- #description(value) ⇒ Object
- #group(value) ⇒ Object
-
#initialize(*args) ⇒ IAMManagedPolicy
constructor
A new instance of IAMManagedPolicy.
- #path(value) ⇒ Object
- #render ⇒ Object
- #role(value) ⇒ Object
- #user(value) ⇒ Object
Methods inherited from Convection::Model::Template::Resource
#as_attribute, attach_method, #deletion_policy, #depends_on, properties, #property, property, #reference, type, #type, #with_output
Methods included from Mixin::Conditional
Methods included from DSL::Template::Resource
Methods included from DSL::Helpers
#camel_case, included, method_name, #screaming_snake_case, #snake_case
Methods included from DSL::IntrinsicFunctions
#base64, #find_in_map, #fn_and, #fn_equals, #fn_if, #fn_not, #fn_or, #fn_ref, #get_att, #get_azs, #join, #select
Constructor Details
#initialize(*args) ⇒ IAMManagedPolicy
Returns a new instance of IAMManagedPolicy
23 24 25 26 |
# File 'lib/convection/model/template/resource/aws_iam_managed_policy.rb', line 23 def initialize(*args) super @document = Model::Mixin::Policy.new(:template => @template) end |
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document
20 21 22 |
# File 'lib/convection/model/template/resource/aws_iam_managed_policy.rb', line 20 def document @document end |
Instance Method Details
#description ⇒ Object #description(value) ⇒ Object
15 |
# File 'lib/convection/model/template/resource/aws_iam_managed_policy.rb', line 15 property :description, 'Description' |
#group ⇒ Object #group(value) ⇒ Object
16 |
# File 'lib/convection/model/template/resource/aws_iam_managed_policy.rb', line 16 property :group, 'Groups', :type => :list |
#path ⇒ Object #path(value) ⇒ Object
14 |
# File 'lib/convection/model/template/resource/aws_iam_managed_policy.rb', line 14 property :path, 'Path' |
#render ⇒ Object
28 29 30 31 32 33 |
# File 'lib/convection/model/template/resource/aws_iam_managed_policy.rb', line 28 def render super.tap do |r| document.render(r['Properties']) r['Properties'].delete('PolicyName') end end |
#role ⇒ Object #role(value) ⇒ Object
17 |
# File 'lib/convection/model/template/resource/aws_iam_managed_policy.rb', line 17 property :role, 'Roles', :type => :list |
#user ⇒ Object #user(value) ⇒ Object
18 |
# File 'lib/convection/model/template/resource/aws_iam_managed_policy.rb', line 18 property :user, 'Users', :type => :list |