github.com/aavshr/aws-sdk-go@v1.41.3/service/ec2instanceconnect/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package ec2instanceconnect 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeAuthException for service response error code 12 // "AuthException". 13 // 14 // Either your AWS credentials are not valid or you do not have access to the 15 // EC2 instance. 16 ErrCodeAuthException = "AuthException" 17 18 // ErrCodeEC2InstanceNotFoundException for service response error code 19 // "EC2InstanceNotFoundException". 20 // 21 // The specified instance was not found. 22 ErrCodeEC2InstanceNotFoundException = "EC2InstanceNotFoundException" 23 24 // ErrCodeEC2InstanceTypeInvalidException for service response error code 25 // "EC2InstanceTypeInvalidException". 26 // 27 // The instance type is not supported for connecting via the serial console. 28 // Only Nitro instance types are currently supported. 29 ErrCodeEC2InstanceTypeInvalidException = "EC2InstanceTypeInvalidException" 30 31 // ErrCodeInvalidArgsException for service response error code 32 // "InvalidArgsException". 33 // 34 // One of the parameters is not valid. 35 ErrCodeInvalidArgsException = "InvalidArgsException" 36 37 // ErrCodeSerialConsoleAccessDisabledException for service response error code 38 // "SerialConsoleAccessDisabledException". 39 // 40 // Your account is not authorized to use the EC2 Serial Console. To authorize 41 // your account, run the EnableSerialConsoleAccess API. For more information, 42 // see EnableSerialConsoleAccess (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EnableSerialConsoleAccess.html) 43 // in the Amazon EC2 API Reference. 44 ErrCodeSerialConsoleAccessDisabledException = "SerialConsoleAccessDisabledException" 45 46 // ErrCodeSerialConsoleSessionLimitExceededException for service response error code 47 // "SerialConsoleSessionLimitExceededException". 48 // 49 // The instance currently has 1 active serial console session. Only 1 session 50 // is supported at a time. 51 ErrCodeSerialConsoleSessionLimitExceededException = "SerialConsoleSessionLimitExceededException" 52 53 // ErrCodeSerialConsoleSessionUnavailableException for service response error code 54 // "SerialConsoleSessionUnavailableException". 55 // 56 // Unable to start a serial console session. Please try again. 57 ErrCodeSerialConsoleSessionUnavailableException = "SerialConsoleSessionUnavailableException" 58 59 // ErrCodeServiceException for service response error code 60 // "ServiceException". 61 // 62 // The service encountered an error. Follow the instructions in the error message 63 // and try again. 64 ErrCodeServiceException = "ServiceException" 65 66 // ErrCodeThrottlingException for service response error code 67 // "ThrottlingException". 68 // 69 // The requests were made too frequently and have been throttled. Wait a while 70 // and try again. To increase the limit on your request frequency, contact AWS 71 // Support. 72 ErrCodeThrottlingException = "ThrottlingException" 73 ) 74 75 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 76 "AuthException": newErrorAuthException, 77 "EC2InstanceNotFoundException": newErrorEC2InstanceNotFoundException, 78 "EC2InstanceTypeInvalidException": newErrorEC2InstanceTypeInvalidException, 79 "InvalidArgsException": newErrorInvalidArgsException, 80 "SerialConsoleAccessDisabledException": newErrorSerialConsoleAccessDisabledException, 81 "SerialConsoleSessionLimitExceededException": newErrorSerialConsoleSessionLimitExceededException, 82 "SerialConsoleSessionUnavailableException": newErrorSerialConsoleSessionUnavailableException, 83 "ServiceException": newErrorServiceException, 84 "ThrottlingException": newErrorThrottlingException, 85 }