1VM::EC2::KeyPair(3)   User Contributed Perl Documentation  VM::EC2::KeyPair(3)
2
3
4

NAME

6       VM::EC2::KeyPair - Object describing an Amazon EC2 ssh key pair
7

SYNOPSIS

9         use VM::EC2;
10
11         $ec2     = VM::EC2->new(...);
12         @pairs   = $ec2->describe_key_pairs();
13
14         foreach (@pairs) {
15             $fingerprint = $_->keyFingerprint;
16             $name        = $_->keyName;
17         }
18
19         $newkey = $ec2->create_key_pair("fred's key");
20         print $newkey->privateKey;
21

DESCRIPTION

23       This object represents an Amazon EC2 ssh key pair, and is returned by
24       VM::EC2->describe_key_pairs().
25

METHODS

27       These object methods are supported:
28
29        keyName         -- Name of the key, e.g. "fred-default"
30        name            -- Shorter version of keyName()
31
32        keyFingerprint  -- Key's fingerprint
33        fingerprint     -- Shorter version of keyFingerprint()
34
35        keyMaterial     -- PEM encoded RSA private key (only available when
36                           creating a new key)
37        privateKey      -- More intuitive version of keyMaterial()
38

STRING OVERLOADING

40       When used in a string context, this object will interpolate the
41       keyName.
42

SEE ALSO

44       VM::EC2 VM::EC2::Generic
45

AUTHOR

47       Lincoln Stein <lincoln.stein@gmail.com>.
48
49       Copyright (c) 2011 Ontario Institute for Cancer Research
50
51       This package and its accompanying libraries is free software; you can
52       redistribute it and/or modify it under the terms of the GPL (either
53       version 1, or at your option, any later version) or the Artistic
54       License 2.0.  Refer to LICENSE for the full license text. In addition,
55       please see DISCLAIMER.txt for disclaimers of warranty.
56
57
58
59perl v5.28.1                      2019-02-02               VM::EC2::KeyPair(3)
Impressum