@aws-sdk/client-oam 3.928.0 → 3.930.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.
Files changed (36) hide show
  1. package/dist-cjs/index.js +551 -732
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/OAMClient.js +2 -0
  4. package/dist-es/commands/CreateLinkCommand.js +3 -9
  5. package/dist-es/commands/CreateSinkCommand.js +3 -9
  6. package/dist-es/commands/DeleteLinkCommand.js +3 -9
  7. package/dist-es/commands/DeleteSinkCommand.js +3 -9
  8. package/dist-es/commands/GetLinkCommand.js +3 -9
  9. package/dist-es/commands/GetSinkCommand.js +3 -9
  10. package/dist-es/commands/GetSinkPolicyCommand.js +3 -9
  11. package/dist-es/commands/ListAttachedLinksCommand.js +3 -9
  12. package/dist-es/commands/ListLinksCommand.js +3 -9
  13. package/dist-es/commands/ListSinksCommand.js +3 -9
  14. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  15. package/dist-es/commands/PutSinkPolicyCommand.js +3 -9
  16. package/dist-es/commands/TagResourceCommand.js +3 -9
  17. package/dist-es/commands/UntagResourceCommand.js +3 -9
  18. package/dist-es/commands/UpdateLinkCommand.js +3 -9
  19. package/dist-es/runtimeConfig.shared.js +2 -0
  20. package/dist-es/schemas/schemas_0.js +504 -0
  21. package/dist-types/OAMClient.d.ts +10 -1
  22. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  23. package/dist-types/runtimeConfig.d.ts +1 -0
  24. package/dist-types/runtimeConfig.native.d.ts +1 -0
  25. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  26. package/dist-types/schemas/schemas_0.d.ts +70 -0
  27. package/dist-types/ts3.4/OAMClient.d.ts +4 -0
  28. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  29. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  30. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  31. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  32. package/dist-types/ts3.4/schemas/schemas_0.d.ts +75 -0
  33. package/package.json +33 -33
  34. package/dist-es/protocols/Aws_restJson1.js +0 -607
  35. package/dist-types/protocols/Aws_restJson1.d.ts +0 -137
  36. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -185
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class OAMClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class OAMClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class OAMServiceException extends smithyClient.ServiceException {
113
+ let OAMServiceException$1 = class OAMServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, OAMServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class ConflictException extends OAMServiceException {
120
+ let ConflictException$1 = class ConflictException extends OAMServiceException$1 {
121
121
  name = "ConflictException";
122
122
  $fault = "client";
123
123
  Message;
@@ -132,7 +132,7 @@ class ConflictException extends OAMServiceException {
132
132
  this.Message = opts.Message;
133
133
  this.amznErrorType = opts.amznErrorType;
134
134
  }
135
- }
135
+ };
136
136
  const ResourceType = {
137
137
  AWS_APPLICATIONINSIGHTS_APPLICATION: "AWS::ApplicationInsights::Application",
138
138
  AWS_APPLICATION_SIGNALS_SERVICE: "AWS::ApplicationSignals::Service",
@@ -142,7 +142,7 @@ const ResourceType = {
142
142
  AWS_LOGS_LOGGROUP: "AWS::Logs::LogGroup",
143
143
  AWS_XRAY_TRACE: "AWS::XRay::Trace",
144
144
  };
145
- class InternalServiceFault extends OAMServiceException {
145
+ let InternalServiceFault$1 = class InternalServiceFault extends OAMServiceException$1 {
146
146
  name = "InternalServiceFault";
147
147
  $fault = "server";
148
148
  Message;
@@ -157,8 +157,8 @@ class InternalServiceFault extends OAMServiceException {
157
157
  this.Message = opts.Message;
158
158
  this.amznErrorType = opts.amznErrorType;
159
159
  }
160
- }
161
- class InvalidParameterException extends OAMServiceException {
160
+ };
161
+ let InvalidParameterException$1 = class InvalidParameterException extends OAMServiceException$1 {
162
162
  name = "InvalidParameterException";
163
163
  $fault = "client";
164
164
  amznErrorType;
@@ -171,8 +171,8 @@ class InvalidParameterException extends OAMServiceException {
171
171
  Object.setPrototypeOf(this, InvalidParameterException.prototype);
172
172
  this.amznErrorType = opts.amznErrorType;
173
173
  }
174
- }
175
- class MissingRequiredParameterException extends OAMServiceException {
174
+ };
175
+ let MissingRequiredParameterException$1 = class MissingRequiredParameterException extends OAMServiceException$1 {
176
176
  name = "MissingRequiredParameterException";
177
177
  $fault = "client";
178
178
  amznErrorType;
@@ -185,8 +185,8 @@ class MissingRequiredParameterException extends OAMServiceException {
185
185
  Object.setPrototypeOf(this, MissingRequiredParameterException.prototype);
186
186
  this.amznErrorType = opts.amznErrorType;
187
187
  }
188
- }
189
- class ServiceQuotaExceededException extends OAMServiceException {
188
+ };
189
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends OAMServiceException$1 {
190
190
  name = "ServiceQuotaExceededException";
191
191
  $fault = "client";
192
192
  Message;
@@ -201,8 +201,8 @@ class ServiceQuotaExceededException extends OAMServiceException {
201
201
  this.Message = opts.Message;
202
202
  this.amznErrorType = opts.amznErrorType;
203
203
  }
204
- }
205
- class ResourceNotFoundException extends OAMServiceException {
204
+ };
205
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends OAMServiceException$1 {
206
206
  name = "ResourceNotFoundException";
207
207
  $fault = "client";
208
208
  Message;
@@ -217,8 +217,8 @@ class ResourceNotFoundException extends OAMServiceException {
217
217
  this.Message = opts.Message;
218
218
  this.amznErrorType = opts.amznErrorType;
219
219
  }
220
- }
221
- class ValidationException extends OAMServiceException {
220
+ };
221
+ let ValidationException$1 = class ValidationException extends OAMServiceException$1 {
222
222
  name = "ValidationException";
223
223
  $fault = "client";
224
224
  Message;
@@ -231,8 +231,8 @@ class ValidationException extends OAMServiceException {
231
231
  Object.setPrototypeOf(this, ValidationException.prototype);
232
232
  this.Message = opts.Message;
233
233
  }
234
- }
235
- class TooManyTagsException extends OAMServiceException {
234
+ };
235
+ let TooManyTagsException$1 = class TooManyTagsException extends OAMServiceException$1 {
236
236
  name = "TooManyTagsException";
237
237
  $fault = "client";
238
238
  Message;
@@ -245,624 +245,513 @@ class TooManyTagsException extends OAMServiceException {
245
245
  Object.setPrototypeOf(this, TooManyTagsException.prototype);
246
246
  this.Message = opts.Message;
247
247
  }
248
- }
249
-
250
- const se_CreateLinkCommand = async (input, context) => {
251
- const b = core.requestBuilder(input, context);
252
- const headers = {
253
- "content-type": "application/json",
254
- };
255
- b.bp("/CreateLink");
256
- let body;
257
- body = JSON.stringify(smithyClient.take(input, {
258
- LabelTemplate: [],
259
- LinkConfiguration: (_) => smithyClient._json(_),
260
- ResourceTypes: (_) => smithyClient._json(_),
261
- SinkIdentifier: [],
262
- Tags: (_) => smithyClient._json(_),
263
- }));
264
- b.m("POST").h(headers).b(body);
265
- return b.build();
266
- };
267
- const se_CreateSinkCommand = async (input, context) => {
268
- const b = core.requestBuilder(input, context);
269
- const headers = {
270
- "content-type": "application/json",
271
- };
272
- b.bp("/CreateSink");
273
- let body;
274
- body = JSON.stringify(smithyClient.take(input, {
275
- Name: [],
276
- Tags: (_) => smithyClient._json(_),
277
- }));
278
- b.m("POST").h(headers).b(body);
279
- return b.build();
280
- };
281
- const se_DeleteLinkCommand = async (input, context) => {
282
- const b = core.requestBuilder(input, context);
283
- const headers = {
284
- "content-type": "application/json",
285
- };
286
- b.bp("/DeleteLink");
287
- let body;
288
- body = JSON.stringify(smithyClient.take(input, {
289
- Identifier: [],
290
- }));
291
- b.m("POST").h(headers).b(body);
292
- return b.build();
293
- };
294
- const se_DeleteSinkCommand = async (input, context) => {
295
- const b = core.requestBuilder(input, context);
296
- const headers = {
297
- "content-type": "application/json",
298
- };
299
- b.bp("/DeleteSink");
300
- let body;
301
- body = JSON.stringify(smithyClient.take(input, {
302
- Identifier: [],
303
- }));
304
- b.m("POST").h(headers).b(body);
305
- return b.build();
306
- };
307
- const se_GetLinkCommand = async (input, context) => {
308
- const b = core.requestBuilder(input, context);
309
- const headers = {
310
- "content-type": "application/json",
311
- };
312
- b.bp("/GetLink");
313
- let body;
314
- body = JSON.stringify(smithyClient.take(input, {
315
- Identifier: [],
316
- IncludeTags: [],
317
- }));
318
- b.m("POST").h(headers).b(body);
319
- return b.build();
320
- };
321
- const se_GetSinkCommand = async (input, context) => {
322
- const b = core.requestBuilder(input, context);
323
- const headers = {
324
- "content-type": "application/json",
325
- };
326
- b.bp("/GetSink");
327
- let body;
328
- body = JSON.stringify(smithyClient.take(input, {
329
- Identifier: [],
330
- IncludeTags: [],
331
- }));
332
- b.m("POST").h(headers).b(body);
333
- return b.build();
334
- };
335
- const se_GetSinkPolicyCommand = async (input, context) => {
336
- const b = core.requestBuilder(input, context);
337
- const headers = {
338
- "content-type": "application/json",
339
- };
340
- b.bp("/GetSinkPolicy");
341
- let body;
342
- body = JSON.stringify(smithyClient.take(input, {
343
- SinkIdentifier: [],
344
- }));
345
- b.m("POST").h(headers).b(body);
346
- return b.build();
347
- };
348
- const se_ListAttachedLinksCommand = async (input, context) => {
349
- const b = core.requestBuilder(input, context);
350
- const headers = {
351
- "content-type": "application/json",
352
- };
353
- b.bp("/ListAttachedLinks");
354
- let body;
355
- body = JSON.stringify(smithyClient.take(input, {
356
- MaxResults: [],
357
- NextToken: [],
358
- SinkIdentifier: [],
359
- }));
360
- b.m("POST").h(headers).b(body);
361
- return b.build();
362
- };
363
- const se_ListLinksCommand = async (input, context) => {
364
- const b = core.requestBuilder(input, context);
365
- const headers = {
366
- "content-type": "application/json",
367
- };
368
- b.bp("/ListLinks");
369
- let body;
370
- body = JSON.stringify(smithyClient.take(input, {
371
- MaxResults: [],
372
- NextToken: [],
373
- }));
374
- b.m("POST").h(headers).b(body);
375
- return b.build();
376
248
  };
377
- const se_ListSinksCommand = async (input, context) => {
378
- const b = core.requestBuilder(input, context);
379
- const headers = {
380
- "content-type": "application/json",
381
- };
382
- b.bp("/ListSinks");
383
- let body;
384
- body = JSON.stringify(smithyClient.take(input, {
385
- MaxResults: [],
386
- NextToken: [],
387
- }));
388
- b.m("POST").h(headers).b(body);
389
- return b.build();
390
- };
391
- const se_ListTagsForResourceCommand = async (input, context) => {
392
- const b = core.requestBuilder(input, context);
393
- const headers = {};
394
- b.bp("/tags/{ResourceArn}");
395
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
396
- let body;
397
- b.m("GET").h(headers).b(body);
398
- return b.build();
399
- };
400
- const se_PutSinkPolicyCommand = async (input, context) => {
401
- const b = core.requestBuilder(input, context);
402
- const headers = {
403
- "content-type": "application/json",
404
- };
405
- b.bp("/PutSinkPolicy");
406
- let body;
407
- body = JSON.stringify(smithyClient.take(input, {
408
- Policy: [],
409
- SinkIdentifier: [],
410
- }));
411
- b.m("POST").h(headers).b(body);
412
- return b.build();
413
- };
414
- const se_TagResourceCommand = async (input, context) => {
415
- const b = core.requestBuilder(input, context);
416
- const headers = {
417
- "content-type": "application/json",
418
- };
419
- b.bp("/tags/{ResourceArn}");
420
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
421
- let body;
422
- body = JSON.stringify(smithyClient.take(input, {
423
- Tags: (_) => smithyClient._json(_),
424
- }));
425
- b.m("PUT").h(headers).b(body);
426
- return b.build();
427
- };
428
- const se_UntagResourceCommand = async (input, context) => {
429
- const b = core.requestBuilder(input, context);
430
- const headers = {};
431
- b.bp("/tags/{ResourceArn}");
432
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
433
- const query = smithyClient.map({
434
- [_tK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
435
- });
436
- let body;
437
- b.m("DELETE").h(headers).q(query).b(body);
438
- return b.build();
439
- };
440
- const se_UpdateLinkCommand = async (input, context) => {
441
- const b = core.requestBuilder(input, context);
442
- const headers = {
443
- "content-type": "application/json",
444
- };
445
- b.bp("/UpdateLink");
446
- let body;
447
- body = JSON.stringify(smithyClient.take(input, {
448
- Identifier: [],
449
- IncludeTags: [],
450
- LinkConfiguration: (_) => smithyClient._json(_),
451
- ResourceTypes: (_) => smithyClient._json(_),
452
- }));
453
- b.m("POST").h(headers).b(body);
454
- return b.build();
455
- };
456
- const de_CreateLinkCommand = async (output, context) => {
457
- if (output.statusCode !== 200 && output.statusCode >= 300) {
458
- return de_CommandError(output, context);
459
- }
460
- const contents = smithyClient.map({
461
- $metadata: deserializeMetadata(output),
462
- });
463
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
464
- const doc = smithyClient.take(data, {
465
- Arn: smithyClient.expectString,
466
- Id: smithyClient.expectString,
467
- Label: smithyClient.expectString,
468
- LabelTemplate: smithyClient.expectString,
469
- LinkConfiguration: smithyClient._json,
470
- ResourceTypes: smithyClient._json,
471
- SinkArn: smithyClient.expectString,
472
- Tags: smithyClient._json,
473
- });
474
- Object.assign(contents, doc);
475
- return contents;
476
- };
477
- const de_CreateSinkCommand = async (output, context) => {
478
- if (output.statusCode !== 200 && output.statusCode >= 300) {
479
- return de_CommandError(output, context);
480
- }
481
- const contents = smithyClient.map({
482
- $metadata: deserializeMetadata(output),
483
- });
484
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
485
- const doc = smithyClient.take(data, {
486
- Arn: smithyClient.expectString,
487
- Id: smithyClient.expectString,
488
- Name: smithyClient.expectString,
489
- Tags: smithyClient._json,
490
- });
491
- Object.assign(contents, doc);
492
- return contents;
493
- };
494
- const de_DeleteLinkCommand = async (output, context) => {
495
- if (output.statusCode !== 200 && output.statusCode >= 300) {
496
- return de_CommandError(output, context);
497
- }
498
- const contents = smithyClient.map({
499
- $metadata: deserializeMetadata(output),
500
- });
501
- await smithyClient.collectBody(output.body, context);
502
- return contents;
503
- };
504
- const de_DeleteSinkCommand = async (output, context) => {
505
- if (output.statusCode !== 200 && output.statusCode >= 300) {
506
- return de_CommandError(output, context);
507
- }
508
- const contents = smithyClient.map({
509
- $metadata: deserializeMetadata(output),
510
- });
511
- await smithyClient.collectBody(output.body, context);
512
- return contents;
513
- };
514
- const de_GetLinkCommand = async (output, context) => {
515
- if (output.statusCode !== 200 && output.statusCode >= 300) {
516
- return de_CommandError(output, context);
517
- }
518
- const contents = smithyClient.map({
519
- $metadata: deserializeMetadata(output),
520
- });
521
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
522
- const doc = smithyClient.take(data, {
523
- Arn: smithyClient.expectString,
524
- Id: smithyClient.expectString,
525
- Label: smithyClient.expectString,
526
- LabelTemplate: smithyClient.expectString,
527
- LinkConfiguration: smithyClient._json,
528
- ResourceTypes: smithyClient._json,
529
- SinkArn: smithyClient.expectString,
530
- Tags: smithyClient._json,
531
- });
532
- Object.assign(contents, doc);
533
- return contents;
534
- };
535
- const de_GetSinkCommand = async (output, context) => {
536
- if (output.statusCode !== 200 && output.statusCode >= 300) {
537
- return de_CommandError(output, context);
538
- }
539
- const contents = smithyClient.map({
540
- $metadata: deserializeMetadata(output),
541
- });
542
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
543
- const doc = smithyClient.take(data, {
544
- Arn: smithyClient.expectString,
545
- Id: smithyClient.expectString,
546
- Name: smithyClient.expectString,
547
- Tags: smithyClient._json,
548
- });
549
- Object.assign(contents, doc);
550
- return contents;
551
- };
552
- const de_GetSinkPolicyCommand = async (output, context) => {
553
- if (output.statusCode !== 200 && output.statusCode >= 300) {
554
- return de_CommandError(output, context);
555
- }
556
- const contents = smithyClient.map({
557
- $metadata: deserializeMetadata(output),
558
- });
559
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
560
- const doc = smithyClient.take(data, {
561
- Policy: smithyClient.expectString,
562
- SinkArn: smithyClient.expectString,
563
- SinkId: smithyClient.expectString,
564
- });
565
- Object.assign(contents, doc);
566
- return contents;
567
- };
568
- const de_ListAttachedLinksCommand = async (output, context) => {
569
- if (output.statusCode !== 200 && output.statusCode >= 300) {
570
- return de_CommandError(output, context);
571
- }
572
- const contents = smithyClient.map({
573
- $metadata: deserializeMetadata(output),
574
- });
575
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
576
- const doc = smithyClient.take(data, {
577
- Items: smithyClient._json,
578
- NextToken: smithyClient.expectString,
579
- });
580
- Object.assign(contents, doc);
581
- return contents;
582
- };
583
- const de_ListLinksCommand = async (output, context) => {
584
- if (output.statusCode !== 200 && output.statusCode >= 300) {
585
- return de_CommandError(output, context);
586
- }
587
- const contents = smithyClient.map({
588
- $metadata: deserializeMetadata(output),
589
- });
590
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
591
- const doc = smithyClient.take(data, {
592
- Items: smithyClient._json,
593
- NextToken: smithyClient.expectString,
594
- });
595
- Object.assign(contents, doc);
596
- return contents;
597
- };
598
- const de_ListSinksCommand = async (output, context) => {
599
- if (output.statusCode !== 200 && output.statusCode >= 300) {
600
- return de_CommandError(output, context);
601
- }
602
- const contents = smithyClient.map({
603
- $metadata: deserializeMetadata(output),
604
- });
605
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
606
- const doc = smithyClient.take(data, {
607
- Items: smithyClient._json,
608
- NextToken: smithyClient.expectString,
609
- });
610
- Object.assign(contents, doc);
611
- return contents;
612
- };
613
- const de_ListTagsForResourceCommand = async (output, context) => {
614
- if (output.statusCode !== 200 && output.statusCode >= 300) {
615
- return de_CommandError(output, context);
616
- }
617
- const contents = smithyClient.map({
618
- $metadata: deserializeMetadata(output),
619
- });
620
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
621
- const doc = smithyClient.take(data, {
622
- Tags: smithyClient._json,
623
- });
624
- Object.assign(contents, doc);
625
- return contents;
626
- };
627
- const de_PutSinkPolicyCommand = async (output, context) => {
628
- if (output.statusCode !== 200 && output.statusCode >= 300) {
629
- return de_CommandError(output, context);
630
- }
631
- const contents = smithyClient.map({
632
- $metadata: deserializeMetadata(output),
633
- });
634
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
635
- const doc = smithyClient.take(data, {
636
- Policy: smithyClient.expectString,
637
- SinkArn: smithyClient.expectString,
638
- SinkId: smithyClient.expectString,
639
- });
640
- Object.assign(contents, doc);
641
- return contents;
642
- };
643
- const de_TagResourceCommand = async (output, context) => {
644
- if (output.statusCode !== 200 && output.statusCode >= 300) {
645
- return de_CommandError(output, context);
646
- }
647
- const contents = smithyClient.map({
648
- $metadata: deserializeMetadata(output),
649
- });
650
- await smithyClient.collectBody(output.body, context);
651
- return contents;
652
- };
653
- const de_UntagResourceCommand = async (output, context) => {
654
- if (output.statusCode !== 200 && output.statusCode >= 300) {
655
- return de_CommandError(output, context);
656
- }
657
- const contents = smithyClient.map({
658
- $metadata: deserializeMetadata(output),
659
- });
660
- await smithyClient.collectBody(output.body, context);
661
- return contents;
662
- };
663
- const de_UpdateLinkCommand = async (output, context) => {
664
- if (output.statusCode !== 200 && output.statusCode >= 300) {
665
- return de_CommandError(output, context);
666
- }
667
- const contents = smithyClient.map({
668
- $metadata: deserializeMetadata(output),
669
- });
670
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
671
- const doc = smithyClient.take(data, {
672
- Arn: smithyClient.expectString,
673
- Id: smithyClient.expectString,
674
- Label: smithyClient.expectString,
675
- LabelTemplate: smithyClient.expectString,
676
- LinkConfiguration: smithyClient._json,
677
- ResourceTypes: smithyClient._json,
678
- SinkArn: smithyClient.expectString,
679
- Tags: smithyClient._json,
680
- });
681
- Object.assign(contents, doc);
682
- return contents;
683
- };
684
- const de_CommandError = async (output, context) => {
685
- const parsedOutput = {
686
- ...output,
687
- body: await core$1.parseJsonErrorBody(output.body, context),
688
- };
689
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
690
- switch (errorCode) {
691
- case "ConflictException":
692
- case "com.amazonaws.oam#ConflictException":
693
- throw await de_ConflictExceptionRes(parsedOutput);
694
- case "InternalServiceFault":
695
- case "com.amazonaws.oam#InternalServiceFault":
696
- throw await de_InternalServiceFaultRes(parsedOutput);
697
- case "InvalidParameterException":
698
- case "com.amazonaws.oam#InvalidParameterException":
699
- throw await de_InvalidParameterExceptionRes(parsedOutput);
700
- case "MissingRequiredParameterException":
701
- case "com.amazonaws.oam#MissingRequiredParameterException":
702
- throw await de_MissingRequiredParameterExceptionRes(parsedOutput);
703
- case "ServiceQuotaExceededException":
704
- case "com.amazonaws.oam#ServiceQuotaExceededException":
705
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
706
- case "ResourceNotFoundException":
707
- case "com.amazonaws.oam#ResourceNotFoundException":
708
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
709
- case "ValidationException":
710
- case "com.amazonaws.oam#ValidationException":
711
- throw await de_ValidationExceptionRes(parsedOutput);
712
- case "TooManyTagsException":
713
- case "com.amazonaws.oam#TooManyTagsException":
714
- throw await de_TooManyTagsExceptionRes(parsedOutput);
715
- default:
716
- const parsedBody = parsedOutput.body;
717
- return throwDefaultError({
718
- output,
719
- parsedBody,
720
- errorCode,
721
- });
722
- }
723
- };
724
- const throwDefaultError = smithyClient.withBaseException(OAMServiceException);
725
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
726
- const contents = smithyClient.map({
727
- [_aET]: [, parsedOutput.headers[_xae]],
728
- });
729
- const data = parsedOutput.body;
730
- const doc = smithyClient.take(data, {
731
- Message: smithyClient.expectString,
732
- });
733
- Object.assign(contents, doc);
734
- const exception = new ConflictException({
735
- $metadata: deserializeMetadata(parsedOutput),
736
- ...contents,
737
- });
738
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
739
- };
740
- const de_InternalServiceFaultRes = async (parsedOutput, context) => {
741
- const contents = smithyClient.map({
742
- [_aET]: [, parsedOutput.headers[_xae]],
743
- });
744
- const data = parsedOutput.body;
745
- const doc = smithyClient.take(data, {
746
- Message: smithyClient.expectString,
747
- });
748
- Object.assign(contents, doc);
749
- const exception = new InternalServiceFault({
750
- $metadata: deserializeMetadata(parsedOutput),
751
- ...contents,
752
- });
753
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
754
- };
755
- const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
756
- const contents = smithyClient.map({
757
- [_aET]: [, parsedOutput.headers[_xae]],
758
- });
759
- const data = parsedOutput.body;
760
- const doc = smithyClient.take(data, {
761
- message: smithyClient.expectString,
762
- });
763
- Object.assign(contents, doc);
764
- const exception = new InvalidParameterException({
765
- $metadata: deserializeMetadata(parsedOutput),
766
- ...contents,
767
- });
768
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
769
- };
770
- const de_MissingRequiredParameterExceptionRes = async (parsedOutput, context) => {
771
- const contents = smithyClient.map({
772
- [_aET]: [, parsedOutput.headers[_xae]],
773
- });
774
- const data = parsedOutput.body;
775
- const doc = smithyClient.take(data, {
776
- message: smithyClient.expectString,
777
- });
778
- Object.assign(contents, doc);
779
- const exception = new MissingRequiredParameterException({
780
- $metadata: deserializeMetadata(parsedOutput),
781
- ...contents,
782
- });
783
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
784
- };
785
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
786
- const contents = smithyClient.map({
787
- [_aET]: [, parsedOutput.headers[_xae]],
788
- });
789
- const data = parsedOutput.body;
790
- const doc = smithyClient.take(data, {
791
- Message: smithyClient.expectString,
792
- });
793
- Object.assign(contents, doc);
794
- const exception = new ResourceNotFoundException({
795
- $metadata: deserializeMetadata(parsedOutput),
796
- ...contents,
797
- });
798
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
799
- };
800
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
801
- const contents = smithyClient.map({
802
- [_aET]: [, parsedOutput.headers[_xae]],
803
- });
804
- const data = parsedOutput.body;
805
- const doc = smithyClient.take(data, {
806
- Message: smithyClient.expectString,
807
- });
808
- Object.assign(contents, doc);
809
- const exception = new ServiceQuotaExceededException({
810
- $metadata: deserializeMetadata(parsedOutput),
811
- ...contents,
812
- });
813
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
814
- };
815
- const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
816
- const contents = smithyClient.map({});
817
- const data = parsedOutput.body;
818
- const doc = smithyClient.take(data, {
819
- Message: smithyClient.expectString,
820
- });
821
- Object.assign(contents, doc);
822
- const exception = new TooManyTagsException({
823
- $metadata: deserializeMetadata(parsedOutput),
824
- ...contents,
825
- });
826
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
827
- };
828
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
829
- const contents = smithyClient.map({});
830
- const data = parsedOutput.body;
831
- const doc = smithyClient.take(data, {
832
- Message: smithyClient.expectString,
833
- });
834
- Object.assign(contents, doc);
835
- const exception = new ValidationException({
836
- $metadata: deserializeMetadata(parsedOutput),
837
- ...contents,
838
- });
839
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
840
- };
841
- const deserializeMetadata = (output) => ({
842
- httpStatusCode: output.statusCode,
843
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
844
- extendedRequestId: output.headers["x-amz-id-2"],
845
- cfId: output.headers["x-amz-cf-id"],
846
- });
249
+
250
+ const _A = "Arn";
251
+ const _CE = "ConflictException";
252
+ const _CL = "CreateLink";
253
+ const _CLI = "CreateLinkInput";
254
+ const _CLO = "CreateLinkOutput";
255
+ const _CS = "CreateSink";
256
+ const _CSI = "CreateSinkInput";
257
+ const _CSO = "CreateSinkOutput";
258
+ const _DL = "DeleteLink";
259
+ const _DLI = "DeleteLinkInput";
260
+ const _DLO = "DeleteLinkOutput";
261
+ const _DS = "DeleteSink";
262
+ const _DSI = "DeleteSinkInput";
263
+ const _DSO = "DeleteSinkOutput";
264
+ const _F = "Filter";
265
+ const _GL = "GetLink";
266
+ const _GLI = "GetLinkInput";
267
+ const _GLO = "GetLinkOutput";
268
+ const _GS = "GetSink";
269
+ const _GSI = "GetSinkInput";
270
+ const _GSO = "GetSinkOutput";
271
+ const _GSP = "GetSinkPolicy";
272
+ const _GSPI = "GetSinkPolicyInput";
273
+ const _GSPO = "GetSinkPolicyOutput";
274
+ const _I = "Id";
275
+ const _IPE = "InvalidParameterException";
276
+ const _ISF = "InternalServiceFault";
277
+ const _IT = "IncludeTags";
278
+ const _Id = "Identifier";
279
+ const _It = "Items";
280
+ const _L = "Label";
281
+ const _LA = "LinkArn";
282
+ const _LAL = "ListAttachedLinks";
283
+ const _LALI = "ListAttachedLinksInput";
284
+ const _LALIi = "ListAttachedLinksItem";
285
+ const _LALIis = "ListAttachedLinksItems";
286
+ const _LALO = "ListAttachedLinksOutput";
287
+ const _LC = "LinkConfiguration";
288
+ const _LGC = "LogGroupConfiguration";
289
+ const _LL = "ListLinks";
290
+ const _LLI = "ListLinksInput";
291
+ const _LLIi = "ListLinksItem";
292
+ const _LLIis = "ListLinksItems";
293
+ const _LLO = "ListLinksOutput";
294
+ const _LS = "ListSinks";
295
+ const _LSI = "ListSinksInput";
296
+ const _LSIi = "ListSinksItem";
297
+ const _LSIis = "ListSinksItems";
298
+ const _LSO = "ListSinksOutput";
299
+ const _LT = "LabelTemplate";
300
+ const _LTFR = "ListTagsForResource";
301
+ const _LTFRI = "ListTagsForResourceInput";
302
+ const _LTFRO = "ListTagsForResourceOutput";
303
+ const _M = "Message";
304
+ const _MC = "MetricConfiguration";
305
+ const _MR = "MaxResults";
306
+ const _MRPE = "MissingRequiredParameterException";
307
+ const _N = "Name";
308
+ const _NT = "NextToken";
309
+ const _P = "Policy";
310
+ const _PSP = "PutSinkPolicy";
311
+ const _PSPI = "PutSinkPolicyInput";
312
+ const _PSPO = "PutSinkPolicyOutput";
313
+ const _RA = "ResourceArn";
314
+ const _RNFE = "ResourceNotFoundException";
315
+ const _RT = "ResourceTypes";
316
+ const _SA = "SinkArn";
317
+ const _SI = "SinkIdentifier";
318
+ const _SIi = "SinkId";
319
+ const _SQEE = "ServiceQuotaExceededException";
320
+ const _T = "Tags";
847
321
  const _TK = "TagKeys";
322
+ const _TMTE = "TooManyTagsException";
323
+ const _TR = "TagResource";
324
+ const _TRI = "TagResourceInput";
325
+ const _TRO = "TagResourceOutput";
326
+ const _UL = "UpdateLink";
327
+ const _ULI = "UpdateLinkInput";
328
+ const _ULO = "UpdateLinkOutput";
329
+ const _UR = "UntagResource";
330
+ const _URI = "UntagResourceInput";
331
+ const _URO = "UntagResourceOutput";
332
+ const _VE = "ValidationException";
848
333
  const _aET = "amznErrorType";
334
+ const _c = "client";
335
+ const _e = "error";
336
+ const _h = "http";
337
+ const _hE = "httpError";
338
+ const _hH = "httpHeader";
339
+ const _hQ = "httpQuery";
340
+ const _m = "message";
341
+ const _s = "server";
342
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.oam";
849
343
  const _tK = "tagKeys";
850
- const _xae = "x-amzn-errortype";
344
+ const _xaE = "x-amzn-ErrorType";
345
+ const n0 = "com.amazonaws.oam";
346
+ var ConflictException = [
347
+ -3,
348
+ n0,
349
+ _CE,
350
+ {
351
+ [_e]: _c,
352
+ [_hE]: 409,
353
+ },
354
+ [_M, _aET],
355
+ [
356
+ 0,
357
+ [
358
+ 0,
359
+ {
360
+ [_hH]: _xaE,
361
+ },
362
+ ],
363
+ ],
364
+ ];
365
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
366
+ var CreateLinkInput = [
367
+ 3,
368
+ n0,
369
+ _CLI,
370
+ 0,
371
+ [_LT, _RT, _SI, _T, _LC],
372
+ [0, 64 | 0, 0, 128 | 0, () => LinkConfiguration],
373
+ ];
374
+ var CreateLinkOutput = [
375
+ 3,
376
+ n0,
377
+ _CLO,
378
+ 0,
379
+ [_A, _I, _L, _LT, _RT, _SA, _T, _LC],
380
+ [0, 0, 0, 0, 64 | 0, 0, 128 | 0, () => LinkConfiguration],
381
+ ];
382
+ var CreateSinkInput = [3, n0, _CSI, 0, [_N, _T], [0, 128 | 0]];
383
+ var CreateSinkOutput = [3, n0, _CSO, 0, [_A, _I, _N, _T], [0, 0, 0, 128 | 0]];
384
+ var DeleteLinkInput = [3, n0, _DLI, 0, [_Id], [0]];
385
+ var DeleteLinkOutput = [3, n0, _DLO, 0, [], []];
386
+ var DeleteSinkInput = [3, n0, _DSI, 0, [_Id], [0]];
387
+ var DeleteSinkOutput = [3, n0, _DSO, 0, [], []];
388
+ var GetLinkInput = [3, n0, _GLI, 0, [_Id, _IT], [0, 2]];
389
+ var GetLinkOutput = [
390
+ 3,
391
+ n0,
392
+ _GLO,
393
+ 0,
394
+ [_A, _I, _L, _LT, _RT, _SA, _T, _LC],
395
+ [0, 0, 0, 0, 64 | 0, 0, 128 | 0, () => LinkConfiguration],
396
+ ];
397
+ var GetSinkInput = [3, n0, _GSI, 0, [_Id, _IT], [0, 2]];
398
+ var GetSinkOutput = [3, n0, _GSO, 0, [_A, _I, _N, _T], [0, 0, 0, 128 | 0]];
399
+ var GetSinkPolicyInput = [3, n0, _GSPI, 0, [_SI], [0]];
400
+ var GetSinkPolicyOutput = [3, n0, _GSPO, 0, [_SA, _SIi, _P], [0, 0, 0]];
401
+ var InternalServiceFault = [
402
+ -3,
403
+ n0,
404
+ _ISF,
405
+ {
406
+ [_e]: _s,
407
+ [_hE]: 500,
408
+ },
409
+ [_M, _aET],
410
+ [
411
+ 0,
412
+ [
413
+ 0,
414
+ {
415
+ [_hH]: _xaE,
416
+ },
417
+ ],
418
+ ],
419
+ ];
420
+ schema.TypeRegistry.for(n0).registerError(InternalServiceFault, InternalServiceFault$1);
421
+ var InvalidParameterException = [
422
+ -3,
423
+ n0,
424
+ _IPE,
425
+ {
426
+ [_e]: _c,
427
+ [_hE]: 400,
428
+ },
429
+ [_m, _aET],
430
+ [
431
+ 0,
432
+ [
433
+ 0,
434
+ {
435
+ [_hH]: _xaE,
436
+ },
437
+ ],
438
+ ],
439
+ ];
440
+ schema.TypeRegistry.for(n0).registerError(InvalidParameterException, InvalidParameterException$1);
441
+ var LinkConfiguration = [
442
+ 3,
443
+ n0,
444
+ _LC,
445
+ 0,
446
+ [_LGC, _MC],
447
+ [() => LogGroupConfiguration, () => MetricConfiguration],
448
+ ];
449
+ var ListAttachedLinksInput = [3, n0, _LALI, 0, [_MR, _NT, _SI], [1, 0, 0]];
450
+ var ListAttachedLinksItem = [3, n0, _LALIi, 0, [_L, _LA, _RT], [0, 0, 64 | 0]];
451
+ var ListAttachedLinksOutput = [
452
+ 3,
453
+ n0,
454
+ _LALO,
455
+ 0,
456
+ [_It, _NT],
457
+ [() => ListAttachedLinksItems, 0],
458
+ ];
459
+ var ListLinksInput = [3, n0, _LLI, 0, [_MR, _NT], [1, 0]];
460
+ var ListLinksItem = [3, n0, _LLIi, 0, [_A, _I, _L, _RT, _SA], [0, 0, 0, 64 | 0, 0]];
461
+ var ListLinksOutput = [3, n0, _LLO, 0, [_It, _NT], [() => ListLinksItems, 0]];
462
+ var ListSinksInput = [3, n0, _LSI, 0, [_MR, _NT], [1, 0]];
463
+ var ListSinksItem = [3, n0, _LSIi, 0, [_A, _I, _N], [0, 0, 0]];
464
+ var ListSinksOutput = [3, n0, _LSO, 0, [_It, _NT], [() => ListSinksItems, 0]];
465
+ var ListTagsForResourceInput = [3, n0, _LTFRI, 0, [_RA], [[0, 1]]];
466
+ var ListTagsForResourceOutput = [3, n0, _LTFRO, 0, [_T], [128 | 0]];
467
+ var LogGroupConfiguration = [3, n0, _LGC, 0, [_F], [0]];
468
+ var MetricConfiguration = [3, n0, _MC, 0, [_F], [0]];
469
+ var MissingRequiredParameterException = [
470
+ -3,
471
+ n0,
472
+ _MRPE,
473
+ {
474
+ [_e]: _c,
475
+ [_hE]: 400,
476
+ },
477
+ [_m, _aET],
478
+ [
479
+ 0,
480
+ [
481
+ 0,
482
+ {
483
+ [_hH]: _xaE,
484
+ },
485
+ ],
486
+ ],
487
+ ];
488
+ schema.TypeRegistry.for(n0).registerError(MissingRequiredParameterException, MissingRequiredParameterException$1);
489
+ var PutSinkPolicyInput = [3, n0, _PSPI, 0, [_SI, _P], [0, 0]];
490
+ var PutSinkPolicyOutput = [3, n0, _PSPO, 0, [_SA, _SIi, _P], [0, 0, 0]];
491
+ var ResourceNotFoundException = [
492
+ -3,
493
+ n0,
494
+ _RNFE,
495
+ {
496
+ [_e]: _c,
497
+ [_hE]: 404,
498
+ },
499
+ [_M, _aET],
500
+ [
501
+ 0,
502
+ [
503
+ 0,
504
+ {
505
+ [_hH]: _xaE,
506
+ },
507
+ ],
508
+ ],
509
+ ];
510
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
511
+ var ServiceQuotaExceededException = [
512
+ -3,
513
+ n0,
514
+ _SQEE,
515
+ {
516
+ [_e]: _c,
517
+ [_hE]: 429,
518
+ },
519
+ [_M, _aET],
520
+ [
521
+ 0,
522
+ [
523
+ 0,
524
+ {
525
+ [_hH]: _xaE,
526
+ },
527
+ ],
528
+ ],
529
+ ];
530
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
531
+ var TagResourceInput = [3, n0, _TRI, 0, [_RA, _T], [[0, 1], 128 | 0]];
532
+ var TagResourceOutput = [3, n0, _TRO, 0, [], []];
533
+ var TooManyTagsException = [
534
+ -3,
535
+ n0,
536
+ _TMTE,
537
+ {
538
+ [_e]: _c,
539
+ [_hE]: 400,
540
+ },
541
+ [_M],
542
+ [0],
543
+ ];
544
+ schema.TypeRegistry.for(n0).registerError(TooManyTagsException, TooManyTagsException$1);
545
+ var UntagResourceInput = [
546
+ 3,
547
+ n0,
548
+ _URI,
549
+ 0,
550
+ [_RA, _TK],
551
+ [
552
+ [0, 1],
553
+ [
554
+ 64 | 0,
555
+ {
556
+ [_hQ]: _tK,
557
+ },
558
+ ],
559
+ ],
560
+ ];
561
+ var UntagResourceOutput = [3, n0, _URO, 0, [], []];
562
+ var UpdateLinkInput = [
563
+ 3,
564
+ n0,
565
+ _ULI,
566
+ 0,
567
+ [_Id, _RT, _LC, _IT],
568
+ [0, 64 | 0, () => LinkConfiguration, 2],
569
+ ];
570
+ var UpdateLinkOutput = [
571
+ 3,
572
+ n0,
573
+ _ULO,
574
+ 0,
575
+ [_A, _I, _L, _LT, _RT, _SA, _T, _LC],
576
+ [0, 0, 0, 0, 64 | 0, 0, 128 | 0, () => LinkConfiguration],
577
+ ];
578
+ var ValidationException = [
579
+ -3,
580
+ n0,
581
+ _VE,
582
+ {
583
+ [_e]: _c,
584
+ [_hE]: 400,
585
+ },
586
+ [_M],
587
+ [0],
588
+ ];
589
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
590
+ var OAMServiceException = [-3, _sm, "OAMServiceException", 0, [], []];
591
+ schema.TypeRegistry.for(_sm).registerError(OAMServiceException, OAMServiceException$1);
592
+ var ListAttachedLinksItems = [1, n0, _LALIis, 0, () => ListAttachedLinksItem];
593
+ var ListLinksItems = [1, n0, _LLIis, 0, () => ListLinksItem];
594
+ var ListSinksItems = [1, n0, _LSIis, 0, () => ListSinksItem];
595
+ var CreateLink = [
596
+ 9,
597
+ n0,
598
+ _CL,
599
+ {
600
+ [_h]: ["POST", "/CreateLink", 200],
601
+ },
602
+ () => CreateLinkInput,
603
+ () => CreateLinkOutput,
604
+ ];
605
+ var CreateSink = [
606
+ 9,
607
+ n0,
608
+ _CS,
609
+ {
610
+ [_h]: ["POST", "/CreateSink", 200],
611
+ },
612
+ () => CreateSinkInput,
613
+ () => CreateSinkOutput,
614
+ ];
615
+ var DeleteLink = [
616
+ 9,
617
+ n0,
618
+ _DL,
619
+ {
620
+ [_h]: ["POST", "/DeleteLink", 200],
621
+ },
622
+ () => DeleteLinkInput,
623
+ () => DeleteLinkOutput,
624
+ ];
625
+ var DeleteSink = [
626
+ 9,
627
+ n0,
628
+ _DS,
629
+ {
630
+ [_h]: ["POST", "/DeleteSink", 200],
631
+ },
632
+ () => DeleteSinkInput,
633
+ () => DeleteSinkOutput,
634
+ ];
635
+ var GetLink = [
636
+ 9,
637
+ n0,
638
+ _GL,
639
+ {
640
+ [_h]: ["POST", "/GetLink", 200],
641
+ },
642
+ () => GetLinkInput,
643
+ () => GetLinkOutput,
644
+ ];
645
+ var GetSink = [
646
+ 9,
647
+ n0,
648
+ _GS,
649
+ {
650
+ [_h]: ["POST", "/GetSink", 200],
651
+ },
652
+ () => GetSinkInput,
653
+ () => GetSinkOutput,
654
+ ];
655
+ var GetSinkPolicy = [
656
+ 9,
657
+ n0,
658
+ _GSP,
659
+ {
660
+ [_h]: ["POST", "/GetSinkPolicy", 200],
661
+ },
662
+ () => GetSinkPolicyInput,
663
+ () => GetSinkPolicyOutput,
664
+ ];
665
+ var ListAttachedLinks = [
666
+ 9,
667
+ n0,
668
+ _LAL,
669
+ {
670
+ [_h]: ["POST", "/ListAttachedLinks", 200],
671
+ },
672
+ () => ListAttachedLinksInput,
673
+ () => ListAttachedLinksOutput,
674
+ ];
675
+ var ListLinks = [
676
+ 9,
677
+ n0,
678
+ _LL,
679
+ {
680
+ [_h]: ["POST", "/ListLinks", 200],
681
+ },
682
+ () => ListLinksInput,
683
+ () => ListLinksOutput,
684
+ ];
685
+ var ListSinks = [
686
+ 9,
687
+ n0,
688
+ _LS,
689
+ {
690
+ [_h]: ["POST", "/ListSinks", 200],
691
+ },
692
+ () => ListSinksInput,
693
+ () => ListSinksOutput,
694
+ ];
695
+ var ListTagsForResource = [
696
+ 9,
697
+ n0,
698
+ _LTFR,
699
+ {
700
+ [_h]: ["GET", "/tags/{ResourceArn}", 200],
701
+ },
702
+ () => ListTagsForResourceInput,
703
+ () => ListTagsForResourceOutput,
704
+ ];
705
+ var PutSinkPolicy = [
706
+ 9,
707
+ n0,
708
+ _PSP,
709
+ {
710
+ [_h]: ["POST", "/PutSinkPolicy", 200],
711
+ },
712
+ () => PutSinkPolicyInput,
713
+ () => PutSinkPolicyOutput,
714
+ ];
715
+ var TagResource = [
716
+ 9,
717
+ n0,
718
+ _TR,
719
+ {
720
+ [_h]: ["PUT", "/tags/{ResourceArn}", 200],
721
+ },
722
+ () => TagResourceInput,
723
+ () => TagResourceOutput,
724
+ ];
725
+ var UntagResource = [
726
+ 9,
727
+ n0,
728
+ _UR,
729
+ {
730
+ [_h]: ["DELETE", "/tags/{ResourceArn}", 200],
731
+ },
732
+ () => UntagResourceInput,
733
+ () => UntagResourceOutput,
734
+ ];
735
+ var UpdateLink = [
736
+ 9,
737
+ n0,
738
+ _UL,
739
+ {
740
+ [_h]: ["POST", "/UpdateLink", 200],
741
+ },
742
+ () => UpdateLinkInput,
743
+ () => UpdateLinkOutput,
744
+ ];
851
745
 
852
746
  class CreateLinkCommand extends smithyClient.Command
853
747
  .classBuilder()
854
748
  .ep(commonParams)
855
749
  .m(function (Command, cs, config, o) {
856
- return [
857
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
858
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
859
- ];
750
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
860
751
  })
861
752
  .s("oamservice", "CreateLink", {})
862
753
  .n("OAMClient", "CreateLinkCommand")
863
- .f(void 0, void 0)
864
- .ser(se_CreateLinkCommand)
865
- .de(de_CreateLinkCommand)
754
+ .sc(CreateLink)
866
755
  .build() {
867
756
  }
868
757
 
@@ -870,16 +759,11 @@ class CreateSinkCommand extends smithyClient.Command
870
759
  .classBuilder()
871
760
  .ep(commonParams)
872
761
  .m(function (Command, cs, config, o) {
873
- return [
874
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
875
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
876
- ];
762
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
877
763
  })
878
764
  .s("oamservice", "CreateSink", {})
879
765
  .n("OAMClient", "CreateSinkCommand")
880
- .f(void 0, void 0)
881
- .ser(se_CreateSinkCommand)
882
- .de(de_CreateSinkCommand)
766
+ .sc(CreateSink)
883
767
  .build() {
884
768
  }
885
769
 
@@ -887,16 +771,11 @@ class DeleteLinkCommand extends smithyClient.Command
887
771
  .classBuilder()
888
772
  .ep(commonParams)
889
773
  .m(function (Command, cs, config, o) {
890
- return [
891
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
892
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
893
- ];
774
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
894
775
  })
895
776
  .s("oamservice", "DeleteLink", {})
896
777
  .n("OAMClient", "DeleteLinkCommand")
897
- .f(void 0, void 0)
898
- .ser(se_DeleteLinkCommand)
899
- .de(de_DeleteLinkCommand)
778
+ .sc(DeleteLink)
900
779
  .build() {
901
780
  }
902
781
 
@@ -904,16 +783,11 @@ class DeleteSinkCommand extends smithyClient.Command
904
783
  .classBuilder()
905
784
  .ep(commonParams)
906
785
  .m(function (Command, cs, config, o) {
907
- return [
908
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
909
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
910
- ];
786
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
911
787
  })
912
788
  .s("oamservice", "DeleteSink", {})
913
789
  .n("OAMClient", "DeleteSinkCommand")
914
- .f(void 0, void 0)
915
- .ser(se_DeleteSinkCommand)
916
- .de(de_DeleteSinkCommand)
790
+ .sc(DeleteSink)
917
791
  .build() {
918
792
  }
919
793
 
@@ -921,16 +795,11 @@ class GetLinkCommand extends smithyClient.Command
921
795
  .classBuilder()
922
796
  .ep(commonParams)
923
797
  .m(function (Command, cs, config, o) {
924
- return [
925
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
926
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
927
- ];
798
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
928
799
  })
929
800
  .s("oamservice", "GetLink", {})
930
801
  .n("OAMClient", "GetLinkCommand")
931
- .f(void 0, void 0)
932
- .ser(se_GetLinkCommand)
933
- .de(de_GetLinkCommand)
802
+ .sc(GetLink)
934
803
  .build() {
935
804
  }
936
805
 
@@ -938,16 +807,11 @@ class GetSinkCommand extends smithyClient.Command
938
807
  .classBuilder()
939
808
  .ep(commonParams)
940
809
  .m(function (Command, cs, config, o) {
941
- return [
942
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
943
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
944
- ];
810
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
945
811
  })
946
812
  .s("oamservice", "GetSink", {})
947
813
  .n("OAMClient", "GetSinkCommand")
948
- .f(void 0, void 0)
949
- .ser(se_GetSinkCommand)
950
- .de(de_GetSinkCommand)
814
+ .sc(GetSink)
951
815
  .build() {
952
816
  }
953
817
 
@@ -955,16 +819,11 @@ class GetSinkPolicyCommand extends smithyClient.Command
955
819
  .classBuilder()
956
820
  .ep(commonParams)
957
821
  .m(function (Command, cs, config, o) {
958
- return [
959
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
960
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
961
- ];
822
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
962
823
  })
963
824
  .s("oamservice", "GetSinkPolicy", {})
964
825
  .n("OAMClient", "GetSinkPolicyCommand")
965
- .f(void 0, void 0)
966
- .ser(se_GetSinkPolicyCommand)
967
- .de(de_GetSinkPolicyCommand)
826
+ .sc(GetSinkPolicy)
968
827
  .build() {
969
828
  }
970
829
 
@@ -972,16 +831,11 @@ class ListAttachedLinksCommand extends smithyClient.Command
972
831
  .classBuilder()
973
832
  .ep(commonParams)
974
833
  .m(function (Command, cs, config, o) {
975
- return [
976
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
977
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
978
- ];
834
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
979
835
  })
980
836
  .s("oamservice", "ListAttachedLinks", {})
981
837
  .n("OAMClient", "ListAttachedLinksCommand")
982
- .f(void 0, void 0)
983
- .ser(se_ListAttachedLinksCommand)
984
- .de(de_ListAttachedLinksCommand)
838
+ .sc(ListAttachedLinks)
985
839
  .build() {
986
840
  }
987
841
 
@@ -989,16 +843,11 @@ class ListLinksCommand extends smithyClient.Command
989
843
  .classBuilder()
990
844
  .ep(commonParams)
991
845
  .m(function (Command, cs, config, o) {
992
- return [
993
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
994
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
995
- ];
846
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
996
847
  })
997
848
  .s("oamservice", "ListLinks", {})
998
849
  .n("OAMClient", "ListLinksCommand")
999
- .f(void 0, void 0)
1000
- .ser(se_ListLinksCommand)
1001
- .de(de_ListLinksCommand)
850
+ .sc(ListLinks)
1002
851
  .build() {
1003
852
  }
1004
853
 
@@ -1006,16 +855,11 @@ class ListSinksCommand extends smithyClient.Command
1006
855
  .classBuilder()
1007
856
  .ep(commonParams)
1008
857
  .m(function (Command, cs, config, o) {
1009
- return [
1010
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1011
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1012
- ];
858
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1013
859
  })
1014
860
  .s("oamservice", "ListSinks", {})
1015
861
  .n("OAMClient", "ListSinksCommand")
1016
- .f(void 0, void 0)
1017
- .ser(se_ListSinksCommand)
1018
- .de(de_ListSinksCommand)
862
+ .sc(ListSinks)
1019
863
  .build() {
1020
864
  }
1021
865
 
@@ -1023,16 +867,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
1023
867
  .classBuilder()
1024
868
  .ep(commonParams)
1025
869
  .m(function (Command, cs, config, o) {
1026
- return [
1027
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1028
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1029
- ];
870
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1030
871
  })
1031
872
  .s("oamservice", "ListTagsForResource", {})
1032
873
  .n("OAMClient", "ListTagsForResourceCommand")
1033
- .f(void 0, void 0)
1034
- .ser(se_ListTagsForResourceCommand)
1035
- .de(de_ListTagsForResourceCommand)
874
+ .sc(ListTagsForResource)
1036
875
  .build() {
1037
876
  }
1038
877
 
@@ -1040,16 +879,11 @@ class PutSinkPolicyCommand extends smithyClient.Command
1040
879
  .classBuilder()
1041
880
  .ep(commonParams)
1042
881
  .m(function (Command, cs, config, o) {
1043
- return [
1044
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1045
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1046
- ];
882
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1047
883
  })
1048
884
  .s("oamservice", "PutSinkPolicy", {})
1049
885
  .n("OAMClient", "PutSinkPolicyCommand")
1050
- .f(void 0, void 0)
1051
- .ser(se_PutSinkPolicyCommand)
1052
- .de(de_PutSinkPolicyCommand)
886
+ .sc(PutSinkPolicy)
1053
887
  .build() {
1054
888
  }
1055
889
 
@@ -1057,16 +891,11 @@ class TagResourceCommand extends smithyClient.Command
1057
891
  .classBuilder()
1058
892
  .ep(commonParams)
1059
893
  .m(function (Command, cs, config, o) {
1060
- return [
1061
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1062
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1063
- ];
894
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1064
895
  })
1065
896
  .s("oamservice", "TagResource", {})
1066
897
  .n("OAMClient", "TagResourceCommand")
1067
- .f(void 0, void 0)
1068
- .ser(se_TagResourceCommand)
1069
- .de(de_TagResourceCommand)
898
+ .sc(TagResource)
1070
899
  .build() {
1071
900
  }
1072
901
 
@@ -1074,16 +903,11 @@ class UntagResourceCommand extends smithyClient.Command
1074
903
  .classBuilder()
1075
904
  .ep(commonParams)
1076
905
  .m(function (Command, cs, config, o) {
1077
- return [
1078
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1079
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1080
- ];
906
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1081
907
  })
1082
908
  .s("oamservice", "UntagResource", {})
1083
909
  .n("OAMClient", "UntagResourceCommand")
1084
- .f(void 0, void 0)
1085
- .ser(se_UntagResourceCommand)
1086
- .de(de_UntagResourceCommand)
910
+ .sc(UntagResource)
1087
911
  .build() {
1088
912
  }
1089
913
 
@@ -1091,16 +915,11 @@ class UpdateLinkCommand extends smithyClient.Command
1091
915
  .classBuilder()
1092
916
  .ep(commonParams)
1093
917
  .m(function (Command, cs, config, o) {
1094
- return [
1095
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1096
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1097
- ];
918
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1098
919
  })
1099
920
  .s("oamservice", "UpdateLink", {})
1100
921
  .n("OAMClient", "UpdateLinkCommand")
1101
- .f(void 0, void 0)
1102
- .ser(se_UpdateLinkCommand)
1103
- .de(de_UpdateLinkCommand)
922
+ .sc(UpdateLink)
1104
923
  .build() {
1105
924
  }
1106
925
 
@@ -1139,7 +958,7 @@ Object.defineProperty(exports, "__Client", {
1139
958
  enumerable: true,
1140
959
  get: function () { return smithyClient.Client; }
1141
960
  });
1142
- exports.ConflictException = ConflictException;
961
+ exports.ConflictException = ConflictException$1;
1143
962
  exports.CreateLinkCommand = CreateLinkCommand;
1144
963
  exports.CreateSinkCommand = CreateSinkCommand;
1145
964
  exports.DeleteLinkCommand = DeleteLinkCommand;
@@ -1147,25 +966,25 @@ exports.DeleteSinkCommand = DeleteSinkCommand;
1147
966
  exports.GetLinkCommand = GetLinkCommand;
1148
967
  exports.GetSinkCommand = GetSinkCommand;
1149
968
  exports.GetSinkPolicyCommand = GetSinkPolicyCommand;
1150
- exports.InternalServiceFault = InternalServiceFault;
1151
- exports.InvalidParameterException = InvalidParameterException;
969
+ exports.InternalServiceFault = InternalServiceFault$1;
970
+ exports.InvalidParameterException = InvalidParameterException$1;
1152
971
  exports.ListAttachedLinksCommand = ListAttachedLinksCommand;
1153
972
  exports.ListLinksCommand = ListLinksCommand;
1154
973
  exports.ListSinksCommand = ListSinksCommand;
1155
974
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1156
- exports.MissingRequiredParameterException = MissingRequiredParameterException;
975
+ exports.MissingRequiredParameterException = MissingRequiredParameterException$1;
1157
976
  exports.OAM = OAM;
1158
977
  exports.OAMClient = OAMClient;
1159
- exports.OAMServiceException = OAMServiceException;
978
+ exports.OAMServiceException = OAMServiceException$1;
1160
979
  exports.PutSinkPolicyCommand = PutSinkPolicyCommand;
1161
- exports.ResourceNotFoundException = ResourceNotFoundException;
980
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1162
981
  exports.ResourceType = ResourceType;
1163
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
982
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
1164
983
  exports.TagResourceCommand = TagResourceCommand;
1165
- exports.TooManyTagsException = TooManyTagsException;
984
+ exports.TooManyTagsException = TooManyTagsException$1;
1166
985
  exports.UntagResourceCommand = UntagResourceCommand;
1167
986
  exports.UpdateLinkCommand = UpdateLinkCommand;
1168
- exports.ValidationException = ValidationException;
987
+ exports.ValidationException = ValidationException$1;
1169
988
  exports.paginateListAttachedLinks = paginateListAttachedLinks;
1170
989
  exports.paginateListLinks = paginateListLinks;
1171
990
  exports.paginateListSinks = paginateListSinks;