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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2instanceconnect/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 'gems/aws-sdk-ec2instanceconnect/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 'gems/aws-sdk-ec2instanceconnect/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.

Returns:

  • (String)


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

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