Class: Convection::Model::Template::Resource::IAMPolicy
- Inherits:
-
Convection::Model::Template::Resource
- Object
- Convection::Model::Template::Resource
- Convection::Model::Template::Resource::IAMPolicy
- Extended by:
- Forwardable
- Defined in:
- lib/convection/model/template/resource/aws_iam_policy.rb
Overview
AWS::IAM::Policy
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
- #group(value) ⇒ Object
-
#initialize(*args) ⇒ IAMPolicy
constructor
A new instance of IAMPolicy.
- #policy_name(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
#_terraform_module_dir_to_flag, #_terraform_module_flag_to_dir, attach_resource, attach_resource_collection, resource_collection_dsl_methods, resource_dsl_methods
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_import_value, #fn_not, #fn_or, #fn_ref, #fn_sub, #get_att, #get_azs, included, #join, mixers, #select
Constructor Details
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document.
32 33 34 |
# File 'lib/convection/model/template/resource/aws_iam_policy.rb', line 32 def document @document end |
Instance Method Details
#group ⇒ Object #group(value) ⇒ Object
16 17 18 19 20 |
# File 'lib/convection/model/template/resource/aws_iam_policy.rb', line 16 property :group, 'Groups', :type => :list, :transform => (proc do |resource| depends_on(resource) resource end) |
#policy_name ⇒ Object #policy_name(value) ⇒ Object
15 |
# File 'lib/convection/model/template/resource/aws_iam_policy.rb', line 15 property :policy_name, 'PolicyName' |
#render ⇒ Object
41 42 43 44 45 |
# File 'lib/convection/model/template/resource/aws_iam_policy.rb', line 41 def render super.tap do |r| document.render(r['Properties']) end end |
#role ⇒ Object #role(value) ⇒ Object
21 22 23 24 25 |
# File 'lib/convection/model/template/resource/aws_iam_policy.rb', line 21 property :role, 'Roles', :type => :list, :transform => (proc do |resource| depends_on(resource) resource end) |
#user ⇒ Object #user(value) ⇒ Object
26 27 28 29 30 |
# File 'lib/convection/model/template/resource/aws_iam_policy.rb', line 26 property :user, 'Users', :type => :list, :transform => (proc do |resource| depends_on(resource) resource end) |