You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::EC2::KeyPairInfo
- Inherits:
-
Resources::Resource
- Object
- Resources::Resource
- Aws::EC2::KeyPairInfo
- Defined in:
- (unknown)
Instance Attribute Summary collapse
-
#key_fingerprint ⇒ String
readonly
If you used CreateKeyPair to create the key pair, this is the SHA-1 digest of the DER encoded private key.
-
#key_name ⇒ String
readonly
The name of the key pair.
-
#key_pair_id ⇒ String
readonly
The ID of the key pair.
-
#name ⇒ String
readonly
-
#tags ⇒ Array<Types::Tag>
readonly
Any tags applied to the key pair.
Attributes inherited from Resources::Resource
Instance Method Summary collapse
-
#delete(options = {}) ⇒ Struct
Deletes the specified key pair, by removing the public key from Amazon EC2.
.
-
#initialize ⇒ Object
constructor
Methods inherited from Resources::Resource
add_data_attribute, add_identifier, #data, data_attributes, #data_loaded?, identifiers, #load, #wait_until
Methods included from Resources::OperationMethods
#add_batch_operation, #add_operation, #batch_operation, #batch_operation_names, #batch_operations, #operation, #operation_names, #operations
Constructor Details
#initialize(name, options = {}) ⇒ Object #initialize(options = {}) ⇒ Object
Instance Attribute Details
#key_fingerprint ⇒ String (readonly)
If you used CreateKeyPair to create the key pair, this is the SHA-1 digest of the DER encoded private key. If you used ImportKeyPair to provide AWS the public key, this is the MD5 public key fingerprint as specified in section 4 of RFC4716.
#key_name ⇒ String (readonly)
The name of the key pair.
#key_pair_id ⇒ String (readonly)
The ID of the key pair.
#name ⇒ String (readonly)
#tags ⇒ Array<Types::Tag> (readonly)
Any tags applied to the key pair.
Instance Method Details
#delete(options = {}) ⇒ Struct
Deletes the specified key pair, by removing the public key from Amazon EC2.