| 1 | package VM::EC2::VPC::VpnTunnelTelemetry; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | VM::EC2::VPC::TunnelTelemetry - Virtual Private Cloud VPN tunnel telemetry | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | use VM::EC2; | ||
| 10 | |||
| 11 | my $ec2 = VM::EC2->new(...); | ||
| 12 | my $vpn = $ec2->describe_vpn_connections(-vpn_connection_id=>'vpn-12345678'); | ||
| 13 | my $telemetry = $vpn->vpn_telemetry; | ||
| 14 | print $telemetry->status,"\n"; | ||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | This object represents an Amazon EC2 VPC route, and is returned by | ||
| 19 | VM::EC2->describe_vpn_connections() | ||
| 20 | |||
| 21 | =head1 METHODS | ||
| 22 | |||
| 23 | These object methods are supported: | ||
| 24 | |||
| 25 | outsideIpAddress -- The Internet-routable IP address of the virtual | ||
| 26 | private gateway's outside interface. | ||
| 27 | status -- The status of the VPN tunnel. | ||
| 28 | Valid values: UP | DOWN | ||
| 29 | lastStatusChange -- The date and time of the last change in status. | ||
| 30 | statusMessage -- If an error occurs, a description of the error. | ||
| 31 | acceptedRouteCount -- The number of accepted routes. | ||
| 32 | |||
| 33 | The object also supports the tags() method described in | ||
| 34 | L<VM::EC2::Generic>: | ||
| 35 | |||
| 36 | =head1 STRING OVERLOADING | ||
| 37 | |||
| 38 | When used in a string context, this object will interpolate the | ||
| 39 | status. | ||
| 40 | |||
| 41 | =head1 SEE ALSO | ||
| 42 | |||
| 43 | L<VM::EC2> | ||
| 44 | L<VM::EC2::Generic> | ||
| 45 | L<VM::EC2::Tag> | ||
| 46 | L<VM::EC2::VPC> | ||
| 47 | L<VM::EC2::VPC::VpnConnection> | ||
| 48 | |||
| 49 | =head1 AUTHOR | ||
| 50 | |||
| 51 | Lance Kinley E<lt>lkinley@loyaltymethods.comE<gt>. | ||
| 52 | |||
| 53 | Copyright (c) 2012 Loyalty Methods, Inc. | ||
| 54 | |||
| 55 | This package and its accompanying libraries is free software; you can | ||
| 56 | redistribute it and/or modify it under the terms of the GPL (either | ||
| 57 | version 1, or at your option, any later version) or the Artistic | ||
| 58 | License 2.0. Refer to LICENSE for the full license text. In addition, | ||
| 59 | please see DISCLAIMER.txt for disclaimers of warranty. | ||
| 60 | |||
| 61 | =cut | ||
| 62 | |||
| 63 | use strict; | ||
| 64 | use base 'VM::EC2::Generic'; | ||
| 65 | use VM::EC2::VPC::VpnTunnelTelemetry; | ||
| 66 | use Carp 'croak'; | ||
| 67 | |||
| 68 | sub primary_id { shift->status } | ||
| 69 | |||
| 70 | sub valid_fields { | ||
| 71 | my $self = shift; | ||
| 72 | return qw(outsideIpAddress status lastStatusChange statusMessage acceptedRouteCount); | ||
| 73 | } | ||
| 74 | |||
| 75 | 1; | ||
| 76 |