Class EC2InstanceConnectException
- Exception
-
RuntimeException
-
Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
-
Aws\EC2InstanceConnect\Exception\EC2InstanceConnectException
- Namespace: Aws\EC2InstanceConnect\Exception
- Located at EC2InstanceConnect/Exception/EC2InstanceConnectException.php
Represents an error interacting with the AWS EC2 Instance Connect service.
Methods Summary
Methods inherited from Aws\Exception\AwsException
__construct()
,
__toString()
,
get()
,
getAwsErrorCode()
,
getAwsErrorMessage()
,
getAwsErrorShape()
,
getAwsErrorType()
,
getAwsRequestId()
,
getCommand()
,
getRequest()
,
getResponse()
,
getResult()
,
getStatusCode()
,
getTransferInfo()
,
hasKey()
,
isConnectionError()
,
isMaxRetriesExceeded()
,
search()
,
setMaxRetriesExceeded()
,
setTransferInfo()
Methods inherited from Exception
__wakeup()
,
getCode()
,
getFile()
,
getLine()
,
getMessage()
,
getPrevious()
,
getTrace()
,
getTraceAsString()
Methods inherited from ArrayAccess
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
Methods inherited from Aws\MonitoringEventsInterface
Methods used from Aws\HasDataTrait
Methods used from Aws\HasMonitoringEventsTrait
Expected Exception Codes
AuthException
[ 'Message' => '<string>', ]
Description
Either your AWS credentials are not valid or you do not have access to the EC2 instance.
Members
EC2InstanceNotFoundException
[ 'Message' => '<string>', ]
EC2InstanceStateInvalidException
[ 'Message' => '<string>', ]
Description
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.
Members
EC2InstanceTypeInvalidException
[ 'Message' => '<string>', ]
Description
The instance type is not supported for connecting via the serial console. Only Nitro instance types are currently supported.
Members
EC2InstanceUnavailableException
[ 'Message' => '<string>', ]
Description
The instance is currently unavailable. Wait a few minutes and try again.
Members
InvalidArgsException
[ 'Message' => '<string>', ]
SerialConsoleAccessDisabledException
[ 'Message' => '<string>', ]
Description
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.
Members
SerialConsoleSessionLimitExceededException
[ 'Message' => '<string>', ]
Description
The instance currently has 1 active serial console session. Only 1 session is supported at a time.
Members
SerialConsoleSessionUnavailableException
[ 'Message' => '<string>', ]
Description
Unable to start a serial console session. Please try again.
Members
ServiceException
[ 'Message' => '<string>', ]
Description
The service encountered an error. Follow the instructions in the error message and try again.
Members
ThrottlingException
[ 'Message' => '<string>', ]