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 don't have access to this item. The provided credentials couldn't be
11// validated. You might not be authorized to carry out the request. Make sure that
12// your account is authorized to use the Amazon QuickSight service, that your
13// policies have the correct permissions, and that you are using the correct access
14// keys.
15type AccessDeniedException struct {
16	Message *string
17
18	RequestId *string
19}
20
21func (e *AccessDeniedException) Error() string {
22	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
23}
24func (e *AccessDeniedException) ErrorMessage() string {
25	if e.Message == nil {
26		return ""
27	}
28	return *e.Message
29}
30func (e *AccessDeniedException) ErrorCode() string             { return "AccessDeniedException" }
31func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
32
33// A resource is already in a state that indicates an operation is happening that
34// must complete before a new update can be applied.
35type ConcurrentUpdatingException struct {
36	Message *string
37
38	RequestId *string
39}
40
41func (e *ConcurrentUpdatingException) Error() string {
42	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
43}
44func (e *ConcurrentUpdatingException) ErrorMessage() string {
45	if e.Message == nil {
46		return ""
47	}
48	return *e.Message
49}
50func (e *ConcurrentUpdatingException) ErrorCode() string             { return "ConcurrentUpdatingException" }
51func (e *ConcurrentUpdatingException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
52
53// Updating or deleting a resource can cause an inconsistent state.
54type ConflictException struct {
55	Message *string
56
57	RequestId *string
58}
59
60func (e *ConflictException) Error() string {
61	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
62}
63func (e *ConflictException) ErrorMessage() string {
64	if e.Message == nil {
65		return ""
66	}
67	return *e.Message
68}
69func (e *ConflictException) ErrorCode() string             { return "ConflictException" }
70func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
71
72// The domain specified isn't on the allow list. All domains for embedded
73// dashboards must be added to the approved list by an Amazon QuickSight admin.
74type DomainNotWhitelistedException struct {
75	Message *string
76
77	RequestId *string
78}
79
80func (e *DomainNotWhitelistedException) Error() string {
81	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
82}
83func (e *DomainNotWhitelistedException) ErrorMessage() string {
84	if e.Message == nil {
85		return ""
86	}
87	return *e.Message
88}
89func (e *DomainNotWhitelistedException) ErrorCode() string             { return "DomainNotWhitelistedException" }
90func (e *DomainNotWhitelistedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
91
92// The identity type specified isn't supported. Supported identity types include
93// IAM and QUICKSIGHT.
94type IdentityTypeNotSupportedException struct {
95	Message *string
96
97	RequestId *string
98}
99
100func (e *IdentityTypeNotSupportedException) Error() string {
101	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
102}
103func (e *IdentityTypeNotSupportedException) ErrorMessage() string {
104	if e.Message == nil {
105		return ""
106	}
107	return *e.Message
108}
109func (e *IdentityTypeNotSupportedException) ErrorCode() string {
110	return "IdentityTypeNotSupportedException"
111}
112func (e *IdentityTypeNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
113
114// An internal failure occurred.
115type InternalFailureException struct {
116	Message *string
117
118	RequestId *string
119}
120
121func (e *InternalFailureException) Error() string {
122	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
123}
124func (e *InternalFailureException) ErrorMessage() string {
125	if e.Message == nil {
126		return ""
127	}
128	return *e.Message
129}
130func (e *InternalFailureException) ErrorCode() string             { return "InternalFailureException" }
131func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
132
133// The NextToken value isn't valid.
134type InvalidNextTokenException struct {
135	Message *string
136
137	RequestId *string
138}
139
140func (e *InvalidNextTokenException) Error() string {
141	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
142}
143func (e *InvalidNextTokenException) ErrorMessage() string {
144	if e.Message == nil {
145		return ""
146	}
147	return *e.Message
148}
149func (e *InvalidNextTokenException) ErrorCode() string             { return "InvalidNextTokenException" }
150func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
151
152// One or more parameters has a value that isn't valid.
153type InvalidParameterValueException struct {
154	Message *string
155
156	RequestId *string
157}
158
159func (e *InvalidParameterValueException) Error() string {
160	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
161}
162func (e *InvalidParameterValueException) ErrorMessage() string {
163	if e.Message == nil {
164		return ""
165	}
166	return *e.Message
167}
168func (e *InvalidParameterValueException) ErrorCode() string             { return "InvalidParameterValueException" }
169func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
170
171// A limit is exceeded.
172type LimitExceededException struct {
173	Message *string
174
175	ResourceType ExceptionResourceType
176	RequestId    *string
177}
178
179func (e *LimitExceededException) Error() string {
180	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
181}
182func (e *LimitExceededException) ErrorMessage() string {
183	if e.Message == nil {
184		return ""
185	}
186	return *e.Message
187}
188func (e *LimitExceededException) ErrorCode() string             { return "LimitExceededException" }
189func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
190
191// One or more preconditions aren't met.
192type PreconditionNotMetException struct {
193	Message *string
194
195	RequestId *string
196}
197
198func (e *PreconditionNotMetException) Error() string {
199	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
200}
201func (e *PreconditionNotMetException) ErrorMessage() string {
202	if e.Message == nil {
203		return ""
204	}
205	return *e.Message
206}
207func (e *PreconditionNotMetException) ErrorCode() string             { return "PreconditionNotMetException" }
208func (e *PreconditionNotMetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
209
210// The user with the provided name isn't found. This error can happen in any
211// operation that requires finding a user based on a provided user name, such as
212// DeleteUser, DescribeUser, and so on.
213type QuickSightUserNotFoundException struct {
214	Message *string
215
216	RequestId *string
217}
218
219func (e *QuickSightUserNotFoundException) Error() string {
220	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
221}
222func (e *QuickSightUserNotFoundException) ErrorMessage() string {
223	if e.Message == nil {
224		return ""
225	}
226	return *e.Message
227}
228func (e *QuickSightUserNotFoundException) ErrorCode() string {
229	return "QuickSightUserNotFoundException"
230}
231func (e *QuickSightUserNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
232
233// The resource specified already exists.
234type ResourceExistsException struct {
235	Message *string
236
237	ResourceType ExceptionResourceType
238	RequestId    *string
239}
240
241func (e *ResourceExistsException) Error() string {
242	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
243}
244func (e *ResourceExistsException) ErrorMessage() string {
245	if e.Message == nil {
246		return ""
247	}
248	return *e.Message
249}
250func (e *ResourceExistsException) ErrorCode() string             { return "ResourceExistsException" }
251func (e *ResourceExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
252
253// One or more resources can't be found.
254type ResourceNotFoundException struct {
255	Message *string
256
257	ResourceType ExceptionResourceType
258	RequestId    *string
259}
260
261func (e *ResourceNotFoundException) Error() string {
262	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
263}
264func (e *ResourceNotFoundException) ErrorMessage() string {
265	if e.Message == nil {
266		return ""
267	}
268	return *e.Message
269}
270func (e *ResourceNotFoundException) ErrorCode() string             { return "ResourceNotFoundException" }
271func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
272
273// This resource is currently unavailable.
274type ResourceUnavailableException struct {
275	Message *string
276
277	ResourceType ExceptionResourceType
278	RequestId    *string
279}
280
281func (e *ResourceUnavailableException) Error() string {
282	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
283}
284func (e *ResourceUnavailableException) ErrorMessage() string {
285	if e.Message == nil {
286		return ""
287	}
288	return *e.Message
289}
290func (e *ResourceUnavailableException) ErrorCode() string             { return "ResourceUnavailableException" }
291func (e *ResourceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
292
293// The number of minutes specified for the lifetime of a session isn't valid. The
294// session lifetime must be 15-600 minutes.
295type SessionLifetimeInMinutesInvalidException struct {
296	Message *string
297
298	RequestId *string
299}
300
301func (e *SessionLifetimeInMinutesInvalidException) Error() string {
302	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
303}
304func (e *SessionLifetimeInMinutesInvalidException) ErrorMessage() string {
305	if e.Message == nil {
306		return ""
307	}
308	return *e.Message
309}
310func (e *SessionLifetimeInMinutesInvalidException) ErrorCode() string {
311	return "SessionLifetimeInMinutesInvalidException"
312}
313func (e *SessionLifetimeInMinutesInvalidException) ErrorFault() smithy.ErrorFault {
314	return smithy.FaultClient
315}
316
317// Access is throttled.
318type ThrottlingException struct {
319	Message *string
320
321	RequestId *string
322}
323
324func (e *ThrottlingException) Error() string {
325	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
326}
327func (e *ThrottlingException) ErrorMessage() string {
328	if e.Message == nil {
329		return ""
330	}
331	return *e.Message
332}
333func (e *ThrottlingException) ErrorCode() string             { return "ThrottlingException" }
334func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
335
336// This error indicates that you are calling an embedding operation in Amazon
337// QuickSight without the required pricing plan on your AWS account. Before you can
338// use embedding for anonymous users, a QuickSight administrator needs to add
339// capacity pricing to QuickSight. You can do this on the Manage QuickSight page.
340// After capacity pricing is added, you can use the GetDashboardEmbedUrl API
341// operation with the --identity-type ANONYMOUS option.
342type UnsupportedPricingPlanException struct {
343	Message *string
344
345	RequestId *string
346}
347
348func (e *UnsupportedPricingPlanException) Error() string {
349	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
350}
351func (e *UnsupportedPricingPlanException) ErrorMessage() string {
352	if e.Message == nil {
353		return ""
354	}
355	return *e.Message
356}
357func (e *UnsupportedPricingPlanException) ErrorCode() string {
358	return "UnsupportedPricingPlanException"
359}
360func (e *UnsupportedPricingPlanException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
361
362// This error indicates that you are calling an operation on an Amazon QuickSight
363// subscription where the edition doesn't include support for that operation.
364// Amazon QuickSight currently has Standard Edition and Enterprise Edition. Not
365// every operation and capability is available in every edition.
366type UnsupportedUserEditionException struct {
367	Message *string
368
369	RequestId *string
370}
371
372func (e *UnsupportedUserEditionException) Error() string {
373	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
374}
375func (e *UnsupportedUserEditionException) ErrorMessage() string {
376	if e.Message == nil {
377		return ""
378	}
379	return *e.Message
380}
381func (e *UnsupportedUserEditionException) ErrorCode() string {
382	return "UnsupportedUserEditionException"
383}
384func (e *UnsupportedUserEditionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
385