Class: Aws::EC2InstanceConnect::Types::SendSerialConsoleSSHPublicKeyRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ec2instanceconnect/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#instance_idString

The ID of the EC2 instance.

Returns:

  • (String)


168
169
170
171
172
173
174
# File 'lib/aws-sdk-ec2instanceconnect/types.rb', line 168

class SendSerialConsoleSSHPublicKeyRequest < Struct.new(
  :instance_id,
  :serial_port,
  :ssh_public_key)
  SENSITIVE = []
  include Aws::Structure
end

#serial_portInteger

The serial port of the EC2 instance. Currently only port 0 is supported.

Default: 0

Returns:

  • (Integer)


168
169
170
171
172
173
174
# File 'lib/aws-sdk-ec2instanceconnect/types.rb', line 168

class SendSerialConsoleSSHPublicKeyRequest < Struct.new(
  :instance_id,
  :serial_port,
  :ssh_public_key)
  SENSITIVE = []
  include Aws::Structure
end

#ssh_public_keyString

The public key material. To use the public key, you must have the matching private key. For information about the supported key formats and lengths, see [Requirements for key pairs] in the *Amazon EC2 User Guide*.

[1]: docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#how-to-generate-your-own-key-and-import-it-to-aws

Returns:

  • (String)


168
169
170
171
172
173
174
# File 'lib/aws-sdk-ec2instanceconnect/types.rb', line 168

class SendSerialConsoleSSHPublicKeyRequest < Struct.new(
  :instance_id,
  :serial_port,
  :ssh_public_key)
  SENSITIVE = []
  include Aws::Structure
end