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// Job creation failed. Currently, clusters support five nodes. If you have less
11// than five nodes for your cluster and you have more nodes to create for this
12// cluster, try again and create jobs until your cluster has exactly five notes.
13type ClusterLimitExceededException struct {
14	Message *string
15}
16
17func (e *ClusterLimitExceededException) Error() string {
18	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
19}
20func (e *ClusterLimitExceededException) ErrorMessage() string {
21	if e.Message == nil {
22		return ""
23	}
24	return *e.Message
25}
26func (e *ClusterLimitExceededException) ErrorCode() string             { return "ClusterLimitExceededException" }
27func (e *ClusterLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
28
29// You get this exception when you call CreateReturnShippingLabel more than once
30// when other requests are not completed.
31type ConflictException struct {
32	Message *string
33
34	ConflictResource *string
35}
36
37func (e *ConflictException) Error() string {
38	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
39}
40func (e *ConflictException) ErrorMessage() string {
41	if e.Message == nil {
42		return ""
43	}
44	return *e.Message
45}
46func (e *ConflictException) ErrorCode() string             { return "ConflictException" }
47func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
48
49// Your IAM user lacks the necessary Amazon EC2 permissions to perform the
50// attempted action.
51type Ec2RequestFailedException struct {
52	Message *string
53}
54
55func (e *Ec2RequestFailedException) Error() string {
56	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
57}
58func (e *Ec2RequestFailedException) ErrorMessage() string {
59	if e.Message == nil {
60		return ""
61	}
62	return *e.Message
63}
64func (e *Ec2RequestFailedException) ErrorCode() string             { return "Ec2RequestFailedException" }
65func (e *Ec2RequestFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
66
67// The address provided was invalid. Check the address with your region's carrier,
68// and try again.
69type InvalidAddressException struct {
70	Message *string
71}
72
73func (e *InvalidAddressException) Error() string {
74	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
75}
76func (e *InvalidAddressException) ErrorMessage() string {
77	if e.Message == nil {
78		return ""
79	}
80	return *e.Message
81}
82func (e *InvalidAddressException) ErrorCode() string             { return "InvalidAddressException" }
83func (e *InvalidAddressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
84
85// Job or cluster creation failed. One or more inputs were invalid. Confirm that
86// the CreateClusterRequest$SnowballType value supports your
87// CreateJobRequest$JobType, and try again.
88type InvalidInputCombinationException struct {
89	Message *string
90}
91
92func (e *InvalidInputCombinationException) Error() string {
93	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
94}
95func (e *InvalidInputCombinationException) ErrorMessage() string {
96	if e.Message == nil {
97		return ""
98	}
99	return *e.Message
100}
101func (e *InvalidInputCombinationException) ErrorCode() string {
102	return "InvalidInputCombinationException"
103}
104func (e *InvalidInputCombinationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
105
106// The action can't be performed because the job's current state doesn't allow that
107// action to be performed.
108type InvalidJobStateException struct {
109	Message *string
110}
111
112func (e *InvalidJobStateException) Error() string {
113	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
114}
115func (e *InvalidJobStateException) ErrorMessage() string {
116	if e.Message == nil {
117		return ""
118	}
119	return *e.Message
120}
121func (e *InvalidJobStateException) ErrorCode() string             { return "InvalidJobStateException" }
122func (e *InvalidJobStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
123
124// The NextToken string was altered unexpectedly, and the operation has stopped.
125// Run the operation without changing the NextToken string, and try again.
126type InvalidNextTokenException struct {
127	Message *string
128}
129
130func (e *InvalidNextTokenException) Error() string {
131	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
132}
133func (e *InvalidNextTokenException) ErrorMessage() string {
134	if e.Message == nil {
135		return ""
136	}
137	return *e.Message
138}
139func (e *InvalidNextTokenException) ErrorCode() string             { return "InvalidNextTokenException" }
140func (e *InvalidNextTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
141
142// The specified resource can't be found. Check the information you provided in
143// your last request, and try again.
144type InvalidResourceException struct {
145	Message *string
146
147	ResourceType *string
148}
149
150func (e *InvalidResourceException) Error() string {
151	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
152}
153func (e *InvalidResourceException) ErrorMessage() string {
154	if e.Message == nil {
155		return ""
156	}
157	return *e.Message
158}
159func (e *InvalidResourceException) ErrorCode() string             { return "InvalidResourceException" }
160func (e *InvalidResourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
161
162// The provided AWS Key Management Service key lacks the permissions to perform the
163// specified CreateJob or UpdateJob action.
164type KMSRequestFailedException struct {
165	Message *string
166}
167
168func (e *KMSRequestFailedException) Error() string {
169	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
170}
171func (e *KMSRequestFailedException) ErrorMessage() string {
172	if e.Message == nil {
173		return ""
174	}
175	return *e.Message
176}
177func (e *KMSRequestFailedException) ErrorCode() string             { return "KMSRequestFailedException" }
178func (e *KMSRequestFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
179
180// You get this exception if you call CreateReturnShippingLabel and a valid return
181// shipping label already exists. In this case, use DescribeReturnShippingLabel to
182// get the url.
183type ReturnShippingLabelAlreadyExistsException struct {
184	Message *string
185}
186
187func (e *ReturnShippingLabelAlreadyExistsException) Error() string {
188	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
189}
190func (e *ReturnShippingLabelAlreadyExistsException) ErrorMessage() string {
191	if e.Message == nil {
192		return ""
193	}
194	return *e.Message
195}
196func (e *ReturnShippingLabelAlreadyExistsException) ErrorCode() string {
197	return "ReturnShippingLabelAlreadyExistsException"
198}
199func (e *ReturnShippingLabelAlreadyExistsException) ErrorFault() smithy.ErrorFault {
200	return smithy.FaultClient
201}
202
203// The address is either outside the serviceable area for your region, or an error
204// occurred. Check the address with your region's carrier and try again. If the
205// issue persists, contact AWS Support.
206type UnsupportedAddressException struct {
207	Message *string
208}
209
210func (e *UnsupportedAddressException) Error() string {
211	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
212}
213func (e *UnsupportedAddressException) ErrorMessage() string {
214	if e.Message == nil {
215		return ""
216	}
217	return *e.Message
218}
219func (e *UnsupportedAddressException) ErrorCode() string             { return "UnsupportedAddressException" }
220func (e *UnsupportedAddressException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
221