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// Returned if there is insufficient capacity to process this expedited request.
11// This error only applies to expedited retrievals and not to standard or bulk
12// retrievals.
13type InsufficientCapacityException struct {
14	Message *string
15
16	Type *string
17	Code *string
18}
19
20func (e *InsufficientCapacityException) Error() string {
21	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
22}
23func (e *InsufficientCapacityException) ErrorMessage() string {
24	if e.Message == nil {
25		return ""
26	}
27	return *e.Message
28}
29func (e *InsufficientCapacityException) ErrorCode() string             { return "InsufficientCapacityException" }
30func (e *InsufficientCapacityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
31
32// Returned if a parameter of the request is incorrectly specified.
33type InvalidParameterValueException struct {
34	Message *string
35
36	Type *string
37	Code *string
38}
39
40func (e *InvalidParameterValueException) Error() string {
41	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
42}
43func (e *InvalidParameterValueException) ErrorMessage() string {
44	if e.Message == nil {
45		return ""
46	}
47	return *e.Message
48}
49func (e *InvalidParameterValueException) ErrorCode() string             { return "InvalidParameterValueException" }
50func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
51
52// Returned if the request results in a vault or account limit being exceeded.
53type LimitExceededException struct {
54	Message *string
55
56	Type *string
57	Code *string
58}
59
60func (e *LimitExceededException) Error() string {
61	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
62}
63func (e *LimitExceededException) ErrorMessage() string {
64	if e.Message == nil {
65		return ""
66	}
67	return *e.Message
68}
69func (e *LimitExceededException) ErrorCode() string             { return "LimitExceededException" }
70func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
71
72// Returned if a required header or parameter is missing from the request.
73type MissingParameterValueException struct {
74	Message *string
75
76	Type *string
77	Code *string
78}
79
80func (e *MissingParameterValueException) Error() string {
81	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
82}
83func (e *MissingParameterValueException) ErrorMessage() string {
84	if e.Message == nil {
85		return ""
86	}
87	return *e.Message
88}
89func (e *MissingParameterValueException) ErrorCode() string             { return "MissingParameterValueException" }
90func (e *MissingParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
91
92// Returned if a retrieval job would exceed the current data policy's retrieval
93// rate limit. For more information about data retrieval policies,
94type PolicyEnforcedException struct {
95	Message *string
96
97	Type *string
98	Code *string
99}
100
101func (e *PolicyEnforcedException) Error() string {
102	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
103}
104func (e *PolicyEnforcedException) ErrorMessage() string {
105	if e.Message == nil {
106		return ""
107	}
108	return *e.Message
109}
110func (e *PolicyEnforcedException) ErrorCode() string             { return "PolicyEnforcedException" }
111func (e *PolicyEnforcedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
112
113// Returned if, when uploading an archive, Amazon S3 Glacier times out while
114// receiving the upload.
115type RequestTimeoutException struct {
116	Message *string
117
118	Type *string
119	Code *string
120}
121
122func (e *RequestTimeoutException) Error() string {
123	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
124}
125func (e *RequestTimeoutException) ErrorMessage() string {
126	if e.Message == nil {
127		return ""
128	}
129	return *e.Message
130}
131func (e *RequestTimeoutException) ErrorCode() string             { return "RequestTimeoutException" }
132func (e *RequestTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
133
134// Returned if the specified resource (such as a vault, upload ID, or job ID)
135// doesn't exist.
136type ResourceNotFoundException struct {
137	Message *string
138
139	Type *string
140	Code *string
141}
142
143func (e *ResourceNotFoundException) Error() string {
144	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
145}
146func (e *ResourceNotFoundException) ErrorMessage() string {
147	if e.Message == nil {
148		return ""
149	}
150	return *e.Message
151}
152func (e *ResourceNotFoundException) ErrorCode() string             { return "ResourceNotFoundException" }
153func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
154
155// Returned if the service cannot complete the request.
156type ServiceUnavailableException struct {
157	Message *string
158
159	Type *string
160	Code *string
161}
162
163func (e *ServiceUnavailableException) Error() string {
164	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
165}
166func (e *ServiceUnavailableException) ErrorMessage() string {
167	if e.Message == nil {
168		return ""
169	}
170	return *e.Message
171}
172func (e *ServiceUnavailableException) ErrorCode() string             { return "ServiceUnavailableException" }
173func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
174