AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::EC2InstanceConnect::Types::SendSSHPublicKeyRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing SendSSHPublicKeyRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  instance_id: "InstanceId", # required
  instance_os_user: "InstanceOSUser", # required
  ssh_public_key: "SSHPublicKey", # required
  availability_zone: "AvailabilityZone", # required
}

Instance Attribute Summary collapse

Instance Attribute Details

#availability_zoneString

The availability zone the EC2 instance was launched in.

Returns:

  • (String)

    The availability zone the EC2 instance was launched in.

#instance_idString

The EC2 instance you wish to publish the SSH key to.

Returns:

  • (String)

    The EC2 instance you wish to publish the SSH key to.

#instance_os_userString

The OS user on the EC2 instance whom the key may be used to authenticate as.

Returns:

  • (String)

    The OS user on the EC2 instance whom the key may be used to authenticate as.

#ssh_public_keyString

The public key to be published to the instance. To use it after publication you must have the matching private key.

Returns:

  • (String)

    The public key to be published to the instance.