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
10type AccessDeniedException struct {
11	Message *string
12}
13
14func (e *AccessDeniedException) Error() string {
15	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
16}
17func (e *AccessDeniedException) ErrorMessage() string {
18	if e.Message == nil {
19		return ""
20	}
21	return *e.Message
22}
23func (e *AccessDeniedException) ErrorCode() string             { return "AccessDeniedException" }
24func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
25
26// The request is not valid, for example, the input is incomplete or incorrect. See
27// the accompanying error message for details.
28type BadRequestException struct {
29	Message *string
30}
31
32func (e *BadRequestException) Error() string {
33	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
34}
35func (e *BadRequestException) ErrorMessage() string {
36	if e.Message == nil {
37		return ""
38	}
39	return *e.Message
40}
41func (e *BadRequestException) ErrorCode() string             { return "BadRequestException" }
42func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
43
44// The requested operation would cause a conflict with the current state of a
45// service resource associated with the request. Resolve the conflict before
46// retrying this request. See the accompanying error message for details.
47type ConflictException struct {
48	Message *string
49}
50
51func (e *ConflictException) Error() string {
52	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
53}
54func (e *ConflictException) ErrorMessage() string {
55	if e.Message == nil {
56		return ""
57	}
58	return *e.Message
59}
60func (e *ConflictException) ErrorCode() string             { return "ConflictException" }
61func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
62
63// The resource specified in the request was not found. See the message field for
64// more information.
65type NotFoundException struct {
66	Message *string
67
68	ResourceType *string
69}
70
71func (e *NotFoundException) Error() string {
72	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
73}
74func (e *NotFoundException) ErrorMessage() string {
75	if e.Message == nil {
76		return ""
77	}
78	return *e.Message
79}
80func (e *NotFoundException) ErrorCode() string             { return "NotFoundException" }
81func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
82
83// A limit has been exceeded. See the accompanying error message for details.
84type TooManyRequestsException struct {
85	Message *string
86
87	LimitType *string
88}
89
90func (e *TooManyRequestsException) Error() string {
91	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
92}
93func (e *TooManyRequestsException) ErrorMessage() string {
94	if e.Message == nil {
95		return ""
96	}
97	return *e.Message
98}
99func (e *TooManyRequestsException) ErrorCode() string             { return "TooManyRequestsException" }
100func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
101