class DrawCloud::Subnet::SubnetRouteTableAssociation
Attributes
route_table[RW]
subnet[RW]
Public Class Methods
new(subnet, route_table)
click to toggle source
# File lib/draw_cloud/subnet.rb, line 23 def initialize(subnet, route_table) @subnet = subnet @route_table = route_table end
Public Instance Methods
resource_name()
click to toggle source
# File lib/draw_cloud/subnet.rb, line 28 def resource_name subnet.resource_name + "RouteTableAssociation" end
to_h()
click to toggle source
# File lib/draw_cloud/subnet.rb, line 32 def to_h { "Type" => "AWS::EC2::SubnetRouteTableAssociation", "Properties" => { "SubnetId" => DrawCloud.ref(subnet), "RouteTableId" => DrawCloud.ref(route_table), } } end