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// There is concurrent modification on a rule, target, archive, or replay.
11type ConcurrentModificationException struct {
12	Message *string
13}
14
15func (e *ConcurrentModificationException) Error() string {
16	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
17}
18func (e *ConcurrentModificationException) ErrorMessage() string {
19	if e.Message == nil {
20		return ""
21	}
22	return *e.Message
23}
24func (e *ConcurrentModificationException) ErrorCode() string {
25	return "ConcurrentModificationException"
26}
27func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
28
29// An error occurred because a replay can be canceled only when the state is
30// Running or Starting.
31type IllegalStatusException struct {
32	Message *string
33}
34
35func (e *IllegalStatusException) Error() string {
36	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
37}
38func (e *IllegalStatusException) ErrorMessage() string {
39	if e.Message == nil {
40		return ""
41	}
42	return *e.Message
43}
44func (e *IllegalStatusException) ErrorCode() string             { return "IllegalStatusException" }
45func (e *IllegalStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
46
47// This exception occurs due to unexpected causes.
48type InternalException struct {
49	Message *string
50}
51
52func (e *InternalException) Error() string {
53	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
54}
55func (e *InternalException) ErrorMessage() string {
56	if e.Message == nil {
57		return ""
58	}
59	return *e.Message
60}
61func (e *InternalException) ErrorCode() string             { return "InternalException" }
62func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
63
64// The event pattern is not valid.
65type InvalidEventPatternException struct {
66	Message *string
67}
68
69func (e *InvalidEventPatternException) Error() string {
70	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
71}
72func (e *InvalidEventPatternException) ErrorMessage() string {
73	if e.Message == nil {
74		return ""
75	}
76	return *e.Message
77}
78func (e *InvalidEventPatternException) ErrorCode() string             { return "InvalidEventPatternException" }
79func (e *InvalidEventPatternException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
80
81// The specified state is not a valid state for an event source.
82type InvalidStateException struct {
83	Message *string
84}
85
86func (e *InvalidStateException) Error() string {
87	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
88}
89func (e *InvalidStateException) ErrorMessage() string {
90	if e.Message == nil {
91		return ""
92	}
93	return *e.Message
94}
95func (e *InvalidStateException) ErrorCode() string             { return "InvalidStateException" }
96func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
97
98// The request failed because it attempted to create resource beyond the allowed
99// service quota.
100type LimitExceededException struct {
101	Message *string
102}
103
104func (e *LimitExceededException) Error() string {
105	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
106}
107func (e *LimitExceededException) ErrorMessage() string {
108	if e.Message == nil {
109		return ""
110	}
111	return *e.Message
112}
113func (e *LimitExceededException) ErrorCode() string             { return "LimitExceededException" }
114func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
115
116// This rule was created by an AWS service on behalf of your account. It is managed
117// by that service. If you see this error in response to DeleteRule or
118// RemoveTargets, you can use the Force parameter in those calls to delete the rule
119// or remove targets from the rule. You cannot modify these managed rules by using
120// DisableRule, EnableRule, PutTargets, PutRule, TagResource, or UntagResource.
121type ManagedRuleException struct {
122	Message *string
123}
124
125func (e *ManagedRuleException) Error() string {
126	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
127}
128func (e *ManagedRuleException) ErrorMessage() string {
129	if e.Message == nil {
130		return ""
131	}
132	return *e.Message
133}
134func (e *ManagedRuleException) ErrorCode() string             { return "ManagedRuleException" }
135func (e *ManagedRuleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
136
137// The operation you are attempting is not available in this region.
138type OperationDisabledException struct {
139	Message *string
140}
141
142func (e *OperationDisabledException) Error() string {
143	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
144}
145func (e *OperationDisabledException) ErrorMessage() string {
146	if e.Message == nil {
147		return ""
148	}
149	return *e.Message
150}
151func (e *OperationDisabledException) ErrorCode() string             { return "OperationDisabledException" }
152func (e *OperationDisabledException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
153
154// The event bus policy is too long. For more information, see the limits.
155type PolicyLengthExceededException struct {
156	Message *string
157}
158
159func (e *PolicyLengthExceededException) Error() string {
160	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
161}
162func (e *PolicyLengthExceededException) ErrorMessage() string {
163	if e.Message == nil {
164		return ""
165	}
166	return *e.Message
167}
168func (e *PolicyLengthExceededException) ErrorCode() string             { return "PolicyLengthExceededException" }
169func (e *PolicyLengthExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
170
171// The resource you are trying to create already exists.
172type ResourceAlreadyExistsException struct {
173	Message *string
174}
175
176func (e *ResourceAlreadyExistsException) Error() string {
177	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
178}
179func (e *ResourceAlreadyExistsException) ErrorMessage() string {
180	if e.Message == nil {
181		return ""
182	}
183	return *e.Message
184}
185func (e *ResourceAlreadyExistsException) ErrorCode() string             { return "ResourceAlreadyExistsException" }
186func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
187
188// An entity that you specified does not exist.
189type ResourceNotFoundException struct {
190	Message *string
191}
192
193func (e *ResourceNotFoundException) Error() string {
194	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
195}
196func (e *ResourceNotFoundException) ErrorMessage() string {
197	if e.Message == nil {
198		return ""
199	}
200	return *e.Message
201}
202func (e *ResourceNotFoundException) ErrorCode() string             { return "ResourceNotFoundException" }
203func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
204