« blib/lib/VM/EC2/DB/Option/Group/Option/Setting.pm
↑ Summary
blib/lib/VM/EC2/DB/Parameter/Group.pm »
| 1 | package VM::EC2::DB::Parameter; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | VM::EC2::DB::Parameter - An RDS Database Parameter | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | use VM::EC2; | ||
| 10 | |||
| 11 | $ec2 = VM::EC2->new(...); | ||
| 12 | @params = $ec2->describe_db_parameters(-db_parameter_group_name => 'mygroup'); | ||
| 13 | print $_,"\n" foreach @params; | ||
| 14 | |||
| 15 | =head1 DESCRIPTION | ||
| 16 | |||
| 17 | This object represents a DB Parameter, used as a response element in the | ||
| 18 | VM::EC2->describe_engine_default_parameters() and | ||
| 19 | VM::EC2->describe_db_parameters() calls. | ||
| 20 | |||
| 21 | =head1 STRING OVERLOADING | ||
| 22 | |||
| 23 | In string context, this object returns a string of Name=Value | ||
| 24 | |||
| 25 | =head1 SEE ALSO | ||
| 26 | |||
| 27 | L<VM::EC2> | ||
| 28 | L<VM::EC2::Generic> | ||
| 29 | L<VM::EC2::DB::Instance> | ||
| 30 | |||
| 31 | =head1 AUTHOR | ||
| 32 | |||
| 33 | Lance Kinley E<lt>lkinley@loyaltymethods.comE<gt>. | ||
| 34 | |||
| 35 | Copyright (c) 2013 Loyalty Methods, Inc. | ||
| 36 | |||
| 37 | This package and its accompanying libraries is free software; you can | ||
| 38 | redistribute it and/or modify it under the terms of the GPL (either | ||
| 39 | version 1, or at your option, any later version) or the Artistic | ||
| 40 | License 2.0. Refer to LICENSE for the full license text. In addition, | ||
| 41 | please see DISCLAIMER.txt for disclaimers of warranty. | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | use strict; | ||
| 46 | use base 'VM::EC2::Generic'; | ||
| 47 | |||
| 48 | use overload '""' => sub { shift->as_string }, | ||
| 49 | fallback => 1; | ||
| 50 | |||
| 51 | sub valid_fields { | ||
| 52 | my $self = shift; | ||
| 53 | return qw( | ||
| 54 | AllowedValues | ||
| 55 | ApplyMethod | ||
| 56 | ApplyType | ||
| 57 | DataType | ||
| 58 | Description | ||
| 59 | IsModifiable | ||
| 60 | MinimumEngineVersion | ||
| 61 | ParameterName | ||
| 62 | ParameterValue | ||
| 63 | Source | ||
| 64 | ); | ||
| 65 | } | ||
| 66 | |||
| 67 | sub name { shift->ParameterName } | ||
| 68 | |||
| 69 | sub value { shift->ParameterValue } | ||
| 70 | |||
| 71 | sub as_string { | ||
| 72 | my $self = shift; | ||
| 73 | return $self->ParameterName . '=' . $self->ParameterValue | ||
| 74 | } | ||
| 75 | |||
| 76 | 1; |