Class: Aws::EC2::Types::KeyPairInfo

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Describes a key pair.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#create_timeTime

If you used Amazon EC2 to create the key pair, this is the date and time when the key was created, in ISO 8601 date-time format, in the UTC time zone.

If you imported an existing key pair to Amazon EC2, this is the date and time the key was imported, in ISO 8601 date-time format, in the UTC time zone.

Returns:

  • (Time)


43563
43564
43565
43566
43567
43568
43569
43570
43571
43572
43573
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 43563

class KeyPairInfo < Struct.new(
  :key_pair_id,
  :key_fingerprint,
  :key_name,
  :key_type,
  :tags,
  :public_key,
  :create_time)
  SENSITIVE = []
  include Aws::Structure
end

#key_fingerprintString

If you used CreateKeyPair to create the key pair:

  • 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.

If you used ImportKeyPair to provide Amazon Web Services the public key:

  • For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC4716.

  • 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.

Returns:

  • (String)


43563
43564
43565
43566
43567
43568
43569
43570
43571
43572
43573
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 43563

class KeyPairInfo < Struct.new(
  :key_pair_id,
  :key_fingerprint,
  :key_name,
  :key_type,
  :tags,
  :public_key,
  :create_time)
  SENSITIVE = []
  include Aws::Structure
end

#key_nameString

The name of the key pair.

Returns:

  • (String)


43563
43564
43565
43566
43567
43568
43569
43570
43571
43572
43573
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 43563

class KeyPairInfo < Struct.new(
  :key_pair_id,
  :key_fingerprint,
  :key_name,
  :key_type,
  :tags,
  :public_key,
  :create_time)
  SENSITIVE = []
  include Aws::Structure
end

#key_pair_idString

The ID of the key pair.

Returns:

  • (String)


43563
43564
43565
43566
43567
43568
43569
43570
43571
43572
43573
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 43563

class KeyPairInfo < Struct.new(
  :key_pair_id,
  :key_fingerprint,
  :key_name,
  :key_type,
  :tags,
  :public_key,
  :create_time)
  SENSITIVE = []
  include Aws::Structure
end

#key_typeString

The type of key pair.

Returns:

  • (String)


43563
43564
43565
43566
43567
43568
43569
43570
43571
43572
43573
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 43563

class KeyPairInfo < Struct.new(
  :key_pair_id,
  :key_fingerprint,
  :key_name,
  :key_type,
  :tags,
  :public_key,
  :create_time)
  SENSITIVE = []
  include Aws::Structure
end

#public_keyString

The public key material.

Returns:

  • (String)


43563
43564
43565
43566
43567
43568
43569
43570
43571
43572
43573
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 43563

class KeyPairInfo < Struct.new(
  :key_pair_id,
  :key_fingerprint,
  :key_name,
  :key_type,
  :tags,
  :public_key,
  :create_time)
  SENSITIVE = []
  include Aws::Structure
end

#tagsArray<Types::Tag>

Any tags applied to the key pair.

Returns:



43563
43564
43565
43566
43567
43568
43569
43570
43571
43572
43573
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 43563

class KeyPairInfo < Struct.new(
  :key_pair_id,
  :key_fingerprint,
  :key_name,
  :key_type,
  :tags,
  :public_key,
  :create_time)
  SENSITIVE = []
  include Aws::Structure
end