github.com/aavshr/aws-sdk-go@v1.41.3/service/iot/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package iot 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeCertificateConflictException for service response error code 12 // "CertificateConflictException". 13 // 14 // Unable to verify the CA certificate used to sign the device certificate you 15 // are attempting to register. This is happens when you have registered more 16 // than one CA certificate that has the same subject field and public key. 17 ErrCodeCertificateConflictException = "CertificateConflictException" 18 19 // ErrCodeCertificateStateException for service response error code 20 // "CertificateStateException". 21 // 22 // The certificate operation is not allowed. 23 ErrCodeCertificateStateException = "CertificateStateException" 24 25 // ErrCodeCertificateValidationException for service response error code 26 // "CertificateValidationException". 27 // 28 // The certificate is invalid. 29 ErrCodeCertificateValidationException = "CertificateValidationException" 30 31 // ErrCodeConflictException for service response error code 32 // "ConflictException". 33 // 34 // A resource with the same name already exists. 35 ErrCodeConflictException = "ConflictException" 36 37 // ErrCodeConflictingResourceUpdateException for service response error code 38 // "ConflictingResourceUpdateException". 39 // 40 // A conflicting resource update exception. This exception is thrown when two 41 // pending updates cause a conflict. 42 ErrCodeConflictingResourceUpdateException = "ConflictingResourceUpdateException" 43 44 // ErrCodeDeleteConflictException for service response error code 45 // "DeleteConflictException". 46 // 47 // You can't delete the resource because it is attached to one or more resources. 48 ErrCodeDeleteConflictException = "DeleteConflictException" 49 50 // ErrCodeIndexNotReadyException for service response error code 51 // "IndexNotReadyException". 52 // 53 // The index is not ready. 54 ErrCodeIndexNotReadyException = "IndexNotReadyException" 55 56 // ErrCodeInternalException for service response error code 57 // "InternalException". 58 // 59 // An unexpected error has occurred. 60 ErrCodeInternalException = "InternalException" 61 62 // ErrCodeInternalFailureException for service response error code 63 // "InternalFailureException". 64 // 65 // An unexpected error has occurred. 66 ErrCodeInternalFailureException = "InternalFailureException" 67 68 // ErrCodeInvalidAggregationException for service response error code 69 // "InvalidAggregationException". 70 // 71 // The aggregation is invalid. 72 ErrCodeInvalidAggregationException = "InvalidAggregationException" 73 74 // ErrCodeInvalidQueryException for service response error code 75 // "InvalidQueryException". 76 // 77 // The query is invalid. 78 ErrCodeInvalidQueryException = "InvalidQueryException" 79 80 // ErrCodeInvalidRequestException for service response error code 81 // "InvalidRequestException". 82 // 83 // The request is not valid. 84 ErrCodeInvalidRequestException = "InvalidRequestException" 85 86 // ErrCodeInvalidResponseException for service response error code 87 // "InvalidResponseException". 88 // 89 // The response is invalid. 90 ErrCodeInvalidResponseException = "InvalidResponseException" 91 92 // ErrCodeInvalidStateTransitionException for service response error code 93 // "InvalidStateTransitionException". 94 // 95 // An attempt was made to change to an invalid state, for example by deleting 96 // a job or a job execution which is "IN_PROGRESS" without setting the force 97 // parameter. 98 ErrCodeInvalidStateTransitionException = "InvalidStateTransitionException" 99 100 // ErrCodeLimitExceededException for service response error code 101 // "LimitExceededException". 102 // 103 // A limit has been exceeded. 104 ErrCodeLimitExceededException = "LimitExceededException" 105 106 // ErrCodeMalformedPolicyException for service response error code 107 // "MalformedPolicyException". 108 // 109 // The policy documentation is not valid. 110 ErrCodeMalformedPolicyException = "MalformedPolicyException" 111 112 // ErrCodeNotConfiguredException for service response error code 113 // "NotConfiguredException". 114 // 115 // The resource is not configured. 116 ErrCodeNotConfiguredException = "NotConfiguredException" 117 118 // ErrCodeRegistrationCodeValidationException for service response error code 119 // "RegistrationCodeValidationException". 120 // 121 // The registration code is invalid. 122 ErrCodeRegistrationCodeValidationException = "RegistrationCodeValidationException" 123 124 // ErrCodeResourceAlreadyExistsException for service response error code 125 // "ResourceAlreadyExistsException". 126 // 127 // The resource already exists. 128 ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" 129 130 // ErrCodeResourceNotFoundException for service response error code 131 // "ResourceNotFoundException". 132 // 133 // The specified resource does not exist. 134 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 135 136 // ErrCodeResourceRegistrationFailureException for service response error code 137 // "ResourceRegistrationFailureException". 138 // 139 // The resource registration failed. 140 ErrCodeResourceRegistrationFailureException = "ResourceRegistrationFailureException" 141 142 // ErrCodeServiceUnavailableException for service response error code 143 // "ServiceUnavailableException". 144 // 145 // The service is temporarily unavailable. 146 ErrCodeServiceUnavailableException = "ServiceUnavailableException" 147 148 // ErrCodeSqlParseException for service response error code 149 // "SqlParseException". 150 // 151 // The Rule-SQL expression can't be parsed correctly. 152 ErrCodeSqlParseException = "SqlParseException" 153 154 // ErrCodeTaskAlreadyExistsException for service response error code 155 // "TaskAlreadyExistsException". 156 // 157 // This exception occurs if you attempt to start a task with the same task-id 158 // as an existing task but with a different clientRequestToken. 159 ErrCodeTaskAlreadyExistsException = "TaskAlreadyExistsException" 160 161 // ErrCodeThrottlingException for service response error code 162 // "ThrottlingException". 163 // 164 // The rate exceeds the limit. 165 ErrCodeThrottlingException = "ThrottlingException" 166 167 // ErrCodeTransferAlreadyCompletedException for service response error code 168 // "TransferAlreadyCompletedException". 169 // 170 // You can't revert the certificate transfer because the transfer is already 171 // complete. 172 ErrCodeTransferAlreadyCompletedException = "TransferAlreadyCompletedException" 173 174 // ErrCodeTransferConflictException for service response error code 175 // "TransferConflictException". 176 // 177 // You can't transfer the certificate because authorization policies are still 178 // attached. 179 ErrCodeTransferConflictException = "TransferConflictException" 180 181 // ErrCodeUnauthorizedException for service response error code 182 // "UnauthorizedException". 183 // 184 // You are not authorized to perform this operation. 185 ErrCodeUnauthorizedException = "UnauthorizedException" 186 187 // ErrCodeVersionConflictException for service response error code 188 // "VersionConflictException". 189 // 190 // An exception thrown when the version of an entity specified with the expectedVersion 191 // parameter does not match the latest version in the system. 192 ErrCodeVersionConflictException = "VersionConflictException" 193 194 // ErrCodeVersionsLimitExceededException for service response error code 195 // "VersionsLimitExceededException". 196 // 197 // The number of policy versions exceeds the limit. 198 ErrCodeVersionsLimitExceededException = "VersionsLimitExceededException" 199 ) 200 201 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 202 "CertificateConflictException": newErrorCertificateConflictException, 203 "CertificateStateException": newErrorCertificateStateException, 204 "CertificateValidationException": newErrorCertificateValidationException, 205 "ConflictException": newErrorConflictException, 206 "ConflictingResourceUpdateException": newErrorConflictingResourceUpdateException, 207 "DeleteConflictException": newErrorDeleteConflictException, 208 "IndexNotReadyException": newErrorIndexNotReadyException, 209 "InternalException": newErrorInternalException, 210 "InternalFailureException": newErrorInternalFailureException, 211 "InvalidAggregationException": newErrorInvalidAggregationException, 212 "InvalidQueryException": newErrorInvalidQueryException, 213 "InvalidRequestException": newErrorInvalidRequestException, 214 "InvalidResponseException": newErrorInvalidResponseException, 215 "InvalidStateTransitionException": newErrorInvalidStateTransitionException, 216 "LimitExceededException": newErrorLimitExceededException, 217 "MalformedPolicyException": newErrorMalformedPolicyException, 218 "NotConfiguredException": newErrorNotConfiguredException, 219 "RegistrationCodeValidationException": newErrorRegistrationCodeValidationException, 220 "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, 221 "ResourceNotFoundException": newErrorResourceNotFoundException, 222 "ResourceRegistrationFailureException": newErrorResourceRegistrationFailureException, 223 "ServiceUnavailableException": newErrorServiceUnavailableException, 224 "SqlParseException": newErrorSqlParseException, 225 "TaskAlreadyExistsException": newErrorTaskAlreadyExistsException, 226 "ThrottlingException": newErrorThrottlingException, 227 "TransferAlreadyCompletedException": newErrorTransferAlreadyCompletedException, 228 "TransferConflictException": newErrorTransferConflictException, 229 "UnauthorizedException": newErrorUnauthorizedException, 230 "VersionConflictException": newErrorVersionConflictException, 231 "VersionsLimitExceededException": newErrorVersionsLimitExceededException, 232 }