class DrawCloud::InternetGateway
Attributes
name[RW]
Public Class Methods
new(name, options={}, &block)
click to toggle source
Calls superclass method
DrawCloud::Base::new
# File lib/draw_cloud/internet_gateway.rb, line 42 def initialize(name, options={}, &block) @name = name super(options, &block) end
Public Instance Methods
attachment()
click to toggle source
# File lib/draw_cloud/internet_gateway.rb, line 51 def attachment InternetGatewayAttachment.new(self) end
internet_gateway()
click to toggle source
# File lib/draw_cloud/internet_gateway.rb, line 47 def internet_gateway self end
load_into_config(config)
click to toggle source
Calls superclass method
DrawCloud::Base#load_into_config
# File lib/draw_cloud/internet_gateway.rb, line 55 def load_into_config(config) config.cf_add_resource resource_name, self config.cf_add_resource attachment.resource_name, attachment super(config) end
to_h()
click to toggle source
# File lib/draw_cloud/internet_gateway.rb, line 61 def to_h h = {"Type" => "AWS::EC2::InternetGateway"} add_standard_properties(h) end