VM::EC...eneral(3pm)

πŸ“¦
version 1.28 Β· 7 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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: πŸ”₯

  • GetConsoleOutput
  • DescribeAccountAttributes

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() and timestamp() 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:

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