@aws-sdk/client-aiops 3.893.0 → 3.895.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.
@@ -1,131 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListInvestigationGroupsOutputFilterSensitiveLog = exports.ListInvestigationGroupsInputFilterSensitiveLog = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.EncryptionConfigurationType = exports.InternalServerException = exports.ForbiddenException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- const AIOpsServiceException_1 = require("./AIOpsServiceException");
6
- class AccessDeniedException extends AIOpsServiceException_1.AIOpsServiceException {
7
- name = "AccessDeniedException";
8
- $fault = "client";
9
- constructor(opts) {
10
- super({
11
- name: "AccessDeniedException",
12
- $fault: "client",
13
- ...opts,
14
- });
15
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
- }
17
- }
18
- exports.AccessDeniedException = AccessDeniedException;
19
- class ConflictException extends AIOpsServiceException_1.AIOpsServiceException {
20
- name = "ConflictException";
21
- $fault = "client";
22
- constructor(opts) {
23
- super({
24
- name: "ConflictException",
25
- $fault: "client",
26
- ...opts,
27
- });
28
- Object.setPrototypeOf(this, ConflictException.prototype);
29
- }
30
- }
31
- exports.ConflictException = ConflictException;
32
- class ForbiddenException extends AIOpsServiceException_1.AIOpsServiceException {
33
- name = "ForbiddenException";
34
- $fault = "client";
35
- constructor(opts) {
36
- super({
37
- name: "ForbiddenException",
38
- $fault: "client",
39
- ...opts,
40
- });
41
- Object.setPrototypeOf(this, ForbiddenException.prototype);
42
- }
43
- }
44
- exports.ForbiddenException = ForbiddenException;
45
- class InternalServerException extends AIOpsServiceException_1.AIOpsServiceException {
46
- name = "InternalServerException";
47
- $fault = "server";
48
- constructor(opts) {
49
- super({
50
- name: "InternalServerException",
51
- $fault: "server",
52
- ...opts,
53
- });
54
- Object.setPrototypeOf(this, InternalServerException.prototype);
55
- }
56
- }
57
- exports.InternalServerException = InternalServerException;
58
- exports.EncryptionConfigurationType = {
59
- AWS_OWNED_KEY: "AWS_OWNED_KEY",
60
- CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY",
61
- };
62
- class ResourceNotFoundException extends AIOpsServiceException_1.AIOpsServiceException {
63
- name = "ResourceNotFoundException";
64
- $fault = "client";
65
- constructor(opts) {
66
- super({
67
- name: "ResourceNotFoundException",
68
- $fault: "client",
69
- ...opts,
70
- });
71
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
72
- }
73
- }
74
- exports.ResourceNotFoundException = ResourceNotFoundException;
75
- class ServiceQuotaExceededException extends AIOpsServiceException_1.AIOpsServiceException {
76
- name = "ServiceQuotaExceededException";
77
- $fault = "client";
78
- resourceId;
79
- resourceType;
80
- serviceCode;
81
- quotaCode;
82
- constructor(opts) {
83
- super({
84
- name: "ServiceQuotaExceededException",
85
- $fault: "client",
86
- ...opts,
87
- });
88
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
89
- this.resourceId = opts.resourceId;
90
- this.resourceType = opts.resourceType;
91
- this.serviceCode = opts.serviceCode;
92
- this.quotaCode = opts.quotaCode;
93
- }
94
- }
95
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
96
- class ThrottlingException extends AIOpsServiceException_1.AIOpsServiceException {
97
- name = "ThrottlingException";
98
- $fault = "client";
99
- constructor(opts) {
100
- super({
101
- name: "ThrottlingException",
102
- $fault: "client",
103
- ...opts,
104
- });
105
- Object.setPrototypeOf(this, ThrottlingException.prototype);
106
- }
107
- }
108
- exports.ThrottlingException = ThrottlingException;
109
- class ValidationException extends AIOpsServiceException_1.AIOpsServiceException {
110
- name = "ValidationException";
111
- $fault = "client";
112
- constructor(opts) {
113
- super({
114
- name: "ValidationException",
115
- $fault: "client",
116
- ...opts,
117
- });
118
- Object.setPrototypeOf(this, ValidationException.prototype);
119
- }
120
- }
121
- exports.ValidationException = ValidationException;
122
- const ListInvestigationGroupsInputFilterSensitiveLog = (obj) => ({
123
- ...obj,
124
- ...(obj.nextToken && { nextToken: smithy_client_1.SENSITIVE_STRING }),
125
- });
126
- exports.ListInvestigationGroupsInputFilterSensitiveLog = ListInvestigationGroupsInputFilterSensitiveLog;
127
- const ListInvestigationGroupsOutputFilterSensitiveLog = (obj) => ({
128
- ...obj,
129
- ...(obj.nextToken && { nextToken: smithy_client_1.SENSITIVE_STRING }),
130
- });
131
- exports.ListInvestigationGroupsOutputFilterSensitiveLog = ListInvestigationGroupsOutputFilterSensitiveLog;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.paginateListInvestigationGroups = void 0;
4
- const core_1 = require("@smithy/core");
5
- const AIOpsClient_1 = require("../AIOpsClient");
6
- const ListInvestigationGroupsCommand_1 = require("../commands/ListInvestigationGroupsCommand");
7
- exports.paginateListInvestigationGroups = (0, core_1.createPaginator)(AIOpsClient_1.AIOpsClient, ListInvestigationGroupsCommand_1.ListInvestigationGroupsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./Interfaces"), exports);
5
- tslib_1.__exportStar(require("./ListInvestigationGroupsPaginator"), exports);
@@ -1,474 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdateInvestigationGroupCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutInvestigationGroupPolicyCommand = exports.de_ListTagsForResourceCommand = exports.de_ListInvestigationGroupsCommand = exports.de_GetInvestigationGroupPolicyCommand = exports.de_GetInvestigationGroupCommand = exports.de_DeleteInvestigationGroupPolicyCommand = exports.de_DeleteInvestigationGroupCommand = exports.de_CreateInvestigationGroupCommand = exports.se_UpdateInvestigationGroupCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutInvestigationGroupPolicyCommand = exports.se_ListTagsForResourceCommand = exports.se_ListInvestigationGroupsCommand = exports.se_GetInvestigationGroupPolicyCommand = exports.se_GetInvestigationGroupCommand = exports.se_DeleteInvestigationGroupPolicyCommand = exports.se_DeleteInvestigationGroupCommand = exports.se_CreateInvestigationGroupCommand = void 0;
4
- const core_1 = require("@aws-sdk/core");
5
- const core_2 = require("@smithy/core");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- const AIOpsServiceException_1 = require("../models/AIOpsServiceException");
8
- const models_0_1 = require("../models/models_0");
9
- const se_CreateInvestigationGroupCommand = async (input, context) => {
10
- const b = (0, core_2.requestBuilder)(input, context);
11
- const headers = {
12
- "content-type": "application/json",
13
- };
14
- b.bp("/investigationGroups");
15
- let body;
16
- body = JSON.stringify((0, smithy_client_1.take)(input, {
17
- chatbotNotificationChannel: (_) => (0, smithy_client_1._json)(_),
18
- crossAccountConfigurations: (_) => (0, smithy_client_1._json)(_),
19
- encryptionConfiguration: (_) => (0, smithy_client_1._json)(_),
20
- isCloudTrailEventHistoryEnabled: [],
21
- name: [],
22
- retentionInDays: [],
23
- roleArn: [],
24
- tagKeyBoundaries: (_) => (0, smithy_client_1._json)(_),
25
- tags: (_) => (0, smithy_client_1._json)(_),
26
- }));
27
- b.m("POST").h(headers).b(body);
28
- return b.build();
29
- };
30
- exports.se_CreateInvestigationGroupCommand = se_CreateInvestigationGroupCommand;
31
- const se_DeleteInvestigationGroupCommand = async (input, context) => {
32
- const b = (0, core_2.requestBuilder)(input, context);
33
- const headers = {};
34
- b.bp("/investigationGroups/{identifier}");
35
- b.p("identifier", () => input.identifier, "{identifier}", false);
36
- let body;
37
- b.m("DELETE").h(headers).b(body);
38
- return b.build();
39
- };
40
- exports.se_DeleteInvestigationGroupCommand = se_DeleteInvestigationGroupCommand;
41
- const se_DeleteInvestigationGroupPolicyCommand = async (input, context) => {
42
- const b = (0, core_2.requestBuilder)(input, context);
43
- const headers = {};
44
- b.bp("/investigationGroups/{identifier}/policy");
45
- b.p("identifier", () => input.identifier, "{identifier}", false);
46
- let body;
47
- b.m("DELETE").h(headers).b(body);
48
- return b.build();
49
- };
50
- exports.se_DeleteInvestigationGroupPolicyCommand = se_DeleteInvestigationGroupPolicyCommand;
51
- const se_GetInvestigationGroupCommand = async (input, context) => {
52
- const b = (0, core_2.requestBuilder)(input, context);
53
- const headers = {};
54
- b.bp("/investigationGroups/{identifier}");
55
- b.p("identifier", () => input.identifier, "{identifier}", false);
56
- let body;
57
- b.m("GET").h(headers).b(body);
58
- return b.build();
59
- };
60
- exports.se_GetInvestigationGroupCommand = se_GetInvestigationGroupCommand;
61
- const se_GetInvestigationGroupPolicyCommand = async (input, context) => {
62
- const b = (0, core_2.requestBuilder)(input, context);
63
- const headers = {};
64
- b.bp("/investigationGroups/{identifier}/policy");
65
- b.p("identifier", () => input.identifier, "{identifier}", false);
66
- let body;
67
- b.m("GET").h(headers).b(body);
68
- return b.build();
69
- };
70
- exports.se_GetInvestigationGroupPolicyCommand = se_GetInvestigationGroupPolicyCommand;
71
- const se_ListInvestigationGroupsCommand = async (input, context) => {
72
- const b = (0, core_2.requestBuilder)(input, context);
73
- const headers = {};
74
- b.bp("/investigationGroups");
75
- const query = (0, smithy_client_1.map)({
76
- [_nT]: [, input[_nT]],
77
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
78
- });
79
- let body;
80
- b.m("GET").h(headers).q(query).b(body);
81
- return b.build();
82
- };
83
- exports.se_ListInvestigationGroupsCommand = se_ListInvestigationGroupsCommand;
84
- const se_ListTagsForResourceCommand = async (input, context) => {
85
- const b = (0, core_2.requestBuilder)(input, context);
86
- const headers = {};
87
- b.bp("/tags/{resourceArn}");
88
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
89
- let body;
90
- b.m("GET").h(headers).b(body);
91
- return b.build();
92
- };
93
- exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
94
- const se_PutInvestigationGroupPolicyCommand = async (input, context) => {
95
- const b = (0, core_2.requestBuilder)(input, context);
96
- const headers = {
97
- "content-type": "application/json",
98
- };
99
- b.bp("/investigationGroups/{identifier}/policy");
100
- b.p("identifier", () => input.identifier, "{identifier}", false);
101
- let body;
102
- body = JSON.stringify((0, smithy_client_1.take)(input, {
103
- policy: [],
104
- }));
105
- b.m("POST").h(headers).b(body);
106
- return b.build();
107
- };
108
- exports.se_PutInvestigationGroupPolicyCommand = se_PutInvestigationGroupPolicyCommand;
109
- const se_TagResourceCommand = async (input, context) => {
110
- const b = (0, core_2.requestBuilder)(input, context);
111
- const headers = {
112
- "content-type": "application/json",
113
- };
114
- b.bp("/tags/{resourceArn}");
115
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
116
- let body;
117
- body = JSON.stringify((0, smithy_client_1.take)(input, {
118
- tags: (_) => (0, smithy_client_1._json)(_),
119
- }));
120
- b.m("POST").h(headers).b(body);
121
- return b.build();
122
- };
123
- exports.se_TagResourceCommand = se_TagResourceCommand;
124
- const se_UntagResourceCommand = async (input, context) => {
125
- const b = (0, core_2.requestBuilder)(input, context);
126
- const headers = {};
127
- b.bp("/tags/{resourceArn}");
128
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
129
- const query = (0, smithy_client_1.map)({
130
- [_tK]: [(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
131
- });
132
- let body;
133
- b.m("DELETE").h(headers).q(query).b(body);
134
- return b.build();
135
- };
136
- exports.se_UntagResourceCommand = se_UntagResourceCommand;
137
- const se_UpdateInvestigationGroupCommand = async (input, context) => {
138
- const b = (0, core_2.requestBuilder)(input, context);
139
- const headers = {
140
- "content-type": "application/json",
141
- };
142
- b.bp("/investigationGroups/{identifier}");
143
- b.p("identifier", () => input.identifier, "{identifier}", false);
144
- let body;
145
- body = JSON.stringify((0, smithy_client_1.take)(input, {
146
- chatbotNotificationChannel: (_) => (0, smithy_client_1._json)(_),
147
- crossAccountConfigurations: (_) => (0, smithy_client_1._json)(_),
148
- encryptionConfiguration: (_) => (0, smithy_client_1._json)(_),
149
- isCloudTrailEventHistoryEnabled: [],
150
- roleArn: [],
151
- tagKeyBoundaries: (_) => (0, smithy_client_1._json)(_),
152
- }));
153
- b.m("PATCH").h(headers).b(body);
154
- return b.build();
155
- };
156
- exports.se_UpdateInvestigationGroupCommand = se_UpdateInvestigationGroupCommand;
157
- const de_CreateInvestigationGroupCommand = async (output, context) => {
158
- if (output.statusCode !== 201 && output.statusCode >= 300) {
159
- return de_CommandError(output, context);
160
- }
161
- const contents = (0, smithy_client_1.map)({
162
- $metadata: deserializeMetadata(output),
163
- });
164
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
165
- const doc = (0, smithy_client_1.take)(data, {
166
- arn: smithy_client_1.expectString,
167
- });
168
- Object.assign(contents, doc);
169
- return contents;
170
- };
171
- exports.de_CreateInvestigationGroupCommand = de_CreateInvestigationGroupCommand;
172
- const de_DeleteInvestigationGroupCommand = async (output, context) => {
173
- if (output.statusCode !== 200 && output.statusCode >= 300) {
174
- return de_CommandError(output, context);
175
- }
176
- const contents = (0, smithy_client_1.map)({
177
- $metadata: deserializeMetadata(output),
178
- });
179
- await (0, smithy_client_1.collectBody)(output.body, context);
180
- return contents;
181
- };
182
- exports.de_DeleteInvestigationGroupCommand = de_DeleteInvestigationGroupCommand;
183
- const de_DeleteInvestigationGroupPolicyCommand = async (output, context) => {
184
- if (output.statusCode !== 200 && output.statusCode >= 300) {
185
- return de_CommandError(output, context);
186
- }
187
- const contents = (0, smithy_client_1.map)({
188
- $metadata: deserializeMetadata(output),
189
- });
190
- await (0, smithy_client_1.collectBody)(output.body, context);
191
- return contents;
192
- };
193
- exports.de_DeleteInvestigationGroupPolicyCommand = de_DeleteInvestigationGroupPolicyCommand;
194
- const de_GetInvestigationGroupCommand = async (output, context) => {
195
- if (output.statusCode !== 200 && output.statusCode >= 300) {
196
- return de_CommandError(output, context);
197
- }
198
- const contents = (0, smithy_client_1.map)({
199
- $metadata: deserializeMetadata(output),
200
- });
201
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
202
- const doc = (0, smithy_client_1.take)(data, {
203
- arn: smithy_client_1.expectString,
204
- chatbotNotificationChannel: smithy_client_1._json,
205
- createdAt: smithy_client_1.expectLong,
206
- createdBy: smithy_client_1.expectString,
207
- crossAccountConfigurations: smithy_client_1._json,
208
- encryptionConfiguration: smithy_client_1._json,
209
- isCloudTrailEventHistoryEnabled: smithy_client_1.expectBoolean,
210
- lastModifiedAt: smithy_client_1.expectLong,
211
- lastModifiedBy: smithy_client_1.expectString,
212
- name: smithy_client_1.expectString,
213
- retentionInDays: smithy_client_1.expectLong,
214
- roleArn: smithy_client_1.expectString,
215
- tagKeyBoundaries: smithy_client_1._json,
216
- });
217
- Object.assign(contents, doc);
218
- return contents;
219
- };
220
- exports.de_GetInvestigationGroupCommand = de_GetInvestigationGroupCommand;
221
- const de_GetInvestigationGroupPolicyCommand = async (output, context) => {
222
- if (output.statusCode !== 200 && output.statusCode >= 300) {
223
- return de_CommandError(output, context);
224
- }
225
- const contents = (0, smithy_client_1.map)({
226
- $metadata: deserializeMetadata(output),
227
- });
228
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
229
- const doc = (0, smithy_client_1.take)(data, {
230
- investigationGroupArn: smithy_client_1.expectString,
231
- policy: smithy_client_1.expectString,
232
- });
233
- Object.assign(contents, doc);
234
- return contents;
235
- };
236
- exports.de_GetInvestigationGroupPolicyCommand = de_GetInvestigationGroupPolicyCommand;
237
- const de_ListInvestigationGroupsCommand = async (output, context) => {
238
- if (output.statusCode !== 200 && output.statusCode >= 300) {
239
- return de_CommandError(output, context);
240
- }
241
- const contents = (0, smithy_client_1.map)({
242
- $metadata: deserializeMetadata(output),
243
- });
244
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
245
- const doc = (0, smithy_client_1.take)(data, {
246
- investigationGroups: smithy_client_1._json,
247
- nextToken: smithy_client_1.expectString,
248
- });
249
- Object.assign(contents, doc);
250
- return contents;
251
- };
252
- exports.de_ListInvestigationGroupsCommand = de_ListInvestigationGroupsCommand;
253
- const de_ListTagsForResourceCommand = async (output, context) => {
254
- if (output.statusCode !== 200 && output.statusCode >= 300) {
255
- return de_CommandError(output, context);
256
- }
257
- const contents = (0, smithy_client_1.map)({
258
- $metadata: deserializeMetadata(output),
259
- });
260
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
261
- const doc = (0, smithy_client_1.take)(data, {
262
- tags: smithy_client_1._json,
263
- });
264
- Object.assign(contents, doc);
265
- return contents;
266
- };
267
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
268
- const de_PutInvestigationGroupPolicyCommand = async (output, context) => {
269
- if (output.statusCode !== 200 && output.statusCode >= 300) {
270
- return de_CommandError(output, context);
271
- }
272
- const contents = (0, smithy_client_1.map)({
273
- $metadata: deserializeMetadata(output),
274
- });
275
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
276
- const doc = (0, smithy_client_1.take)(data, {
277
- investigationGroupArn: smithy_client_1.expectString,
278
- });
279
- Object.assign(contents, doc);
280
- return contents;
281
- };
282
- exports.de_PutInvestigationGroupPolicyCommand = de_PutInvestigationGroupPolicyCommand;
283
- const de_TagResourceCommand = async (output, context) => {
284
- if (output.statusCode !== 200 && output.statusCode >= 300) {
285
- return de_CommandError(output, context);
286
- }
287
- const contents = (0, smithy_client_1.map)({
288
- $metadata: deserializeMetadata(output),
289
- });
290
- await (0, smithy_client_1.collectBody)(output.body, context);
291
- return contents;
292
- };
293
- exports.de_TagResourceCommand = de_TagResourceCommand;
294
- const de_UntagResourceCommand = async (output, context) => {
295
- if (output.statusCode !== 200 && output.statusCode >= 300) {
296
- return de_CommandError(output, context);
297
- }
298
- const contents = (0, smithy_client_1.map)({
299
- $metadata: deserializeMetadata(output),
300
- });
301
- await (0, smithy_client_1.collectBody)(output.body, context);
302
- return contents;
303
- };
304
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
305
- const de_UpdateInvestigationGroupCommand = async (output, context) => {
306
- if (output.statusCode !== 200 && output.statusCode >= 300) {
307
- return de_CommandError(output, context);
308
- }
309
- const contents = (0, smithy_client_1.map)({
310
- $metadata: deserializeMetadata(output),
311
- });
312
- await (0, smithy_client_1.collectBody)(output.body, context);
313
- return contents;
314
- };
315
- exports.de_UpdateInvestigationGroupCommand = de_UpdateInvestigationGroupCommand;
316
- const de_CommandError = async (output, context) => {
317
- const parsedOutput = {
318
- ...output,
319
- body: await (0, core_1.parseJsonErrorBody)(output.body, context),
320
- };
321
- const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
322
- switch (errorCode) {
323
- case "AccessDeniedException":
324
- case "com.amazonaws.aiops#AccessDeniedException":
325
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
326
- case "ConflictException":
327
- case "com.amazonaws.aiops#ConflictException":
328
- throw await de_ConflictExceptionRes(parsedOutput, context);
329
- case "ForbiddenException":
330
- case "com.amazonaws.aiops#ForbiddenException":
331
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
332
- case "InternalServerException":
333
- case "com.amazonaws.aiops#InternalServerException":
334
- throw await de_InternalServerExceptionRes(parsedOutput, context);
335
- case "ResourceNotFoundException":
336
- case "com.amazonaws.aiops#ResourceNotFoundException":
337
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
338
- case "ServiceQuotaExceededException":
339
- case "com.amazonaws.aiops#ServiceQuotaExceededException":
340
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
341
- case "ThrottlingException":
342
- case "com.amazonaws.aiops#ThrottlingException":
343
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
344
- case "ValidationException":
345
- case "com.amazonaws.aiops#ValidationException":
346
- throw await de_ValidationExceptionRes(parsedOutput, context);
347
- default:
348
- const parsedBody = parsedOutput.body;
349
- return throwDefaultError({
350
- output,
351
- parsedBody,
352
- errorCode,
353
- });
354
- }
355
- };
356
- const throwDefaultError = (0, smithy_client_1.withBaseException)(AIOpsServiceException_1.AIOpsServiceException);
357
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
358
- const contents = (0, smithy_client_1.map)({});
359
- const data = parsedOutput.body;
360
- const doc = (0, smithy_client_1.take)(data, {
361
- message: smithy_client_1.expectString,
362
- });
363
- Object.assign(contents, doc);
364
- const exception = new models_0_1.AccessDeniedException({
365
- $metadata: deserializeMetadata(parsedOutput),
366
- ...contents,
367
- });
368
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
369
- };
370
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
371
- const contents = (0, smithy_client_1.map)({});
372
- const data = parsedOutput.body;
373
- const doc = (0, smithy_client_1.take)(data, {
374
- message: smithy_client_1.expectString,
375
- });
376
- Object.assign(contents, doc);
377
- const exception = new models_0_1.ConflictException({
378
- $metadata: deserializeMetadata(parsedOutput),
379
- ...contents,
380
- });
381
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
382
- };
383
- const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
384
- const contents = (0, smithy_client_1.map)({});
385
- const data = parsedOutput.body;
386
- const doc = (0, smithy_client_1.take)(data, {
387
- message: smithy_client_1.expectString,
388
- });
389
- Object.assign(contents, doc);
390
- const exception = new models_0_1.ForbiddenException({
391
- $metadata: deserializeMetadata(parsedOutput),
392
- ...contents,
393
- });
394
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
395
- };
396
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
397
- const contents = (0, smithy_client_1.map)({});
398
- const data = parsedOutput.body;
399
- const doc = (0, smithy_client_1.take)(data, {
400
- message: smithy_client_1.expectString,
401
- });
402
- Object.assign(contents, doc);
403
- const exception = new models_0_1.InternalServerException({
404
- $metadata: deserializeMetadata(parsedOutput),
405
- ...contents,
406
- });
407
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
408
- };
409
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
410
- const contents = (0, smithy_client_1.map)({});
411
- const data = parsedOutput.body;
412
- const doc = (0, smithy_client_1.take)(data, {
413
- message: smithy_client_1.expectString,
414
- });
415
- Object.assign(contents, doc);
416
- const exception = new models_0_1.ResourceNotFoundException({
417
- $metadata: deserializeMetadata(parsedOutput),
418
- ...contents,
419
- });
420
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
421
- };
422
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
423
- const contents = (0, smithy_client_1.map)({});
424
- const data = parsedOutput.body;
425
- const doc = (0, smithy_client_1.take)(data, {
426
- message: smithy_client_1.expectString,
427
- quotaCode: smithy_client_1.expectString,
428
- resourceId: smithy_client_1.expectString,
429
- resourceType: smithy_client_1.expectString,
430
- serviceCode: smithy_client_1.expectString,
431
- });
432
- Object.assign(contents, doc);
433
- const exception = new models_0_1.ServiceQuotaExceededException({
434
- $metadata: deserializeMetadata(parsedOutput),
435
- ...contents,
436
- });
437
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
438
- };
439
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
440
- const contents = (0, smithy_client_1.map)({});
441
- const data = parsedOutput.body;
442
- const doc = (0, smithy_client_1.take)(data, {
443
- message: smithy_client_1.expectString,
444
- });
445
- Object.assign(contents, doc);
446
- const exception = new models_0_1.ThrottlingException({
447
- $metadata: deserializeMetadata(parsedOutput),
448
- ...contents,
449
- });
450
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
451
- };
452
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
453
- const contents = (0, smithy_client_1.map)({});
454
- const data = parsedOutput.body;
455
- const doc = (0, smithy_client_1.take)(data, {
456
- message: smithy_client_1.expectString,
457
- });
458
- Object.assign(contents, doc);
459
- const exception = new models_0_1.ValidationException({
460
- $metadata: deserializeMetadata(parsedOutput),
461
- ...contents,
462
- });
463
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
464
- };
465
- const deserializeMetadata = (output) => ({
466
- httpStatusCode: output.statusCode,
467
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
468
- extendedRequestId: output.headers["x-amz-id-2"],
469
- cfId: output.headers["x-amz-cf-id"],
470
- });
471
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
472
- const _mR = "maxResults";
473
- const _nT = "nextToken";
474
- const _tK = "tagKeys";
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveRuntimeExtensions = void 0;
4
- const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
5
- const protocol_http_1 = require("@smithy/protocol-http");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
8
- const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
9
- const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
10
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
11
- return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
12
- };
13
- exports.resolveRuntimeExtensions = resolveRuntimeExtensions;