github.com/aavshr/aws-sdk-go@v1.41.3/service/kinesisanalyticsv2/errors.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package kinesisanalyticsv2
     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  	// The user-provided application code (query) is not valid. This can be a simple
    15  	// syntax error.
    16  	ErrCodeCodeValidationException = "CodeValidationException"
    17  
    18  	// ErrCodeConcurrentModificationException for service response error code
    19  	// "ConcurrentModificationException".
    20  	//
    21  	// Exception thrown as a result of concurrent modifications to an application.
    22  	// This error can be the result of attempting to modify an application without
    23  	// using the current application ID.
    24  	ErrCodeConcurrentModificationException = "ConcurrentModificationException"
    25  
    26  	// ErrCodeInvalidApplicationConfigurationException for service response error code
    27  	// "InvalidApplicationConfigurationException".
    28  	//
    29  	// The user-provided application configuration is not valid.
    30  	ErrCodeInvalidApplicationConfigurationException = "InvalidApplicationConfigurationException"
    31  
    32  	// ErrCodeInvalidArgumentException for service response error code
    33  	// "InvalidArgumentException".
    34  	//
    35  	// The specified input parameter value is not valid.
    36  	ErrCodeInvalidArgumentException = "InvalidArgumentException"
    37  
    38  	// ErrCodeInvalidRequestException for service response error code
    39  	// "InvalidRequestException".
    40  	//
    41  	// The request JSON is not valid for the operation.
    42  	ErrCodeInvalidRequestException = "InvalidRequestException"
    43  
    44  	// ErrCodeLimitExceededException for service response error code
    45  	// "LimitExceededException".
    46  	//
    47  	// The number of allowed resources has been exceeded.
    48  	ErrCodeLimitExceededException = "LimitExceededException"
    49  
    50  	// ErrCodeResourceInUseException for service response error code
    51  	// "ResourceInUseException".
    52  	//
    53  	// The application is not available for this operation.
    54  	ErrCodeResourceInUseException = "ResourceInUseException"
    55  
    56  	// ErrCodeResourceNotFoundException for service response error code
    57  	// "ResourceNotFoundException".
    58  	//
    59  	// Specified application can't be found.
    60  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    61  
    62  	// ErrCodeResourceProvisionedThroughputExceededException for service response error code
    63  	// "ResourceProvisionedThroughputExceededException".
    64  	//
    65  	// Discovery failed to get a record from the streaming source because of the
    66  	// Kinesis Streams ProvisionedThroughputExceededException. For more information,
    67  	// see GetRecords (http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetRecords.html)
    68  	// in the Amazon Kinesis Streams API Reference.
    69  	ErrCodeResourceProvisionedThroughputExceededException = "ResourceProvisionedThroughputExceededException"
    70  
    71  	// ErrCodeServiceUnavailableException for service response error code
    72  	// "ServiceUnavailableException".
    73  	//
    74  	// The service cannot complete the request.
    75  	ErrCodeServiceUnavailableException = "ServiceUnavailableException"
    76  
    77  	// ErrCodeTooManyTagsException for service response error code
    78  	// "TooManyTagsException".
    79  	//
    80  	// Application created with too many tags, or too many tags added to an application.
    81  	// Note that the maximum number of application tags includes system tags. The
    82  	// maximum number of user-defined application tags is 50.
    83  	ErrCodeTooManyTagsException = "TooManyTagsException"
    84  
    85  	// ErrCodeUnableToDetectSchemaException for service response error code
    86  	// "UnableToDetectSchemaException".
    87  	//
    88  	// The data format is not valid. Kinesis Data Analytics cannot detect the schema
    89  	// for the given streaming source.
    90  	ErrCodeUnableToDetectSchemaException = "UnableToDetectSchemaException"
    91  
    92  	// ErrCodeUnsupportedOperationException for service response error code
    93  	// "UnsupportedOperationException".
    94  	//
    95  	// The request was rejected because a specified parameter is not supported or
    96  	// a specified resource is not valid for this operation.
    97  	ErrCodeUnsupportedOperationException = "UnsupportedOperationException"
    98  )
    99  
   100  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
   101  	"CodeValidationException":                        newErrorCodeValidationException,
   102  	"ConcurrentModificationException":                newErrorConcurrentModificationException,
   103  	"InvalidApplicationConfigurationException":       newErrorInvalidApplicationConfigurationException,
   104  	"InvalidArgumentException":                       newErrorInvalidArgumentException,
   105  	"InvalidRequestException":                        newErrorInvalidRequestException,
   106  	"LimitExceededException":                         newErrorLimitExceededException,
   107  	"ResourceInUseException":                         newErrorResourceInUseException,
   108  	"ResourceNotFoundException":                      newErrorResourceNotFoundException,
   109  	"ResourceProvisionedThroughputExceededException": newErrorResourceProvisionedThroughputExceededException,
   110  	"ServiceUnavailableException":                    newErrorServiceUnavailableException,
   111  	"TooManyTagsException":                           newErrorTooManyTagsException,
   112  	"UnableToDetectSchemaException":                  newErrorUnableToDetectSchemaException,
   113  	"UnsupportedOperationException":                  newErrorUnsupportedOperationException,
   114  }