class Convection::Model::Template::Resource::EC2VPCEndpoint

AWS::EC2::VpcEndpoint

Attributes

document[R]

Public Class Methods

new(*args) click to toggle source
# File lib/convection/model/template/resource/aws_ec2_vpc_endpoint.rb, line 23
def initialize(*args)
  super
  @document = Model::Mixin::Policy.new(:name => false, :template => @template)
end

Public Instance Methods

render() click to toggle source
# File lib/convection/model/template/resource/aws_ec2_vpc_endpoint.rb, line 32
def render
  super.tap do |r|
    document.render(r['Properties'])
  end
end
service(val) click to toggle source
# File lib/convection/model/template/resource/aws_ec2_vpc_endpoint.rb, line 28
def service(val)
  properties['ServiceName'].set(join('.', 'com.amazonaws', fn_ref('AWS::Region'), val))
end