Sha256: b978adbdff2b64c4de9af4b1cfcb3ac912dbe61679a73758e62eaac772b5a555

Contents?: true

Size: 926 Bytes

Versions: 85

Compression:

Stored size: 926 Bytes

Contents

require_relative '../resource'

module Convection
  module DSL
    module Template
      module Resource
        ## Role DSL
        module KmsKey
          def policy(&block)
            add_policy = Model::Mixin::Policy.new(:name => 'kms_policy', :template => @template)
            add_policy.instance_exec(&block) if block
            self.key_policy = add_policy.document
          end
        end
      end
    end
  end

  module Model
    class Template
      class Resource
        ##
        # AWS::KMS::Key
        ##
        class KmsKey < Resource
          include DSL::Template::Resource::KmsKey

          type 'AWS::KMS::Key'
          property :description, 'Description'
          property :enabled, 'Enabled'
          property :enabled_key_rotation, 'EnabledKeyRotation'
          alias key_rotation enabled_key_rotation
          property :key_policy, 'KeyPolicy'
        end
      end
    end
  end
end

Version data entries

85 entries across 85 versions & 1 rubygems

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