VM::EC2::KeyPair(3pm)
π VM::EC2::KeyPair π
okay bestie, so this is a page from the User Contributed Perl Documentation and it's all about VM::EC2::KeyPair β the little object that describes an Amazon EC2 ssh key pair. ssh keys but make it cloud. iconic behavior honestly. πβ¨
β¨ NAME β¨
VM::EC2::KeyPair β an object that describes an Amazon EC2 ssh key pair π¦
π SYNOPSIS π
use VM::EC2;
$ec2 = VM::EC2->new(...);
@pairs = $ec2->describe_key_pairs();
foreach (@pairs) {
$fingerprint = $_->keyFingerprint;
$name = $_->keyName;
}
$newkey = $ec2->create_key_pair("fred's key");
print $newkey->privateKey;
πΈ DESCRIPTION πΈ
so like, this object is an Amazon EC2 ssh key pair. that's it, that's the whole vibe. it gets handed back to you by VM::EC2->describe_key_pairs(). main character energy from a tiny little data holder, we love to see it π
π METHODS π
these object methods are supported, no cap:
keyNameβ the name of the key, like for real for real, e.g."fred-default"πnameβ a shorter version ofkeyName(), because sometimes you just don't have the time π«ΆkeyFingerprintβ the key's fingerprint πfingerprintβ a shorter version ofkeyFingerprint()β¨keyMaterialβ the PEM encoded RSA private key. heads up bestie: this one is ONLY available when you're creating a new key πprivateKeyβ the more intuitive version ofkeyMaterial()π
π¦ STRING OVERLOADING π¦
when you use this object in a string context, it interpolates the keyName. so it justβ¦ becomes its name. casual. effortless. ate π
β SEE ALSO β
VM::EC2 VM::EC2::Generic
π 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.
π and that's the whole page bestie, you're officially a VM::EC2::KeyPair expert, no notes π
kisses, this was documented with perl v5.38.2 on 2024-08-10 π mwah π
π¦ 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