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-1.1.3 lib/convection/model/template/resource/aws_kms_key.rb
convection-1.1.2 lib/convection/model/template/resource/aws_kms_key.rb
convection-1.1.1 lib/convection/model/template/resource/aws_kms_key.rb
convection-1.1.0 lib/convection/model/template/resource/aws_kms_key.rb
convection-1.0.7 lib/convection/model/template/resource/aws_kms_key.rb
convection-1.0.6 lib/convection/model/template/resource/aws_kms_key.rb
convection-1.0.5 lib/convection/model/template/resource/aws_kms_key.rb
convection-1.0.4 lib/convection/model/template/resource/aws_kms_key.rb
convection-1.0.3 lib/convection/model/template/resource/aws_kms_key.rb
convection-1.0.2 lib/convection/model/template/resource/aws_kms_key.rb
convection-1.0.1 lib/convection/model/template/resource/aws_kms_key.rb
convection-1.0.0.pre.beta.10 lib/convection/model/template/resource/aws_kms_key.rb
convection-1.0.0.pre.beta.9 lib/convection/model/template/resource/aws_kms_key.rb
convection-1.0.0.pre.beta.8 lib/convection/model/template/resource/aws_kms_key.rb
convection-1.0.0.pre.beta.7 lib/convection/model/template/resource/aws_kms_key.rb
convection-1.0.0.pre.beta.6 lib/convection/model/template/resource/aws_kms_key.rb
convection-1.0.0.pre.beta.4 lib/convection/model/template/resource/aws_kms_key.rb
convection-1.0.0.pre.beta.1 lib/convection/model/template/resource/aws_kms_key.rb
convection-0.4.3 lib/convection/model/template/resource/aws_kms_key.rb
convection-0.4.2 lib/convection/model/template/resource/aws_kms_key.rb