Sha256: c1c715bfd5c45be13d76f0440fa24fdb405d81d77ddf8ae306efba39943a2663
Contents?: true
Size: 1.06 KB
Versions: 78
Compression:
Stored size: 1.06 KB
Contents
require 'forwardable' require_relative '../resource' module Convection module Model class Template class Resource ## # AWS::EC2::VpcEndpoint ## class EC2VPCEndpoint < Resource extend Forwardable type 'AWS::EC2::VPCEndpoint' property :vpc, 'VpcId' property :route_tables, 'RouteTableIds', :type => :list property :service_name, 'ServiceName' attr_reader :document # , 'PolicyDocument' def_delegators :@document, :allow, :deny, :id, :version, :statement def_delegator :@document, :name, :policy_name def initialize(*args) super @document = Model::Mixin::Policy.new(:name => false, :template => @template) end def service(val) properties['ServiceName'].set(join('.', 'com.amazonaws', fn_ref('AWS::Region'), val)) end def render super.tap do |r| document.render(r['Properties']) end end end end end end end
Version data entries
78 entries across 78 versions & 1 rubygems