AWS SDK Version 3 for .NET
API Reference

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.

Classes

NameDescription
Class AuthException

Either your AWS credentials are not valid or you do not have access to the EC2 instance.

Class EC2InstanceNotFoundException

The specified instance was not found.

Class EC2InstanceStateInvalidException

Unable to connect because the instance is not in a valid state. Connecting to a stopped or terminated instance is not supported. If the instance is stopped, start your instance, and try to connect again.

Class EC2InstanceTypeInvalidException

The instance type is not supported for connecting via the serial console. Only Nitro instance types are currently supported.

Class EC2InstanceUnavailableException

The instance is currently unavailable. Wait a few minutes and try again.

Class InvalidArgsException

One of the parameters is not valid.

Class SendSerialConsoleSSHPublicKeyRequest

Container for the parameters to the SendSerialConsoleSSHPublicKey operation. 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.

Class SendSerialConsoleSSHPublicKeyResponse

This is the response object from the SendSerialConsoleSSHPublicKey operation.

Class SendSSHPublicKeyRequest

Container for the parameters to the SendSSHPublicKey operation. 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.

Class SendSSHPublicKeyResponse

This is the response object from the SendSSHPublicKey operation.

Class SerialConsoleAccessDisabledException

Your account is not authorized to use the EC2 Serial Console. To authorize your account, run the EnableSerialConsoleAccess API. For more information, see EnableSerialConsoleAccess in the Amazon EC2 API Reference.

Class SerialConsoleSessionLimitExceededException

The instance currently has 1 active serial console session. Only 1 session is supported at a time.

Class SerialConsoleSessionUnavailableException

Unable to start a serial console session. Please try again.

Class SerialConsoleSessionUnsupportedException

Your instance's BIOS version is unsupported for serial console connection. Reboot your instance to update its BIOS, and then try again to connect.

Class ServiceException

The service encountered an error. Follow the instructions in the error message and try again.

Class ThrottlingException

The requests were made too frequently and have been throttled. Wait a while and try again. To increase the limit on your request frequency, contact AWS Support.