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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package servicediscovery
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeCustomHealthNotFound for service response error code
    12  	// "CustomHealthNotFound".
    13  	//
    14  	// The health check for the instance that's specified by ServiceId and InstanceId
    15  	// isn't 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  	// ErrCodeRequestLimitExceeded for service response error code
    58  	// "RequestLimitExceeded".
    59  	//
    60  	// The operation can't be completed because you've reached the quota for the
    61  	// number of requests. For more information, see Cloud Map API request throttling
    62  	// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in
    63  	// the Cloud Map Developer Guide.
    64  	ErrCodeRequestLimitExceeded = "RequestLimitExceeded"
    65  
    66  	// ErrCodeResourceInUse for service response error code
    67  	// "ResourceInUse".
    68  	//
    69  	// The specified resource can't be deleted because it contains other resources.
    70  	// For example, you can't delete a service that contains any instances.
    71  	ErrCodeResourceInUse = "ResourceInUse"
    72  
    73  	// ErrCodeResourceLimitExceeded for service response error code
    74  	// "ResourceLimitExceeded".
    75  	//
    76  	// The resource can't be created because you've reached the quota on the number
    77  	// of resources.
    78  	ErrCodeResourceLimitExceeded = "ResourceLimitExceeded"
    79  
    80  	// ErrCodeResourceNotFoundException for service response error code
    81  	// "ResourceNotFoundException".
    82  	//
    83  	// The operation can't be completed because the resource was not found.
    84  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    85  
    86  	// ErrCodeServiceAlreadyExists for service response error code
    87  	// "ServiceAlreadyExists".
    88  	//
    89  	// The service can't be created because a service with the same name already
    90  	// exists.
    91  	ErrCodeServiceAlreadyExists = "ServiceAlreadyExists"
    92  
    93  	// ErrCodeServiceNotFound for service response error code
    94  	// "ServiceNotFound".
    95  	//
    96  	// No service exists with the specified ID.
    97  	ErrCodeServiceNotFound = "ServiceNotFound"
    98  
    99  	// ErrCodeTooManyTagsException for service response error code
   100  	// "TooManyTagsException".
   101  	//
   102  	// The list of tags on the resource is over the quota. The maximum number of
   103  	// tags that can be applied to a resource is 50.
   104  	ErrCodeTooManyTagsException = "TooManyTagsException"
   105  )
   106  
   107  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
   108  	"CustomHealthNotFound":      newErrorCustomHealthNotFound,
   109  	"DuplicateRequest":          newErrorDuplicateRequest,
   110  	"InstanceNotFound":          newErrorInstanceNotFound,
   111  	"InvalidInput":              newErrorInvalidInput,
   112  	"NamespaceAlreadyExists":    newErrorNamespaceAlreadyExists,
   113  	"NamespaceNotFound":         newErrorNamespaceNotFound,
   114  	"OperationNotFound":         newErrorOperationNotFound,
   115  	"RequestLimitExceeded":      newErrorRequestLimitExceeded,
   116  	"ResourceInUse":             newErrorResourceInUse,
   117  	"ResourceLimitExceeded":     newErrorResourceLimitExceeded,
   118  	"ResourceNotFoundException": newErrorResourceNotFoundException,
   119  	"ServiceAlreadyExists":      newErrorServiceAlreadyExists,
   120  	"ServiceNotFound":           newErrorServiceNotFound,
   121  	"TooManyTagsException":      newErrorTooManyTagsException,
   122  }