Class: CfFactory::CfRouteTableAssociation

Inherits:
Object
  • Object
show all
Includes:
CfBase
Defined in:
lib/cf_factory/vpc/cf_route_table_association.rb

Instance Method Summary collapse

Methods included from CfBase

#generate, #generate_ref, #get_deletion_policy, #get_name, #get_update_policy, #hash_to_string, #retrieve_attribute, #set_meta_data, #set_quotes, #set_tags

Constructor Details

#initialize(name, subnet, route_table) ⇒ CfRouteTableAssociation

Returns a new instance of CfRouteTableAssociation.



7
8
9
10
11
# File 'lib/cf_factory/vpc/cf_route_table_association.rb', line 7

def initialize(name, subnet, route_table)
  @name = name
  @subnet = subnet
  @route_table = route_table
end

Instance Method Details

#get_cf_attributesObject



17
18
19
# File 'lib/cf_factory/vpc/cf_route_table_association.rb', line 17

def get_cf_attributes
  {}
end

#get_cf_propertiesObject



21
22
23
# File 'lib/cf_factory/vpc/cf_route_table_association.rb', line 21

def get_cf_properties
  {"SubnetId" => @subnet.generate_ref, "RouteTableId" => @route_table.generate_ref}
end

#get_cf_typeObject



13
14
15
# File 'lib/cf_factory/vpc/cf_route_table_association.rb', line 13

def get_cf_type
  "AWS::EC2::SubnetRouteTableAssociation"
end