| 1 | package VM::EC2::LaunchConfiguration; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | VM::EC2::LaunchConfiguration - Object describing a Launch Configuration | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | use VM::EC2; | ||
| 10 | |||
| 11 | $ec2 = VM::EC2->new(...); | ||
| 12 | @lcs = $ec2->describe_launch_configurations(); | ||
| 13 | |||
| 14 | =head1 DESCRIPTION | ||
| 15 | |||
| 16 | This object represents a launch configuration. It is returned by | ||
| 17 | C<VM::EC2->describe_launch_configurations()>. | ||
| 18 | |||
| 19 | =head1 METHODS | ||
| 20 | |||
| 21 | These properties are supported: | ||
| 22 | |||
| 23 | block_device_mappings | ||
| 24 | created_time | ||
| 25 | ebs_optimized | ||
| 26 | iam_instance_profile | ||
| 27 | image_id | ||
| 28 | instance_monitoring | ||
| 29 | instance_type | ||
| 30 | kernel_id | ||
| 31 | key_name | ||
| 32 | launch_configuration_arn | ||
| 33 | launch_configuration_name | ||
| 34 | ramdisk_id | ||
| 35 | security_groups | ||
| 36 | spot_price | ||
| 37 | user_data | ||
| 38 | |||
| 39 | =head1 SEE ALSO | ||
| 40 | |||
| 41 | L<VM::EC2> | ||
| 42 | L<VM::EC2::Generic> | ||
| 43 | |||
| 44 | =head1 AUTHOR | ||
| 45 | |||
| 46 | Jose Luis Martinez | ||
| 47 | |||
| 48 | =cut | ||
| 49 | |||
| 50 | use strict; | ||
| 51 | use base 'VM::EC2::Generic'; | ||
| 52 | |||
| 53 | sub valid_fields { | ||
| 54 | my $self = shift; | ||
| 55 | return qw(BlockDeviceMappings CreatedTime EbsOptimized IamInstanceProfile | ||
| 56 | ImageId InstanceMonitoring InstanceType KernelId KeyName | ||
| 57 | LaunchConfigurationARN LaunchConfigurationName RamdiskId SecurityGroups | ||
| 58 | SpotPrice UserData | ||
| 59 | ); | ||
| 60 | } | ||
| 61 | |||
| 62 | # object methods | ||
| 63 | |||
| 64 | sub args { | ||
| 65 | my $self = shift; | ||
| 66 | my $default_param_name = shift; | ||
| 67 | return unless @_; | ||
| 68 | return @_ if $_[0] =~ /^-/; | ||
| 69 | return ($default_param_name => \@_); | ||
| 70 | } | ||
| 71 | |||
| 72 | 1; |