1VM::EC2::VPC::RouteTablUes(e3r)Contributed Perl DocumentVaMt:i:oEnC2::VPC::RouteTable(3)
2
3
4

NAME

6       VM::EC2::VPC::RouteTable -- A VPC route table
7

SYNOPSIS

9        use VM::EC2;
10        my $ec2     = VM::EC2->new(...);
11        my @tables  = $ec2->describe_route_tables;
12
13        for my $rt (@tables) {
14           print $rt->routeTableId,"\n",
15                 $rt->vpcId,"\n";
16           my @routes = $rt->routes;
17           my @associations = $rt->associations;
18        }
19

DESCRIPTION

21       This object supports the EC2 Virtual Private Cloud route table
22       interface, and is used to control the routing of packets within and
23       between subnets.
24

METHODS

26       These object methods are supported:
27
28        routeTableId   -- the ID of the route table
29        vpcId          -- The ID of the VPC the route table is in.
30        routes         -- An array of VM::EC2::VPC::Route objects,
31                          each describing a routing rule in the
32                          table.
33        associations   -- An array of VM::EC2::RouteTable::Association
34                          objects, each describing the association
35                          between the route table and a subnet.
36
37       This class supports the VM::EC2 tagging interface. See VM::EC2::Generic
38       for information.
39
40       In addition, this object supports the following convenience methods:
41
42        vpc                            -- The VPC object for this route table.
43        main                           -- Returns true if this is the VPC's current "main"
44                                          route table
45        associate($subnet)             -- Associate the route table with a subnet ID or object.
46        disassociate($subnet)          -- Disassociate the route table with a subnet ID or object.
47        refresh                        -- Refreshes the object from its current state in EC2.
48        create_route($dest=>$target)   -- Create a route in the route table
49        delete_route($dest)            -- Delete a route in the route table
50        replace_route($dest=>$target)  -- Replace a route in the route table
51

STRING OVERLOADING

53       When used in a string context, this object will be interpolated as the
54       route table ID.
55

SEE ALSO

57       VM::EC2 VM::EC2::Generic
58

AUTHOR

60       Lincoln Stein <lincoln.stein@gmail.com>.
61
62       Copyright (c) 2012 Ontario Institute for Cancer Research
63
64       This package and its accompanying libraries is free software; you can
65       redistribute it and/or modify it under the terms of the GPL (either
66       version 1, or at your option, any later version) or the Artistic
67       License 2.0.  Refer to LICENSE for the full license text. In addition,
68       please see DISCLAIMER.txt for disclaimers of warranty.
69
70
71
72perl v5.30.0                      2019-07-26       VM::EC2::VPC::RouteTable(3)
Impressum