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// An API error occurred. Wait a few minutes and try again.
11type ConcurrentModificationException struct {
12	Message *string
13}
14
15func (e *ConcurrentModificationException) Error() string {
16	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
17}
18func (e *ConcurrentModificationException) ErrorMessage() string {
19	if e.Message == nil {
20		return ""
21	}
22	return *e.Message
23}
24func (e *ConcurrentModificationException) ErrorCode() string {
25	return "ConcurrentModificationException"
26}
27func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
28
29// The image can't be updated because it's not compatible for updates.
30type IncompatibleImageException struct {
31	Message *string
32}
33
34func (e *IncompatibleImageException) Error() string {
35	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
36}
37func (e *IncompatibleImageException) ErrorMessage() string {
38	if e.Message == nil {
39		return ""
40	}
41	return *e.Message
42}
43func (e *IncompatibleImageException) ErrorCode() string             { return "IncompatibleImageException" }
44func (e *IncompatibleImageException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
45
46// The resource cannot be created because your AWS account is suspended. For
47// assistance, contact AWS Support.
48type InvalidAccountStatusException struct {
49	Message *string
50}
51
52func (e *InvalidAccountStatusException) Error() string {
53	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
54}
55func (e *InvalidAccountStatusException) ErrorMessage() string {
56	if e.Message == nil {
57		return ""
58	}
59	return *e.Message
60}
61func (e *InvalidAccountStatusException) ErrorCode() string             { return "InvalidAccountStatusException" }
62func (e *InvalidAccountStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
63
64// Indicates an incorrect combination of parameters, or a missing parameter.
65type InvalidParameterCombinationException struct {
66	Message *string
67}
68
69func (e *InvalidParameterCombinationException) Error() string {
70	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
71}
72func (e *InvalidParameterCombinationException) ErrorMessage() string {
73	if e.Message == nil {
74		return ""
75	}
76	return *e.Message
77}
78func (e *InvalidParameterCombinationException) ErrorCode() string {
79	return "InvalidParameterCombinationException"
80}
81func (e *InvalidParameterCombinationException) ErrorFault() smithy.ErrorFault {
82	return smithy.FaultClient
83}
84
85// The specified role is invalid.
86type InvalidRoleException struct {
87	Message *string
88}
89
90func (e *InvalidRoleException) Error() string {
91	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
92}
93func (e *InvalidRoleException) ErrorMessage() string {
94	if e.Message == nil {
95		return ""
96	}
97	return *e.Message
98}
99func (e *InvalidRoleException) ErrorCode() string             { return "InvalidRoleException" }
100func (e *InvalidRoleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
101
102// The requested limit exceeds the permitted limit for an account.
103type LimitExceededException struct {
104	Message *string
105}
106
107func (e *LimitExceededException) Error() string {
108	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
109}
110func (e *LimitExceededException) ErrorMessage() string {
111	if e.Message == nil {
112		return ""
113	}
114	return *e.Message
115}
116func (e *LimitExceededException) ErrorCode() string             { return "LimitExceededException" }
117func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
118
119// The attempted operation is not permitted.
120type OperationNotPermittedException struct {
121	Message *string
122}
123
124func (e *OperationNotPermittedException) Error() string {
125	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
126}
127func (e *OperationNotPermittedException) ErrorMessage() string {
128	if e.Message == nil {
129		return ""
130	}
131	return *e.Message
132}
133func (e *OperationNotPermittedException) ErrorCode() string             { return "OperationNotPermittedException" }
134func (e *OperationNotPermittedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
135
136// AppStream 2.0 can’t process the request right now because the Describe calls
137// from your AWS account are being throttled by Amazon EC2. Try again later.
138type RequestLimitExceededException struct {
139	Message *string
140}
141
142func (e *RequestLimitExceededException) Error() string {
143	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
144}
145func (e *RequestLimitExceededException) ErrorMessage() string {
146	if e.Message == nil {
147		return ""
148	}
149	return *e.Message
150}
151func (e *RequestLimitExceededException) ErrorCode() string             { return "RequestLimitExceededException" }
152func (e *RequestLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
153
154// The specified resource already exists.
155type ResourceAlreadyExistsException struct {
156	Message *string
157}
158
159func (e *ResourceAlreadyExistsException) Error() string {
160	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
161}
162func (e *ResourceAlreadyExistsException) ErrorMessage() string {
163	if e.Message == nil {
164		return ""
165	}
166	return *e.Message
167}
168func (e *ResourceAlreadyExistsException) ErrorCode() string             { return "ResourceAlreadyExistsException" }
169func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
170
171// The specified resource is in use.
172type ResourceInUseException struct {
173	Message *string
174}
175
176func (e *ResourceInUseException) Error() string {
177	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
178}
179func (e *ResourceInUseException) ErrorMessage() string {
180	if e.Message == nil {
181		return ""
182	}
183	return *e.Message
184}
185func (e *ResourceInUseException) ErrorCode() string             { return "ResourceInUseException" }
186func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
187
188// The specified resource exists and is not in use, but isn't available.
189type ResourceNotAvailableException struct {
190	Message *string
191}
192
193func (e *ResourceNotAvailableException) Error() string {
194	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
195}
196func (e *ResourceNotAvailableException) ErrorMessage() string {
197	if e.Message == nil {
198		return ""
199	}
200	return *e.Message
201}
202func (e *ResourceNotAvailableException) ErrorCode() string             { return "ResourceNotAvailableException" }
203func (e *ResourceNotAvailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
204
205// The specified resource was not found.
206type ResourceNotFoundException struct {
207	Message *string
208}
209
210func (e *ResourceNotFoundException) Error() string {
211	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
212}
213func (e *ResourceNotFoundException) ErrorMessage() string {
214	if e.Message == nil {
215		return ""
216	}
217	return *e.Message
218}
219func (e *ResourceNotFoundException) ErrorCode() string             { return "ResourceNotFoundException" }
220func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
221