github.com/aavshr/aws-sdk-go@v1.41.3/service/iotsitewise/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package iotsitewise 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeConflictingOperationException for service response error code 12 // "ConflictingOperationException". 13 // 14 // Your request has conflicting operations. This can occur if you're trying 15 // to perform more than one operation on the same resource at the same time. 16 ErrCodeConflictingOperationException = "ConflictingOperationException" 17 18 // ErrCodeInternalFailureException for service response error code 19 // "InternalFailureException". 20 // 21 // IoT SiteWise can't process your request right now. Try again later. 22 ErrCodeInternalFailureException = "InternalFailureException" 23 24 // ErrCodeInvalidRequestException for service response error code 25 // "InvalidRequestException". 26 // 27 // The request isn't valid. This can occur if your request contains malformed 28 // JSON or unsupported characters. Check your request and try again. 29 ErrCodeInvalidRequestException = "InvalidRequestException" 30 31 // ErrCodeLimitExceededException for service response error code 32 // "LimitExceededException". 33 // 34 // You've reached the limit for a resource. For example, this can occur if you're 35 // trying to associate more than the allowed number of child assets or attempting 36 // to create more than the allowed number of properties for an asset model. 37 // 38 // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) 39 // in the IoT SiteWise User Guide. 40 ErrCodeLimitExceededException = "LimitExceededException" 41 42 // ErrCodeResourceAlreadyExistsException for service response error code 43 // "ResourceAlreadyExistsException". 44 // 45 // The resource already exists. 46 ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" 47 48 // ErrCodeResourceNotFoundException for service response error code 49 // "ResourceNotFoundException". 50 // 51 // The requested resource can't be found. 52 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 53 54 // ErrCodeServiceUnavailableException for service response error code 55 // "ServiceUnavailableException". 56 // 57 // The requested service is unavailable. 58 ErrCodeServiceUnavailableException = "ServiceUnavailableException" 59 60 // ErrCodeThrottlingException for service response error code 61 // "ThrottlingException". 62 // 63 // Your request exceeded a rate limit. For example, you might have exceeded 64 // the number of IoT SiteWise assets that can be created per second, the allowed 65 // number of messages per second, and so on. 66 // 67 // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) 68 // in the IoT SiteWise User Guide. 69 ErrCodeThrottlingException = "ThrottlingException" 70 71 // ErrCodeTooManyTagsException for service response error code 72 // "TooManyTagsException". 73 // 74 // You've reached the limit for the number of tags allowed for a resource. For 75 // more information, see Tag naming limits and requirements (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html#tag-conventions) 76 // in the Amazon Web Services General Reference. 77 ErrCodeTooManyTagsException = "TooManyTagsException" 78 79 // ErrCodeUnauthorizedException for service response error code 80 // "UnauthorizedException". 81 // 82 // You are not authorized. 83 ErrCodeUnauthorizedException = "UnauthorizedException" 84 ) 85 86 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 87 "ConflictingOperationException": newErrorConflictingOperationException, 88 "InternalFailureException": newErrorInternalFailureException, 89 "InvalidRequestException": newErrorInvalidRequestException, 90 "LimitExceededException": newErrorLimitExceededException, 91 "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, 92 "ResourceNotFoundException": newErrorResourceNotFoundException, 93 "ServiceUnavailableException": newErrorServiceUnavailableException, 94 "ThrottlingException": newErrorThrottlingException, 95 "TooManyTagsException": newErrorTooManyTagsException, 96 "UnauthorizedException": newErrorUnauthorizedException, 97 }