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
- Message
-
- Type: string
EC2InstanceNotFoundException
[ 'Message' => '<string>', ]
Description
The specified instance was not found.
Members
- Message
-
- Type: 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
- Message
-
- Type: string
EC2InstanceTypeInvalidException
[ 'Message' => '<string>', ]
Description
The instance type is not supported for connecting via the serial console. Only Nitro instance types are currently supported.
Members
- Message
-
- Type: string
EC2InstanceUnavailableException
[ 'Message' => '<string>', ]
Description
The instance is currently unavailable. Wait a few minutes and try again.
Members
- Message
-
- Type: string
InvalidArgsException
[ 'Message' => '<string>', ]
Description
One of the parameters is not valid.
Members
- Message
-
- Type: 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
- Message
-
- Type: string
SerialConsoleSessionLimitExceededException
[ 'Message' => '<string>', ]
Description
The instance currently has 1 active serial console session. Only 1 session is supported at a time.
Members
- Message
-
- Type: string
SerialConsoleSessionUnavailableException
[ 'Message' => '<string>', ]
Description
Unable to start a serial console session. Please try again.
Members
- Message
-
- Type: string
ServiceException
[ 'Message' => '<string>', ]
Description
The service encountered an error. Follow the instructions in the error message and try again.
Members
- Message
-
- Type: string
ThrottlingException
[ 'Message' => '<string>', ]
Description
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.
Members
- Message
-
- Type: string