blib/lib/VM/EC2/VPC/PeeringConnection/VpcInfo.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
valid_fields
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package VM::EC2::VPC::PeeringConnection::VpcInfo;
2  
3 =head1 NAME
4  
5 VM::EC2::VPC::PeeringConnection::VpcInfo - Virtual Private Cloud Peering
6 Connection VPC Information
7  
8 =head1 SYNOPSIS
9  
10 use VM::EC2;
11  
12 my $ec2 = VM::EC2->new(...);
13 my $pcx = $ec2->describe_vpc_peering_connections(-vpc_peering_connection_id=>'pcx-12345678');
14 my $req_vpc = $pcx->requesterVpcInfo;
15 my $acc_vpc = $pcx->accepterVpcInfo;
16 print $req_vpc->vpcId,' requested to connect to ',$acc_vpc->vpcId,"\n";
17  
18 =head1 DESCRIPTION
19  
20 This object represents VPC Information from an Amazon EC2 VPC Peering
21 Connection.
22  
23 =head1 METHODS
24  
25 These object methods are supported:
26  
27 vpcId -- The ID of the VPC
28 ownerId -- The AWS account ID of the VPC owner
29 cidrBlock -- The CIDR block for the VPC
30  
31 =head1 STRING OVERLOADING
32  
33 When used in a string context, this object will interpolate the VpcId
34  
35 =head1 SEE ALSO
36  
37 L<VM::EC2>
38 L<VM::EC2::Generic>
39 L<VM::EC2::VPC>
40  
41 =head1 AUTHOR
42  
43 Lance Kinley E<lt>lkinley@loyaltymethods.comE<gt>.
44  
45 Copyright (c) 2014 Loyalty Methods, Inc.
46  
47 This package and its accompanying libraries is free software; you can
48 redistribute it and/or modify it under the terms of the GPL (either
49 version 1, or at your option, any later version) or the Artistic
50 License 2.0. Refer to LICENSE for the full license text. In addition,
51 please see DISCLAIMER.txt for disclaimers of warranty.
52  
53 =cut
54  
55 use strict;
56 use base 'VM::EC2::Generic';
57 use Carp 'croak';
58  
59 use overload '""' => sub { shift->vpcId },
60 fallback => 1;
61  
62 sub valid_fields {
63 my $self = shift;
64 return qw(vpcId ownerId cidrBlock);
65 }
66  
67 1;