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_id ⇒ String

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_port ⇒ Integer

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_key ⇒ String

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