-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
135 lines (116 loc) · 5.89 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package kinesisvideo
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAccessDeniedException for service response error code
// "AccessDeniedException".
//
// You do not have required permissions to perform this operation.
ErrCodeAccessDeniedException = "AccessDeniedException"
// ErrCodeAccountChannelLimitExceededException for service response error code
// "AccountChannelLimitExceededException".
//
// You have reached the maximum limit of active signaling channels for this
// Amazon Web Services account in this region.
ErrCodeAccountChannelLimitExceededException = "AccountChannelLimitExceededException"
// ErrCodeAccountStreamLimitExceededException for service response error code
// "AccountStreamLimitExceededException".
//
// The number of streams created for the account is too high.
ErrCodeAccountStreamLimitExceededException = "AccountStreamLimitExceededException"
// ErrCodeClientLimitExceededException for service response error code
// "ClientLimitExceededException".
//
// Kinesis Video Streams has throttled the request because you have exceeded
// the limit of allowed client calls. Try making the call later.
ErrCodeClientLimitExceededException = "ClientLimitExceededException"
// ErrCodeDeviceStreamLimitExceededException for service response error code
// "DeviceStreamLimitExceededException".
//
// Not implemented.
ErrCodeDeviceStreamLimitExceededException = "DeviceStreamLimitExceededException"
// ErrCodeInvalidArgumentException for service response error code
// "InvalidArgumentException".
//
// The value for this input parameter is invalid.
ErrCodeInvalidArgumentException = "InvalidArgumentException"
// ErrCodeInvalidDeviceException for service response error code
// "InvalidDeviceException".
//
// Not implemented.
ErrCodeInvalidDeviceException = "InvalidDeviceException"
// ErrCodeInvalidResourceFormatException for service response error code
// "InvalidResourceFormatException".
//
// The format of the StreamARN is invalid.
ErrCodeInvalidResourceFormatException = "InvalidResourceFormatException"
// ErrCodeNoDataRetentionException for service response error code
// "NoDataRetentionException".
//
// The Stream data retention in hours is equal to zero.
ErrCodeNoDataRetentionException = "NoDataRetentionException"
// ErrCodeNotAuthorizedException for service response error code
// "NotAuthorizedException".
//
// The caller is not authorized to perform this operation.
ErrCodeNotAuthorizedException = "NotAuthorizedException"
// ErrCodeResourceInUseException for service response error code
// "ResourceInUseException".
//
// When the input StreamARN or ChannelARN in CLOUD_STORAGE_MODE is already mapped
// to a different Kinesis Video Stream resource, or if the provided input StreamARN
// or ChannelARN is not in Active status, try one of the following :
//
// The DescribeMediaStorageConfiguration API to determine what the stream given
// channel is mapped to.
//
// The DescribeMappedResourceConfiguration API to determine the channel that
// the given stream is mapped to.
//
// The DescribeStream or DescribeSignalingChannel API to determine the status
// of the resource.
ErrCodeResourceInUseException = "ResourceInUseException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// Amazon Kinesis Video Streams can't find the stream that you specified.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeStreamEdgeConfigurationNotFoundException for service response error code
// "StreamEdgeConfigurationNotFoundException".
//
// The Exception rendered when the Amazon Kinesis Video Stream can't find a
// stream's edge configuration that you specified.
ErrCodeStreamEdgeConfigurationNotFoundException = "StreamEdgeConfigurationNotFoundException"
// ErrCodeTagsPerResourceExceededLimitException for service response error code
// "TagsPerResourceExceededLimitException".
//
// You have exceeded the limit of tags that you can associate with the resource.
// A Kinesis video stream can support up to 50 tags.
ErrCodeTagsPerResourceExceededLimitException = "TagsPerResourceExceededLimitException"
// ErrCodeVersionMismatchException for service response error code
// "VersionMismatchException".
//
// The stream version that you specified is not the latest version. To get the
// latest version, use the DescribeStream (https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/API_DescribeStream.html)
// API.
ErrCodeVersionMismatchException = "VersionMismatchException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccessDeniedException": newErrorAccessDeniedException,
"AccountChannelLimitExceededException": newErrorAccountChannelLimitExceededException,
"AccountStreamLimitExceededException": newErrorAccountStreamLimitExceededException,
"ClientLimitExceededException": newErrorClientLimitExceededException,
"DeviceStreamLimitExceededException": newErrorDeviceStreamLimitExceededException,
"InvalidArgumentException": newErrorInvalidArgumentException,
"InvalidDeviceException": newErrorInvalidDeviceException,
"InvalidResourceFormatException": newErrorInvalidResourceFormatException,
"NoDataRetentionException": newErrorNoDataRetentionException,
"NotAuthorizedException": newErrorNotAuthorizedException,
"ResourceInUseException": newErrorResourceInUseException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"StreamEdgeConfigurationNotFoundException": newErrorStreamEdgeConfigurationNotFoundException,
"TagsPerResourceExceededLimitException": newErrorTagsPerResourceExceededLimitException,
"VersionMismatchException": newErrorVersionMismatchException,
}