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 request failed due to an unknown error.
11type InternalServiceError struct {
12	Message *string
13}
14
15func (e *InternalServiceError) Error() string {
16	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
17}
18func (e *InternalServiceError) ErrorMessage() string {
19	if e.Message == nil {
20		return ""
21	}
22	return *e.Message
23}
24func (e *InternalServiceError) ErrorCode() string             { return "InternalServiceError" }
25func (e *InternalServiceError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
26
27// One of the arguments provided is invalid for this request.
28type InvalidArgumentException struct {
29	Message *string
30}
31
32func (e *InvalidArgumentException) Error() string {
33	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
34}
35func (e *InvalidArgumentException) ErrorMessage() string {
36	if e.Message == nil {
37		return ""
38	}
39	return *e.Message
40}
41func (e *InvalidArgumentException) ErrorCode() string             { return "InvalidArgumentException" }
42func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
43
44// The user is not authorized to perform this request.
45type NotAuthorizedException struct {
46	Message *string
47}
48
49func (e *NotAuthorizedException) Error() string {
50	return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
51}
52func (e *NotAuthorizedException) ErrorMessage() string {
53	if e.Message == nil {
54		return ""
55	}
56	return *e.Message
57}
58func (e *NotAuthorizedException) ErrorCode() string             { return "NotAuthorizedException" }
59func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
60