Enum aws_sdk_ec2instanceconnect::operation::send_serial_console_ssh_public_key::SendSerialConsoleSSHPublicKeyError
source · #[non_exhaustive]pub enum SendSerialConsoleSSHPublicKeyError {
AuthException(AuthException),
Ec2InstanceNotFoundException(Ec2InstanceNotFoundException),
Ec2InstanceStateInvalidException(Ec2InstanceStateInvalidException),
Ec2InstanceTypeInvalidException(Ec2InstanceTypeInvalidException),
Ec2InstanceUnavailableException(Ec2InstanceUnavailableException),
InvalidArgsException(InvalidArgsException),
SerialConsoleAccessDisabledException(SerialConsoleAccessDisabledException),
SerialConsoleSessionLimitExceededException(SerialConsoleSessionLimitExceededException),
SerialConsoleSessionUnavailableException(SerialConsoleSessionUnavailableException),
ServiceException(ServiceException),
ThrottlingException(ThrottlingException),
Unhandled(Unhandled),
}
Expand description
Error type for the SendSerialConsoleSSHPublicKeyError
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AuthException(AuthException)
Either your AWS credentials are not valid or you do not have access to the EC2 instance.
Ec2InstanceNotFoundException(Ec2InstanceNotFoundException)
The specified instance was not found.
Ec2InstanceStateInvalidException(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.
Ec2InstanceTypeInvalidException(Ec2InstanceTypeInvalidException)
The instance type is not supported for connecting via the serial console. Only Nitro instance types are currently supported.
The instance is currently unavailable. Wait a few minutes and try again.
InvalidArgsException(InvalidArgsException)
One of the parameters is not valid.
SerialConsoleAccessDisabledException(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.
SerialConsoleSessionLimitExceededException(SerialConsoleSessionLimitExceededException)
The instance currently has 1 active serial console session. Only 1 session is supported at a time.
Unable to start a serial console session. Please try again.
ServiceException(ServiceException)
The service encountered an error. Follow the instructions in the error message and try again.
ThrottlingException(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.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl SendSerialConsoleSSHPublicKeyError
impl SendSerialConsoleSSHPublicKeyError
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the SendSerialConsoleSSHPublicKeyError::Unhandled
variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the SendSerialConsoleSSHPublicKeyError::Unhandled
variant from a ::aws_smithy_types::error::ErrorMetadata
.
sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn is_auth_exception(&self) -> bool
pub fn is_auth_exception(&self) -> bool
Returns true
if the error kind is SendSerialConsoleSSHPublicKeyError::AuthException
.
sourcepub fn is_ec2_instance_not_found_exception(&self) -> bool
pub fn is_ec2_instance_not_found_exception(&self) -> bool
Returns true
if the error kind is SendSerialConsoleSSHPublicKeyError::Ec2InstanceNotFoundException
.
sourcepub fn is_ec2_instance_state_invalid_exception(&self) -> bool
pub fn is_ec2_instance_state_invalid_exception(&self) -> bool
Returns true
if the error kind is SendSerialConsoleSSHPublicKeyError::Ec2InstanceStateInvalidException
.
sourcepub fn is_ec2_instance_type_invalid_exception(&self) -> bool
pub fn is_ec2_instance_type_invalid_exception(&self) -> bool
Returns true
if the error kind is SendSerialConsoleSSHPublicKeyError::Ec2InstanceTypeInvalidException
.
Returns true
if the error kind is SendSerialConsoleSSHPublicKeyError::Ec2InstanceUnavailableException
.
sourcepub fn is_invalid_args_exception(&self) -> bool
pub fn is_invalid_args_exception(&self) -> bool
Returns true
if the error kind is SendSerialConsoleSSHPublicKeyError::InvalidArgsException
.
sourcepub fn is_serial_console_access_disabled_exception(&self) -> bool
pub fn is_serial_console_access_disabled_exception(&self) -> bool
Returns true
if the error kind is SendSerialConsoleSSHPublicKeyError::SerialConsoleAccessDisabledException
.
sourcepub fn is_serial_console_session_limit_exceeded_exception(&self) -> bool
pub fn is_serial_console_session_limit_exceeded_exception(&self) -> bool
Returns true
if the error kind is SendSerialConsoleSSHPublicKeyError::SerialConsoleSessionLimitExceededException
.
Returns true
if the error kind is SendSerialConsoleSSHPublicKeyError::SerialConsoleSessionUnavailableException
.
sourcepub fn is_service_exception(&self) -> bool
pub fn is_service_exception(&self) -> bool
Returns true
if the error kind is SendSerialConsoleSSHPublicKeyError::ServiceException
.
sourcepub fn is_throttling_exception(&self) -> bool
pub fn is_throttling_exception(&self) -> bool
Returns true
if the error kind is SendSerialConsoleSSHPublicKeyError::ThrottlingException
.
Trait Implementations§
source§impl CreateUnhandledError for SendSerialConsoleSSHPublicKeyError
impl CreateUnhandledError for SendSerialConsoleSSHPublicKeyError
source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata> ) -> Self
source
and error metadata.source§impl Error for SendSerialConsoleSSHPublicKeyError
impl Error for SendSerialConsoleSSHPublicKeyError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<SendSerialConsoleSSHPublicKeyError> for Error
impl From<SendSerialConsoleSSHPublicKeyError> for Error
source§fn from(err: SendSerialConsoleSSHPublicKeyError) -> Self
fn from(err: SendSerialConsoleSSHPublicKeyError) -> Self
source§impl ProvideErrorMetadata for SendSerialConsoleSSHPublicKeyError
impl ProvideErrorMetadata for SendSerialConsoleSSHPublicKeyError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for SendSerialConsoleSSHPublicKeyError
impl RequestId for SendSerialConsoleSSHPublicKeyError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.