logo
pub trait Ec2InstanceConnect {
    fn send_ssh_public_key<'life0, 'async_trait>(
        &'life0 self,
        input: SendSSHPublicKeyRequest
    ) -> Pin<Box<dyn Future<Output = Result<SendSSHPublicKeyResponse, RusotoError<SendSSHPublicKeyError>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn send_serial_console_ssh_public_key<'life0, 'async_trait>(
        &'life0 self,
        input: SendSerialConsoleSSHPublicKeyRequest
    ) -> Pin<Box<dyn Future<Output = Result<SendSerialConsoleSSHPublicKeyResponse, RusotoError<SendSerialConsoleSSHPublicKeyError>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Trait representing the capabilities of the EC2 Instance Connect API. EC2 Instance Connect clients implement this trait.

Required Methods

Pushes an SSH public key to the specified EC2 instance for use by the specified user. The key remains for 60 seconds. For more information, see Connect to your Linux instance using EC2 Instance Connect in the Amazon EC2 User Guide.

Pushes an SSH public key to the specified EC2 instance. The key remains for 60 seconds, which gives you 60 seconds to establish a serial console connection to the instance using SSH. For more information, see EC2 Serial Console in the Amazon EC2 User Guide.

Implementors