1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3package servicediscovery 4 5import ( 6 "github.com/aws/aws-sdk-go/private/protocol" 7) 8 9const ( 10 11 // ErrCodeCustomHealthNotFound for service response error code 12 // "CustomHealthNotFound". 13 // 14 // The health check for the instance that is specified by ServiceId and InstanceId 15 // is not a custom health check. 16 ErrCodeCustomHealthNotFound = "CustomHealthNotFound" 17 18 // ErrCodeDuplicateRequest for service response error code 19 // "DuplicateRequest". 20 // 21 // The operation is already in progress. 22 ErrCodeDuplicateRequest = "DuplicateRequest" 23 24 // ErrCodeInstanceNotFound for service response error code 25 // "InstanceNotFound". 26 // 27 // No instance exists with the specified ID, or the instance was recently registered, 28 // and information about the instance hasn't propagated yet. 29 ErrCodeInstanceNotFound = "InstanceNotFound" 30 31 // ErrCodeInvalidInput for service response error code 32 // "InvalidInput". 33 // 34 // One or more specified values aren't valid. For example, a required value 35 // might be missing, a numeric value might be outside the allowed range, or 36 // a string value might exceed length constraints. 37 ErrCodeInvalidInput = "InvalidInput" 38 39 // ErrCodeNamespaceAlreadyExists for service response error code 40 // "NamespaceAlreadyExists". 41 // 42 // The namespace that you're trying to create already exists. 43 ErrCodeNamespaceAlreadyExists = "NamespaceAlreadyExists" 44 45 // ErrCodeNamespaceNotFound for service response error code 46 // "NamespaceNotFound". 47 // 48 // No namespace exists with the specified ID. 49 ErrCodeNamespaceNotFound = "NamespaceNotFound" 50 51 // ErrCodeOperationNotFound for service response error code 52 // "OperationNotFound". 53 // 54 // No operation exists with the specified ID. 55 ErrCodeOperationNotFound = "OperationNotFound" 56 57 // ErrCodeResourceInUse for service response error code 58 // "ResourceInUse". 59 // 60 // The specified resource can't be deleted because it contains other resources. 61 // For example, you can't delete a service that contains any instances. 62 ErrCodeResourceInUse = "ResourceInUse" 63 64 // ErrCodeResourceLimitExceeded for service response error code 65 // "ResourceLimitExceeded". 66 // 67 // The resource can't be created because you've reached the limit on the number 68 // of resources. 69 ErrCodeResourceLimitExceeded = "ResourceLimitExceeded" 70 71 // ErrCodeServiceAlreadyExists for service response error code 72 // "ServiceAlreadyExists". 73 // 74 // The service can't be created because a service with the same name already 75 // exists. 76 ErrCodeServiceAlreadyExists = "ServiceAlreadyExists" 77 78 // ErrCodeServiceNotFound for service response error code 79 // "ServiceNotFound". 80 // 81 // No service exists with the specified ID. 82 ErrCodeServiceNotFound = "ServiceNotFound" 83) 84 85var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 86 "CustomHealthNotFound": newErrorCustomHealthNotFound, 87 "DuplicateRequest": newErrorDuplicateRequest, 88 "InstanceNotFound": newErrorInstanceNotFound, 89 "InvalidInput": newErrorInvalidInput, 90 "NamespaceAlreadyExists": newErrorNamespaceAlreadyExists, 91 "NamespaceNotFound": newErrorNamespaceNotFound, 92 "OperationNotFound": newErrorOperationNotFound, 93 "ResourceInUse": newErrorResourceInUse, 94 "ResourceLimitExceeded": newErrorResourceLimitExceeded, 95 "ServiceAlreadyExists": newErrorServiceAlreadyExists, 96 "ServiceNotFound": newErrorServiceNotFound, 97} 98