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// Kinesis Video Streams has throttled the request because you have exceeded the 11// limit of allowed client calls. Try making the call later. 12type ClientLimitExceededException struct { 13 Message *string 14} 15 16func (e *ClientLimitExceededException) Error() string { 17 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 18} 19func (e *ClientLimitExceededException) ErrorMessage() string { 20 if e.Message == nil { 21 return "" 22 } 23 return *e.Message 24} 25func (e *ClientLimitExceededException) ErrorCode() string { return "ClientLimitExceededException" } 26func (e *ClientLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 27 28// Kinesis Video Streams has throttled the request because you have exceeded the 29// limit of allowed client connections. 30type ConnectionLimitExceededException struct { 31 Message *string 32} 33 34func (e *ConnectionLimitExceededException) Error() string { 35 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 36} 37func (e *ConnectionLimitExceededException) ErrorMessage() string { 38 if e.Message == nil { 39 return "" 40 } 41 return *e.Message 42} 43func (e *ConnectionLimitExceededException) ErrorCode() string { 44 return "ConnectionLimitExceededException" 45} 46func (e *ConnectionLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 47 48// The value for this input parameter is invalid. 49type InvalidArgumentException struct { 50 Message *string 51} 52 53func (e *InvalidArgumentException) Error() string { 54 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 55} 56func (e *InvalidArgumentException) ErrorMessage() string { 57 if e.Message == nil { 58 return "" 59 } 60 return *e.Message 61} 62func (e *InvalidArgumentException) ErrorCode() string { return "InvalidArgumentException" } 63func (e *InvalidArgumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 64 65// Status Code: 400, Caller used wrong endpoint to write data to a stream. On 66// receiving such an exception, the user must call GetDataEndpoint with AccessMode 67// set to "READ" and use the endpoint Kinesis Video returns in the next GetMedia 68// call. 69type InvalidEndpointException struct { 70 Message *string 71} 72 73func (e *InvalidEndpointException) Error() string { 74 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 75} 76func (e *InvalidEndpointException) ErrorMessage() string { 77 if e.Message == nil { 78 return "" 79 } 80 return *e.Message 81} 82func (e *InvalidEndpointException) ErrorCode() string { return "InvalidEndpointException" } 83func (e *InvalidEndpointException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 84 85// Status Code: 403, The caller is not authorized to perform an operation on the 86// given stream, or the token has expired. 87type NotAuthorizedException struct { 88 Message *string 89} 90 91func (e *NotAuthorizedException) Error() string { 92 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 93} 94func (e *NotAuthorizedException) ErrorMessage() string { 95 if e.Message == nil { 96 return "" 97 } 98 return *e.Message 99} 100func (e *NotAuthorizedException) ErrorCode() string { return "NotAuthorizedException" } 101func (e *NotAuthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 102 103// Status Code: 404, The stream with the given name does not exist. 104type ResourceNotFoundException struct { 105 Message *string 106} 107 108func (e *ResourceNotFoundException) Error() string { 109 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 110} 111func (e *ResourceNotFoundException) ErrorMessage() string { 112 if e.Message == nil { 113 return "" 114 } 115 return *e.Message 116} 117func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } 118func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 119