blib/lib/VM/EC2/DB/Parameter/Group/Status.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 28 CC 1 SCAR 6.9
CC
1
Cov
0%
valid_fields
2.0
parameter_group
2.0
BEGIN
2.0
CRAP 2.0
1 package VM::EC2::DB::Parameter::Group::Status;
2  
3 =head1 NAME
4  
5 VM::EC2::DB::Parameter::Group::Status - An RDS Database Parameter Group Status object
6  
7 =head1 SYNOPSIS
8  
9 use VM::EC2;
10  
11 $ec2 = VM::EC2->new(...);
12 $db = $ec2->create_db_instance(...);
13 @param_status = $db->DBParameterGroups;
14 print $_->DBParameterGroupName,'=',$_->ParameterApplyStatus,"\n" foreach @status;
15  
16 =head1 DESCRIPTION
17  
18 This object represents a DB Parameter Group Status. It is returned
19 as an element by the following calls:
20 create_db_instance(), create_db_instance_read_replica(), delete_db_instance(),
21 modify_db_instance(), reboot_db_instance(), and
22 restore_db_instance_from_db_snapshot().
23  
24 =head1 METHODS
25  
26 DBParameterGroupName -- The Parameter Group Name
27  
28 ParameterApplyStatus -- The Status of the Parameter Group
29  
30 parameter_group -- Provides a VM::EC2::DB::Parameter::Group object
31  
32 =head1 STRING OVERLOADING
33  
34 In string context, the object returns the Parameter Apply Status.
35  
36 =head1 SEE ALSO
37  
38 L<VM::EC2>
39 L<VM::EC2::Generic>
40 L<VM::EC2::DB::Instance>
41 L<VM::EC2::DB::Parameter::Group>
42  
43 =head1 AUTHOR
44  
45 Lance Kinley E<lt>lkinley@loyaltymethods.comE<gt>.
46  
47 Copyright (c) 2013 Loyalty Methods, Inc.
48  
49 This package and its accompanying libraries is free software; you can
50 redistribute it and/or modify it under the terms of the GPL (either
51 version 1, or at your option, any later version) or the Artistic
52 License 2.0. Refer to LICENSE for the full license text. In addition,
53 please see DISCLAIMER.txt for disclaimers of warranty.
54  
55 =cut
56  
57 use strict;
58 use base 'VM::EC2::Generic';
59 use VM::EC2::DB::Parameter::Group;
60  
61 use overload '""' => sub { shift->ParameterApplyStatus },
62 fallback => 1;
63  
64 sub valid_fields {
65 my $self = shift;
66 return qw(DBParameterGroupName ParameterApplyStatus);
67 }
68  
69 sub parameter_group {
70 my $self = shift;
71 my $name = $self->DBParameterGroupName or return;
72 return $self->aws->describe_db_parameter_groups(-db_parameter_group_name => $name);
73 }
74  
75 1;