« blib/lib/VM/EC2/DB/Parameter/Group/Status.pm
↑ Summary
blib/lib/VM/EC2/DB/Reserved/RecurringCharge.pm »
| 1 | package VM::EC2::DB::PendingModifiedValues; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | VM::EC2::DB::PendingModifiedValues - An RDS Database Pending Modifed Values object | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | use VM::EC2; | ||
| 10 | |||
| 11 | $ec2 = VM::EC2->new(...); | ||
| 12 | $db = $ec2->modify_db_instance(...); | ||
| 13 | $pending = $db->PendingModifiedValues; | ||
| 14 | foreach $p ($pending->valid_fields) { | ||
| 15 | print $p,' ',$pending->$p,"\n" if $pending->$p; | ||
| 16 | } | ||
| 17 | |||
| 18 | =head1 DESCRIPTION | ||
| 19 | |||
| 20 | This object represents the changes to a DB instance that are currently pending. | ||
| 21 | |||
| 22 | =head1 STRING OVERLOADING | ||
| 23 | |||
| 24 | none | ||
| 25 | |||
| 26 | =head1 SEE ALSO | ||
| 27 | |||
| 28 | L<VM::EC2> | ||
| 29 | L<VM::EC2::Generic> | ||
| 30 | L<VM::EC2::DB::Instance> | ||
| 31 | |||
| 32 | =head1 AUTHOR | ||
| 33 | |||
| 34 | Lance Kinley E<lt>lkinley@loyaltymethods.comE<gt>. | ||
| 35 | |||
| 36 | Copyright (c) 2013 Loyalty Methods, Inc. | ||
| 37 | |||
| 38 | This package and its accompanying libraries is free software; you can | ||
| 39 | redistribute it and/or modify it under the terms of the GPL (either | ||
| 40 | version 1, or at your option, any later version) or the Artistic | ||
| 41 | License 2.0. Refer to LICENSE for the full license text. In addition, | ||
| 42 | please see DISCLAIMER.txt for disclaimers of warranty. | ||
| 43 | |||
| 44 | =cut | ||
| 45 | |||
| 46 | use strict; | ||
| 47 | use base 'VM::EC2::Generic'; | ||
| 48 | |||
| 49 | sub valid_fields { | ||
| 50 | my $self = shift; | ||
| 51 | return qw( | ||
| 52 | AllocatedStorage | ||
| 53 | BackupRetentionPeriod | ||
| 54 | DBInstanceClass | ||
| 55 | DBInstanceIdentifier | ||
| 56 | EngineVersion | ||
| 57 | Iops | ||
| 58 | MasterUserPassword | ||
| 59 | MultiAZ | ||
| 60 | Port | ||
| 61 | ); | ||
| 62 | } | ||
| 63 | |||
| 64 | sub MultiAZ { | ||
| 65 | my $self = shift; | ||
| 66 | my $multi_az = $self->SUPER::MultiAZ; | ||
| 67 | return $multi_az eq 'true'; | ||
| 68 | } | ||
| 69 | |||
| 70 | 1; |