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

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

Overview

Note:

When making an API call, you may pass SendSerialConsoleSSHPublicKeyRequest data as a hash:

{
  instance_id: "InstanceId", # required
  serial_port: 1,
  ssh_public_key: "SSHPublicKey", # required
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#instance_idString

The ID of the EC2 instance.

Returns:

  • (String)


173
174
175
176
177
178
179
# File 'gems/aws-sdk-ec2instanceconnect/lib/aws-sdk-ec2instanceconnect/types.rb', line 173

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)


173
174
175
176
177
178
179
# File 'gems/aws-sdk-ec2instanceconnect/lib/aws-sdk-ec2instanceconnect/types.rb', line 173

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)


173
174
175
176
177
178
179
# File 'gems/aws-sdk-ec2instanceconnect/lib/aws-sdk-ec2instanceconnect/types.rb', line 173

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