1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
2
3package quicksight
4
5import (
6	"github.com/aws/aws-sdk-go/private/protocol"
7)
8
9const (
10
11	// ErrCodeAccessDeniedException for service response error code
12	// "AccessDeniedException".
13	//
14	// You don't have access to this item. The provided credentials couldn't be
15	// validated. You might not be authorized to carry out the request. Make sure
16	// that your account is authorized to use the Amazon QuickSight service, that
17	// your policies have the correct permissions, and that you are using the correct
18	// access keys.
19	ErrCodeAccessDeniedException = "AccessDeniedException"
20
21	// ErrCodeConcurrentUpdatingException for service response error code
22	// "ConcurrentUpdatingException".
23	//
24	// A resource is already in a state that indicates an operation is happening
25	// that must complete before a new update can be applied.
26	ErrCodeConcurrentUpdatingException = "ConcurrentUpdatingException"
27
28	// ErrCodeConflictException for service response error code
29	// "ConflictException".
30	//
31	// Updating or deleting a resource can cause an inconsistent state.
32	ErrCodeConflictException = "ConflictException"
33
34	// ErrCodeDomainNotWhitelistedException for service response error code
35	// "DomainNotWhitelistedException".
36	//
37	// The domain specified isn't on the allow list. All domains for embedded dashboards
38	// must be added to the approved list by an Amazon QuickSight admin.
39	ErrCodeDomainNotWhitelistedException = "DomainNotWhitelistedException"
40
41	// ErrCodeIdentityTypeNotSupportedException for service response error code
42	// "IdentityTypeNotSupportedException".
43	//
44	// The identity type specified isn't supported. Supported identity types include
45	// IAM and QUICKSIGHT.
46	ErrCodeIdentityTypeNotSupportedException = "IdentityTypeNotSupportedException"
47
48	// ErrCodeInternalFailureException for service response error code
49	// "InternalFailureException".
50	//
51	// An internal failure occurred.
52	ErrCodeInternalFailureException = "InternalFailureException"
53
54	// ErrCodeInvalidNextTokenException for service response error code
55	// "InvalidNextTokenException".
56	//
57	// The NextToken value isn't valid.
58	ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
59
60	// ErrCodeInvalidParameterValueException for service response error code
61	// "InvalidParameterValueException".
62	//
63	// One or more parameters has a value that isn't valid.
64	ErrCodeInvalidParameterValueException = "InvalidParameterValueException"
65
66	// ErrCodeLimitExceededException for service response error code
67	// "LimitExceededException".
68	//
69	// A limit is exceeded.
70	ErrCodeLimitExceededException = "LimitExceededException"
71
72	// ErrCodePreconditionNotMetException for service response error code
73	// "PreconditionNotMetException".
74	//
75	// One or more preconditions aren't met.
76	ErrCodePreconditionNotMetException = "PreconditionNotMetException"
77
78	// ErrCodeResourceExistsException for service response error code
79	// "ResourceExistsException".
80	//
81	// The resource specified already exists.
82	ErrCodeResourceExistsException = "ResourceExistsException"
83
84	// ErrCodeResourceNotFoundException for service response error code
85	// "ResourceNotFoundException".
86	//
87	// One or more resources can't be found.
88	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
89
90	// ErrCodeResourceUnavailableException for service response error code
91	// "ResourceUnavailableException".
92	//
93	// This resource is currently unavailable.
94	ErrCodeResourceUnavailableException = "ResourceUnavailableException"
95
96	// ErrCodeSessionLifetimeInMinutesInvalidException for service response error code
97	// "SessionLifetimeInMinutesInvalidException".
98	//
99	// The number of minutes specified for the lifetime of a session isn't valid.
100	// The session lifetime must be 15-600 minutes.
101	ErrCodeSessionLifetimeInMinutesInvalidException = "SessionLifetimeInMinutesInvalidException"
102
103	// ErrCodeThrottlingException for service response error code
104	// "ThrottlingException".
105	//
106	// Access is throttled.
107	ErrCodeThrottlingException = "ThrottlingException"
108
109	// ErrCodeUnsupportedPricingPlanException for service response error code
110	// "UnsupportedPricingPlanException".
111	//
112	// This error indicates that you are calling an embedding operation in Amazon
113	// QuickSight without the required pricing plan on your AWS account. Before
114	// you can use embedding for anonymous users, a QuickSight administrator needs
115	// to add capacity pricing to QuickSight. You can do this on the Manage QuickSight
116	// page.
117	//
118	// After capacity pricing is added, you can use the GetDashboardEmbedUrl API
119	// operation with the --identity-type ANONYMOUS option.
120	ErrCodeUnsupportedPricingPlanException = "UnsupportedPricingPlanException"
121
122	// ErrCodeUnsupportedUserEditionException for service response error code
123	// "UnsupportedUserEditionException".
124	//
125	// This error indicates that you are calling an operation on an Amazon QuickSight
126	// subscription where the edition doesn't include support for that operation.
127	// Amazon QuickSight currently has Standard Edition and Enterprise Edition.
128	// Not every operation and capability is available in every edition.
129	ErrCodeUnsupportedUserEditionException = "UnsupportedUserEditionException"
130
131	// ErrCodeUserNotFoundException for service response error code
132	// "QuickSightUserNotFoundException".
133	//
134	// The user with the provided name isn't found. This error can happen in any
135	// operation that requires finding a user based on a provided user name, such
136	// as DeleteUser, DescribeUser, and so on.
137	ErrCodeUserNotFoundException = "QuickSightUserNotFoundException"
138)
139
140var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
141	"AccessDeniedException":                    newErrorAccessDeniedException,
142	"ConcurrentUpdatingException":              newErrorConcurrentUpdatingException,
143	"ConflictException":                        newErrorConflictException,
144	"DomainNotWhitelistedException":            newErrorDomainNotWhitelistedException,
145	"IdentityTypeNotSupportedException":        newErrorIdentityTypeNotSupportedException,
146	"InternalFailureException":                 newErrorInternalFailureException,
147	"InvalidNextTokenException":                newErrorInvalidNextTokenException,
148	"InvalidParameterValueException":           newErrorInvalidParameterValueException,
149	"LimitExceededException":                   newErrorLimitExceededException,
150	"PreconditionNotMetException":              newErrorPreconditionNotMetException,
151	"ResourceExistsException":                  newErrorResourceExistsException,
152	"ResourceNotFoundException":                newErrorResourceNotFoundException,
153	"ResourceUnavailableException":             newErrorResourceUnavailableException,
154	"SessionLifetimeInMinutesInvalidException": newErrorSessionLifetimeInMinutesInvalidException,
155	"ThrottlingException":                      newErrorThrottlingException,
156	"UnsupportedPricingPlanException":          newErrorUnsupportedPricingPlanException,
157	"UnsupportedUserEditionException":          newErrorUnsupportedUserEditionException,
158	"QuickSightUserNotFoundException":          newErrorUserNotFoundException,
159}
160