Module: Convection::DSL::Template::Resource::KmsKey

Included in:
Model::Template::Resource::KmsKey
Defined in:
lib/convection/model/template/resource/aws_kms_key.rb

Overview

Role DSL

Instance Method Summary collapse

Instance Method Details

#policy(&block) ⇒ Object



9
10
11
12
13
# File 'lib/convection/model/template/resource/aws_kms_key.rb', line 9

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