@aws-sdk/client-cloudwatch-logs 3.987.0 → 3.989.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CloudWatchLogsServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class CloudWatchLogsServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, CloudWatchLogsServiceException.prototype);
10
+ }
11
+ }
12
+ exports.CloudWatchLogsServiceException = CloudWatchLogsServiceException;
@@ -0,0 +1,285 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TooManyTagsException = exports.MalformedQueryException = exports.SessionTimeoutException = exports.SessionStreamingException = exports.UnrecognizedClientException = exports.InvalidSequenceTokenException = exports.InternalStreamingException = exports.DataAlreadyAcceptedException = exports.ResourceAlreadyExistsException = exports.LimitExceededException = exports.ServiceQuotaExceededException = exports.ConflictException = exports.InvalidOperationException = exports.ValidationException = exports.ThrottlingException = exports.InternalServerException = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.OperationAbortedException = exports.InvalidParameterException = exports.AccessDeniedException = void 0;
4
+ const CloudWatchLogsServiceException_1 = require("./CloudWatchLogsServiceException");
5
+ class AccessDeniedException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ class InvalidParameterException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
19
+ name = "InvalidParameterException";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "InvalidParameterException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
28
+ }
29
+ }
30
+ exports.InvalidParameterException = InvalidParameterException;
31
+ class OperationAbortedException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
32
+ name = "OperationAbortedException";
33
+ $fault = "client";
34
+ constructor(opts) {
35
+ super({
36
+ name: "OperationAbortedException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, OperationAbortedException.prototype);
41
+ }
42
+ }
43
+ exports.OperationAbortedException = OperationAbortedException;
44
+ class ResourceNotFoundException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
45
+ name = "ResourceNotFoundException";
46
+ $fault = "client";
47
+ constructor(opts) {
48
+ super({
49
+ name: "ResourceNotFoundException",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
54
+ }
55
+ }
56
+ exports.ResourceNotFoundException = ResourceNotFoundException;
57
+ class ServiceUnavailableException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
58
+ name = "ServiceUnavailableException";
59
+ $fault = "server";
60
+ constructor(opts) {
61
+ super({
62
+ name: "ServiceUnavailableException",
63
+ $fault: "server",
64
+ ...opts,
65
+ });
66
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
67
+ }
68
+ }
69
+ exports.ServiceUnavailableException = ServiceUnavailableException;
70
+ class InternalServerException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
71
+ name = "InternalServerException";
72
+ $fault = "server";
73
+ constructor(opts) {
74
+ super({
75
+ name: "InternalServerException",
76
+ $fault: "server",
77
+ ...opts,
78
+ });
79
+ Object.setPrototypeOf(this, InternalServerException.prototype);
80
+ }
81
+ }
82
+ exports.InternalServerException = InternalServerException;
83
+ class ThrottlingException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
84
+ name = "ThrottlingException";
85
+ $fault = "client";
86
+ constructor(opts) {
87
+ super({
88
+ name: "ThrottlingException",
89
+ $fault: "client",
90
+ ...opts,
91
+ });
92
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
93
+ }
94
+ }
95
+ exports.ThrottlingException = ThrottlingException;
96
+ class ValidationException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
97
+ name = "ValidationException";
98
+ $fault = "client";
99
+ constructor(opts) {
100
+ super({
101
+ name: "ValidationException",
102
+ $fault: "client",
103
+ ...opts,
104
+ });
105
+ Object.setPrototypeOf(this, ValidationException.prototype);
106
+ }
107
+ }
108
+ exports.ValidationException = ValidationException;
109
+ class InvalidOperationException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
110
+ name = "InvalidOperationException";
111
+ $fault = "client";
112
+ constructor(opts) {
113
+ super({
114
+ name: "InvalidOperationException",
115
+ $fault: "client",
116
+ ...opts,
117
+ });
118
+ Object.setPrototypeOf(this, InvalidOperationException.prototype);
119
+ }
120
+ }
121
+ exports.InvalidOperationException = InvalidOperationException;
122
+ class ConflictException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
123
+ name = "ConflictException";
124
+ $fault = "client";
125
+ constructor(opts) {
126
+ super({
127
+ name: "ConflictException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, ConflictException.prototype);
132
+ }
133
+ }
134
+ exports.ConflictException = ConflictException;
135
+ class ServiceQuotaExceededException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
136
+ name = "ServiceQuotaExceededException";
137
+ $fault = "client";
138
+ constructor(opts) {
139
+ super({
140
+ name: "ServiceQuotaExceededException",
141
+ $fault: "client",
142
+ ...opts,
143
+ });
144
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
145
+ }
146
+ }
147
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
148
+ class LimitExceededException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
149
+ name = "LimitExceededException";
150
+ $fault = "client";
151
+ constructor(opts) {
152
+ super({
153
+ name: "LimitExceededException",
154
+ $fault: "client",
155
+ ...opts,
156
+ });
157
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
158
+ }
159
+ }
160
+ exports.LimitExceededException = LimitExceededException;
161
+ class ResourceAlreadyExistsException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
162
+ name = "ResourceAlreadyExistsException";
163
+ $fault = "client";
164
+ constructor(opts) {
165
+ super({
166
+ name: "ResourceAlreadyExistsException",
167
+ $fault: "client",
168
+ ...opts,
169
+ });
170
+ Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
171
+ }
172
+ }
173
+ exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
174
+ class DataAlreadyAcceptedException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
175
+ name = "DataAlreadyAcceptedException";
176
+ $fault = "client";
177
+ expectedSequenceToken;
178
+ constructor(opts) {
179
+ super({
180
+ name: "DataAlreadyAcceptedException",
181
+ $fault: "client",
182
+ ...opts,
183
+ });
184
+ Object.setPrototypeOf(this, DataAlreadyAcceptedException.prototype);
185
+ this.expectedSequenceToken = opts.expectedSequenceToken;
186
+ }
187
+ }
188
+ exports.DataAlreadyAcceptedException = DataAlreadyAcceptedException;
189
+ class InternalStreamingException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
190
+ name = "InternalStreamingException";
191
+ $fault = "client";
192
+ constructor(opts) {
193
+ super({
194
+ name: "InternalStreamingException",
195
+ $fault: "client",
196
+ ...opts,
197
+ });
198
+ Object.setPrototypeOf(this, InternalStreamingException.prototype);
199
+ }
200
+ }
201
+ exports.InternalStreamingException = InternalStreamingException;
202
+ class InvalidSequenceTokenException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
203
+ name = "InvalidSequenceTokenException";
204
+ $fault = "client";
205
+ expectedSequenceToken;
206
+ constructor(opts) {
207
+ super({
208
+ name: "InvalidSequenceTokenException",
209
+ $fault: "client",
210
+ ...opts,
211
+ });
212
+ Object.setPrototypeOf(this, InvalidSequenceTokenException.prototype);
213
+ this.expectedSequenceToken = opts.expectedSequenceToken;
214
+ }
215
+ }
216
+ exports.InvalidSequenceTokenException = InvalidSequenceTokenException;
217
+ class UnrecognizedClientException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
218
+ name = "UnrecognizedClientException";
219
+ $fault = "client";
220
+ constructor(opts) {
221
+ super({
222
+ name: "UnrecognizedClientException",
223
+ $fault: "client",
224
+ ...opts,
225
+ });
226
+ Object.setPrototypeOf(this, UnrecognizedClientException.prototype);
227
+ }
228
+ }
229
+ exports.UnrecognizedClientException = UnrecognizedClientException;
230
+ class SessionStreamingException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
231
+ name = "SessionStreamingException";
232
+ $fault = "client";
233
+ constructor(opts) {
234
+ super({
235
+ name: "SessionStreamingException",
236
+ $fault: "client",
237
+ ...opts,
238
+ });
239
+ Object.setPrototypeOf(this, SessionStreamingException.prototype);
240
+ }
241
+ }
242
+ exports.SessionStreamingException = SessionStreamingException;
243
+ class SessionTimeoutException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
244
+ name = "SessionTimeoutException";
245
+ $fault = "client";
246
+ constructor(opts) {
247
+ super({
248
+ name: "SessionTimeoutException",
249
+ $fault: "client",
250
+ ...opts,
251
+ });
252
+ Object.setPrototypeOf(this, SessionTimeoutException.prototype);
253
+ }
254
+ }
255
+ exports.SessionTimeoutException = SessionTimeoutException;
256
+ class MalformedQueryException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
257
+ name = "MalformedQueryException";
258
+ $fault = "client";
259
+ queryCompileError;
260
+ constructor(opts) {
261
+ super({
262
+ name: "MalformedQueryException",
263
+ $fault: "client",
264
+ ...opts,
265
+ });
266
+ Object.setPrototypeOf(this, MalformedQueryException.prototype);
267
+ this.queryCompileError = opts.queryCompileError;
268
+ }
269
+ }
270
+ exports.MalformedQueryException = MalformedQueryException;
271
+ class TooManyTagsException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
272
+ name = "TooManyTagsException";
273
+ $fault = "client";
274
+ resourceName;
275
+ constructor(opts) {
276
+ super({
277
+ name: "TooManyTagsException",
278
+ $fault: "client",
279
+ ...opts,
280
+ });
281
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
282
+ this.resourceName = opts.resourceName;
283
+ }
284
+ }
285
+ exports.TooManyTagsException = TooManyTagsException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2014-03-28",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.cloudwatchlogs",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  xmlNamespace: "http://monitoring.amazonaws.com/doc/2014-03-28/",
33
35
  version: "2014-03-28",
34
36
  serviceTarget: "Logs_20140328",