Class: Aws::EC2::Types::KeyPair

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#key_fingerprintString

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

Returns:

  • (String)


46993
46994
46995
46996
46997
46998
46999
47000
47001
# File 'lib/aws-sdk-ec2/types.rb', line 46993

class KeyPair < Struct.new(
  :key_pair_id,
  :tags,
  :key_name,
  :key_fingerprint,
  :key_material)
  SENSITIVE = [:key_material]
  include Aws::Structure
end

#key_materialString

An unencrypted PEM encoded RSA or ED25519 private key.

Returns:

  • (String)


46993
46994
46995
46996
46997
46998
46999
47000
47001
# File 'lib/aws-sdk-ec2/types.rb', line 46993

class KeyPair < Struct.new(
  :key_pair_id,
  :tags,
  :key_name,
  :key_fingerprint,
  :key_material)
  SENSITIVE = [:key_material]
  include Aws::Structure
end

#key_nameString

The name of the key pair.

Returns:

  • (String)


46993
46994
46995
46996
46997
46998
46999
47000
47001
# File 'lib/aws-sdk-ec2/types.rb', line 46993

class KeyPair < Struct.new(
  :key_pair_id,
  :tags,
  :key_name,
  :key_fingerprint,
  :key_material)
  SENSITIVE = [:key_material]
  include Aws::Structure
end

#key_pair_idString

The ID of the key pair.

Returns:

  • (String)


46993
46994
46995
46996
46997
46998
46999
47000
47001
# File 'lib/aws-sdk-ec2/types.rb', line 46993

class KeyPair < Struct.new(
  :key_pair_id,
  :tags,
  :key_name,
  :key_fingerprint,
  :key_material)
  SENSITIVE = [:key_material]
  include Aws::Structure
end

#tagsArray<Types::Tag>

Any tags applied to the key pair.

Returns:



46993
46994
46995
46996
46997
46998
46999
47000
47001
# File 'lib/aws-sdk-ec2/types.rb', line 46993

class KeyPair < Struct.new(
  :key_pair_id,
  :tags,
  :key_name,
  :key_fingerprint,
  :key_material)
  SENSITIVE = [:key_material]
  include Aws::Structure
end