VM::EC...Options(3pm)
π¦ VM::EC2::VPC::DhcpOptions β the vibe
okay bestie, welcome to the manual page for VM::EC2::VPC::DhcpOptions β that's the DHCP options set for an AWS Virtual Private Cloud π. Yes it's a Perl module from the User Contributed Perl Documentation, yes it's a whole ~mood~, and yes we're gonna read it together like it's the group chat. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
VM::EC2::VPC::DhcpOptions β DHCP options set for an AWS Virtual Private Cloud π
that's it. that's the name. iconic behavior honestly π
π SYNOPSIS π
here's how you actually use it, in all its glory:
use VM::EC2;
my $ec2 = VM::EC2->new(...);
my $vpc = $ec2->create_vpc('10.0.0.0/16');
my $options = $ec2->create_dhcp_options(-domain_name=>'test.com',
-domain_name_servers=>['204.16.255.55','216.239.34.10']);
$vpc->set_dhcp_options($options);
so you spin up a VM::EC2 object, make yourself a VPC at '10.0.0.0/16', build a DHCP options set with a -domain_name of 'test.com' and -domain_name_servers of ['204.16.255.55','216.239.34.10'], and then yeet it onto the VPC with set_dhcp_options. slay π₯ no cap, that's the whole flow.
π DESCRIPTION π
okay so real talk β the methods that every VM::EC2 object shares live somewhere else, and that somewhere is VM::EC2::Generic. go read that one for the shared stuff, bestie, it's giving "base class energy" π
πΈ METHODS πΈ
these object methods are supported, and I'm listing every single one because we don't do half-measures here:
dhcpOptionsIdβ the ID of the dhcp options πdhcpConfigurationSetβ a hash of options π
and in addition (yes there's more, she's generous), this object supports these convenience methods:
options()β hands you back the list of DHCP options contained in this set β¨option('option-name')β returns the list of values for the option you named. lowkey important: every option corresponds to a list, so if you call this in scalar context you get the size of the list, not the value. read that again, it's a whole plot twist πassociate_vpc($vpc_id)β associates these options with the given VPC π«associated_vpcs()β returns the list of VPCs associated with the DHCP option set π¦as_string()β returns a string concatenation of all options π
β STRING OVERLOADING β
when you use this object in a string context, it gets interpolated as the dhcp ID. that's it, that's the whole trick. put it in quotes, get an ID. main character behavior fr fr π
π SEE ALSO π
go look at these too, they're the friends of this page:
VM::EC2VM::EC2::Generic
π«Ά AUTHOR π«Ά
Lincoln Stein <lincoln.stein@gmail.com>. legend behavior, we love to see it π
Copyright (c) 2012 Ontario Institute for Cancer Research
This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL (either version 1, or at your option, any later version) or the Artistic License 2.0. Refer to LICENSE for the full license text. In addition, please see DISCLAIMER.txt for disclaimers of warranty.
legal stuff but make it cute: free software, GPL (v1 or later, your pick) or Artistic License 2.0 β full text lives inLICENSE, and the warranty disclaimers are chillin' inDISCLAIMER.txt. go read them, bestie, it's giving responsible πΈ
and that's a wrap on this page π¬ β brought to you by perl v5.38.2, dated 2024-08-10, from the User Contributed Perl Documentation collection for VM::EC...Options(3pm). mwah, go configure some DHCP options πβ¨
π¦ where this page comes from
- debian trixie: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- ubuntu resolute: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- ubuntu stonking: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms