Class: Aws::EC2::Types::KeyPair
- Inherits:
 - 
      Struct
      
        
- Object
 - Struct
 - Aws::EC2::Types::KeyPair
 
 
- Includes:
 - Structure
 
- Defined in:
 - lib/aws-sdk-ec2/types.rb
 
Overview
Describes a key pair.
Constant Summary collapse
- SENSITIVE =
 [:key_material]
Instance Attribute Summary collapse
- 
  
    
      #key_fingerprint  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
- 
For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.
 
 - 
 - 
  
    
      #key_material  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
An unencrypted PEM encoded RSA or ED25519 private key.
 - 
  
    
      #key_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The name of the key pair.
 - 
  
    
      #key_pair_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The ID of the key pair.
 - 
  
    
      #tags  ⇒ Array<Types::Tag> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Any tags applied to the key pair.
 
Instance Attribute Details
#key_fingerprint ⇒ String
- 
For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.
 - 
For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.
 
      47101 47102 47103 47104 47105 47106 47107 47108 47109  | 
    
      # File 'lib/aws-sdk-ec2/types.rb', line 47101 class KeyPair < Struct.new( :key_pair_id, :tags, :key_name, :key_fingerprint, :key_material) SENSITIVE = [:key_material] include Aws::Structure end  | 
  
#key_material ⇒ String
An unencrypted PEM encoded RSA or ED25519 private key.
      47101 47102 47103 47104 47105 47106 47107 47108 47109  | 
    
      # File 'lib/aws-sdk-ec2/types.rb', line 47101 class KeyPair < Struct.new( :key_pair_id, :tags, :key_name, :key_fingerprint, :key_material) SENSITIVE = [:key_material] include Aws::Structure end  | 
  
#key_name ⇒ String
The name of the key pair.
      47101 47102 47103 47104 47105 47106 47107 47108 47109  | 
    
      # File 'lib/aws-sdk-ec2/types.rb', line 47101 class KeyPair < Struct.new( :key_pair_id, :tags, :key_name, :key_fingerprint, :key_material) SENSITIVE = [:key_material] include Aws::Structure end  | 
  
#key_pair_id ⇒ String
The ID of the key pair.
      47101 47102 47103 47104 47105 47106 47107 47108 47109  | 
    
      # File 'lib/aws-sdk-ec2/types.rb', line 47101 class KeyPair < Struct.new( :key_pair_id, :tags, :key_name, :key_fingerprint, :key_material) SENSITIVE = [:key_material] include Aws::Structure end  | 
  
#tags ⇒ Array<Types::Tag>
Any tags applied to the key pair.
      47101 47102 47103 47104 47105 47106 47107 47108 47109  | 
    
      # File 'lib/aws-sdk-ec2/types.rb', line 47101 class KeyPair < Struct.new( :key_pair_id, :tags, :key_name, :key_fingerprint, :key_material) SENSITIVE = [:key_material] include Aws::Structure end  |