VM::EC...eneral(3pm)
π NAME π
VM::EC2::REST::general β General EC2 methods β¨ (yes bestie, this is the VM::EC2::REST::general(3pm) page, we're here, we made it)
π SYNOPSIS π
use VM::EC2 'general';
That's it. That's the whole vibe. Load it and go π
π¦ METHODS π¦
These are the EC2 methods that Amazon itself just... calls "general". No notes, no theme, just vibes.
Implemented: π₯
GetConsoleOutputDescribeAccountAttributes
Unimplemented: π
- (none) β she's fully built out, no gaps, we love to see it
$output = $ec2->get_console_output(-instance_id=>'i-12345')
$output = $ec2->get_console_output('i-12345');
Okay so this one gets you the console output of whichever instance you point at. π
And here's the cute part β what you actually get back is a VM::EC2::ConsoleOutput object, but it's overloaded, so it switches up its whole personality depending on how you treat it:
- Treat it like a string? Boom, it shows up as a big ol' text string with the console output inside it. π
- Treat it like an object? Then it hands you
instanceId()andtimestamp()methods. β¨
Iconic behavior honestly.
@attrs = $ec2->describe_account_attributes(-attribute_name => \@attr_list)
@attrs = $ec2->describe_account_attributes(@attr_list)
@attrs = $ec2->describe_account_attributes($attr)
Describes the attribute you ask for on your AWS account. π«Ά
Require Argument:
-attribute_nameβ the attribute you wanna describe, bestie, you gotta tell her which one
Supported attributes:
supported-platformsβ whether your account can launch instances into EC2-Classic and EC2-VPC, or only into EC2-VPC. Wanna know more? Seehttp://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.htmlπΈdefault-vpcβ the ID of the default VPC for your account, ornone. More deets over here:http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/default-vpc.htmlπΈ
Returns an array of VM::EC2::AccountAttributes objects. π
π SEE ALSO π
VM::EC2
π AUTHOR π
Lincoln Stein <lincoln.stein@gmail.com>. π«‘
Copyright (c) 2011 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.
fr fr read the LICENSE and DISCLAIMER.txt, don't just scroll past them π
and that's the whole page bestie, we ate and left no crumbs β¨π
Sign-off realness: this was perl v5.38.2, dated 2024-08-10, and yeah the footer really does just say VM::EC...eneral(3pm) because the terminal truncates her name like that π she's still iconic tho ππ¦π
π¦ 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