Class AWS::EC2::KeyPair
In: lib/aws/ec2/key_pair.rb
Parent: Resource

Represents an EC2 key pair. @attr_reader [String] fingerprint A SHA-1 digest of the DER encoded

  private key

Methods

Attributes

name  [R]  @return [String] The name of the key pair.

Public Class methods

Public Instance methods

Deletes this key pair from EC2. @return [true]

@return [Boolean] True if the key pair exists.

Returns the private key. Raises an exception if called against an existing key. You can only get the private key at the time of creation.

@see KeyPairCollection#import @note Only call this method on newly created keys. @return [String] An unencrypted PEM encoded RSA private key.

Protected Instance methods

[Validate]