@aws-sdk/client-aiops 3.893.0 → 3.894.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.
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,1077 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AIOpsServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./AIOpsClient"), exports);
6
- tslib_1.__exportStar(require("./AIOps"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- var AIOpsServiceException_1 = require("./models/AIOpsServiceException");
11
- Object.defineProperty(exports, "AIOpsServiceException", { enumerable: true, get: function () { return AIOpsServiceException_1.AIOpsServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ AIOps: () => AIOps,
25
+ AIOpsClient: () => AIOpsClient,
26
+ AIOpsServiceException: () => AIOpsServiceException,
27
+ AccessDeniedException: () => AccessDeniedException,
28
+ ConflictException: () => ConflictException,
29
+ CreateInvestigationGroupCommand: () => CreateInvestigationGroupCommand,
30
+ DeleteInvestigationGroupCommand: () => DeleteInvestigationGroupCommand,
31
+ DeleteInvestigationGroupPolicyCommand: () => DeleteInvestigationGroupPolicyCommand,
32
+ EncryptionConfigurationType: () => EncryptionConfigurationType,
33
+ ForbiddenException: () => ForbiddenException,
34
+ GetInvestigationGroupCommand: () => GetInvestigationGroupCommand,
35
+ GetInvestigationGroupPolicyCommand: () => GetInvestigationGroupPolicyCommand,
36
+ InternalServerException: () => InternalServerException,
37
+ ListInvestigationGroupsCommand: () => ListInvestigationGroupsCommand,
38
+ ListInvestigationGroupsInputFilterSensitiveLog: () => ListInvestigationGroupsInputFilterSensitiveLog,
39
+ ListInvestigationGroupsOutputFilterSensitiveLog: () => ListInvestigationGroupsOutputFilterSensitiveLog,
40
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
41
+ PutInvestigationGroupPolicyCommand: () => PutInvestigationGroupPolicyCommand,
42
+ ResourceNotFoundException: () => ResourceNotFoundException,
43
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
44
+ TagResourceCommand: () => TagResourceCommand,
45
+ ThrottlingException: () => ThrottlingException,
46
+ UntagResourceCommand: () => UntagResourceCommand,
47
+ UpdateInvestigationGroupCommand: () => UpdateInvestigationGroupCommand,
48
+ ValidationException: () => ValidationException,
49
+ __Client: () => import_smithy_client.Client,
50
+ paginateListInvestigationGroups: () => paginateListInvestigationGroups
51
+ });
52
+ module.exports = __toCommonJS(index_exports);
53
+
54
+ // src/AIOpsClient.ts
55
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
56
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
57
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
58
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
59
+ var import_config_resolver = require("@smithy/config-resolver");
60
+ var import_core = require("@smithy/core");
61
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
62
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
63
+ var import_middleware_retry = require("@smithy/middleware-retry");
64
+
65
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
66
+
67
+ // src/endpoint/EndpointParameters.ts
68
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
69
+ return Object.assign(options, {
70
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
71
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
72
+ defaultSigningName: "aiops"
73
+ });
74
+ }, "resolveClientEndpointParameters");
75
+ var commonParams = {
76
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
77
+ Endpoint: { type: "builtInParams", name: "endpoint" },
78
+ Region: { type: "builtInParams", name: "region" },
79
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
80
+ };
81
+
82
+ // src/AIOpsClient.ts
83
+ var import_runtimeConfig = require("././runtimeConfig");
84
+
85
+ // src/runtimeExtensions.ts
86
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
87
+ var import_protocol_http = require("@smithy/protocol-http");
88
+ var import_smithy_client = require("@smithy/smithy-client");
89
+
90
+ // src/auth/httpAuthExtensionConfiguration.ts
91
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
92
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
93
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
94
+ let _credentials = runtimeConfig.credentials;
95
+ return {
96
+ setHttpAuthScheme(httpAuthScheme) {
97
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
98
+ if (index === -1) {
99
+ _httpAuthSchemes.push(httpAuthScheme);
100
+ } else {
101
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
102
+ }
103
+ },
104
+ httpAuthSchemes() {
105
+ return _httpAuthSchemes;
106
+ },
107
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
108
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
109
+ },
110
+ httpAuthSchemeProvider() {
111
+ return _httpAuthSchemeProvider;
112
+ },
113
+ setCredentials(credentials) {
114
+ _credentials = credentials;
115
+ },
116
+ credentials() {
117
+ return _credentials;
118
+ }
119
+ };
120
+ }, "getHttpAuthExtensionConfiguration");
121
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
122
+ return {
123
+ httpAuthSchemes: config.httpAuthSchemes(),
124
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
125
+ credentials: config.credentials()
126
+ };
127
+ }, "resolveHttpAuthRuntimeConfig");
128
+
129
+ // src/runtimeExtensions.ts
130
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
131
+ const extensionConfiguration = Object.assign(
132
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
133
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
134
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
135
+ getHttpAuthExtensionConfiguration(runtimeConfig)
136
+ );
137
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
138
+ return Object.assign(
139
+ runtimeConfig,
140
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
141
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
142
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
143
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
144
+ );
145
+ }, "resolveRuntimeExtensions");
146
+
147
+ // src/AIOpsClient.ts
148
+ var AIOpsClient = class extends import_smithy_client.Client {
149
+ static {
150
+ __name(this, "AIOpsClient");
151
+ }
152
+ /**
153
+ * The resolved configuration of AIOpsClient class. This is resolved and normalized from the {@link AIOpsClientConfig | constructor configuration interface}.
154
+ */
155
+ config;
156
+ constructor(...[configuration]) {
157
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
158
+ super(_config_0);
159
+ this.initConfig = _config_0;
160
+ const _config_1 = resolveClientEndpointParameters(_config_0);
161
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
162
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
163
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
164
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
165
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
166
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
167
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
168
+ this.config = _config_8;
169
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
170
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
171
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
172
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
173
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
174
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
175
+ this.middlewareStack.use(
176
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
177
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultAIOpsHttpAuthSchemeParametersProvider,
178
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
179
+ "aws.auth#sigv4": config.credentials
180
+ }), "identityProviderConfigProvider")
181
+ })
182
+ );
183
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
184
+ }
185
+ /**
186
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
187
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
188
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
189
+ */
190
+ destroy() {
191
+ super.destroy();
192
+ }
193
+ };
194
+
195
+ // src/AIOps.ts
196
+
197
+
198
+ // src/commands/CreateInvestigationGroupCommand.ts
199
+
200
+ var import_middleware_serde = require("@smithy/middleware-serde");
201
+
202
+
203
+ // src/protocols/Aws_restJson1.ts
204
+ var import_core2 = require("@aws-sdk/core");
205
+
206
+
207
+
208
+ // src/models/AIOpsServiceException.ts
209
+
210
+ var AIOpsServiceException = class _AIOpsServiceException extends import_smithy_client.ServiceException {
211
+ static {
212
+ __name(this, "AIOpsServiceException");
213
+ }
214
+ /**
215
+ * @internal
216
+ */
217
+ constructor(options) {
218
+ super(options);
219
+ Object.setPrototypeOf(this, _AIOpsServiceException.prototype);
220
+ }
221
+ };
222
+
223
+ // src/models/models_0.ts
224
+
225
+ var AccessDeniedException = class _AccessDeniedException extends AIOpsServiceException {
226
+ static {
227
+ __name(this, "AccessDeniedException");
228
+ }
229
+ name = "AccessDeniedException";
230
+ $fault = "client";
231
+ /**
232
+ * @internal
233
+ */
234
+ constructor(opts) {
235
+ super({
236
+ name: "AccessDeniedException",
237
+ $fault: "client",
238
+ ...opts
239
+ });
240
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
241
+ }
242
+ };
243
+ var ConflictException = class _ConflictException extends AIOpsServiceException {
244
+ static {
245
+ __name(this, "ConflictException");
246
+ }
247
+ name = "ConflictException";
248
+ $fault = "client";
249
+ /**
250
+ * @internal
251
+ */
252
+ constructor(opts) {
253
+ super({
254
+ name: "ConflictException",
255
+ $fault: "client",
256
+ ...opts
257
+ });
258
+ Object.setPrototypeOf(this, _ConflictException.prototype);
259
+ }
260
+ };
261
+ var ForbiddenException = class _ForbiddenException extends AIOpsServiceException {
262
+ static {
263
+ __name(this, "ForbiddenException");
264
+ }
265
+ name = "ForbiddenException";
266
+ $fault = "client";
267
+ /**
268
+ * @internal
269
+ */
270
+ constructor(opts) {
271
+ super({
272
+ name: "ForbiddenException",
273
+ $fault: "client",
274
+ ...opts
275
+ });
276
+ Object.setPrototypeOf(this, _ForbiddenException.prototype);
277
+ }
278
+ };
279
+ var InternalServerException = class _InternalServerException extends AIOpsServiceException {
280
+ static {
281
+ __name(this, "InternalServerException");
282
+ }
283
+ name = "InternalServerException";
284
+ $fault = "server";
285
+ /**
286
+ * @internal
287
+ */
288
+ constructor(opts) {
289
+ super({
290
+ name: "InternalServerException",
291
+ $fault: "server",
292
+ ...opts
293
+ });
294
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
295
+ }
296
+ };
297
+ var EncryptionConfigurationType = {
298
+ AWS_OWNED_KEY: "AWS_OWNED_KEY",
299
+ CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY"
300
+ };
301
+ var ResourceNotFoundException = class _ResourceNotFoundException extends AIOpsServiceException {
302
+ static {
303
+ __name(this, "ResourceNotFoundException");
304
+ }
305
+ name = "ResourceNotFoundException";
306
+ $fault = "client";
307
+ /**
308
+ * @internal
309
+ */
310
+ constructor(opts) {
311
+ super({
312
+ name: "ResourceNotFoundException",
313
+ $fault: "client",
314
+ ...opts
315
+ });
316
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
317
+ }
318
+ };
319
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends AIOpsServiceException {
320
+ static {
321
+ __name(this, "ServiceQuotaExceededException");
322
+ }
323
+ name = "ServiceQuotaExceededException";
324
+ $fault = "client";
325
+ /**
326
+ * <p>The resource that caused the quota exception.</p>
327
+ * @public
328
+ */
329
+ resourceId;
330
+ /**
331
+ * <p>The type of resource that caused the quota exception.</p>
332
+ * @public
333
+ */
334
+ resourceType;
335
+ /**
336
+ * <p>This name of the service associated with the error.</p>
337
+ * @public
338
+ */
339
+ serviceCode;
340
+ /**
341
+ * <p>This quota that was exceeded.</p>
342
+ * @public
343
+ */
344
+ quotaCode;
345
+ /**
346
+ * @internal
347
+ */
348
+ constructor(opts) {
349
+ super({
350
+ name: "ServiceQuotaExceededException",
351
+ $fault: "client",
352
+ ...opts
353
+ });
354
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
355
+ this.resourceId = opts.resourceId;
356
+ this.resourceType = opts.resourceType;
357
+ this.serviceCode = opts.serviceCode;
358
+ this.quotaCode = opts.quotaCode;
359
+ }
360
+ };
361
+ var ThrottlingException = class _ThrottlingException extends AIOpsServiceException {
362
+ static {
363
+ __name(this, "ThrottlingException");
364
+ }
365
+ name = "ThrottlingException";
366
+ $fault = "client";
367
+ /**
368
+ * @internal
369
+ */
370
+ constructor(opts) {
371
+ super({
372
+ name: "ThrottlingException",
373
+ $fault: "client",
374
+ ...opts
375
+ });
376
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
377
+ }
378
+ };
379
+ var ValidationException = class _ValidationException extends AIOpsServiceException {
380
+ static {
381
+ __name(this, "ValidationException");
382
+ }
383
+ name = "ValidationException";
384
+ $fault = "client";
385
+ /**
386
+ * @internal
387
+ */
388
+ constructor(opts) {
389
+ super({
390
+ name: "ValidationException",
391
+ $fault: "client",
392
+ ...opts
393
+ });
394
+ Object.setPrototypeOf(this, _ValidationException.prototype);
395
+ }
396
+ };
397
+ var ListInvestigationGroupsInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
398
+ ...obj,
399
+ ...obj.nextToken && { nextToken: import_smithy_client.SENSITIVE_STRING }
400
+ }), "ListInvestigationGroupsInputFilterSensitiveLog");
401
+ var ListInvestigationGroupsOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
402
+ ...obj,
403
+ ...obj.nextToken && { nextToken: import_smithy_client.SENSITIVE_STRING }
404
+ }), "ListInvestigationGroupsOutputFilterSensitiveLog");
405
+
406
+ // src/protocols/Aws_restJson1.ts
407
+ var se_CreateInvestigationGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
408
+ const b = (0, import_core.requestBuilder)(input, context);
409
+ const headers = {
410
+ "content-type": "application/json"
411
+ };
412
+ b.bp("/investigationGroups");
413
+ let body;
414
+ body = JSON.stringify(
415
+ (0, import_smithy_client.take)(input, {
416
+ chatbotNotificationChannel: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "chatbotNotificationChannel"),
417
+ crossAccountConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "crossAccountConfigurations"),
418
+ encryptionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "encryptionConfiguration"),
419
+ isCloudTrailEventHistoryEnabled: [],
420
+ name: [],
421
+ retentionInDays: [],
422
+ roleArn: [],
423
+ tagKeyBoundaries: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tagKeyBoundaries"),
424
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
425
+ })
426
+ );
427
+ b.m("POST").h(headers).b(body);
428
+ return b.build();
429
+ }, "se_CreateInvestigationGroupCommand");
430
+ var se_DeleteInvestigationGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
431
+ const b = (0, import_core.requestBuilder)(input, context);
432
+ const headers = {};
433
+ b.bp("/investigationGroups/{identifier}");
434
+ b.p("identifier", () => input.identifier, "{identifier}", false);
435
+ let body;
436
+ b.m("DELETE").h(headers).b(body);
437
+ return b.build();
438
+ }, "se_DeleteInvestigationGroupCommand");
439
+ var se_DeleteInvestigationGroupPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
440
+ const b = (0, import_core.requestBuilder)(input, context);
441
+ const headers = {};
442
+ b.bp("/investigationGroups/{identifier}/policy");
443
+ b.p("identifier", () => input.identifier, "{identifier}", false);
444
+ let body;
445
+ b.m("DELETE").h(headers).b(body);
446
+ return b.build();
447
+ }, "se_DeleteInvestigationGroupPolicyCommand");
448
+ var se_GetInvestigationGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
449
+ const b = (0, import_core.requestBuilder)(input, context);
450
+ const headers = {};
451
+ b.bp("/investigationGroups/{identifier}");
452
+ b.p("identifier", () => input.identifier, "{identifier}", false);
453
+ let body;
454
+ b.m("GET").h(headers).b(body);
455
+ return b.build();
456
+ }, "se_GetInvestigationGroupCommand");
457
+ var se_GetInvestigationGroupPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
458
+ const b = (0, import_core.requestBuilder)(input, context);
459
+ const headers = {};
460
+ b.bp("/investigationGroups/{identifier}/policy");
461
+ b.p("identifier", () => input.identifier, "{identifier}", false);
462
+ let body;
463
+ b.m("GET").h(headers).b(body);
464
+ return b.build();
465
+ }, "se_GetInvestigationGroupPolicyCommand");
466
+ var se_ListInvestigationGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
467
+ const b = (0, import_core.requestBuilder)(input, context);
468
+ const headers = {};
469
+ b.bp("/investigationGroups");
470
+ const query = (0, import_smithy_client.map)({
471
+ [_nT]: [, input[_nT]],
472
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
473
+ });
474
+ let body;
475
+ b.m("GET").h(headers).q(query).b(body);
476
+ return b.build();
477
+ }, "se_ListInvestigationGroupsCommand");
478
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
479
+ const b = (0, import_core.requestBuilder)(input, context);
480
+ const headers = {};
481
+ b.bp("/tags/{resourceArn}");
482
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
483
+ let body;
484
+ b.m("GET").h(headers).b(body);
485
+ return b.build();
486
+ }, "se_ListTagsForResourceCommand");
487
+ var se_PutInvestigationGroupPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
488
+ const b = (0, import_core.requestBuilder)(input, context);
489
+ const headers = {
490
+ "content-type": "application/json"
491
+ };
492
+ b.bp("/investigationGroups/{identifier}/policy");
493
+ b.p("identifier", () => input.identifier, "{identifier}", false);
494
+ let body;
495
+ body = JSON.stringify(
496
+ (0, import_smithy_client.take)(input, {
497
+ policy: []
498
+ })
499
+ );
500
+ b.m("POST").h(headers).b(body);
501
+ return b.build();
502
+ }, "se_PutInvestigationGroupPolicyCommand");
503
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
504
+ const b = (0, import_core.requestBuilder)(input, context);
505
+ const headers = {
506
+ "content-type": "application/json"
507
+ };
508
+ b.bp("/tags/{resourceArn}");
509
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
510
+ let body;
511
+ body = JSON.stringify(
512
+ (0, import_smithy_client.take)(input, {
513
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
514
+ })
515
+ );
516
+ b.m("POST").h(headers).b(body);
517
+ return b.build();
518
+ }, "se_TagResourceCommand");
519
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
520
+ const b = (0, import_core.requestBuilder)(input, context);
521
+ const headers = {};
522
+ b.bp("/tags/{resourceArn}");
523
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
524
+ const query = (0, import_smithy_client.map)({
525
+ [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
526
+ });
527
+ let body;
528
+ b.m("DELETE").h(headers).q(query).b(body);
529
+ return b.build();
530
+ }, "se_UntagResourceCommand");
531
+ var se_UpdateInvestigationGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
532
+ const b = (0, import_core.requestBuilder)(input, context);
533
+ const headers = {
534
+ "content-type": "application/json"
535
+ };
536
+ b.bp("/investigationGroups/{identifier}");
537
+ b.p("identifier", () => input.identifier, "{identifier}", false);
538
+ let body;
539
+ body = JSON.stringify(
540
+ (0, import_smithy_client.take)(input, {
541
+ chatbotNotificationChannel: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "chatbotNotificationChannel"),
542
+ crossAccountConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "crossAccountConfigurations"),
543
+ encryptionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "encryptionConfiguration"),
544
+ isCloudTrailEventHistoryEnabled: [],
545
+ roleArn: [],
546
+ tagKeyBoundaries: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tagKeyBoundaries")
547
+ })
548
+ );
549
+ b.m("PATCH").h(headers).b(body);
550
+ return b.build();
551
+ }, "se_UpdateInvestigationGroupCommand");
552
+ var de_CreateInvestigationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
553
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
554
+ return de_CommandError(output, context);
555
+ }
556
+ const contents = (0, import_smithy_client.map)({
557
+ $metadata: deserializeMetadata(output)
558
+ });
559
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
560
+ const doc = (0, import_smithy_client.take)(data, {
561
+ arn: import_smithy_client.expectString
562
+ });
563
+ Object.assign(contents, doc);
564
+ return contents;
565
+ }, "de_CreateInvestigationGroupCommand");
566
+ var de_DeleteInvestigationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
567
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
568
+ return de_CommandError(output, context);
569
+ }
570
+ const contents = (0, import_smithy_client.map)({
571
+ $metadata: deserializeMetadata(output)
572
+ });
573
+ await (0, import_smithy_client.collectBody)(output.body, context);
574
+ return contents;
575
+ }, "de_DeleteInvestigationGroupCommand");
576
+ var de_DeleteInvestigationGroupPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
577
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
578
+ return de_CommandError(output, context);
579
+ }
580
+ const contents = (0, import_smithy_client.map)({
581
+ $metadata: deserializeMetadata(output)
582
+ });
583
+ await (0, import_smithy_client.collectBody)(output.body, context);
584
+ return contents;
585
+ }, "de_DeleteInvestigationGroupPolicyCommand");
586
+ var de_GetInvestigationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
587
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
588
+ return de_CommandError(output, context);
589
+ }
590
+ const contents = (0, import_smithy_client.map)({
591
+ $metadata: deserializeMetadata(output)
592
+ });
593
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
594
+ const doc = (0, import_smithy_client.take)(data, {
595
+ arn: import_smithy_client.expectString,
596
+ chatbotNotificationChannel: import_smithy_client._json,
597
+ createdAt: import_smithy_client.expectLong,
598
+ createdBy: import_smithy_client.expectString,
599
+ crossAccountConfigurations: import_smithy_client._json,
600
+ encryptionConfiguration: import_smithy_client._json,
601
+ isCloudTrailEventHistoryEnabled: import_smithy_client.expectBoolean,
602
+ lastModifiedAt: import_smithy_client.expectLong,
603
+ lastModifiedBy: import_smithy_client.expectString,
604
+ name: import_smithy_client.expectString,
605
+ retentionInDays: import_smithy_client.expectLong,
606
+ roleArn: import_smithy_client.expectString,
607
+ tagKeyBoundaries: import_smithy_client._json
608
+ });
609
+ Object.assign(contents, doc);
610
+ return contents;
611
+ }, "de_GetInvestigationGroupCommand");
612
+ var de_GetInvestigationGroupPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
613
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
614
+ return de_CommandError(output, context);
615
+ }
616
+ const contents = (0, import_smithy_client.map)({
617
+ $metadata: deserializeMetadata(output)
618
+ });
619
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
620
+ const doc = (0, import_smithy_client.take)(data, {
621
+ investigationGroupArn: import_smithy_client.expectString,
622
+ policy: import_smithy_client.expectString
623
+ });
624
+ Object.assign(contents, doc);
625
+ return contents;
626
+ }, "de_GetInvestigationGroupPolicyCommand");
627
+ var de_ListInvestigationGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
628
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
629
+ return de_CommandError(output, context);
630
+ }
631
+ const contents = (0, import_smithy_client.map)({
632
+ $metadata: deserializeMetadata(output)
633
+ });
634
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
635
+ const doc = (0, import_smithy_client.take)(data, {
636
+ investigationGroups: import_smithy_client._json,
637
+ nextToken: import_smithy_client.expectString
638
+ });
639
+ Object.assign(contents, doc);
640
+ return contents;
641
+ }, "de_ListInvestigationGroupsCommand");
642
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
643
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
644
+ return de_CommandError(output, context);
645
+ }
646
+ const contents = (0, import_smithy_client.map)({
647
+ $metadata: deserializeMetadata(output)
648
+ });
649
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
650
+ const doc = (0, import_smithy_client.take)(data, {
651
+ tags: import_smithy_client._json
652
+ });
653
+ Object.assign(contents, doc);
654
+ return contents;
655
+ }, "de_ListTagsForResourceCommand");
656
+ var de_PutInvestigationGroupPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
657
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
658
+ return de_CommandError(output, context);
659
+ }
660
+ const contents = (0, import_smithy_client.map)({
661
+ $metadata: deserializeMetadata(output)
662
+ });
663
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
664
+ const doc = (0, import_smithy_client.take)(data, {
665
+ investigationGroupArn: import_smithy_client.expectString
666
+ });
667
+ Object.assign(contents, doc);
668
+ return contents;
669
+ }, "de_PutInvestigationGroupPolicyCommand");
670
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
671
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
672
+ return de_CommandError(output, context);
673
+ }
674
+ const contents = (0, import_smithy_client.map)({
675
+ $metadata: deserializeMetadata(output)
676
+ });
677
+ await (0, import_smithy_client.collectBody)(output.body, context);
678
+ return contents;
679
+ }, "de_TagResourceCommand");
680
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
681
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
682
+ return de_CommandError(output, context);
683
+ }
684
+ const contents = (0, import_smithy_client.map)({
685
+ $metadata: deserializeMetadata(output)
686
+ });
687
+ await (0, import_smithy_client.collectBody)(output.body, context);
688
+ return contents;
689
+ }, "de_UntagResourceCommand");
690
+ var de_UpdateInvestigationGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
691
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
692
+ return de_CommandError(output, context);
693
+ }
694
+ const contents = (0, import_smithy_client.map)({
695
+ $metadata: deserializeMetadata(output)
696
+ });
697
+ await (0, import_smithy_client.collectBody)(output.body, context);
698
+ return contents;
699
+ }, "de_UpdateInvestigationGroupCommand");
700
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
701
+ const parsedOutput = {
702
+ ...output,
703
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
704
+ };
705
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
706
+ switch (errorCode) {
707
+ case "AccessDeniedException":
708
+ case "com.amazonaws.aiops#AccessDeniedException":
709
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
710
+ case "ConflictException":
711
+ case "com.amazonaws.aiops#ConflictException":
712
+ throw await de_ConflictExceptionRes(parsedOutput, context);
713
+ case "ForbiddenException":
714
+ case "com.amazonaws.aiops#ForbiddenException":
715
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
716
+ case "InternalServerException":
717
+ case "com.amazonaws.aiops#InternalServerException":
718
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
719
+ case "ResourceNotFoundException":
720
+ case "com.amazonaws.aiops#ResourceNotFoundException":
721
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
722
+ case "ServiceQuotaExceededException":
723
+ case "com.amazonaws.aiops#ServiceQuotaExceededException":
724
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
725
+ case "ThrottlingException":
726
+ case "com.amazonaws.aiops#ThrottlingException":
727
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
728
+ case "ValidationException":
729
+ case "com.amazonaws.aiops#ValidationException":
730
+ throw await de_ValidationExceptionRes(parsedOutput, context);
731
+ default:
732
+ const parsedBody = parsedOutput.body;
733
+ return throwDefaultError({
734
+ output,
735
+ parsedBody,
736
+ errorCode
737
+ });
738
+ }
739
+ }, "de_CommandError");
740
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(AIOpsServiceException);
741
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
742
+ const contents = (0, import_smithy_client.map)({});
743
+ const data = parsedOutput.body;
744
+ const doc = (0, import_smithy_client.take)(data, {
745
+ message: import_smithy_client.expectString
746
+ });
747
+ Object.assign(contents, doc);
748
+ const exception = new AccessDeniedException({
749
+ $metadata: deserializeMetadata(parsedOutput),
750
+ ...contents
751
+ });
752
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
753
+ }, "de_AccessDeniedExceptionRes");
754
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
755
+ const contents = (0, import_smithy_client.map)({});
756
+ const data = parsedOutput.body;
757
+ const doc = (0, import_smithy_client.take)(data, {
758
+ message: import_smithy_client.expectString
759
+ });
760
+ Object.assign(contents, doc);
761
+ const exception = new ConflictException({
762
+ $metadata: deserializeMetadata(parsedOutput),
763
+ ...contents
764
+ });
765
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
766
+ }, "de_ConflictExceptionRes");
767
+ var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
768
+ const contents = (0, import_smithy_client.map)({});
769
+ const data = parsedOutput.body;
770
+ const doc = (0, import_smithy_client.take)(data, {
771
+ message: import_smithy_client.expectString
772
+ });
773
+ Object.assign(contents, doc);
774
+ const exception = new ForbiddenException({
775
+ $metadata: deserializeMetadata(parsedOutput),
776
+ ...contents
777
+ });
778
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
779
+ }, "de_ForbiddenExceptionRes");
780
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
781
+ const contents = (0, import_smithy_client.map)({});
782
+ const data = parsedOutput.body;
783
+ const doc = (0, import_smithy_client.take)(data, {
784
+ message: import_smithy_client.expectString
785
+ });
786
+ Object.assign(contents, doc);
787
+ const exception = new InternalServerException({
788
+ $metadata: deserializeMetadata(parsedOutput),
789
+ ...contents
790
+ });
791
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
792
+ }, "de_InternalServerExceptionRes");
793
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
794
+ const contents = (0, import_smithy_client.map)({});
795
+ const data = parsedOutput.body;
796
+ const doc = (0, import_smithy_client.take)(data, {
797
+ message: import_smithy_client.expectString
798
+ });
799
+ Object.assign(contents, doc);
800
+ const exception = new ResourceNotFoundException({
801
+ $metadata: deserializeMetadata(parsedOutput),
802
+ ...contents
803
+ });
804
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
805
+ }, "de_ResourceNotFoundExceptionRes");
806
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
807
+ const contents = (0, import_smithy_client.map)({});
808
+ const data = parsedOutput.body;
809
+ const doc = (0, import_smithy_client.take)(data, {
810
+ message: import_smithy_client.expectString,
811
+ quotaCode: import_smithy_client.expectString,
812
+ resourceId: import_smithy_client.expectString,
813
+ resourceType: import_smithy_client.expectString,
814
+ serviceCode: import_smithy_client.expectString
815
+ });
816
+ Object.assign(contents, doc);
817
+ const exception = new ServiceQuotaExceededException({
818
+ $metadata: deserializeMetadata(parsedOutput),
819
+ ...contents
820
+ });
821
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
822
+ }, "de_ServiceQuotaExceededExceptionRes");
823
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
824
+ const contents = (0, import_smithy_client.map)({});
825
+ const data = parsedOutput.body;
826
+ const doc = (0, import_smithy_client.take)(data, {
827
+ message: import_smithy_client.expectString
828
+ });
829
+ Object.assign(contents, doc);
830
+ const exception = new ThrottlingException({
831
+ $metadata: deserializeMetadata(parsedOutput),
832
+ ...contents
833
+ });
834
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
835
+ }, "de_ThrottlingExceptionRes");
836
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
837
+ const contents = (0, import_smithy_client.map)({});
838
+ const data = parsedOutput.body;
839
+ const doc = (0, import_smithy_client.take)(data, {
840
+ message: import_smithy_client.expectString
841
+ });
842
+ Object.assign(contents, doc);
843
+ const exception = new ValidationException({
844
+ $metadata: deserializeMetadata(parsedOutput),
845
+ ...contents
846
+ });
847
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
848
+ }, "de_ValidationExceptionRes");
849
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
850
+ httpStatusCode: output.statusCode,
851
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
852
+ extendedRequestId: output.headers["x-amz-id-2"],
853
+ cfId: output.headers["x-amz-cf-id"]
854
+ }), "deserializeMetadata");
855
+ var _mR = "maxResults";
856
+ var _nT = "nextToken";
857
+ var _tK = "tagKeys";
858
+
859
+ // src/commands/CreateInvestigationGroupCommand.ts
860
+ var CreateInvestigationGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
861
+ return [
862
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
863
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
864
+ ];
865
+ }).s("AIOps", "CreateInvestigationGroup", {}).n("AIOpsClient", "CreateInvestigationGroupCommand").f(void 0, void 0).ser(se_CreateInvestigationGroupCommand).de(de_CreateInvestigationGroupCommand).build() {
866
+ static {
867
+ __name(this, "CreateInvestigationGroupCommand");
868
+ }
869
+ };
870
+
871
+ // src/commands/DeleteInvestigationGroupCommand.ts
872
+
873
+
874
+
875
+ var DeleteInvestigationGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
876
+ return [
877
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
878
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
879
+ ];
880
+ }).s("AIOps", "DeleteInvestigationGroup", {}).n("AIOpsClient", "DeleteInvestigationGroupCommand").f(void 0, void 0).ser(se_DeleteInvestigationGroupCommand).de(de_DeleteInvestigationGroupCommand).build() {
881
+ static {
882
+ __name(this, "DeleteInvestigationGroupCommand");
883
+ }
884
+ };
885
+
886
+ // src/commands/DeleteInvestigationGroupPolicyCommand.ts
887
+
888
+
889
+
890
+ var DeleteInvestigationGroupPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
891
+ return [
892
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
893
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
894
+ ];
895
+ }).s("AIOps", "DeleteInvestigationGroupPolicy", {}).n("AIOpsClient", "DeleteInvestigationGroupPolicyCommand").f(void 0, void 0).ser(se_DeleteInvestigationGroupPolicyCommand).de(de_DeleteInvestigationGroupPolicyCommand).build() {
896
+ static {
897
+ __name(this, "DeleteInvestigationGroupPolicyCommand");
898
+ }
899
+ };
900
+
901
+ // src/commands/GetInvestigationGroupCommand.ts
902
+
903
+
904
+
905
+ var GetInvestigationGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
906
+ return [
907
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
908
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
909
+ ];
910
+ }).s("AIOps", "GetInvestigationGroup", {}).n("AIOpsClient", "GetInvestigationGroupCommand").f(void 0, void 0).ser(se_GetInvestigationGroupCommand).de(de_GetInvestigationGroupCommand).build() {
911
+ static {
912
+ __name(this, "GetInvestigationGroupCommand");
913
+ }
914
+ };
915
+
916
+ // src/commands/GetInvestigationGroupPolicyCommand.ts
917
+
918
+
919
+
920
+ var GetInvestigationGroupPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
921
+ return [
922
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
923
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
924
+ ];
925
+ }).s("AIOps", "GetInvestigationGroupPolicy", {}).n("AIOpsClient", "GetInvestigationGroupPolicyCommand").f(void 0, void 0).ser(se_GetInvestigationGroupPolicyCommand).de(de_GetInvestigationGroupPolicyCommand).build() {
926
+ static {
927
+ __name(this, "GetInvestigationGroupPolicyCommand");
928
+ }
929
+ };
930
+
931
+ // src/commands/ListInvestigationGroupsCommand.ts
932
+
933
+
934
+
935
+ var ListInvestigationGroupsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
936
+ return [
937
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
938
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
939
+ ];
940
+ }).s("AIOps", "ListInvestigationGroups", {}).n("AIOpsClient", "ListInvestigationGroupsCommand").f(ListInvestigationGroupsInputFilterSensitiveLog, ListInvestigationGroupsOutputFilterSensitiveLog).ser(se_ListInvestigationGroupsCommand).de(de_ListInvestigationGroupsCommand).build() {
941
+ static {
942
+ __name(this, "ListInvestigationGroupsCommand");
943
+ }
944
+ };
945
+
946
+ // src/commands/ListTagsForResourceCommand.ts
947
+
948
+
949
+
950
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
951
+ return [
952
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
953
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
954
+ ];
955
+ }).s("AIOps", "ListTagsForResource", {}).n("AIOpsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
956
+ static {
957
+ __name(this, "ListTagsForResourceCommand");
958
+ }
959
+ };
960
+
961
+ // src/commands/PutInvestigationGroupPolicyCommand.ts
962
+
963
+
964
+
965
+ var PutInvestigationGroupPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
966
+ return [
967
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
968
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
969
+ ];
970
+ }).s("AIOps", "PutInvestigationGroupPolicy", {}).n("AIOpsClient", "PutInvestigationGroupPolicyCommand").f(void 0, void 0).ser(se_PutInvestigationGroupPolicyCommand).de(de_PutInvestigationGroupPolicyCommand).build() {
971
+ static {
972
+ __name(this, "PutInvestigationGroupPolicyCommand");
973
+ }
974
+ };
975
+
976
+ // src/commands/TagResourceCommand.ts
977
+
978
+
979
+
980
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
981
+ return [
982
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
983
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
984
+ ];
985
+ }).s("AIOps", "TagResource", {}).n("AIOpsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
986
+ static {
987
+ __name(this, "TagResourceCommand");
988
+ }
989
+ };
990
+
991
+ // src/commands/UntagResourceCommand.ts
992
+
993
+
994
+
995
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
996
+ return [
997
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
998
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
999
+ ];
1000
+ }).s("AIOps", "UntagResource", {}).n("AIOpsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1001
+ static {
1002
+ __name(this, "UntagResourceCommand");
1003
+ }
1004
+ };
1005
+
1006
+ // src/commands/UpdateInvestigationGroupCommand.ts
1007
+
1008
+
1009
+
1010
+ var UpdateInvestigationGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1011
+ return [
1012
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1013
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1014
+ ];
1015
+ }).s("AIOps", "UpdateInvestigationGroup", {}).n("AIOpsClient", "UpdateInvestigationGroupCommand").f(void 0, void 0).ser(se_UpdateInvestigationGroupCommand).de(de_UpdateInvestigationGroupCommand).build() {
1016
+ static {
1017
+ __name(this, "UpdateInvestigationGroupCommand");
1018
+ }
1019
+ };
1020
+
1021
+ // src/AIOps.ts
1022
+ var commands = {
1023
+ CreateInvestigationGroupCommand,
1024
+ DeleteInvestigationGroupCommand,
1025
+ DeleteInvestigationGroupPolicyCommand,
1026
+ GetInvestigationGroupCommand,
1027
+ GetInvestigationGroupPolicyCommand,
1028
+ ListInvestigationGroupsCommand,
1029
+ ListTagsForResourceCommand,
1030
+ PutInvestigationGroupPolicyCommand,
1031
+ TagResourceCommand,
1032
+ UntagResourceCommand,
1033
+ UpdateInvestigationGroupCommand
1034
+ };
1035
+ var AIOps = class extends AIOpsClient {
1036
+ static {
1037
+ __name(this, "AIOps");
1038
+ }
1039
+ };
1040
+ (0, import_smithy_client.createAggregatedClient)(commands, AIOps);
1041
+
1042
+ // src/pagination/ListInvestigationGroupsPaginator.ts
1043
+
1044
+ var paginateListInvestigationGroups = (0, import_core.createPaginator)(AIOpsClient, ListInvestigationGroupsCommand, "nextToken", "nextToken", "maxResults");
1045
+ // Annotate the CommonJS export names for ESM import in node:
1046
+
1047
+ 0 && (module.exports = {
1048
+ AIOpsServiceException,
1049
+ __Client,
1050
+ AIOpsClient,
1051
+ AIOps,
1052
+ $Command,
1053
+ CreateInvestigationGroupCommand,
1054
+ DeleteInvestigationGroupCommand,
1055
+ DeleteInvestigationGroupPolicyCommand,
1056
+ GetInvestigationGroupCommand,
1057
+ GetInvestigationGroupPolicyCommand,
1058
+ ListInvestigationGroupsCommand,
1059
+ ListTagsForResourceCommand,
1060
+ PutInvestigationGroupPolicyCommand,
1061
+ TagResourceCommand,
1062
+ UntagResourceCommand,
1063
+ UpdateInvestigationGroupCommand,
1064
+ paginateListInvestigationGroups,
1065
+ AccessDeniedException,
1066
+ ConflictException,
1067
+ ForbiddenException,
1068
+ InternalServerException,
1069
+ EncryptionConfigurationType,
1070
+ ResourceNotFoundException,
1071
+ ServiceQuotaExceededException,
1072
+ ThrottlingException,
1073
+ ValidationException,
1074
+ ListInvestigationGroupsInputFilterSensitiveLog,
1075
+ ListInvestigationGroupsOutputFilterSensitiveLog
1076
+ });
1077
+