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 are not authorized to perform the action.
11type AccessDeniedException struct {
12	Message *string
13
14	noSmithyDocumentSerde
15}
16
17func (e *AccessDeniedException) Error() string {
18	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
19}
20func (e *AccessDeniedException) ErrorMessage() string {
21	if e.Message == nil {
22		return ""
23	}
24	return *e.Message
25}
26func (e *AccessDeniedException) ErrorCode() string             { return "AccessDeniedException" }
27func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
28
29// The update or deletion of a resource caused an inconsistent state.
30type ConflictException struct {
31	Message *string
32
33	ResourceId   *string
34	ResourceType ResourceType
35
36	noSmithyDocumentSerde
37}
38
39func (e *ConflictException) Error() string {
40	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
41}
42func (e *ConflictException) ErrorMessage() string {
43	if e.Message == nil {
44		return ""
45	}
46	return *e.Message
47}
48func (e *ConflictException) ErrorCode() string             { return "ConflictException" }
49func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
50
51// Amazon Lookout for Vision experienced a service issue. Try your call again.
52type InternalServerException struct {
53	Message *string
54
55	RetryAfterSeconds int32
56
57	noSmithyDocumentSerde
58}
59
60func (e *InternalServerException) Error() string {
61	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
62}
63func (e *InternalServerException) ErrorMessage() string {
64	if e.Message == nil {
65		return ""
66	}
67	return *e.Message
68}
69func (e *InternalServerException) ErrorCode() string             { return "InternalServerException" }
70func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
71
72// The resource could not be found.
73type ResourceNotFoundException struct {
74	Message *string
75
76	ResourceId   *string
77	ResourceType ResourceType
78
79	noSmithyDocumentSerde
80}
81
82func (e *ResourceNotFoundException) Error() string {
83	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
84}
85func (e *ResourceNotFoundException) ErrorMessage() string {
86	if e.Message == nil {
87		return ""
88	}
89	return *e.Message
90}
91func (e *ResourceNotFoundException) ErrorCode() string             { return "ResourceNotFoundException" }
92func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
93
94// A service quota was exceeded the allowed limit. For more information, see Limits
95// in Amazon Lookout for Vision in the Amazon Lookout for Vision Developer Guide.
96type ServiceQuotaExceededException struct {
97	Message *string
98
99	ResourceId   *string
100	ResourceType ResourceType
101	QuotaCode    *string
102	ServiceCode  *string
103
104	noSmithyDocumentSerde
105}
106
107func (e *ServiceQuotaExceededException) Error() string {
108	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
109}
110func (e *ServiceQuotaExceededException) ErrorMessage() string {
111	if e.Message == nil {
112		return ""
113	}
114	return *e.Message
115}
116func (e *ServiceQuotaExceededException) ErrorCode() string             { return "ServiceQuotaExceededException" }
117func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
118
119// Amazon Lookout for Vision is temporarily unable to process the request. Try your
120// call again.
121type ThrottlingException struct {
122	Message *string
123
124	QuotaCode         *string
125	ServiceCode       *string
126	RetryAfterSeconds int32
127
128	noSmithyDocumentSerde
129}
130
131func (e *ThrottlingException) Error() string {
132	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
133}
134func (e *ThrottlingException) ErrorMessage() string {
135	if e.Message == nil {
136		return ""
137	}
138	return *e.Message
139}
140func (e *ThrottlingException) ErrorCode() string             { return "ThrottlingException" }
141func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
142
143// An input validation error occured. For example, invalid characters in a project
144// name, or if a pagination token is invalid.
145type ValidationException struct {
146	Message *string
147
148	noSmithyDocumentSerde
149}
150
151func (e *ValidationException) Error() string {
152	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
153}
154func (e *ValidationException) ErrorMessage() string {
155	if e.Message == nil {
156		return ""
157	}
158	return *e.Message
159}
160func (e *ValidationException) ErrorCode() string             { return "ValidationException" }
161func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
162