github.com/aavshr/aws-sdk-go@v1.41.3/service/applicationinsights/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package applicationinsights 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeAccessDeniedException for service response error code 12 // "AccessDeniedException". 13 // 14 // User does not have permissions to perform this action. 15 ErrCodeAccessDeniedException = "AccessDeniedException" 16 17 // ErrCodeBadRequestException for service response error code 18 // "BadRequestException". 19 // 20 // The request is not understood by the server. 21 ErrCodeBadRequestException = "BadRequestException" 22 23 // ErrCodeInternalServerException for service response error code 24 // "InternalServerException". 25 // 26 // The server encountered an internal error and is unable to complete the request. 27 ErrCodeInternalServerException = "InternalServerException" 28 29 // ErrCodeResourceInUseException for service response error code 30 // "ResourceInUseException". 31 // 32 // The resource is already created or in use. 33 ErrCodeResourceInUseException = "ResourceInUseException" 34 35 // ErrCodeResourceNotFoundException for service response error code 36 // "ResourceNotFoundException". 37 // 38 // The resource does not exist in the customer account. 39 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 40 41 // ErrCodeTagsAlreadyExistException for service response error code 42 // "TagsAlreadyExistException". 43 // 44 // Tags are already registered for the specified application ARN. 45 ErrCodeTagsAlreadyExistException = "TagsAlreadyExistException" 46 47 // ErrCodeTooManyTagsException for service response error code 48 // "TooManyTagsException". 49 // 50 // The number of the provided tags is beyond the limit, or the number of total 51 // tags you are trying to attach to the specified resource exceeds the limit. 52 ErrCodeTooManyTagsException = "TooManyTagsException" 53 54 // ErrCodeValidationException for service response error code 55 // "ValidationException". 56 // 57 // The parameter is not valid. 58 ErrCodeValidationException = "ValidationException" 59 ) 60 61 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 62 "AccessDeniedException": newErrorAccessDeniedException, 63 "BadRequestException": newErrorBadRequestException, 64 "InternalServerException": newErrorInternalServerException, 65 "ResourceInUseException": newErrorResourceInUseException, 66 "ResourceNotFoundException": newErrorResourceNotFoundException, 67 "TagsAlreadyExistException": newErrorTagsAlreadyExistException, 68 "TooManyTagsException": newErrorTooManyTagsException, 69 "ValidationException": newErrorValidationException, 70 }