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