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 provided iterator exceeds the maximum age allowed.
11type ExpiredIteratorException struct {
12	Message *string
13}
14
15func (e *ExpiredIteratorException) Error() string {
16	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
17}
18func (e *ExpiredIteratorException) ErrorMessage() string {
19	if e.Message == nil {
20		return ""
21	}
22	return *e.Message
23}
24func (e *ExpiredIteratorException) ErrorCode() string             { return "ExpiredIteratorException" }
25func (e *ExpiredIteratorException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
26
27// The pagination token passed to the operation is expired.
28type ExpiredNextTokenException struct {
29	Message *string
30}
31
32func (e *ExpiredNextTokenException) Error() string {
33	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
34}
35func (e *ExpiredNextTokenException) ErrorMessage() string {
36	if e.Message == nil {
37		return ""
38	}
39	return *e.Message
40}
41func (e *ExpiredNextTokenException) ErrorCode() string             { return "ExpiredNextTokenException" }
42func (e *ExpiredNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
43
44// A specified parameter exceeds its restrictions, is not supported, or can't be
45// used. For more information, see the returned message.
46type InvalidArgumentException struct {
47	Message *string
48}
49
50func (e *InvalidArgumentException) Error() string {
51	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
52}
53func (e *InvalidArgumentException) ErrorMessage() string {
54	if e.Message == nil {
55		return ""
56	}
57	return *e.Message
58}
59func (e *InvalidArgumentException) ErrorCode() string             { return "InvalidArgumentException" }
60func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
61
62// The ciphertext references a key that doesn't exist or that you don't have access
63// to.
64type KMSAccessDeniedException struct {
65	Message *string
66}
67
68func (e *KMSAccessDeniedException) Error() string {
69	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
70}
71func (e *KMSAccessDeniedException) ErrorMessage() string {
72	if e.Message == nil {
73		return ""
74	}
75	return *e.Message
76}
77func (e *KMSAccessDeniedException) ErrorCode() string             { return "KMSAccessDeniedException" }
78func (e *KMSAccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
79
80// The request was rejected because the specified customer master key (CMK) isn't
81// enabled.
82type KMSDisabledException struct {
83	Message *string
84}
85
86func (e *KMSDisabledException) Error() string {
87	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
88}
89func (e *KMSDisabledException) ErrorMessage() string {
90	if e.Message == nil {
91		return ""
92	}
93	return *e.Message
94}
95func (e *KMSDisabledException) ErrorCode() string             { return "KMSDisabledException" }
96func (e *KMSDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
97
98// The request was rejected because the state of the specified resource isn't valid
99// for this request. For more information, see How Key State Affects Use of a
100// Customer Master Key
101// (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) in the
102// AWS Key Management Service Developer Guide.
103type KMSInvalidStateException struct {
104	Message *string
105}
106
107func (e *KMSInvalidStateException) Error() string {
108	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
109}
110func (e *KMSInvalidStateException) ErrorMessage() string {
111	if e.Message == nil {
112		return ""
113	}
114	return *e.Message
115}
116func (e *KMSInvalidStateException) ErrorCode() string             { return "KMSInvalidStateException" }
117func (e *KMSInvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
118
119// The request was rejected because the specified entity or resource can't be
120// found.
121type KMSNotFoundException struct {
122	Message *string
123}
124
125func (e *KMSNotFoundException) Error() string {
126	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
127}
128func (e *KMSNotFoundException) ErrorMessage() string {
129	if e.Message == nil {
130		return ""
131	}
132	return *e.Message
133}
134func (e *KMSNotFoundException) ErrorCode() string             { return "KMSNotFoundException" }
135func (e *KMSNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
136
137// The AWS access key ID needs a subscription for the service.
138type KMSOptInRequired struct {
139	Message *string
140}
141
142func (e *KMSOptInRequired) Error() string {
143	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
144}
145func (e *KMSOptInRequired) ErrorMessage() string {
146	if e.Message == nil {
147		return ""
148	}
149	return *e.Message
150}
151func (e *KMSOptInRequired) ErrorCode() string             { return "KMSOptInRequired" }
152func (e *KMSOptInRequired) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
153
154// The request was denied due to request throttling. For more information about
155// throttling, see Limits
156// (https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second)
157// in the AWS Key Management Service Developer Guide.
158type KMSThrottlingException struct {
159	Message *string
160}
161
162func (e *KMSThrottlingException) Error() string {
163	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
164}
165func (e *KMSThrottlingException) ErrorMessage() string {
166	if e.Message == nil {
167		return ""
168	}
169	return *e.Message
170}
171func (e *KMSThrottlingException) ErrorCode() string             { return "KMSThrottlingException" }
172func (e *KMSThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
173
174// The requested resource exceeds the maximum number allowed, or the number of
175// concurrent stream requests exceeds the maximum number allowed.
176type LimitExceededException struct {
177	Message *string
178}
179
180func (e *LimitExceededException) Error() string {
181	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
182}
183func (e *LimitExceededException) ErrorMessage() string {
184	if e.Message == nil {
185		return ""
186	}
187	return *e.Message
188}
189func (e *LimitExceededException) ErrorCode() string             { return "LimitExceededException" }
190func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
191
192// The request rate for the stream is too high, or the requested data is too large
193// for the available throughput. Reduce the frequency or size of your requests. For
194// more information, see Streams Limits
195// (https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html)
196// in the Amazon Kinesis Data Streams Developer Guide, and Error Retries and
197// Exponential Backoff in AWS
198// (https://docs.aws.amazon.com/general/latest/gr/api-retries.html) in the AWS
199// General Reference.
200type ProvisionedThroughputExceededException struct {
201	Message *string
202}
203
204func (e *ProvisionedThroughputExceededException) Error() string {
205	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
206}
207func (e *ProvisionedThroughputExceededException) ErrorMessage() string {
208	if e.Message == nil {
209		return ""
210	}
211	return *e.Message
212}
213func (e *ProvisionedThroughputExceededException) ErrorCode() string {
214	return "ProvisionedThroughputExceededException"
215}
216func (e *ProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault {
217	return smithy.FaultClient
218}
219
220// The resource is not available for this operation. For successful operation, the
221// resource must be in the ACTIVE state.
222type ResourceInUseException struct {
223	Message *string
224}
225
226func (e *ResourceInUseException) Error() string {
227	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
228}
229func (e *ResourceInUseException) ErrorMessage() string {
230	if e.Message == nil {
231		return ""
232	}
233	return *e.Message
234}
235func (e *ResourceInUseException) ErrorCode() string             { return "ResourceInUseException" }
236func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
237
238// The requested resource could not be found. The stream might not be specified
239// correctly.
240type ResourceNotFoundException struct {
241	Message *string
242}
243
244func (e *ResourceNotFoundException) Error() string {
245	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
246}
247func (e *ResourceNotFoundException) ErrorMessage() string {
248	if e.Message == nil {
249		return ""
250	}
251	return *e.Message
252}
253func (e *ResourceNotFoundException) ErrorCode() string             { return "ResourceNotFoundException" }
254func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
255