1// Code generated by smithy-go-codegen DO NOT EDIT. 2 3package types 4 5import ( 6 "fmt" 7 smithy "github.com/aws/smithy-go" 8) 9 10// The health check for the instance that is specified by ServiceId and InstanceId 11// is not a custom health check. 12type CustomHealthNotFound struct { 13 Message *string 14} 15 16func (e *CustomHealthNotFound) Error() string { 17 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 18} 19func (e *CustomHealthNotFound) ErrorMessage() string { 20 if e.Message == nil { 21 return "" 22 } 23 return *e.Message 24} 25func (e *CustomHealthNotFound) ErrorCode() string { return "CustomHealthNotFound" } 26func (e *CustomHealthNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 27 28// The operation is already in progress. 29type DuplicateRequest struct { 30 Message *string 31 32 DuplicateOperationId *string 33} 34 35func (e *DuplicateRequest) Error() string { 36 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 37} 38func (e *DuplicateRequest) ErrorMessage() string { 39 if e.Message == nil { 40 return "" 41 } 42 return *e.Message 43} 44func (e *DuplicateRequest) ErrorCode() string { return "DuplicateRequest" } 45func (e *DuplicateRequest) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 46 47// No instance exists with the specified ID, or the instance was recently 48// registered, and information about the instance hasn't propagated yet. 49type InstanceNotFound struct { 50 Message *string 51} 52 53func (e *InstanceNotFound) Error() string { 54 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 55} 56func (e *InstanceNotFound) ErrorMessage() string { 57 if e.Message == nil { 58 return "" 59 } 60 return *e.Message 61} 62func (e *InstanceNotFound) ErrorCode() string { return "InstanceNotFound" } 63func (e *InstanceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 64 65// One or more specified values aren't valid. For example, a required value might 66// be missing, a numeric value might be outside the allowed range, or a string 67// value might exceed length constraints. 68type InvalidInput struct { 69 Message *string 70} 71 72func (e *InvalidInput) Error() string { 73 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 74} 75func (e *InvalidInput) ErrorMessage() string { 76 if e.Message == nil { 77 return "" 78 } 79 return *e.Message 80} 81func (e *InvalidInput) ErrorCode() string { return "InvalidInput" } 82func (e *InvalidInput) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 83 84// The namespace that you're trying to create already exists. 85type NamespaceAlreadyExists struct { 86 Message *string 87 88 CreatorRequestId *string 89 NamespaceId *string 90} 91 92func (e *NamespaceAlreadyExists) Error() string { 93 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 94} 95func (e *NamespaceAlreadyExists) ErrorMessage() string { 96 if e.Message == nil { 97 return "" 98 } 99 return *e.Message 100} 101func (e *NamespaceAlreadyExists) ErrorCode() string { return "NamespaceAlreadyExists" } 102func (e *NamespaceAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 103 104// No namespace exists with the specified ID. 105type NamespaceNotFound struct { 106 Message *string 107} 108 109func (e *NamespaceNotFound) Error() string { 110 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 111} 112func (e *NamespaceNotFound) ErrorMessage() string { 113 if e.Message == nil { 114 return "" 115 } 116 return *e.Message 117} 118func (e *NamespaceNotFound) ErrorCode() string { return "NamespaceNotFound" } 119func (e *NamespaceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 120 121// No operation exists with the specified ID. 122type OperationNotFound struct { 123 Message *string 124} 125 126func (e *OperationNotFound) Error() string { 127 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 128} 129func (e *OperationNotFound) ErrorMessage() string { 130 if e.Message == nil { 131 return "" 132 } 133 return *e.Message 134} 135func (e *OperationNotFound) ErrorCode() string { return "OperationNotFound" } 136func (e *OperationNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 137 138// The operation can't be completed because you've reached the quota for the number 139// of requests. For more information, see AWS Cloud Map API request throttling 140// quota (https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html) in the 141// AWS Cloud Map Developer Guide. 142type RequestLimitExceeded struct { 143 Message *string 144} 145 146func (e *RequestLimitExceeded) Error() string { 147 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 148} 149func (e *RequestLimitExceeded) ErrorMessage() string { 150 if e.Message == nil { 151 return "" 152 } 153 return *e.Message 154} 155func (e *RequestLimitExceeded) ErrorCode() string { return "RequestLimitExceeded" } 156func (e *RequestLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 157 158// The specified resource can't be deleted because it contains other resources. For 159// example, you can't delete a service that contains any instances. 160type ResourceInUse struct { 161 Message *string 162} 163 164func (e *ResourceInUse) Error() string { 165 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 166} 167func (e *ResourceInUse) ErrorMessage() string { 168 if e.Message == nil { 169 return "" 170 } 171 return *e.Message 172} 173func (e *ResourceInUse) ErrorCode() string { return "ResourceInUse" } 174func (e *ResourceInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 175 176// The resource can't be created because you've reached the quota on the number of 177// resources. 178type ResourceLimitExceeded struct { 179 Message *string 180} 181 182func (e *ResourceLimitExceeded) Error() string { 183 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 184} 185func (e *ResourceLimitExceeded) ErrorMessage() string { 186 if e.Message == nil { 187 return "" 188 } 189 return *e.Message 190} 191func (e *ResourceLimitExceeded) ErrorCode() string { return "ResourceLimitExceeded" } 192func (e *ResourceLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 193 194// The operation can't be completed because the resource was not found. 195type ResourceNotFoundException struct { 196 Message *string 197} 198 199func (e *ResourceNotFoundException) Error() string { 200 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 201} 202func (e *ResourceNotFoundException) ErrorMessage() string { 203 if e.Message == nil { 204 return "" 205 } 206 return *e.Message 207} 208func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } 209func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 210 211// The service can't be created because a service with the same name already 212// exists. 213type ServiceAlreadyExists struct { 214 Message *string 215 216 CreatorRequestId *string 217 ServiceId *string 218} 219 220func (e *ServiceAlreadyExists) Error() string { 221 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 222} 223func (e *ServiceAlreadyExists) ErrorMessage() string { 224 if e.Message == nil { 225 return "" 226 } 227 return *e.Message 228} 229func (e *ServiceAlreadyExists) ErrorCode() string { return "ServiceAlreadyExists" } 230func (e *ServiceAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 231 232// No service exists with the specified ID. 233type ServiceNotFound struct { 234 Message *string 235} 236 237func (e *ServiceNotFound) Error() string { 238 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 239} 240func (e *ServiceNotFound) ErrorMessage() string { 241 if e.Message == nil { 242 return "" 243 } 244 return *e.Message 245} 246func (e *ServiceNotFound) ErrorCode() string { return "ServiceNotFound" } 247func (e *ServiceNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 248 249// The list of tags on the resource is over the quota. The maximum number of tags 250// that can be applied to a resource is 50. 251type TooManyTagsException struct { 252 Message *string 253 254 ResourceName *string 255} 256 257func (e *TooManyTagsException) Error() string { 258 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 259} 260func (e *TooManyTagsException) ErrorMessage() string { 261 if e.Message == nil { 262 return "" 263 } 264 return *e.Message 265} 266func (e *TooManyTagsException) ErrorCode() string { return "TooManyTagsException" } 267func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 268