github.com/aavshr/aws-sdk-go@v1.41.3/service/kinesisanalytics/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package kinesisanalytics 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeCodeValidationException for service response error code 12 // "CodeValidationException". 13 // 14 // User-provided application code (query) is invalid. This can be a simple syntax 15 // error. 16 ErrCodeCodeValidationException = "CodeValidationException" 17 18 // ErrCodeConcurrentModificationException for service response error code 19 // "ConcurrentModificationException". 20 // 21 // Exception thrown as a result of concurrent modification to an application. 22 // For example, two individuals attempting to edit the same application at the 23 // same time. 24 ErrCodeConcurrentModificationException = "ConcurrentModificationException" 25 26 // ErrCodeInvalidApplicationConfigurationException for service response error code 27 // "InvalidApplicationConfigurationException". 28 // 29 // User-provided application configuration is not valid. 30 ErrCodeInvalidApplicationConfigurationException = "InvalidApplicationConfigurationException" 31 32 // ErrCodeInvalidArgumentException for service response error code 33 // "InvalidArgumentException". 34 // 35 // Specified input parameter value is invalid. 36 ErrCodeInvalidArgumentException = "InvalidArgumentException" 37 38 // ErrCodeLimitExceededException for service response error code 39 // "LimitExceededException". 40 // 41 // Exceeded the number of applications allowed. 42 ErrCodeLimitExceededException = "LimitExceededException" 43 44 // ErrCodeResourceInUseException for service response error code 45 // "ResourceInUseException". 46 // 47 // Application is not available for this operation. 48 ErrCodeResourceInUseException = "ResourceInUseException" 49 50 // ErrCodeResourceNotFoundException for service response error code 51 // "ResourceNotFoundException". 52 // 53 // Specified application can't be found. 54 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 55 56 // ErrCodeResourceProvisionedThroughputExceededException for service response error code 57 // "ResourceProvisionedThroughputExceededException". 58 // 59 // Discovery failed to get a record from the streaming source because of the 60 // Amazon Kinesis Streams ProvisionedThroughputExceededException. For more information, 61 // see GetRecords (https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetRecords.html) 62 // in the Amazon Kinesis Streams API Reference. 63 ErrCodeResourceProvisionedThroughputExceededException = "ResourceProvisionedThroughputExceededException" 64 65 // ErrCodeServiceUnavailableException for service response error code 66 // "ServiceUnavailableException". 67 // 68 // The service is unavailable. Back off and retry the operation. 69 ErrCodeServiceUnavailableException = "ServiceUnavailableException" 70 71 // ErrCodeTooManyTagsException for service response error code 72 // "TooManyTagsException". 73 // 74 // Application created with too many tags, or too many tags added to an application. 75 // Note that the maximum number of application tags includes system tags. The 76 // maximum number of user-defined application tags is 50. 77 ErrCodeTooManyTagsException = "TooManyTagsException" 78 79 // ErrCodeUnableToDetectSchemaException for service response error code 80 // "UnableToDetectSchemaException". 81 // 82 // Data format is not valid. Amazon Kinesis Analytics is not able to detect 83 // schema for the given streaming source. 84 ErrCodeUnableToDetectSchemaException = "UnableToDetectSchemaException" 85 86 // ErrCodeUnsupportedOperationException for service response error code 87 // "UnsupportedOperationException". 88 // 89 // The request was rejected because a specified parameter is not supported or 90 // a specified resource is not valid for this operation. 91 ErrCodeUnsupportedOperationException = "UnsupportedOperationException" 92 ) 93 94 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 95 "CodeValidationException": newErrorCodeValidationException, 96 "ConcurrentModificationException": newErrorConcurrentModificationException, 97 "InvalidApplicationConfigurationException": newErrorInvalidApplicationConfigurationException, 98 "InvalidArgumentException": newErrorInvalidArgumentException, 99 "LimitExceededException": newErrorLimitExceededException, 100 "ResourceInUseException": newErrorResourceInUseException, 101 "ResourceNotFoundException": newErrorResourceNotFoundException, 102 "ResourceProvisionedThroughputExceededException": newErrorResourceProvisionedThroughputExceededException, 103 "ServiceUnavailableException": newErrorServiceUnavailableException, 104 "TooManyTagsException": newErrorTooManyTagsException, 105 "UnableToDetectSchemaException": newErrorUnableToDetectSchemaException, 106 "UnsupportedOperationException": newErrorUnsupportedOperationException, 107 }