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// You do not have authorization to perform the requested action.
11type AccessDeniedException struct {
12	Message *string
13}
14
15func (e *AccessDeniedException) Error() string {
16	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
17}
18func (e *AccessDeniedException) ErrorMessage() string {
19	if e.Message == nil {
20		return ""
21	}
22	return *e.Message
23}
24func (e *AccessDeniedException) ErrorCode() string             { return "AccessDeniedException" }
25func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
26
27// You can apply up to 10 custom attributes per resource. You can view the
28// attributes of a resource with ListAttributes. You can remove existing attributes
29// on a resource with DeleteAttributes.
30type AttributeLimitExceededException struct {
31	Message *string
32}
33
34func (e *AttributeLimitExceededException) Error() string {
35	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
36}
37func (e *AttributeLimitExceededException) ErrorMessage() string {
38	if e.Message == nil {
39		return ""
40	}
41	return *e.Message
42}
43func (e *AttributeLimitExceededException) ErrorCode() string {
44	return "AttributeLimitExceededException"
45}
46func (e *AttributeLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
47
48// Your AWS account has been blocked. For more information, contact AWS Support
49// (http://aws.amazon.com/contact-us/).
50type BlockedException struct {
51	Message *string
52}
53
54func (e *BlockedException) Error() string {
55	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
56}
57func (e *BlockedException) ErrorMessage() string {
58	if e.Message == nil {
59		return ""
60	}
61	return *e.Message
62}
63func (e *BlockedException) ErrorCode() string             { return "BlockedException" }
64func (e *BlockedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
65
66// These errors are usually caused by a client action, such as using an action or
67// resource on behalf of a user that doesn't have permissions to use the action or
68// resource, or specifying an identifier that is not valid.
69type ClientException struct {
70	Message *string
71}
72
73func (e *ClientException) Error() string {
74	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
75}
76func (e *ClientException) ErrorMessage() string {
77	if e.Message == nil {
78		return ""
79	}
80	return *e.Message
81}
82func (e *ClientException) ErrorCode() string             { return "ClientException" }
83func (e *ClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
84
85// You cannot delete a cluster that has registered container instances. First,
86// deregister the container instances before you can delete the cluster. For more
87// information, see DeregisterContainerInstance.
88type ClusterContainsContainerInstancesException struct {
89	Message *string
90}
91
92func (e *ClusterContainsContainerInstancesException) Error() string {
93	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
94}
95func (e *ClusterContainsContainerInstancesException) ErrorMessage() string {
96	if e.Message == nil {
97		return ""
98	}
99	return *e.Message
100}
101func (e *ClusterContainsContainerInstancesException) ErrorCode() string {
102	return "ClusterContainsContainerInstancesException"
103}
104func (e *ClusterContainsContainerInstancesException) ErrorFault() smithy.ErrorFault {
105	return smithy.FaultClient
106}
107
108// You cannot delete a cluster that contains services. First, update the service to
109// reduce its desired task count to 0 and then delete the service. For more
110// information, see UpdateService and DeleteService.
111type ClusterContainsServicesException struct {
112	Message *string
113}
114
115func (e *ClusterContainsServicesException) Error() string {
116	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
117}
118func (e *ClusterContainsServicesException) ErrorMessage() string {
119	if e.Message == nil {
120		return ""
121	}
122	return *e.Message
123}
124func (e *ClusterContainsServicesException) ErrorCode() string {
125	return "ClusterContainsServicesException"
126}
127func (e *ClusterContainsServicesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
128
129// You cannot delete a cluster that has active tasks.
130type ClusterContainsTasksException struct {
131	Message *string
132}
133
134func (e *ClusterContainsTasksException) Error() string {
135	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
136}
137func (e *ClusterContainsTasksException) ErrorMessage() string {
138	if e.Message == nil {
139		return ""
140	}
141	return *e.Message
142}
143func (e *ClusterContainsTasksException) ErrorCode() string             { return "ClusterContainsTasksException" }
144func (e *ClusterContainsTasksException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
145
146// The specified cluster could not be found. You can view your available clusters
147// with ListClusters. Amazon ECS clusters are Region-specific.
148type ClusterNotFoundException struct {
149	Message *string
150}
151
152func (e *ClusterNotFoundException) Error() string {
153	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
154}
155func (e *ClusterNotFoundException) ErrorMessage() string {
156	if e.Message == nil {
157		return ""
158	}
159	return *e.Message
160}
161func (e *ClusterNotFoundException) ErrorCode() string             { return "ClusterNotFoundException" }
162func (e *ClusterNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
163
164// The specified parameter is invalid. Review the available parameters for the API
165// request.
166type InvalidParameterException struct {
167	Message *string
168}
169
170func (e *InvalidParameterException) Error() string {
171	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
172}
173func (e *InvalidParameterException) ErrorMessage() string {
174	if e.Message == nil {
175		return ""
176	}
177	return *e.Message
178}
179func (e *InvalidParameterException) ErrorCode() string             { return "InvalidParameterException" }
180func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
181
182// The limit for the resource has been exceeded.
183type LimitExceededException struct {
184	Message *string
185}
186
187func (e *LimitExceededException) Error() string {
188	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
189}
190func (e *LimitExceededException) ErrorMessage() string {
191	if e.Message == nil {
192		return ""
193	}
194	return *e.Message
195}
196func (e *LimitExceededException) ErrorCode() string             { return "LimitExceededException" }
197func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
198
199// Amazon ECS is unable to determine the current version of the Amazon ECS
200// container agent on the container instance and does not have enough information
201// to proceed with an update. This could be because the agent running on the
202// container instance is an older or custom version that does not use our version
203// information.
204type MissingVersionException struct {
205	Message *string
206}
207
208func (e *MissingVersionException) Error() string {
209	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
210}
211func (e *MissingVersionException) ErrorMessage() string {
212	if e.Message == nil {
213		return ""
214	}
215	return *e.Message
216}
217func (e *MissingVersionException) ErrorCode() string             { return "MissingVersionException" }
218func (e *MissingVersionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
219
220// There is no update available for this Amazon ECS container agent. This could be
221// because the agent is already running the latest version, or it is so old that
222// there is no update path to the current version.
223type NoUpdateAvailableException struct {
224	Message *string
225}
226
227func (e *NoUpdateAvailableException) Error() string {
228	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
229}
230func (e *NoUpdateAvailableException) ErrorMessage() string {
231	if e.Message == nil {
232		return ""
233	}
234	return *e.Message
235}
236func (e *NoUpdateAvailableException) ErrorCode() string             { return "NoUpdateAvailableException" }
237func (e *NoUpdateAvailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
238
239// The specified platform version does not satisfy the task definition's required
240// capabilities.
241type PlatformTaskDefinitionIncompatibilityException struct {
242	Message *string
243}
244
245func (e *PlatformTaskDefinitionIncompatibilityException) Error() string {
246	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
247}
248func (e *PlatformTaskDefinitionIncompatibilityException) ErrorMessage() string {
249	if e.Message == nil {
250		return ""
251	}
252	return *e.Message
253}
254func (e *PlatformTaskDefinitionIncompatibilityException) ErrorCode() string {
255	return "PlatformTaskDefinitionIncompatibilityException"
256}
257func (e *PlatformTaskDefinitionIncompatibilityException) ErrorFault() smithy.ErrorFault {
258	return smithy.FaultClient
259}
260
261// The specified platform version does not exist.
262type PlatformUnknownException struct {
263	Message *string
264}
265
266func (e *PlatformUnknownException) Error() string {
267	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
268}
269func (e *PlatformUnknownException) ErrorMessage() string {
270	if e.Message == nil {
271		return ""
272	}
273	return *e.Message
274}
275func (e *PlatformUnknownException) ErrorCode() string             { return "PlatformUnknownException" }
276func (e *PlatformUnknownException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
277
278// The specified resource is in-use and cannot be removed.
279type ResourceInUseException struct {
280	Message *string
281}
282
283func (e *ResourceInUseException) Error() string {
284	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
285}
286func (e *ResourceInUseException) ErrorMessage() string {
287	if e.Message == nil {
288		return ""
289	}
290	return *e.Message
291}
292func (e *ResourceInUseException) ErrorCode() string             { return "ResourceInUseException" }
293func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
294
295// The specified resource could not be found.
296type ResourceNotFoundException struct {
297	Message *string
298}
299
300func (e *ResourceNotFoundException) Error() string {
301	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
302}
303func (e *ResourceNotFoundException) ErrorMessage() string {
304	if e.Message == nil {
305		return ""
306	}
307	return *e.Message
308}
309func (e *ResourceNotFoundException) ErrorCode() string             { return "ResourceNotFoundException" }
310func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
311
312// These errors are usually caused by a server issue.
313type ServerException struct {
314	Message *string
315}
316
317func (e *ServerException) Error() string {
318	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
319}
320func (e *ServerException) ErrorMessage() string {
321	if e.Message == nil {
322		return ""
323	}
324	return *e.Message
325}
326func (e *ServerException) ErrorCode() string             { return "ServerException" }
327func (e *ServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
328
329// The specified service is not active. You can't update a service that is
330// inactive. If you have previously deleted a service, you can re-create it with
331// CreateService.
332type ServiceNotActiveException struct {
333	Message *string
334}
335
336func (e *ServiceNotActiveException) Error() string {
337	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
338}
339func (e *ServiceNotActiveException) ErrorMessage() string {
340	if e.Message == nil {
341		return ""
342	}
343	return *e.Message
344}
345func (e *ServiceNotActiveException) ErrorCode() string             { return "ServiceNotActiveException" }
346func (e *ServiceNotActiveException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
347
348// The specified service could not be found. You can view your available services
349// with ListServices. Amazon ECS services are cluster-specific and Region-specific.
350type ServiceNotFoundException struct {
351	Message *string
352}
353
354func (e *ServiceNotFoundException) Error() string {
355	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
356}
357func (e *ServiceNotFoundException) ErrorMessage() string {
358	if e.Message == nil {
359		return ""
360	}
361	return *e.Message
362}
363func (e *ServiceNotFoundException) ErrorCode() string             { return "ServiceNotFoundException" }
364func (e *ServiceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
365
366// The target container is not properly configured with the execute command agent
367// or the container is no longer active or running.
368type TargetNotConnectedException struct {
369	Message *string
370}
371
372func (e *TargetNotConnectedException) Error() string {
373	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
374}
375func (e *TargetNotConnectedException) ErrorMessage() string {
376	if e.Message == nil {
377		return ""
378	}
379	return *e.Message
380}
381func (e *TargetNotConnectedException) ErrorCode() string             { return "TargetNotConnectedException" }
382func (e *TargetNotConnectedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
383
384// The specified target could not be found. You can view your available container
385// instances with ListContainerInstances. Amazon ECS container instances are
386// cluster-specific and Region-specific.
387type TargetNotFoundException struct {
388	Message *string
389}
390
391func (e *TargetNotFoundException) Error() string {
392	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
393}
394func (e *TargetNotFoundException) ErrorMessage() string {
395	if e.Message == nil {
396		return ""
397	}
398	return *e.Message
399}
400func (e *TargetNotFoundException) ErrorCode() string             { return "TargetNotFoundException" }
401func (e *TargetNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
402
403// The specified task set could not be found. You can view your available task sets
404// with DescribeTaskSets. Task sets are specific to each cluster, service and
405// Region.
406type TaskSetNotFoundException struct {
407	Message *string
408}
409
410func (e *TaskSetNotFoundException) Error() string {
411	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
412}
413func (e *TaskSetNotFoundException) ErrorMessage() string {
414	if e.Message == nil {
415		return ""
416	}
417	return *e.Message
418}
419func (e *TaskSetNotFoundException) ErrorCode() string             { return "TaskSetNotFoundException" }
420func (e *TaskSetNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
421
422// The specified task is not supported in this Region.
423type UnsupportedFeatureException struct {
424	Message *string
425}
426
427func (e *UnsupportedFeatureException) Error() string {
428	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
429}
430func (e *UnsupportedFeatureException) ErrorMessage() string {
431	if e.Message == nil {
432		return ""
433	}
434	return *e.Message
435}
436func (e *UnsupportedFeatureException) ErrorCode() string             { return "UnsupportedFeatureException" }
437func (e *UnsupportedFeatureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
438
439// There is already a current Amazon ECS container agent update in progress on the
440// specified container instance. If the container agent becomes disconnected while
441// it is in a transitional stage, such as PENDING or STAGING, the update process
442// can get stuck in that state. However, when the agent reconnects, it resumes
443// where it stopped previously.
444type UpdateInProgressException struct {
445	Message *string
446}
447
448func (e *UpdateInProgressException) Error() string {
449	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
450}
451func (e *UpdateInProgressException) ErrorMessage() string {
452	if e.Message == nil {
453		return ""
454	}
455	return *e.Message
456}
457func (e *UpdateInProgressException) ErrorCode() string             { return "UpdateInProgressException" }
458func (e *UpdateInProgressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
459