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// The service is temporarily unavailable.
11type InternalServerErrorException struct {
12	Message *string
13}
14
15func (e *InternalServerErrorException) Error() string {
16	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
17}
18func (e *InternalServerErrorException) ErrorMessage() string {
19	if e.Message == nil {
20		return ""
21	}
22	return *e.Message
23}
24func (e *InternalServerErrorException) ErrorCode() string             { return "InternalServerErrorException" }
25func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
26
27// The request is not valid.
28type InvalidRequestException struct {
29	Message *string
30}
31
32func (e *InvalidRequestException) Error() string {
33	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
34}
35func (e *InvalidRequestException) ErrorMessage() string {
36	if e.Message == nil {
37		return ""
38	}
39	return *e.Message
40}
41func (e *InvalidRequestException) ErrorCode() string             { return "InvalidRequestException" }
42func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
43
44// The resource already exists.
45type ResourceAlreadyExistsException struct {
46	Message *string
47}
48
49func (e *ResourceAlreadyExistsException) Error() string {
50	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
51}
52func (e *ResourceAlreadyExistsException) ErrorMessage() string {
53	if e.Message == nil {
54		return ""
55	}
56	return *e.Message
57}
58func (e *ResourceAlreadyExistsException) ErrorCode() string             { return "ResourceAlreadyExistsException" }
59func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
60
61// The requested resource was not found.
62type ResourceNotFoundException struct {
63	Message *string
64}
65
66func (e *ResourceNotFoundException) Error() string {
67	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
68}
69func (e *ResourceNotFoundException) ErrorMessage() string {
70	if e.Message == nil {
71		return ""
72	}
73	return *e.Message
74}
75func (e *ResourceNotFoundException) ErrorCode() string             { return "ResourceNotFoundException" }
76func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
77
78// The number of requests exceeds the limit.
79type TooManyRequestsException struct {
80	Message *string
81}
82
83func (e *TooManyRequestsException) Error() string {
84	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
85}
86func (e *TooManyRequestsException) ErrorMessage() string {
87	if e.Message == nil {
88		return ""
89	}
90	return *e.Message
91}
92func (e *TooManyRequestsException) ErrorCode() string             { return "TooManyRequestsException" }
93func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
94
95// You are not authorized to perform this action.
96type UnauthorizedException struct {
97	Message *string
98}
99
100func (e *UnauthorizedException) Error() string {
101	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
102}
103func (e *UnauthorizedException) ErrorMessage() string {
104	if e.Message == nil {
105		return ""
106	}
107	return *e.Message
108}
109func (e *UnauthorizedException) ErrorCode() string             { return "UnauthorizedException" }
110func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
111