Sha256: bb06be9a470d9c0da9586063fc2af230f891e19e88be736bf56bb805c13dca4e

Contents?: true

Size: 974 Bytes

Versions: 82

Compression:

Stored size: 974 Bytes

Contents

require_relative '../resource'

module Convection
  module Model
    class Template
      class Resource
        ##
        # AWS::IAM::ManagedPolicy
        ##
        class IAMManagedPolicy < Resource
          extend Forwardable

          type 'AWS::IAM::ManagedPolicy'
          property :path, 'Path'
          property :description, 'Description'
          property :group, 'Groups', :type => :list
          property :role, 'Roles', :type => :list
          property :user, 'Users', :type => :list

          attr_reader :document
          def_delegators :@document, :allow, :deny, :id, :version, :statement

          def initialize(*args)
            super
            @document = Model::Mixin::Policy.new(:template => @template)
          end

          def render
            super.tap do |r|
              document.render(r['Properties'])
              r['Properties'].delete('PolicyName')
            end
          end
        end
      end
    end
  end
end

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
convection-0.4.1 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.4.0 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.3.3.pre.beta.1 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.3.2 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.3.1 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.3.0 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.2.34.pre.beta.1 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.2.33 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.2.32 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.2.31 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.2.30 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.2.29 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.2.28 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.2.27 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.2.26 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.2.25 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.2.24 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.2.23 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.2.22 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-0.2.21 lib/convection/model/template/resource/aws_iam_managed_policy.rb