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 event was already logged. 11type DataAlreadyAcceptedException struct { 12 Message *string 13 14 ExpectedSequenceToken *string 15} 16 17func (e *DataAlreadyAcceptedException) Error() string { 18 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 19} 20func (e *DataAlreadyAcceptedException) ErrorMessage() string { 21 if e.Message == nil { 22 return "" 23 } 24 return *e.Message 25} 26func (e *DataAlreadyAcceptedException) ErrorCode() string { return "DataAlreadyAcceptedException" } 27func (e *DataAlreadyAcceptedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 28 29// The operation is not valid on the specified resource. 30type InvalidOperationException struct { 31 Message *string 32} 33 34func (e *InvalidOperationException) Error() string { 35 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 36} 37func (e *InvalidOperationException) ErrorMessage() string { 38 if e.Message == nil { 39 return "" 40 } 41 return *e.Message 42} 43func (e *InvalidOperationException) ErrorCode() string { return "InvalidOperationException" } 44func (e *InvalidOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 45 46// A parameter is specified incorrectly. 47type InvalidParameterException struct { 48 Message *string 49} 50 51func (e *InvalidParameterException) Error() string { 52 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 53} 54func (e *InvalidParameterException) ErrorMessage() string { 55 if e.Message == nil { 56 return "" 57 } 58 return *e.Message 59} 60func (e *InvalidParameterException) ErrorCode() string { return "InvalidParameterException" } 61func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 62 63// The sequence token is not valid. You can get the correct sequence token in the 64// expectedSequenceToken field in the InvalidSequenceTokenException message. 65type InvalidSequenceTokenException struct { 66 Message *string 67 68 ExpectedSequenceToken *string 69} 70 71func (e *InvalidSequenceTokenException) Error() string { 72 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 73} 74func (e *InvalidSequenceTokenException) ErrorMessage() string { 75 if e.Message == nil { 76 return "" 77 } 78 return *e.Message 79} 80func (e *InvalidSequenceTokenException) ErrorCode() string { return "InvalidSequenceTokenException" } 81func (e *InvalidSequenceTokenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 82 83// You have reached the maximum number of resources that can be created. 84type LimitExceededException struct { 85 Message *string 86} 87 88func (e *LimitExceededException) Error() string { 89 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 90} 91func (e *LimitExceededException) ErrorMessage() string { 92 if e.Message == nil { 93 return "" 94 } 95 return *e.Message 96} 97func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } 98func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 99 100// The query string is not valid. Details about this error are displayed in a 101// QueryCompileError object. For more information, see QueryCompileError 102// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_QueryCompileError.html). 103// For more information about valid query syntax, see CloudWatch Logs Insights 104// Query Syntax 105// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html). 106type MalformedQueryException struct { 107 Message *string 108 109 QueryCompileError *QueryCompileError 110} 111 112func (e *MalformedQueryException) Error() string { 113 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 114} 115func (e *MalformedQueryException) ErrorMessage() string { 116 if e.Message == nil { 117 return "" 118 } 119 return *e.Message 120} 121func (e *MalformedQueryException) ErrorCode() string { return "MalformedQueryException" } 122func (e *MalformedQueryException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 123 124// Multiple requests to update the same resource were in conflict. 125type OperationAbortedException struct { 126 Message *string 127} 128 129func (e *OperationAbortedException) Error() string { 130 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 131} 132func (e *OperationAbortedException) ErrorMessage() string { 133 if e.Message == nil { 134 return "" 135 } 136 return *e.Message 137} 138func (e *OperationAbortedException) ErrorCode() string { return "OperationAbortedException" } 139func (e *OperationAbortedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 140 141// The specified resource already exists. 142type ResourceAlreadyExistsException struct { 143 Message *string 144} 145 146func (e *ResourceAlreadyExistsException) Error() string { 147 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 148} 149func (e *ResourceAlreadyExistsException) ErrorMessage() string { 150 if e.Message == nil { 151 return "" 152 } 153 return *e.Message 154} 155func (e *ResourceAlreadyExistsException) ErrorCode() string { return "ResourceAlreadyExistsException" } 156func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 157 158// The specified resource does not exist. 159type ResourceNotFoundException struct { 160 Message *string 161} 162 163func (e *ResourceNotFoundException) Error() string { 164 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 165} 166func (e *ResourceNotFoundException) ErrorMessage() string { 167 if e.Message == nil { 168 return "" 169 } 170 return *e.Message 171} 172func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } 173func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 174 175// The service cannot complete the request. 176type ServiceUnavailableException struct { 177 Message *string 178} 179 180func (e *ServiceUnavailableException) Error() string { 181 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 182} 183func (e *ServiceUnavailableException) ErrorMessage() string { 184 if e.Message == nil { 185 return "" 186 } 187 return *e.Message 188} 189func (e *ServiceUnavailableException) ErrorCode() string { return "ServiceUnavailableException" } 190func (e *ServiceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 191 192// The most likely cause is an invalid AWS access key ID or secret key. 193type UnrecognizedClientException struct { 194 Message *string 195} 196 197func (e *UnrecognizedClientException) Error() string { 198 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 199} 200func (e *UnrecognizedClientException) ErrorMessage() string { 201 if e.Message == nil { 202 return "" 203 } 204 return *e.Message 205} 206func (e *UnrecognizedClientException) ErrorCode() string { return "UnrecognizedClientException" } 207func (e *UnrecognizedClientException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 208