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-2.2.12 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-2.2.11 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-2.2.10 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-2.2.9 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-2.2.8 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-2.2.7 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-2.2.6 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-2.2.5 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-2.2.4 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-2.2.3 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-2.2.2 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-2.2.1 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-2.2.0 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-2.1.2 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-2.1.1 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-2.1.0 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-2.0.0 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-1.1.7 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-1.1.5 lib/convection/model/template/resource/aws_iam_managed_policy.rb
convection-1.1.4 lib/convection/model/template/resource/aws_iam_managed_policy.rb