github.com/aavshr/aws-sdk-go@v1.41.3/service/cloudcontrolapi/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package cloudcontrolapi 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeAlreadyExistsException for service response error code 12 // "AlreadyExistsException". 13 // 14 // The resource with the name requested already exists. 15 ErrCodeAlreadyExistsException = "AlreadyExistsException" 16 17 // ErrCodeClientTokenConflictException for service response error code 18 // "ClientTokenConflictException". 19 // 20 // The specified client token has already been used in another resource request. 21 // 22 // It is best practice for client tokens to be unique for each resource operation 23 // request. However, client token expire after 36 hours. 24 ErrCodeClientTokenConflictException = "ClientTokenConflictException" 25 26 // ErrCodeConcurrentModificationException for service response error code 27 // "ConcurrentModificationException". 28 // 29 // The resource is currently being modified by another operation. 30 ErrCodeConcurrentModificationException = "ConcurrentModificationException" 31 32 // ErrCodeConcurrentOperationException for service response error code 33 // "ConcurrentOperationException". 34 // 35 // Another resource operation is currently being performed on this resource. 36 ErrCodeConcurrentOperationException = "ConcurrentOperationException" 37 38 // ErrCodeGeneralServiceException for service response error code 39 // "GeneralServiceException". 40 // 41 // The resource handler has returned that the downstream service generated an 42 // error that does not map to any other handler error code. 43 ErrCodeGeneralServiceException = "GeneralServiceException" 44 45 // ErrCodeHandlerFailureException for service response error code 46 // "HandlerFailureException". 47 // 48 // The resource handler has failed without a returning a more specific error 49 // code. This can include timeouts. 50 ErrCodeHandlerFailureException = "HandlerFailureException" 51 52 // ErrCodeHandlerInternalFailureException for service response error code 53 // "HandlerInternalFailureException". 54 // 55 // The resource handler has returned that an unexpected error occurred within 56 // the resource handler. 57 ErrCodeHandlerInternalFailureException = "HandlerInternalFailureException" 58 59 // ErrCodeInvalidCredentialsException for service response error code 60 // "InvalidCredentialsException". 61 // 62 // The resource handler has returned that the credentials provided by the user 63 // are invalid. 64 ErrCodeInvalidCredentialsException = "InvalidCredentialsException" 65 66 // ErrCodeInvalidRequestException for service response error code 67 // "InvalidRequestException". 68 // 69 // The resource handler has returned that invalid input from the user has generated 70 // a generic exception. 71 ErrCodeInvalidRequestException = "InvalidRequestException" 72 73 // ErrCodeNetworkFailureException for service response error code 74 // "NetworkFailureException". 75 // 76 // The resource handler has returned that the request could not be completed 77 // due to networking issues, such as a failure to receive a response from the 78 // server. 79 ErrCodeNetworkFailureException = "NetworkFailureException" 80 81 // ErrCodeNotStabilizedException for service response error code 82 // "NotStabilizedException". 83 // 84 // The resource handler has returned that the downstream resource failed to 85 // complete all of its ready-state checks. 86 ErrCodeNotStabilizedException = "NotStabilizedException" 87 88 // ErrCodeNotUpdatableException for service response error code 89 // "NotUpdatableException". 90 // 91 // One or more properties included in this resource operation are defined as 92 // create-only, and therefore cannot be updated. 93 ErrCodeNotUpdatableException = "NotUpdatableException" 94 95 // ErrCodePrivateTypeException for service response error code 96 // "PrivateTypeException". 97 // 98 // Cloud Control API has not received a valid response from the resource handler, 99 // due to a configuration error. This includes issues such as the resource handler 100 // returning an invalid response, or timing out. 101 ErrCodePrivateTypeException = "PrivateTypeException" 102 103 // ErrCodeRequestTokenNotFoundException for service response error code 104 // "RequestTokenNotFoundException". 105 // 106 // A resource operation with the specified request token cannot be found. 107 ErrCodeRequestTokenNotFoundException = "RequestTokenNotFoundException" 108 109 // ErrCodeResourceConflictException for service response error code 110 // "ResourceConflictException". 111 // 112 // The resource is temporarily unavailable to be acted upon. For example, if 113 // the resource is currently undergoing an operation and cannot be acted upon 114 // until that operation is finished. 115 ErrCodeResourceConflictException = "ResourceConflictException" 116 117 // ErrCodeResourceNotFoundException for service response error code 118 // "ResourceNotFoundException". 119 // 120 // A resource with the specified identifier cannot be found. 121 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 122 123 // ErrCodeServiceInternalErrorException for service response error code 124 // "ServiceInternalErrorException". 125 // 126 // The resource handler has returned that the downstream service returned an 127 // internal error, typically with a 5XX HTTP status code. 128 ErrCodeServiceInternalErrorException = "ServiceInternalErrorException" 129 130 // ErrCodeServiceLimitExceededException for service response error code 131 // "ServiceLimitExceededException". 132 // 133 // The resource handler has returned that a non-transient resource limit was 134 // reached on the service side. 135 ErrCodeServiceLimitExceededException = "ServiceLimitExceededException" 136 137 // ErrCodeThrottlingException for service response error code 138 // "ThrottlingException". 139 // 140 // The request was denied due to request throttling. 141 ErrCodeThrottlingException = "ThrottlingException" 142 143 // ErrCodeTypeNotFoundException for service response error code 144 // "TypeNotFoundException". 145 // 146 // The specified extension does not exist in the CloudFormation registry. 147 ErrCodeTypeNotFoundException = "TypeNotFoundException" 148 149 // ErrCodeUnsupportedActionException for service response error code 150 // "UnsupportedActionException". 151 // 152 // The specified resource does not support this resource operation. 153 ErrCodeUnsupportedActionException = "UnsupportedActionException" 154 ) 155 156 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 157 "AlreadyExistsException": newErrorAlreadyExistsException, 158 "ClientTokenConflictException": newErrorClientTokenConflictException, 159 "ConcurrentModificationException": newErrorConcurrentModificationException, 160 "ConcurrentOperationException": newErrorConcurrentOperationException, 161 "GeneralServiceException": newErrorGeneralServiceException, 162 "HandlerFailureException": newErrorHandlerFailureException, 163 "HandlerInternalFailureException": newErrorHandlerInternalFailureException, 164 "InvalidCredentialsException": newErrorInvalidCredentialsException, 165 "InvalidRequestException": newErrorInvalidRequestException, 166 "NetworkFailureException": newErrorNetworkFailureException, 167 "NotStabilizedException": newErrorNotStabilizedException, 168 "NotUpdatableException": newErrorNotUpdatableException, 169 "PrivateTypeException": newErrorPrivateTypeException, 170 "RequestTokenNotFoundException": newErrorRequestTokenNotFoundException, 171 "ResourceConflictException": newErrorResourceConflictException, 172 "ResourceNotFoundException": newErrorResourceNotFoundException, 173 "ServiceInternalErrorException": newErrorServiceInternalErrorException, 174 "ServiceLimitExceededException": newErrorServiceLimitExceededException, 175 "ThrottlingException": newErrorThrottlingException, 176 "TypeNotFoundException": newErrorTypeNotFoundException, 177 "UnsupportedActionException": newErrorUnsupportedActionException, 178 }