1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
"fmt"
smithy "github.com/aws/smithy-go"
)
// Either your AWS credentials are not valid or you do not have access to the EC2
// instance.
type AuthException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *AuthException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *AuthException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *AuthException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "AuthException"
}
return *e.ErrorCodeOverride
}
func (e *AuthException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified instance was not found.
type EC2InstanceNotFoundException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *EC2InstanceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *EC2InstanceNotFoundException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *EC2InstanceNotFoundException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "EC2InstanceNotFoundException"
}
return *e.ErrorCodeOverride
}
func (e *EC2InstanceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// 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.
type EC2InstanceStateInvalidException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *EC2InstanceStateInvalidException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *EC2InstanceStateInvalidException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *EC2InstanceStateInvalidException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "EC2InstanceStateInvalidException"
}
return *e.ErrorCodeOverride
}
func (e *EC2InstanceStateInvalidException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The instance type is not supported for connecting via the serial console. Only
// Nitro instance types are currently supported.
type EC2InstanceTypeInvalidException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *EC2InstanceTypeInvalidException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *EC2InstanceTypeInvalidException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *EC2InstanceTypeInvalidException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "EC2InstanceTypeInvalidException"
}
return *e.ErrorCodeOverride
}
func (e *EC2InstanceTypeInvalidException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The instance is currently unavailable. Wait a few minutes and try again.
type EC2InstanceUnavailableException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *EC2InstanceUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *EC2InstanceUnavailableException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *EC2InstanceUnavailableException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "EC2InstanceUnavailableException"
}
return *e.ErrorCodeOverride
}
func (e *EC2InstanceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
// One of the parameters is not valid.
type InvalidArgsException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidArgsException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidArgsException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidArgsException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidArgsException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidArgsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Your account is not authorized to use the EC2 Serial Console. To authorize your
// account, run the EnableSerialConsoleAccess API. For more information, see
// EnableSerialConsoleAccess (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EnableSerialConsoleAccess.html)
// in the Amazon EC2 API Reference.
type SerialConsoleAccessDisabledException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *SerialConsoleAccessDisabledException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *SerialConsoleAccessDisabledException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *SerialConsoleAccessDisabledException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "SerialConsoleAccessDisabledException"
}
return *e.ErrorCodeOverride
}
func (e *SerialConsoleAccessDisabledException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The instance currently has 1 active serial console session. Only 1 session is
// supported at a time.
type SerialConsoleSessionLimitExceededException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *SerialConsoleSessionLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *SerialConsoleSessionLimitExceededException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *SerialConsoleSessionLimitExceededException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "SerialConsoleSessionLimitExceededException"
}
return *e.ErrorCodeOverride
}
func (e *SerialConsoleSessionLimitExceededException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// Unable to start a serial console session. Please try again.
type SerialConsoleSessionUnavailableException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *SerialConsoleSessionUnavailableException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *SerialConsoleSessionUnavailableException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *SerialConsoleSessionUnavailableException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "SerialConsoleSessionUnavailableException"
}
return *e.ErrorCodeOverride
}
func (e *SerialConsoleSessionUnavailableException) ErrorFault() smithy.ErrorFault {
return smithy.FaultServer
}
// The service encountered an error. Follow the instructions in the error message
// and try again.
type ServiceException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ServiceException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ServiceException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ServiceException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ServiceException"
}
return *e.ErrorCodeOverride
}
func (e *ServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
// 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.
type ThrottlingException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ThrottlingException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ThrottlingException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ThrottlingException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ThrottlingException"
}
return *e.ErrorCodeOverride
}
func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|