@aws-sdk/client-synthetics 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 (43) hide show
  1. package/dist-cjs/index.js +988 -1115
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/SyntheticsClient.js +2 -0
  4. package/dist-es/commands/AssociateResourceCommand.js +3 -9
  5. package/dist-es/commands/CreateCanaryCommand.js +3 -9
  6. package/dist-es/commands/CreateGroupCommand.js +3 -9
  7. package/dist-es/commands/DeleteCanaryCommand.js +3 -9
  8. package/dist-es/commands/DeleteGroupCommand.js +3 -9
  9. package/dist-es/commands/DescribeCanariesCommand.js +3 -9
  10. package/dist-es/commands/DescribeCanariesLastRunCommand.js +3 -9
  11. package/dist-es/commands/DescribeRuntimeVersionsCommand.js +3 -9
  12. package/dist-es/commands/DisassociateResourceCommand.js +3 -9
  13. package/dist-es/commands/GetCanaryCommand.js +3 -9
  14. package/dist-es/commands/GetCanaryRunsCommand.js +3 -9
  15. package/dist-es/commands/GetGroupCommand.js +3 -9
  16. package/dist-es/commands/ListAssociatedGroupsCommand.js +3 -9
  17. package/dist-es/commands/ListGroupResourcesCommand.js +3 -9
  18. package/dist-es/commands/ListGroupsCommand.js +3 -9
  19. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  20. package/dist-es/commands/StartCanaryCommand.js +3 -9
  21. package/dist-es/commands/StartCanaryDryRunCommand.js +3 -9
  22. package/dist-es/commands/StopCanaryCommand.js +3 -9
  23. package/dist-es/commands/TagResourceCommand.js +3 -9
  24. package/dist-es/commands/UntagResourceCommand.js +3 -9
  25. package/dist-es/commands/UpdateCanaryCommand.js +3 -9
  26. package/dist-es/runtimeConfig.shared.js +2 -0
  27. package/dist-es/schemas/schemas_0.js +927 -0
  28. package/dist-types/SyntheticsClient.d.ts +10 -1
  29. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  30. package/dist-types/runtimeConfig.d.ts +1 -0
  31. package/dist-types/runtimeConfig.native.d.ts +1 -0
  32. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  33. package/dist-types/schemas/schemas_0.d.ts +133 -0
  34. package/dist-types/ts3.4/SyntheticsClient.d.ts +4 -0
  35. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  36. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  37. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  38. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  39. package/dist-types/ts3.4/schemas/schemas_0.d.ts +138 -0
  40. package/package.json +33 -33
  41. package/dist-es/protocols/Aws_restJson1.js +0 -935
  42. package/dist-types/protocols/Aws_restJson1.d.ts +0 -200
  43. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -269
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 SyntheticsClient 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 SyntheticsClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class SyntheticsServiceException extends smithyClient.ServiceException {
113
+ let SyntheticsServiceException$1 = class SyntheticsServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, SyntheticsServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class AccessDeniedException extends SyntheticsServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends SyntheticsServiceException$1 {
121
121
  name = "AccessDeniedException";
122
122
  $fault = "client";
123
123
  Message;
@@ -130,12 +130,12 @@ class AccessDeniedException extends SyntheticsServiceException {
130
130
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
131
  this.Message = opts.Message;
132
132
  }
133
- }
133
+ };
134
134
  const EncryptionMode = {
135
135
  SSE_KMS: "SSE_KMS",
136
136
  SSE_S3: "SSE_S3",
137
137
  };
138
- class ConflictException extends SyntheticsServiceException {
138
+ let ConflictException$1 = class ConflictException extends SyntheticsServiceException$1 {
139
139
  name = "ConflictException";
140
140
  $fault = "client";
141
141
  Message;
@@ -148,8 +148,8 @@ class ConflictException extends SyntheticsServiceException {
148
148
  Object.setPrototypeOf(this, ConflictException.prototype);
149
149
  this.Message = opts.Message;
150
150
  }
151
- }
152
- class InternalServerException extends SyntheticsServiceException {
151
+ };
152
+ let InternalServerException$1 = class InternalServerException extends SyntheticsServiceException$1 {
153
153
  name = "InternalServerException";
154
154
  $fault = "server";
155
155
  Message;
@@ -162,8 +162,8 @@ class InternalServerException extends SyntheticsServiceException {
162
162
  Object.setPrototypeOf(this, InternalServerException.prototype);
163
163
  this.Message = opts.Message;
164
164
  }
165
- }
166
- class ResourceNotFoundException extends SyntheticsServiceException {
165
+ };
166
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends SyntheticsServiceException$1 {
167
167
  name = "ResourceNotFoundException";
168
168
  $fault = "client";
169
169
  Message;
@@ -176,8 +176,8 @@ class ResourceNotFoundException extends SyntheticsServiceException {
176
176
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
177
177
  this.Message = opts.Message;
178
178
  }
179
- }
180
- class ServiceQuotaExceededException extends SyntheticsServiceException {
179
+ };
180
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends SyntheticsServiceException$1 {
181
181
  name = "ServiceQuotaExceededException";
182
182
  $fault = "client";
183
183
  Message;
@@ -190,8 +190,8 @@ class ServiceQuotaExceededException extends SyntheticsServiceException {
190
190
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
191
191
  this.Message = opts.Message;
192
192
  }
193
- }
194
- class ValidationException extends SyntheticsServiceException {
193
+ };
194
+ let ValidationException$1 = class ValidationException extends SyntheticsServiceException$1 {
195
195
  name = "ValidationException";
196
196
  $fault = "client";
197
197
  Message;
@@ -204,8 +204,8 @@ class ValidationException extends SyntheticsServiceException {
204
204
  Object.setPrototypeOf(this, ValidationException.prototype);
205
205
  this.Message = opts.Message;
206
206
  }
207
- }
208
- class BadRequestException extends SyntheticsServiceException {
207
+ };
208
+ let BadRequestException$1 = class BadRequestException extends SyntheticsServiceException$1 {
209
209
  name = "BadRequestException";
210
210
  $fault = "client";
211
211
  Message;
@@ -218,7 +218,7 @@ class BadRequestException extends SyntheticsServiceException {
218
218
  Object.setPrototypeOf(this, BadRequestException.prototype);
219
219
  this.Message = opts.Message;
220
220
  }
221
- }
221
+ };
222
222
  const BrowserType = {
223
223
  CHROME: "CHROME",
224
224
  FIREFOX: "FIREFOX",
@@ -272,7 +272,7 @@ const CanaryRunTestResult = {
272
272
  const ResourceToTag = {
273
273
  LAMBDA_FUNCTION: "lambda-function",
274
274
  };
275
- class RequestEntityTooLargeException extends SyntheticsServiceException {
275
+ let RequestEntityTooLargeException$1 = class RequestEntityTooLargeException extends SyntheticsServiceException$1 {
276
276
  name = "RequestEntityTooLargeException";
277
277
  $fault = "client";
278
278
  Message;
@@ -285,12 +285,12 @@ class RequestEntityTooLargeException extends SyntheticsServiceException {
285
285
  Object.setPrototypeOf(this, RequestEntityTooLargeException.prototype);
286
286
  this.Message = opts.Message;
287
287
  }
288
- }
288
+ };
289
289
  const RunType = {
290
290
  CANARY_RUN: "CANARY_RUN",
291
291
  DRY_RUN: "DRY_RUN",
292
292
  };
293
- class InternalFailureException extends SyntheticsServiceException {
293
+ let InternalFailureException$1 = class InternalFailureException extends SyntheticsServiceException$1 {
294
294
  name = "InternalFailureException";
295
295
  $fault = "server";
296
296
  Message;
@@ -303,8 +303,8 @@ class InternalFailureException extends SyntheticsServiceException {
303
303
  Object.setPrototypeOf(this, InternalFailureException.prototype);
304
304
  this.Message = opts.Message;
305
305
  }
306
- }
307
- class NotFoundException extends SyntheticsServiceException {
306
+ };
307
+ let NotFoundException$1 = class NotFoundException extends SyntheticsServiceException$1 {
308
308
  name = "NotFoundException";
309
309
  $fault = "client";
310
310
  Message;
@@ -317,8 +317,8 @@ class NotFoundException extends SyntheticsServiceException {
317
317
  Object.setPrototypeOf(this, NotFoundException.prototype);
318
318
  this.Message = opts.Message;
319
319
  }
320
- }
321
- class TooManyRequestsException extends SyntheticsServiceException {
320
+ };
321
+ let TooManyRequestsException$1 = class TooManyRequestsException extends SyntheticsServiceException$1 {
322
322
  name = "TooManyRequestsException";
323
323
  $fault = "client";
324
324
  Message;
@@ -331,952 +331,930 @@ class TooManyRequestsException extends SyntheticsServiceException {
331
331
  Object.setPrototypeOf(this, TooManyRequestsException.prototype);
332
332
  this.Message = opts.Message;
333
333
  }
334
- }
335
-
336
- const se_AssociateResourceCommand = async (input, context) => {
337
- const b = core.requestBuilder(input, context);
338
- const headers = {
339
- "content-type": "application/json",
340
- };
341
- b.bp("/group/{GroupIdentifier}/associate");
342
- b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
343
- let body;
344
- body = JSON.stringify(smithyClient.take(input, {
345
- ResourceArn: [],
346
- }));
347
- b.m("PATCH").h(headers).b(body);
348
- return b.build();
349
- };
350
- const se_CreateCanaryCommand = async (input, context) => {
351
- const b = core.requestBuilder(input, context);
352
- const headers = {
353
- "content-type": "application/json",
354
- };
355
- b.bp("/canary");
356
- let body;
357
- body = JSON.stringify(smithyClient.take(input, {
358
- ArtifactConfig: (_) => smithyClient._json(_),
359
- ArtifactS3Location: [],
360
- BrowserConfigs: (_) => smithyClient._json(_),
361
- Code: (_) => se_CanaryCodeInput(_, context),
362
- ExecutionRoleArn: [],
363
- FailureRetentionPeriodInDays: [],
364
- Name: [],
365
- ProvisionedResourceCleanup: [],
366
- ResourcesToReplicateTags: (_) => smithyClient._json(_),
367
- RunConfig: (_) => smithyClient._json(_),
368
- RuntimeVersion: [],
369
- Schedule: (_) => smithyClient._json(_),
370
- SuccessRetentionPeriodInDays: [],
371
- Tags: (_) => smithyClient._json(_),
372
- VpcConfig: (_) => smithyClient._json(_),
373
- }));
374
- b.m("POST").h(headers).b(body);
375
- return b.build();
376
- };
377
- const se_CreateGroupCommand = async (input, context) => {
378
- const b = core.requestBuilder(input, context);
379
- const headers = {
380
- "content-type": "application/json",
381
- };
382
- b.bp("/group");
383
- let body;
384
- body = JSON.stringify(smithyClient.take(input, {
385
- Name: [],
386
- Tags: (_) => smithyClient._json(_),
387
- }));
388
- b.m("POST").h(headers).b(body);
389
- return b.build();
390
- };
391
- const se_DeleteCanaryCommand = async (input, context) => {
392
- const b = core.requestBuilder(input, context);
393
- const headers = {};
394
- b.bp("/canary/{Name}");
395
- b.p("Name", () => input.Name, "{Name}", false);
396
- const query = smithyClient.map({
397
- [_dL]: [() => input.DeleteLambda !== void 0, () => input[_DL].toString()],
398
- });
399
- let body;
400
- b.m("DELETE").h(headers).q(query).b(body);
401
- return b.build();
402
- };
403
- const se_DeleteGroupCommand = async (input, context) => {
404
- const b = core.requestBuilder(input, context);
405
- const headers = {};
406
- b.bp("/group/{GroupIdentifier}");
407
- b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
408
- let body;
409
- b.m("DELETE").h(headers).b(body);
410
- return b.build();
411
- };
412
- const se_DescribeCanariesCommand = async (input, context) => {
413
- const b = core.requestBuilder(input, context);
414
- const headers = {
415
- "content-type": "application/json",
416
- };
417
- b.bp("/canaries");
418
- let body;
419
- body = JSON.stringify(smithyClient.take(input, {
420
- MaxResults: [],
421
- Names: (_) => smithyClient._json(_),
422
- NextToken: [],
423
- }));
424
- b.m("POST").h(headers).b(body);
425
- return b.build();
426
- };
427
- const se_DescribeCanariesLastRunCommand = async (input, context) => {
428
- const b = core.requestBuilder(input, context);
429
- const headers = {
430
- "content-type": "application/json",
431
- };
432
- b.bp("/canaries/last-run");
433
- let body;
434
- body = JSON.stringify(smithyClient.take(input, {
435
- BrowserType: [],
436
- MaxResults: [],
437
- Names: (_) => smithyClient._json(_),
438
- NextToken: [],
439
- }));
440
- b.m("POST").h(headers).b(body);
441
- return b.build();
442
- };
443
- const se_DescribeRuntimeVersionsCommand = async (input, context) => {
444
- const b = core.requestBuilder(input, context);
445
- const headers = {
446
- "content-type": "application/json",
447
- };
448
- b.bp("/runtime-versions");
449
- let body;
450
- body = JSON.stringify(smithyClient.take(input, {
451
- MaxResults: [],
452
- NextToken: [],
453
- }));
454
- b.m("POST").h(headers).b(body);
455
- return b.build();
456
- };
457
- const se_DisassociateResourceCommand = async (input, context) => {
458
- const b = core.requestBuilder(input, context);
459
- const headers = {
460
- "content-type": "application/json",
461
- };
462
- b.bp("/group/{GroupIdentifier}/disassociate");
463
- b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
464
- let body;
465
- body = JSON.stringify(smithyClient.take(input, {
466
- ResourceArn: [],
467
- }));
468
- b.m("PATCH").h(headers).b(body);
469
- return b.build();
470
- };
471
- const se_GetCanaryCommand = async (input, context) => {
472
- const b = core.requestBuilder(input, context);
473
- const headers = {};
474
- b.bp("/canary/{Name}");
475
- b.p("Name", () => input.Name, "{Name}", false);
476
- const query = smithyClient.map({
477
- [_dRI]: [, input[_DRI]],
478
- });
479
- let body;
480
- b.m("GET").h(headers).q(query).b(body);
481
- return b.build();
482
- };
483
- const se_GetCanaryRunsCommand = async (input, context) => {
484
- const b = core.requestBuilder(input, context);
485
- const headers = {
486
- "content-type": "application/json",
487
- };
488
- b.bp("/canary/{Name}/runs");
489
- b.p("Name", () => input.Name, "{Name}", false);
490
- let body;
491
- body = JSON.stringify(smithyClient.take(input, {
492
- DryRunId: [],
493
- MaxResults: [],
494
- NextToken: [],
495
- RunType: [],
496
- }));
497
- b.m("POST").h(headers).b(body);
498
- return b.build();
499
- };
500
- const se_GetGroupCommand = async (input, context) => {
501
- const b = core.requestBuilder(input, context);
502
- const headers = {};
503
- b.bp("/group/{GroupIdentifier}");
504
- b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
505
- let body;
506
- b.m("GET").h(headers).b(body);
507
- return b.build();
508
- };
509
- const se_ListAssociatedGroupsCommand = async (input, context) => {
510
- const b = core.requestBuilder(input, context);
511
- const headers = {
512
- "content-type": "application/json",
513
- };
514
- b.bp("/resource/{ResourceArn}/groups");
515
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
516
- let body;
517
- body = JSON.stringify(smithyClient.take(input, {
518
- MaxResults: [],
519
- NextToken: [],
520
- }));
521
- b.m("POST").h(headers).b(body);
522
- return b.build();
523
- };
524
- const se_ListGroupResourcesCommand = async (input, context) => {
525
- const b = core.requestBuilder(input, context);
526
- const headers = {
527
- "content-type": "application/json",
528
- };
529
- b.bp("/group/{GroupIdentifier}/resources");
530
- b.p("GroupIdentifier", () => input.GroupIdentifier, "{GroupIdentifier}", false);
531
- let body;
532
- body = JSON.stringify(smithyClient.take(input, {
533
- MaxResults: [],
534
- NextToken: [],
535
- }));
536
- b.m("POST").h(headers).b(body);
537
- return b.build();
538
- };
539
- const se_ListGroupsCommand = async (input, context) => {
540
- const b = core.requestBuilder(input, context);
541
- const headers = {
542
- "content-type": "application/json",
543
- };
544
- b.bp("/groups");
545
- let body;
546
- body = JSON.stringify(smithyClient.take(input, {
547
- MaxResults: [],
548
- NextToken: [],
549
- }));
550
- b.m("POST").h(headers).b(body);
551
- return b.build();
552
- };
553
- const se_ListTagsForResourceCommand = async (input, context) => {
554
- const b = core.requestBuilder(input, context);
555
- const headers = {};
556
- b.bp("/tags/{ResourceArn}");
557
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
558
- let body;
559
- b.m("GET").h(headers).b(body);
560
- return b.build();
561
- };
562
- const se_StartCanaryCommand = async (input, context) => {
563
- const b = core.requestBuilder(input, context);
564
- const headers = {};
565
- b.bp("/canary/{Name}/start");
566
- b.p("Name", () => input.Name, "{Name}", false);
567
- let body;
568
- b.m("POST").h(headers).b(body);
569
- return b.build();
570
- };
571
- const se_StartCanaryDryRunCommand = async (input, context) => {
572
- const b = core.requestBuilder(input, context);
573
- const headers = {
574
- "content-type": "application/json",
575
- };
576
- b.bp("/canary/{Name}/dry-run/start");
577
- b.p("Name", () => input.Name, "{Name}", false);
578
- let body;
579
- body = JSON.stringify(smithyClient.take(input, {
580
- ArtifactConfig: (_) => smithyClient._json(_),
581
- ArtifactS3Location: [],
582
- BrowserConfigs: (_) => smithyClient._json(_),
583
- Code: (_) => se_CanaryCodeInput(_, context),
584
- ExecutionRoleArn: [],
585
- FailureRetentionPeriodInDays: [],
586
- ProvisionedResourceCleanup: [],
587
- RunConfig: (_) => smithyClient._json(_),
588
- RuntimeVersion: [],
589
- SuccessRetentionPeriodInDays: [],
590
- VisualReference: (_) => smithyClient._json(_),
591
- VisualReferences: (_) => smithyClient._json(_),
592
- VpcConfig: (_) => smithyClient._json(_),
593
- }));
594
- b.m("POST").h(headers).b(body);
595
- return b.build();
596
- };
597
- const se_StopCanaryCommand = async (input, context) => {
598
- const b = core.requestBuilder(input, context);
599
- const headers = {};
600
- b.bp("/canary/{Name}/stop");
601
- b.p("Name", () => input.Name, "{Name}", false);
602
- let body;
603
- b.m("POST").h(headers).b(body);
604
- return b.build();
605
- };
606
- const se_TagResourceCommand = async (input, context) => {
607
- const b = core.requestBuilder(input, context);
608
- const headers = {
609
- "content-type": "application/json",
610
- };
611
- b.bp("/tags/{ResourceArn}");
612
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
613
- let body;
614
- body = JSON.stringify(smithyClient.take(input, {
615
- Tags: (_) => smithyClient._json(_),
616
- }));
617
- b.m("POST").h(headers).b(body);
618
- return b.build();
619
- };
620
- const se_UntagResourceCommand = async (input, context) => {
621
- const b = core.requestBuilder(input, context);
622
- const headers = {};
623
- b.bp("/tags/{ResourceArn}");
624
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
625
- const query = smithyClient.map({
626
- [_tK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
627
- });
628
- let body;
629
- b.m("DELETE").h(headers).q(query).b(body);
630
- return b.build();
631
- };
632
- const se_UpdateCanaryCommand = async (input, context) => {
633
- const b = core.requestBuilder(input, context);
634
- const headers = {
635
- "content-type": "application/json",
636
- };
637
- b.bp("/canary/{Name}");
638
- b.p("Name", () => input.Name, "{Name}", false);
639
- let body;
640
- body = JSON.stringify(smithyClient.take(input, {
641
- ArtifactConfig: (_) => smithyClient._json(_),
642
- ArtifactS3Location: [],
643
- BrowserConfigs: (_) => smithyClient._json(_),
644
- Code: (_) => se_CanaryCodeInput(_, context),
645
- DryRunId: [],
646
- ExecutionRoleArn: [],
647
- FailureRetentionPeriodInDays: [],
648
- ProvisionedResourceCleanup: [],
649
- RunConfig: (_) => smithyClient._json(_),
650
- RuntimeVersion: [],
651
- Schedule: (_) => smithyClient._json(_),
652
- SuccessRetentionPeriodInDays: [],
653
- VisualReference: (_) => smithyClient._json(_),
654
- VisualReferences: (_) => smithyClient._json(_),
655
- VpcConfig: (_) => smithyClient._json(_),
656
- }));
657
- b.m("PATCH").h(headers).b(body);
658
- return b.build();
659
- };
660
- const de_AssociateResourceCommand = async (output, context) => {
661
- if (output.statusCode !== 200 && output.statusCode >= 300) {
662
- return de_CommandError(output, context);
663
- }
664
- const contents = smithyClient.map({
665
- $metadata: deserializeMetadata(output),
666
- });
667
- await smithyClient.collectBody(output.body, context);
668
- return contents;
669
- };
670
- const de_CreateCanaryCommand = async (output, context) => {
671
- if (output.statusCode !== 200 && output.statusCode >= 300) {
672
- return de_CommandError(output, context);
673
- }
674
- const contents = smithyClient.map({
675
- $metadata: deserializeMetadata(output),
676
- });
677
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
678
- const doc = smithyClient.take(data, {
679
- Canary: (_) => de_Canary(_),
680
- });
681
- Object.assign(contents, doc);
682
- return contents;
683
- };
684
- const de_CreateGroupCommand = async (output, context) => {
685
- if (output.statusCode !== 200 && output.statusCode >= 300) {
686
- return de_CommandError(output, context);
687
- }
688
- const contents = smithyClient.map({
689
- $metadata: deserializeMetadata(output),
690
- });
691
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
692
- const doc = smithyClient.take(data, {
693
- Group: (_) => de_Group(_),
694
- });
695
- Object.assign(contents, doc);
696
- return contents;
697
- };
698
- const de_DeleteCanaryCommand = async (output, context) => {
699
- if (output.statusCode !== 200 && output.statusCode >= 300) {
700
- return de_CommandError(output, context);
701
- }
702
- const contents = smithyClient.map({
703
- $metadata: deserializeMetadata(output),
704
- });
705
- await smithyClient.collectBody(output.body, context);
706
- return contents;
707
- };
708
- const de_DeleteGroupCommand = async (output, context) => {
709
- if (output.statusCode !== 200 && output.statusCode >= 300) {
710
- return de_CommandError(output, context);
711
- }
712
- const contents = smithyClient.map({
713
- $metadata: deserializeMetadata(output),
714
- });
715
- await smithyClient.collectBody(output.body, context);
716
- return contents;
717
- };
718
- const de_DescribeCanariesCommand = async (output, context) => {
719
- if (output.statusCode !== 200 && output.statusCode >= 300) {
720
- return de_CommandError(output, context);
721
- }
722
- const contents = smithyClient.map({
723
- $metadata: deserializeMetadata(output),
724
- });
725
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
726
- const doc = smithyClient.take(data, {
727
- Canaries: (_) => de_Canaries(_),
728
- NextToken: smithyClient.expectString,
729
- });
730
- Object.assign(contents, doc);
731
- return contents;
732
- };
733
- const de_DescribeCanariesLastRunCommand = async (output, context) => {
734
- if (output.statusCode !== 200 && output.statusCode >= 300) {
735
- return de_CommandError(output, context);
736
- }
737
- const contents = smithyClient.map({
738
- $metadata: deserializeMetadata(output),
739
- });
740
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
741
- const doc = smithyClient.take(data, {
742
- CanariesLastRun: (_) => de_CanariesLastRun(_),
743
- NextToken: smithyClient.expectString,
744
- });
745
- Object.assign(contents, doc);
746
- return contents;
747
- };
748
- const de_DescribeRuntimeVersionsCommand = async (output, context) => {
749
- if (output.statusCode !== 200 && output.statusCode >= 300) {
750
- return de_CommandError(output, context);
751
- }
752
- const contents = smithyClient.map({
753
- $metadata: deserializeMetadata(output),
754
- });
755
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
756
- const doc = smithyClient.take(data, {
757
- NextToken: smithyClient.expectString,
758
- RuntimeVersions: (_) => de_RuntimeVersionList(_),
759
- });
760
- Object.assign(contents, doc);
761
- return contents;
762
- };
763
- const de_DisassociateResourceCommand = async (output, context) => {
764
- if (output.statusCode !== 200 && output.statusCode >= 300) {
765
- return de_CommandError(output, context);
766
- }
767
- const contents = smithyClient.map({
768
- $metadata: deserializeMetadata(output),
769
- });
770
- await smithyClient.collectBody(output.body, context);
771
- return contents;
772
- };
773
- const de_GetCanaryCommand = async (output, context) => {
774
- if (output.statusCode !== 200 && output.statusCode >= 300) {
775
- return de_CommandError(output, context);
776
- }
777
- const contents = smithyClient.map({
778
- $metadata: deserializeMetadata(output),
779
- });
780
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
781
- const doc = smithyClient.take(data, {
782
- Canary: (_) => de_Canary(_),
783
- });
784
- Object.assign(contents, doc);
785
- return contents;
786
- };
787
- const de_GetCanaryRunsCommand = async (output, context) => {
788
- if (output.statusCode !== 200 && output.statusCode >= 300) {
789
- return de_CommandError(output, context);
790
- }
791
- const contents = smithyClient.map({
792
- $metadata: deserializeMetadata(output),
793
- });
794
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
795
- const doc = smithyClient.take(data, {
796
- CanaryRuns: (_) => de_CanaryRuns(_),
797
- NextToken: smithyClient.expectString,
798
- });
799
- Object.assign(contents, doc);
800
- return contents;
801
334
  };
802
- const de_GetGroupCommand = async (output, context) => {
803
- if (output.statusCode !== 200 && output.statusCode >= 300) {
804
- return de_CommandError(output, context);
805
- }
806
- const contents = smithyClient.map({
807
- $metadata: deserializeMetadata(output),
808
- });
809
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
810
- const doc = smithyClient.take(data, {
811
- Group: (_) => de_Group(_),
812
- });
813
- Object.assign(contents, doc);
814
- return contents;
815
- };
816
- const de_ListAssociatedGroupsCommand = async (output, context) => {
817
- if (output.statusCode !== 200 && output.statusCode >= 300) {
818
- return de_CommandError(output, context);
819
- }
820
- const contents = smithyClient.map({
821
- $metadata: deserializeMetadata(output),
822
- });
823
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
824
- const doc = smithyClient.take(data, {
825
- Groups: smithyClient._json,
826
- NextToken: smithyClient.expectString,
827
- });
828
- Object.assign(contents, doc);
829
- return contents;
830
- };
831
- const de_ListGroupResourcesCommand = async (output, context) => {
832
- if (output.statusCode !== 200 && output.statusCode >= 300) {
833
- return de_CommandError(output, context);
834
- }
835
- const contents = smithyClient.map({
836
- $metadata: deserializeMetadata(output),
837
- });
838
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
839
- const doc = smithyClient.take(data, {
840
- NextToken: smithyClient.expectString,
841
- Resources: smithyClient._json,
842
- });
843
- Object.assign(contents, doc);
844
- return contents;
845
- };
846
- const de_ListGroupsCommand = async (output, context) => {
847
- if (output.statusCode !== 200 && output.statusCode >= 300) {
848
- return de_CommandError(output, context);
849
- }
850
- const contents = smithyClient.map({
851
- $metadata: deserializeMetadata(output),
852
- });
853
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
854
- const doc = smithyClient.take(data, {
855
- Groups: smithyClient._json,
856
- NextToken: smithyClient.expectString,
857
- });
858
- Object.assign(contents, doc);
859
- return contents;
860
- };
861
- const de_ListTagsForResourceCommand = async (output, context) => {
862
- if (output.statusCode !== 200 && output.statusCode >= 300) {
863
- return de_CommandError(output, context);
864
- }
865
- const contents = smithyClient.map({
866
- $metadata: deserializeMetadata(output),
867
- });
868
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
869
- const doc = smithyClient.take(data, {
870
- Tags: smithyClient._json,
871
- });
872
- Object.assign(contents, doc);
873
- return contents;
874
- };
875
- const de_StartCanaryCommand = async (output, context) => {
876
- if (output.statusCode !== 200 && output.statusCode >= 300) {
877
- return de_CommandError(output, context);
878
- }
879
- const contents = smithyClient.map({
880
- $metadata: deserializeMetadata(output),
881
- });
882
- await smithyClient.collectBody(output.body, context);
883
- return contents;
884
- };
885
- const de_StartCanaryDryRunCommand = async (output, context) => {
886
- if (output.statusCode !== 200 && output.statusCode >= 300) {
887
- return de_CommandError(output, context);
888
- }
889
- const contents = smithyClient.map({
890
- $metadata: deserializeMetadata(output),
891
- });
892
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
893
- const doc = smithyClient.take(data, {
894
- DryRunConfig: smithyClient._json,
895
- });
896
- Object.assign(contents, doc);
897
- return contents;
898
- };
899
- const de_StopCanaryCommand = async (output, context) => {
900
- if (output.statusCode !== 200 && output.statusCode >= 300) {
901
- return de_CommandError(output, context);
902
- }
903
- const contents = smithyClient.map({
904
- $metadata: deserializeMetadata(output),
905
- });
906
- await smithyClient.collectBody(output.body, context);
907
- return contents;
908
- };
909
- const de_TagResourceCommand = async (output, context) => {
910
- if (output.statusCode !== 200 && output.statusCode >= 300) {
911
- return de_CommandError(output, context);
912
- }
913
- const contents = smithyClient.map({
914
- $metadata: deserializeMetadata(output),
915
- });
916
- await smithyClient.collectBody(output.body, context);
917
- return contents;
918
- };
919
- const de_UntagResourceCommand = async (output, context) => {
920
- if (output.statusCode !== 200 && output.statusCode >= 300) {
921
- return de_CommandError(output, context);
922
- }
923
- const contents = smithyClient.map({
924
- $metadata: deserializeMetadata(output),
925
- });
926
- await smithyClient.collectBody(output.body, context);
927
- return contents;
928
- };
929
- const de_UpdateCanaryCommand = async (output, context) => {
930
- if (output.statusCode !== 200 && output.statusCode >= 300) {
931
- return de_CommandError(output, context);
932
- }
933
- const contents = smithyClient.map({
934
- $metadata: deserializeMetadata(output),
935
- });
936
- await smithyClient.collectBody(output.body, context);
937
- return contents;
938
- };
939
- const de_CommandError = async (output, context) => {
940
- const parsedOutput = {
941
- ...output,
942
- body: await core$1.parseJsonErrorBody(output.body, context),
943
- };
944
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
945
- switch (errorCode) {
946
- case "ConflictException":
947
- case "com.amazonaws.synthetics#ConflictException":
948
- throw await de_ConflictExceptionRes(parsedOutput);
949
- case "InternalServerException":
950
- case "com.amazonaws.synthetics#InternalServerException":
951
- throw await de_InternalServerExceptionRes(parsedOutput);
952
- case "ResourceNotFoundException":
953
- case "com.amazonaws.synthetics#ResourceNotFoundException":
954
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
955
- case "ServiceQuotaExceededException":
956
- case "com.amazonaws.synthetics#ServiceQuotaExceededException":
957
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
958
- case "ValidationException":
959
- case "com.amazonaws.synthetics#ValidationException":
960
- throw await de_ValidationExceptionRes(parsedOutput);
961
- case "RequestEntityTooLargeException":
962
- case "com.amazonaws.synthetics#RequestEntityTooLargeException":
963
- throw await de_RequestEntityTooLargeExceptionRes(parsedOutput);
964
- case "BadRequestException":
965
- case "com.amazonaws.synthetics#BadRequestException":
966
- throw await de_BadRequestExceptionRes(parsedOutput);
967
- case "InternalFailureException":
968
- case "com.amazonaws.synthetics#InternalFailureException":
969
- throw await de_InternalFailureExceptionRes(parsedOutput);
970
- case "NotFoundException":
971
- case "com.amazonaws.synthetics#NotFoundException":
972
- throw await de_NotFoundExceptionRes(parsedOutput);
973
- case "TooManyRequestsException":
974
- case "com.amazonaws.synthetics#TooManyRequestsException":
975
- throw await de_TooManyRequestsExceptionRes(parsedOutput);
976
- case "AccessDeniedException":
977
- case "com.amazonaws.synthetics#AccessDeniedException":
978
- throw await de_AccessDeniedExceptionRes(parsedOutput);
979
- default:
980
- const parsedBody = parsedOutput.body;
981
- return throwDefaultError({
982
- output,
983
- parsedBody,
984
- errorCode,
985
- });
986
- }
987
- };
988
- const throwDefaultError = smithyClient.withBaseException(SyntheticsServiceException);
989
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
990
- const contents = smithyClient.map({});
991
- const data = parsedOutput.body;
992
- const doc = smithyClient.take(data, {
993
- Message: smithyClient.expectString,
994
- });
995
- Object.assign(contents, doc);
996
- const exception = new AccessDeniedException({
997
- $metadata: deserializeMetadata(parsedOutput),
998
- ...contents,
999
- });
1000
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1001
- };
1002
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
1003
- const contents = smithyClient.map({});
1004
- const data = parsedOutput.body;
1005
- const doc = smithyClient.take(data, {
1006
- Message: smithyClient.expectString,
1007
- });
1008
- Object.assign(contents, doc);
1009
- const exception = new BadRequestException({
1010
- $metadata: deserializeMetadata(parsedOutput),
1011
- ...contents,
1012
- });
1013
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1014
- };
1015
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
1016
- const contents = smithyClient.map({});
1017
- const data = parsedOutput.body;
1018
- const doc = smithyClient.take(data, {
1019
- Message: smithyClient.expectString,
1020
- });
1021
- Object.assign(contents, doc);
1022
- const exception = new ConflictException({
1023
- $metadata: deserializeMetadata(parsedOutput),
1024
- ...contents,
1025
- });
1026
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1027
- };
1028
- const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
1029
- const contents = smithyClient.map({});
1030
- const data = parsedOutput.body;
1031
- const doc = smithyClient.take(data, {
1032
- Message: smithyClient.expectString,
1033
- });
1034
- Object.assign(contents, doc);
1035
- const exception = new InternalFailureException({
1036
- $metadata: deserializeMetadata(parsedOutput),
1037
- ...contents,
1038
- });
1039
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1040
- };
1041
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1042
- const contents = smithyClient.map({});
1043
- const data = parsedOutput.body;
1044
- const doc = smithyClient.take(data, {
1045
- Message: smithyClient.expectString,
1046
- });
1047
- Object.assign(contents, doc);
1048
- const exception = new InternalServerException({
1049
- $metadata: deserializeMetadata(parsedOutput),
1050
- ...contents,
1051
- });
1052
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1053
- };
1054
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
1055
- const contents = smithyClient.map({});
1056
- const data = parsedOutput.body;
1057
- const doc = smithyClient.take(data, {
1058
- Message: smithyClient.expectString,
1059
- });
1060
- Object.assign(contents, doc);
1061
- const exception = new NotFoundException({
1062
- $metadata: deserializeMetadata(parsedOutput),
1063
- ...contents,
1064
- });
1065
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1066
- };
1067
- const de_RequestEntityTooLargeExceptionRes = async (parsedOutput, context) => {
1068
- const contents = smithyClient.map({});
1069
- const data = parsedOutput.body;
1070
- const doc = smithyClient.take(data, {
1071
- Message: smithyClient.expectString,
1072
- });
1073
- Object.assign(contents, doc);
1074
- const exception = new RequestEntityTooLargeException({
1075
- $metadata: deserializeMetadata(parsedOutput),
1076
- ...contents,
1077
- });
1078
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1079
- };
1080
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1081
- const contents = smithyClient.map({});
1082
- const data = parsedOutput.body;
1083
- const doc = smithyClient.take(data, {
1084
- Message: smithyClient.expectString,
1085
- });
1086
- Object.assign(contents, doc);
1087
- const exception = new ResourceNotFoundException({
1088
- $metadata: deserializeMetadata(parsedOutput),
1089
- ...contents,
1090
- });
1091
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1092
- };
1093
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1094
- const contents = smithyClient.map({});
1095
- const data = parsedOutput.body;
1096
- const doc = smithyClient.take(data, {
1097
- Message: smithyClient.expectString,
1098
- });
1099
- Object.assign(contents, doc);
1100
- const exception = new ServiceQuotaExceededException({
1101
- $metadata: deserializeMetadata(parsedOutput),
1102
- ...contents,
1103
- });
1104
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1105
- };
1106
- const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
1107
- const contents = smithyClient.map({});
1108
- const data = parsedOutput.body;
1109
- const doc = smithyClient.take(data, {
1110
- Message: smithyClient.expectString,
1111
- });
1112
- Object.assign(contents, doc);
1113
- const exception = new TooManyRequestsException({
1114
- $metadata: deserializeMetadata(parsedOutput),
1115
- ...contents,
1116
- });
1117
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1118
- };
1119
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
1120
- const contents = smithyClient.map({});
1121
- const data = parsedOutput.body;
1122
- const doc = smithyClient.take(data, {
1123
- Message: smithyClient.expectString,
1124
- });
1125
- Object.assign(contents, doc);
1126
- const exception = new ValidationException({
1127
- $metadata: deserializeMetadata(parsedOutput),
1128
- ...contents,
1129
- });
1130
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
1131
- };
1132
- const se_CanaryCodeInput = (input, context) => {
1133
- return smithyClient.take(input, {
1134
- BlueprintTypes: smithyClient._json,
1135
- Dependencies: smithyClient._json,
1136
- Handler: [],
1137
- S3Bucket: [],
1138
- S3Key: [],
1139
- S3Version: [],
1140
- ZipFile: context.base64Encoder,
1141
- });
1142
- };
1143
- const de_Canaries = (output, context) => {
1144
- const retVal = (output || [])
1145
- .filter((e) => e != null)
1146
- .map((entry) => {
1147
- return de_Canary(entry);
1148
- });
1149
- return retVal;
1150
- };
1151
- const de_CanariesLastRun = (output, context) => {
1152
- const retVal = (output || [])
1153
- .filter((e) => e != null)
1154
- .map((entry) => {
1155
- return de_CanaryLastRun(entry);
1156
- });
1157
- return retVal;
1158
- };
1159
- const de_Canary = (output, context) => {
1160
- return smithyClient.take(output, {
1161
- ArtifactConfig: smithyClient._json,
1162
- ArtifactS3Location: smithyClient.expectString,
1163
- BrowserConfigs: smithyClient._json,
1164
- Code: smithyClient._json,
1165
- DryRunConfig: smithyClient._json,
1166
- EngineArn: smithyClient.expectString,
1167
- EngineConfigs: smithyClient._json,
1168
- ExecutionRoleArn: smithyClient.expectString,
1169
- FailureRetentionPeriodInDays: smithyClient.expectInt32,
1170
- Id: smithyClient.expectString,
1171
- Name: smithyClient.expectString,
1172
- ProvisionedResourceCleanup: smithyClient.expectString,
1173
- RunConfig: smithyClient._json,
1174
- RuntimeVersion: smithyClient.expectString,
1175
- Schedule: smithyClient._json,
1176
- Status: smithyClient._json,
1177
- SuccessRetentionPeriodInDays: smithyClient.expectInt32,
1178
- Tags: smithyClient._json,
1179
- Timeline: (_) => de_CanaryTimeline(_),
1180
- VisualReference: smithyClient._json,
1181
- VisualReferences: smithyClient._json,
1182
- VpcConfig: smithyClient._json,
1183
- });
1184
- };
1185
- const de_CanaryLastRun = (output, context) => {
1186
- return smithyClient.take(output, {
1187
- CanaryName: smithyClient.expectString,
1188
- LastRun: (_) => de_CanaryRun(_),
1189
- });
1190
- };
1191
- const de_CanaryRun = (output, context) => {
1192
- return smithyClient.take(output, {
1193
- ArtifactS3Location: smithyClient.expectString,
1194
- BrowserType: smithyClient.expectString,
1195
- DryRunConfig: smithyClient._json,
1196
- Id: smithyClient.expectString,
1197
- Name: smithyClient.expectString,
1198
- RetryAttempt: smithyClient.expectInt32,
1199
- ScheduledRunId: smithyClient.expectString,
1200
- Status: smithyClient._json,
1201
- Timeline: (_) => de_CanaryRunTimeline(_),
1202
- });
1203
- };
1204
- const de_CanaryRuns = (output, context) => {
1205
- const retVal = (output || [])
1206
- .filter((e) => e != null)
1207
- .map((entry) => {
1208
- return de_CanaryRun(entry);
1209
- });
1210
- return retVal;
1211
- };
1212
- const de_CanaryRunTimeline = (output, context) => {
1213
- return smithyClient.take(output, {
1214
- Completed: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1215
- MetricTimestampForRunAndRetries: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1216
- Started: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1217
- });
1218
- };
1219
- const de_CanaryTimeline = (output, context) => {
1220
- return smithyClient.take(output, {
1221
- Created: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1222
- LastModified: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1223
- LastStarted: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1224
- LastStopped: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1225
- });
1226
- };
1227
- const de_Group = (output, context) => {
1228
- return smithyClient.take(output, {
1229
- Arn: smithyClient.expectString,
1230
- CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1231
- Id: smithyClient.expectString,
1232
- LastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1233
- Name: smithyClient.expectString,
1234
- Tags: smithyClient._json,
1235
- });
1236
- };
1237
- const de_RuntimeVersion = (output, context) => {
1238
- return smithyClient.take(output, {
1239
- DeprecationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1240
- Description: smithyClient.expectString,
1241
- ReleaseDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1242
- VersionName: smithyClient.expectString,
1243
- });
1244
- };
1245
- const de_RuntimeVersionList = (output, context) => {
1246
- const retVal = (output || [])
1247
- .filter((e) => e != null)
1248
- .map((entry) => {
1249
- return de_RuntimeVersion(entry);
1250
- });
1251
- return retVal;
1252
- };
1253
- const deserializeMetadata = (output) => ({
1254
- httpStatusCode: output.statusCode,
1255
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1256
- extendedRequestId: output.headers["x-amz-id-2"],
1257
- cfId: output.headers["x-amz-cf-id"],
1258
- });
335
+
336
+ const _A = "Arn";
337
+ const _AC = "ArtifactConfig";
338
+ const _ACI = "ArtifactConfigInput";
339
+ const _ACO = "ArtifactConfigOutput";
340
+ const _ADE = "AccessDeniedException";
341
+ const _AR = "AssociateResource";
342
+ const _ARR = "AssociateResourceRequest";
343
+ const _ARRs = "AssociateResourceResponse";
344
+ const _ASL = "ArtifactS3Location";
345
+ const _AT = "ActiveTracing";
346
+ const _BC = "BrowserConfig";
347
+ const _BCRI = "BaseCanaryRunId";
348
+ const _BCr = "BrowserConfigs";
349
+ const _BRE = "BadRequestException";
350
+ const _BS = "BaseScreenshot";
351
+ const _BSa = "BaseScreenshots";
352
+ const _BT = "BrowserType";
353
+ const _BTl = "BlueprintTypes";
354
+ const _C = "Canary";
355
+ const _CC = "CreateCanary";
356
+ const _CCI = "CanaryCodeInput";
357
+ const _CCO = "CanaryCodeOutput";
358
+ const _CCR = "CreateCanaryRequest";
359
+ const _CCRr = "CreateCanaryResponse";
360
+ const _CDRCO = "CanaryDryRunConfigOutput";
361
+ const _CE = "ConflictException";
362
+ const _CG = "CreateGroup";
363
+ const _CGR = "CreateGroupRequest";
364
+ const _CGRr = "CreateGroupResponse";
365
+ const _CLR = "CanaryLastRun";
366
+ const _CLRa = "CanariesLastRun";
367
+ const _CN = "CanaryName";
368
+ const _CR = "CanaryRun";
369
+ const _CRCI = "CanaryRunConfigInput";
370
+ const _CRCO = "CanaryRunConfigOutput";
371
+ const _CRS = "CanaryRunStatus";
372
+ const _CRT = "CanaryRunTimeline";
373
+ const _CRa = "CanaryRuns";
374
+ const _CS = "CanaryStatus";
375
+ const _CSI = "CanaryScheduleInput";
376
+ const _CSO = "CanaryScheduleOutput";
377
+ const _CT = "CanaryTimeline";
378
+ const _CTr = "CreatedTime";
379
+ const _Ca = "Canaries";
380
+ const _Co = "Code";
381
+ const _Com = "Completed";
382
+ const _Cr = "Created";
383
+ const _D = "Dependencies";
384
+ const _DC = "DeleteCanary";
385
+ const _DCLR = "DescribeCanariesLastRun";
386
+ const _DCLRR = "DescribeCanariesLastRunRequest";
387
+ const _DCLRRe = "DescribeCanariesLastRunResponse";
388
+ const _DCR = "DeleteCanaryRequest";
389
+ const _DCRe = "DeleteCanaryResponse";
390
+ const _DCRes = "DescribeCanariesRequest";
391
+ const _DCResc = "DescribeCanariesResponse";
392
+ const _DCe = "DescribeCanaries";
393
+ const _DD = "DeprecationDate";
394
+ const _DG = "DeleteGroup";
395
+ const _DGR = "DeleteGroupRequest";
396
+ const _DGRe = "DeleteGroupResponse";
397
+ const _DIS = "DurationInSeconds";
1259
398
  const _DL = "DeleteLambda";
399
+ const _DR = "DisassociateResource";
400
+ const _DRC = "DryRunConfig";
401
+ const _DRCO = "DryRunConfigOutput";
1260
402
  const _DRI = "DryRunId";
403
+ const _DRR = "DisassociateResourceRequest";
404
+ const _DRRi = "DisassociateResourceResponse";
405
+ const _DRV = "DescribeRuntimeVersions";
406
+ const _DRVR = "DescribeRuntimeVersionsRequest";
407
+ const _DRVRe = "DescribeRuntimeVersionsResponse";
408
+ const _De = "Dependency";
409
+ const _Des = "Description";
410
+ const _E = "Expression";
411
+ const _EA = "EngineArn";
412
+ const _EC = "EngineConfigs";
413
+ const _ECn = "EngineConfig";
414
+ const _EM = "EncryptionMode";
415
+ const _ERA = "ExecutionRoleArn";
416
+ const _ES = "EphemeralStorage";
417
+ const _EV = "EnvironmentVariables";
418
+ const _FRPID = "FailureRetentionPeriodInDays";
419
+ const _G = "Group";
420
+ const _GC = "GetCanary";
421
+ const _GCR = "GetCanaryRequest";
422
+ const _GCRR = "GetCanaryRunsRequest";
423
+ const _GCRRe = "GetCanaryRunsResponse";
424
+ const _GCRe = "GetCanaryResponse";
425
+ const _GCRet = "GetCanaryRuns";
426
+ const _GG = "GetGroup";
427
+ const _GGR = "GetGroupRequest";
428
+ const _GGRe = "GetGroupResponse";
429
+ const _GI = "GroupIdentifier";
430
+ const _GS = "GroupSummary";
431
+ const _GSL = "GroupSummaryList";
432
+ const _Gr = "Groups";
433
+ const _H = "Handler";
434
+ const _I = "Id";
435
+ const _IAFDS = "Ipv6AllowedForDualStack";
436
+ const _IC = "IgnoreCoordinates";
437
+ const _IFE = "InternalFailureException";
438
+ const _ISE = "InternalServerException";
439
+ const _KKA = "KmsKeyArn";
440
+ const _LAG = "ListAssociatedGroups";
441
+ const _LAGR = "ListAssociatedGroupsRequest";
442
+ const _LAGRi = "ListAssociatedGroupsResponse";
443
+ const _LDRES = "LastDryRunExecutionStatus";
444
+ const _LG = "ListGroups";
445
+ const _LGR = "ListGroupsRequest";
446
+ const _LGRR = "ListGroupResourcesRequest";
447
+ const _LGRRi = "ListGroupResourcesResponse";
448
+ const _LGRi = "ListGroupsResponse";
449
+ const _LGRis = "ListGroupResources";
450
+ const _LM = "LastModified";
451
+ const _LMT = "LastModifiedTime";
452
+ const _LR = "LastRun";
453
+ const _LS = "LastStarted";
454
+ const _LSa = "LastStopped";
455
+ const _LTFR = "ListTagsForResource";
456
+ const _LTFRR = "ListTagsForResourceRequest";
457
+ const _LTFRRi = "ListTagsForResourceResponse";
458
+ const _M = "Message";
459
+ const _MIMB = "MemoryInMB";
460
+ const _MR = "MaxResults";
461
+ const _MRa = "MaxRetries";
462
+ const _MTFRAR = "MetricTimestampForRunAndRetries";
463
+ const _N = "Name";
464
+ const _NFE = "NotFoundException";
465
+ const _NT = "NextToken";
466
+ const _Na = "Names";
467
+ const _PRC = "ProvisionedResourceCleanup";
468
+ const _R = "Reference";
469
+ const _RA = "ResourceArn";
470
+ const _RAe = "RetryAttempt";
471
+ const _RC = "RunConfig";
472
+ const _RCI = "RetryConfigInput";
473
+ const _RCO = "RetryConfigOutput";
474
+ const _RCe = "RetryConfig";
475
+ const _RD = "ReleaseDate";
476
+ const _RETLE = "RequestEntityTooLargeException";
477
+ const _RNFE = "ResourceNotFoundException";
478
+ const _RT = "RunType";
479
+ const _RTRT = "ResourcesToReplicateTags";
480
+ const _RV = "RuntimeVersion";
481
+ const _RVL = "RuntimeVersionList";
482
+ const _RVu = "RuntimeVersions";
483
+ const _Re = "Resources";
484
+ const _S = "Schedule";
485
+ const _SB = "S3Bucket";
486
+ const _SC = "StartCanary";
487
+ const _SCDR = "StartCanaryDryRun";
488
+ const _SCDRR = "StartCanaryDryRunRequest";
489
+ const _SCDRRt = "StartCanaryDryRunResponse";
490
+ const _SCR = "StartCanaryRequest";
491
+ const _SCRt = "StartCanaryResponse";
492
+ const _SCRto = "StopCanaryRequest";
493
+ const _SCRtop = "StopCanaryResponse";
494
+ const _SCt = "StopCanary";
495
+ const _SE = "S3Encryption";
496
+ const _SEC = "S3EncryptionConfig";
497
+ const _SGI = "SecurityGroupIds";
498
+ const _SI = "SubnetIds";
499
+ const _SK = "S3Key";
500
+ const _SLA = "SourceLocationArn";
501
+ const _SN = "ScreenshotName";
502
+ const _SQEE = "ServiceQuotaExceededException";
503
+ const _SR = "StateReason";
504
+ const _SRC = "StateReasonCode";
505
+ const _SRI = "ScheduledRunId";
506
+ const _SRPID = "SuccessRetentionPeriodInDays";
507
+ const _SV = "S3Version";
508
+ const _St = "Status";
509
+ const _Sta = "State";
510
+ const _Star = "Started";
511
+ const _T = "Timeline";
512
+ const _TIS = "TimeoutInSeconds";
1261
513
  const _TK = "TagKeys";
514
+ const _TMRE = "TooManyRequestsException";
515
+ const _TR = "TestResult";
516
+ const _TRR = "TagResourceRequest";
517
+ const _TRRa = "TagResourceResponse";
518
+ const _TRa = "TagResource";
519
+ const _Ta = "Tags";
520
+ const _Ty = "Type";
521
+ const _UC = "UpdateCanary";
522
+ const _UCR = "UpdateCanaryRequest";
523
+ const _UCRp = "UpdateCanaryResponse";
524
+ const _UR = "UntagResource";
525
+ const _URR = "UntagResourceRequest";
526
+ const _URRn = "UntagResourceResponse";
527
+ const _VC = "VpcConfig";
528
+ const _VCI = "VpcConfigInput";
529
+ const _VCO = "VpcConfigOutput";
530
+ const _VE = "ValidationException";
531
+ const _VI = "VpcId";
532
+ const _VN = "VersionName";
533
+ const _VR = "VisualReference";
534
+ const _VRI = "VisualReferenceInput";
535
+ const _VRO = "VisualReferenceOutput";
536
+ const _VROi = "VisualReferencesOutput";
537
+ const _VRi = "VisualReferences";
538
+ const _ZF = "ZipFile";
539
+ const _c = "client";
1262
540
  const _dL = "deleteLambda";
1263
541
  const _dRI = "dryRunId";
542
+ const _e = "error";
543
+ const _h = "http";
544
+ const _hE = "httpError";
545
+ const _hQ = "httpQuery";
546
+ const _s = "server";
547
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.synthetics";
1264
548
  const _tK = "tagKeys";
549
+ const n0 = "com.amazonaws.synthetics";
550
+ var AccessDeniedException = [
551
+ -3,
552
+ n0,
553
+ _ADE,
554
+ {
555
+ [_e]: _c,
556
+ [_hE]: 403,
557
+ },
558
+ [_M],
559
+ [0],
560
+ ];
561
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
562
+ var ArtifactConfigInput = [3, n0, _ACI, 0, [_SE], [() => S3EncryptionConfig]];
563
+ var ArtifactConfigOutput = [3, n0, _ACO, 0, [_SE], [() => S3EncryptionConfig]];
564
+ var AssociateResourceRequest = [3, n0, _ARR, 0, [_GI, _RA], [[0, 1], 0]];
565
+ var AssociateResourceResponse = [3, n0, _ARRs, 0, [], []];
566
+ var BadRequestException = [
567
+ -3,
568
+ n0,
569
+ _BRE,
570
+ {
571
+ [_e]: _c,
572
+ [_hE]: 400,
573
+ },
574
+ [_M],
575
+ [0],
576
+ ];
577
+ schema.TypeRegistry.for(n0).registerError(BadRequestException, BadRequestException$1);
578
+ var BaseScreenshot = [3, n0, _BS, 0, [_SN, _IC], [0, 64 | 0]];
579
+ var BrowserConfig = [3, n0, _BC, 0, [_BT], [0]];
580
+ var Canary = [
581
+ 3,
582
+ n0,
583
+ _C,
584
+ 0,
585
+ [
586
+ _I,
587
+ _N,
588
+ _Co,
589
+ _ERA,
590
+ _S,
591
+ _RC,
592
+ _SRPID,
593
+ _FRPID,
594
+ _St,
595
+ _T,
596
+ _ASL,
597
+ _EA,
598
+ _RV,
599
+ _VC,
600
+ _VR,
601
+ _PRC,
602
+ _BCr,
603
+ _EC,
604
+ _VRi,
605
+ _Ta,
606
+ _AC,
607
+ _DRC,
608
+ ],
609
+ [
610
+ 0,
611
+ 0,
612
+ () => CanaryCodeOutput,
613
+ 0,
614
+ () => CanaryScheduleOutput,
615
+ () => CanaryRunConfigOutput,
616
+ 1,
617
+ 1,
618
+ () => CanaryStatus,
619
+ () => CanaryTimeline,
620
+ 0,
621
+ 0,
622
+ 0,
623
+ () => VpcConfigOutput,
624
+ () => VisualReferenceOutput,
625
+ 0,
626
+ () => BrowserConfigs,
627
+ () => EngineConfigs,
628
+ () => VisualReferencesOutput,
629
+ 128 | 0,
630
+ () => ArtifactConfigOutput,
631
+ () => DryRunConfigOutput,
632
+ ],
633
+ ];
634
+ var CanaryCodeInput = [
635
+ 3,
636
+ n0,
637
+ _CCI,
638
+ 0,
639
+ [_SB, _SK, _SV, _ZF, _H, _BTl, _D],
640
+ [0, 0, 0, 21, 0, 64 | 0, () => Dependencies],
641
+ ];
642
+ var CanaryCodeOutput = [
643
+ 3,
644
+ n0,
645
+ _CCO,
646
+ 0,
647
+ [_SLA, _H, _BTl, _D],
648
+ [0, 0, 64 | 0, () => Dependencies],
649
+ ];
650
+ var CanaryDryRunConfigOutput = [3, n0, _CDRCO, 0, [_DRI], [0]];
651
+ var CanaryLastRun = [3, n0, _CLR, 0, [_CN, _LR], [0, () => CanaryRun]];
652
+ var CanaryRun = [
653
+ 3,
654
+ n0,
655
+ _CR,
656
+ 0,
657
+ [_I, _SRI, _RAe, _N, _St, _T, _ASL, _DRC, _BT],
658
+ [0, 0, 1, 0, () => CanaryRunStatus, () => CanaryRunTimeline, 0, () => CanaryDryRunConfigOutput, 0],
659
+ ];
660
+ var CanaryRunConfigInput = [
661
+ 3,
662
+ n0,
663
+ _CRCI,
664
+ 0,
665
+ [_TIS, _MIMB, _AT, _EV, _ES],
666
+ [1, 1, 2, 128 | 0, 1],
667
+ ];
668
+ var CanaryRunConfigOutput = [3, n0, _CRCO, 0, [_TIS, _MIMB, _AT, _ES], [1, 1, 2, 1]];
669
+ var CanaryRunStatus = [3, n0, _CRS, 0, [_Sta, _SR, _SRC, _TR], [0, 0, 0, 0]];
670
+ var CanaryRunTimeline = [3, n0, _CRT, 0, [_Star, _Com, _MTFRAR], [4, 4, 4]];
671
+ var CanaryScheduleInput = [
672
+ 3,
673
+ n0,
674
+ _CSI,
675
+ 0,
676
+ [_E, _DIS, _RCe],
677
+ [0, 1, () => RetryConfigInput],
678
+ ];
679
+ var CanaryScheduleOutput = [
680
+ 3,
681
+ n0,
682
+ _CSO,
683
+ 0,
684
+ [_E, _DIS, _RCe],
685
+ [0, 1, () => RetryConfigOutput],
686
+ ];
687
+ var CanaryStatus = [3, n0, _CS, 0, [_Sta, _SR, _SRC], [0, 0, 0]];
688
+ var CanaryTimeline = [3, n0, _CT, 0, [_Cr, _LM, _LS, _LSa], [4, 4, 4, 4]];
689
+ var ConflictException = [
690
+ -3,
691
+ n0,
692
+ _CE,
693
+ {
694
+ [_e]: _c,
695
+ [_hE]: 409,
696
+ },
697
+ [_M],
698
+ [0],
699
+ ];
700
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
701
+ var CreateCanaryRequest = [
702
+ 3,
703
+ n0,
704
+ _CCR,
705
+ 0,
706
+ [_N, _Co, _ASL, _ERA, _S, _RC, _SRPID, _FRPID, _RV, _VC, _RTRT, _PRC, _BCr, _Ta, _AC],
707
+ [
708
+ 0,
709
+ () => CanaryCodeInput,
710
+ 0,
711
+ 0,
712
+ () => CanaryScheduleInput,
713
+ () => CanaryRunConfigInput,
714
+ 1,
715
+ 1,
716
+ 0,
717
+ () => VpcConfigInput,
718
+ 64 | 0,
719
+ 0,
720
+ () => BrowserConfigs,
721
+ 128 | 0,
722
+ () => ArtifactConfigInput,
723
+ ],
724
+ ];
725
+ var CreateCanaryResponse = [3, n0, _CCRr, 0, [_C], [() => Canary]];
726
+ var CreateGroupRequest = [3, n0, _CGR, 0, [_N, _Ta], [0, 128 | 0]];
727
+ var CreateGroupResponse = [3, n0, _CGRr, 0, [_G], [() => Group]];
728
+ var DeleteCanaryRequest = [
729
+ 3,
730
+ n0,
731
+ _DCR,
732
+ 0,
733
+ [_N, _DL],
734
+ [
735
+ [0, 1],
736
+ [
737
+ 2,
738
+ {
739
+ [_hQ]: _dL,
740
+ },
741
+ ],
742
+ ],
743
+ ];
744
+ var DeleteCanaryResponse = [3, n0, _DCRe, 0, [], []];
745
+ var DeleteGroupRequest = [3, n0, _DGR, 0, [_GI], [[0, 1]]];
746
+ var DeleteGroupResponse = [3, n0, _DGRe, 0, [], []];
747
+ var Dependency = [3, n0, _De, 0, [_Ty, _R], [0, 0]];
748
+ var DescribeCanariesLastRunRequest = [
749
+ 3,
750
+ n0,
751
+ _DCLRR,
752
+ 0,
753
+ [_NT, _MR, _Na, _BT],
754
+ [0, 1, 64 | 0, 0],
755
+ ];
756
+ var DescribeCanariesLastRunResponse = [
757
+ 3,
758
+ n0,
759
+ _DCLRRe,
760
+ 0,
761
+ [_CLRa, _NT],
762
+ [() => CanariesLastRun, 0],
763
+ ];
764
+ var DescribeCanariesRequest = [3, n0, _DCRes, 0, [_NT, _MR, _Na], [0, 1, 64 | 0]];
765
+ var DescribeCanariesResponse = [3, n0, _DCResc, 0, [_Ca, _NT], [() => Canaries, 0]];
766
+ var DescribeRuntimeVersionsRequest = [3, n0, _DRVR, 0, [_NT, _MR], [0, 1]];
767
+ var DescribeRuntimeVersionsResponse = [
768
+ 3,
769
+ n0,
770
+ _DRVRe,
771
+ 0,
772
+ [_RVu, _NT],
773
+ [() => RuntimeVersionList, 0],
774
+ ];
775
+ var DisassociateResourceRequest = [3, n0, _DRR, 0, [_GI, _RA], [[0, 1], 0]];
776
+ var DisassociateResourceResponse = [3, n0, _DRRi, 0, [], []];
777
+ var DryRunConfigOutput = [3, n0, _DRCO, 0, [_DRI, _LDRES], [0, 0]];
778
+ var EngineConfig = [3, n0, _ECn, 0, [_EA, _BT], [0, 0]];
779
+ var GetCanaryRequest = [
780
+ 3,
781
+ n0,
782
+ _GCR,
783
+ 0,
784
+ [_N, _DRI],
785
+ [
786
+ [0, 1],
787
+ [
788
+ 0,
789
+ {
790
+ [_hQ]: _dRI,
791
+ },
792
+ ],
793
+ ],
794
+ ];
795
+ var GetCanaryResponse = [3, n0, _GCRe, 0, [_C], [() => Canary]];
796
+ var GetCanaryRunsRequest = [
797
+ 3,
798
+ n0,
799
+ _GCRR,
800
+ 0,
801
+ [_N, _NT, _MR, _DRI, _RT],
802
+ [[0, 1], 0, 1, 0, 0],
803
+ ];
804
+ var GetCanaryRunsResponse = [3, n0, _GCRRe, 0, [_CRa, _NT], [() => CanaryRuns, 0]];
805
+ var GetGroupRequest = [3, n0, _GGR, 0, [_GI], [[0, 1]]];
806
+ var GetGroupResponse = [3, n0, _GGRe, 0, [_G], [() => Group]];
807
+ var Group = [3, n0, _G, 0, [_I, _N, _A, _Ta, _CTr, _LMT], [0, 0, 0, 128 | 0, 4, 4]];
808
+ var GroupSummary = [3, n0, _GS, 0, [_I, _N, _A], [0, 0, 0]];
809
+ var InternalFailureException = [
810
+ -3,
811
+ n0,
812
+ _IFE,
813
+ {
814
+ [_e]: _s,
815
+ [_hE]: 500,
816
+ },
817
+ [_M],
818
+ [0],
819
+ ];
820
+ schema.TypeRegistry.for(n0).registerError(InternalFailureException, InternalFailureException$1);
821
+ var InternalServerException = [
822
+ -3,
823
+ n0,
824
+ _ISE,
825
+ {
826
+ [_e]: _s,
827
+ [_hE]: 500,
828
+ },
829
+ [_M],
830
+ [0],
831
+ ];
832
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
833
+ var ListAssociatedGroupsRequest = [3, n0, _LAGR, 0, [_NT, _MR, _RA], [0, 1, [0, 1]]];
834
+ var ListAssociatedGroupsResponse = [
835
+ 3,
836
+ n0,
837
+ _LAGRi,
838
+ 0,
839
+ [_Gr, _NT],
840
+ [() => GroupSummaryList, 0],
841
+ ];
842
+ var ListGroupResourcesRequest = [3, n0, _LGRR, 0, [_NT, _MR, _GI], [0, 1, [0, 1]]];
843
+ var ListGroupResourcesResponse = [3, n0, _LGRRi, 0, [_Re, _NT], [64 | 0, 0]];
844
+ var ListGroupsRequest = [3, n0, _LGR, 0, [_NT, _MR], [0, 1]];
845
+ var ListGroupsResponse = [3, n0, _LGRi, 0, [_Gr, _NT], [() => GroupSummaryList, 0]];
846
+ var ListTagsForResourceRequest = [3, n0, _LTFRR, 0, [_RA], [[0, 1]]];
847
+ var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_Ta], [128 | 0]];
848
+ var NotFoundException = [
849
+ -3,
850
+ n0,
851
+ _NFE,
852
+ {
853
+ [_e]: _c,
854
+ [_hE]: 404,
855
+ },
856
+ [_M],
857
+ [0],
858
+ ];
859
+ schema.TypeRegistry.for(n0).registerError(NotFoundException, NotFoundException$1);
860
+ var RequestEntityTooLargeException = [
861
+ -3,
862
+ n0,
863
+ _RETLE,
864
+ {
865
+ [_e]: _c,
866
+ [_hE]: 413,
867
+ },
868
+ [_M],
869
+ [0],
870
+ ];
871
+ schema.TypeRegistry.for(n0).registerError(RequestEntityTooLargeException, RequestEntityTooLargeException$1);
872
+ var ResourceNotFoundException = [
873
+ -3,
874
+ n0,
875
+ _RNFE,
876
+ {
877
+ [_e]: _c,
878
+ [_hE]: 404,
879
+ },
880
+ [_M],
881
+ [0],
882
+ ];
883
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
884
+ var RetryConfigInput = [3, n0, _RCI, 0, [_MRa], [1]];
885
+ var RetryConfigOutput = [3, n0, _RCO, 0, [_MRa], [1]];
886
+ var RuntimeVersion = [3, n0, _RV, 0, [_VN, _Des, _RD, _DD], [0, 0, 4, 4]];
887
+ var S3EncryptionConfig = [3, n0, _SEC, 0, [_EM, _KKA], [0, 0]];
888
+ var ServiceQuotaExceededException = [
889
+ -3,
890
+ n0,
891
+ _SQEE,
892
+ {
893
+ [_e]: _c,
894
+ [_hE]: 402,
895
+ },
896
+ [_M],
897
+ [0],
898
+ ];
899
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
900
+ var StartCanaryDryRunRequest = [
901
+ 3,
902
+ n0,
903
+ _SCDRR,
904
+ 0,
905
+ [_N, _Co, _RV, _RC, _VC, _ERA, _SRPID, _FRPID, _VR, _ASL, _AC, _PRC, _BCr, _VRi],
906
+ [
907
+ [0, 1],
908
+ () => CanaryCodeInput,
909
+ 0,
910
+ () => CanaryRunConfigInput,
911
+ () => VpcConfigInput,
912
+ 0,
913
+ 1,
914
+ 1,
915
+ () => VisualReferenceInput,
916
+ 0,
917
+ () => ArtifactConfigInput,
918
+ 0,
919
+ () => BrowserConfigs,
920
+ () => VisualReferences,
921
+ ],
922
+ ];
923
+ var StartCanaryDryRunResponse = [3, n0, _SCDRRt, 0, [_DRC], [() => DryRunConfigOutput]];
924
+ var StartCanaryRequest = [3, n0, _SCR, 0, [_N], [[0, 1]]];
925
+ var StartCanaryResponse = [3, n0, _SCRt, 0, [], []];
926
+ var StopCanaryRequest = [3, n0, _SCRto, 0, [_N], [[0, 1]]];
927
+ var StopCanaryResponse = [3, n0, _SCRtop, 0, [], []];
928
+ var TagResourceRequest = [3, n0, _TRR, 0, [_RA, _Ta], [[0, 1], 128 | 0]];
929
+ var TagResourceResponse = [3, n0, _TRRa, 0, [], []];
930
+ var TooManyRequestsException = [
931
+ -3,
932
+ n0,
933
+ _TMRE,
934
+ {
935
+ [_e]: _c,
936
+ [_hE]: 429,
937
+ },
938
+ [_M],
939
+ [0],
940
+ ];
941
+ schema.TypeRegistry.for(n0).registerError(TooManyRequestsException, TooManyRequestsException$1);
942
+ var UntagResourceRequest = [
943
+ 3,
944
+ n0,
945
+ _URR,
946
+ 0,
947
+ [_RA, _TK],
948
+ [
949
+ [0, 1],
950
+ [
951
+ 64 | 0,
952
+ {
953
+ [_hQ]: _tK,
954
+ },
955
+ ],
956
+ ],
957
+ ];
958
+ var UntagResourceResponse = [3, n0, _URRn, 0, [], []];
959
+ var UpdateCanaryRequest = [
960
+ 3,
961
+ n0,
962
+ _UCR,
963
+ 0,
964
+ [_N, _Co, _ERA, _RV, _S, _RC, _SRPID, _FRPID, _VC, _VR, _ASL, _AC, _PRC, _DRI, _VRi, _BCr],
965
+ [
966
+ [0, 1],
967
+ () => CanaryCodeInput,
968
+ 0,
969
+ 0,
970
+ () => CanaryScheduleInput,
971
+ () => CanaryRunConfigInput,
972
+ 1,
973
+ 1,
974
+ () => VpcConfigInput,
975
+ () => VisualReferenceInput,
976
+ 0,
977
+ () => ArtifactConfigInput,
978
+ 0,
979
+ 0,
980
+ () => VisualReferences,
981
+ () => BrowserConfigs,
982
+ ],
983
+ ];
984
+ var UpdateCanaryResponse = [3, n0, _UCRp, 0, [], []];
985
+ var ValidationException = [
986
+ -3,
987
+ n0,
988
+ _VE,
989
+ {
990
+ [_e]: _c,
991
+ [_hE]: 400,
992
+ },
993
+ [_M],
994
+ [0],
995
+ ];
996
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
997
+ var VisualReferenceInput = [
998
+ 3,
999
+ n0,
1000
+ _VRI,
1001
+ 0,
1002
+ [_BSa, _BCRI, _BT],
1003
+ [() => BaseScreenshots, 0, 0],
1004
+ ];
1005
+ var VisualReferenceOutput = [
1006
+ 3,
1007
+ n0,
1008
+ _VRO,
1009
+ 0,
1010
+ [_BSa, _BCRI, _BT],
1011
+ [() => BaseScreenshots, 0, 0],
1012
+ ];
1013
+ var VpcConfigInput = [3, n0, _VCI, 0, [_SI, _SGI, _IAFDS], [64 | 0, 64 | 0, 2]];
1014
+ var VpcConfigOutput = [3, n0, _VCO, 0, [_VI, _SI, _SGI, _IAFDS], [0, 64 | 0, 64 | 0, 2]];
1015
+ var SyntheticsServiceException = [-3, _sm, "SyntheticsServiceException", 0, [], []];
1016
+ schema.TypeRegistry.for(_sm).registerError(SyntheticsServiceException, SyntheticsServiceException$1);
1017
+ var BaseScreenshots = [1, n0, _BSa, 0, () => BaseScreenshot];
1018
+ var BrowserConfigs = [1, n0, _BCr, 0, () => BrowserConfig];
1019
+ var Canaries = [1, n0, _Ca, 0, () => Canary];
1020
+ var CanariesLastRun = [1, n0, _CLRa, 0, () => CanaryLastRun];
1021
+ var CanaryRuns = [1, n0, _CRa, 0, () => CanaryRun];
1022
+ var Dependencies = [1, n0, _D, 0, () => Dependency];
1023
+ var EngineConfigs = [1, n0, _EC, 0, () => EngineConfig];
1024
+ var GroupSummaryList = [1, n0, _GSL, 0, () => GroupSummary];
1025
+ var RuntimeVersionList = [1, n0, _RVL, 0, () => RuntimeVersion];
1026
+ var VisualReferences = [1, n0, _VRi, 0, () => VisualReferenceInput];
1027
+ var VisualReferencesOutput = [1, n0, _VROi, 0, () => VisualReferenceOutput];
1028
+ var AssociateResource = [
1029
+ 9,
1030
+ n0,
1031
+ _AR,
1032
+ {
1033
+ [_h]: ["PATCH", "/group/{GroupIdentifier}/associate", 200],
1034
+ },
1035
+ () => AssociateResourceRequest,
1036
+ () => AssociateResourceResponse,
1037
+ ];
1038
+ var CreateCanary = [
1039
+ 9,
1040
+ n0,
1041
+ _CC,
1042
+ {
1043
+ [_h]: ["POST", "/canary", 200],
1044
+ },
1045
+ () => CreateCanaryRequest,
1046
+ () => CreateCanaryResponse,
1047
+ ];
1048
+ var CreateGroup = [
1049
+ 9,
1050
+ n0,
1051
+ _CG,
1052
+ {
1053
+ [_h]: ["POST", "/group", 200],
1054
+ },
1055
+ () => CreateGroupRequest,
1056
+ () => CreateGroupResponse,
1057
+ ];
1058
+ var DeleteCanary = [
1059
+ 9,
1060
+ n0,
1061
+ _DC,
1062
+ {
1063
+ [_h]: ["DELETE", "/canary/{Name}", 200],
1064
+ },
1065
+ () => DeleteCanaryRequest,
1066
+ () => DeleteCanaryResponse,
1067
+ ];
1068
+ var DeleteGroup = [
1069
+ 9,
1070
+ n0,
1071
+ _DG,
1072
+ {
1073
+ [_h]: ["DELETE", "/group/{GroupIdentifier}", 200],
1074
+ },
1075
+ () => DeleteGroupRequest,
1076
+ () => DeleteGroupResponse,
1077
+ ];
1078
+ var DescribeCanaries = [
1079
+ 9,
1080
+ n0,
1081
+ _DCe,
1082
+ {
1083
+ [_h]: ["POST", "/canaries", 200],
1084
+ },
1085
+ () => DescribeCanariesRequest,
1086
+ () => DescribeCanariesResponse,
1087
+ ];
1088
+ var DescribeCanariesLastRun = [
1089
+ 9,
1090
+ n0,
1091
+ _DCLR,
1092
+ {
1093
+ [_h]: ["POST", "/canaries/last-run", 200],
1094
+ },
1095
+ () => DescribeCanariesLastRunRequest,
1096
+ () => DescribeCanariesLastRunResponse,
1097
+ ];
1098
+ var DescribeRuntimeVersions = [
1099
+ 9,
1100
+ n0,
1101
+ _DRV,
1102
+ {
1103
+ [_h]: ["POST", "/runtime-versions", 200],
1104
+ },
1105
+ () => DescribeRuntimeVersionsRequest,
1106
+ () => DescribeRuntimeVersionsResponse,
1107
+ ];
1108
+ var DisassociateResource = [
1109
+ 9,
1110
+ n0,
1111
+ _DR,
1112
+ {
1113
+ [_h]: ["PATCH", "/group/{GroupIdentifier}/disassociate", 200],
1114
+ },
1115
+ () => DisassociateResourceRequest,
1116
+ () => DisassociateResourceResponse,
1117
+ ];
1118
+ var GetCanary = [
1119
+ 9,
1120
+ n0,
1121
+ _GC,
1122
+ {
1123
+ [_h]: ["GET", "/canary/{Name}", 200],
1124
+ },
1125
+ () => GetCanaryRequest,
1126
+ () => GetCanaryResponse,
1127
+ ];
1128
+ var GetCanaryRuns = [
1129
+ 9,
1130
+ n0,
1131
+ _GCRet,
1132
+ {
1133
+ [_h]: ["POST", "/canary/{Name}/runs", 200],
1134
+ },
1135
+ () => GetCanaryRunsRequest,
1136
+ () => GetCanaryRunsResponse,
1137
+ ];
1138
+ var GetGroup = [
1139
+ 9,
1140
+ n0,
1141
+ _GG,
1142
+ {
1143
+ [_h]: ["GET", "/group/{GroupIdentifier}", 200],
1144
+ },
1145
+ () => GetGroupRequest,
1146
+ () => GetGroupResponse,
1147
+ ];
1148
+ var ListAssociatedGroups = [
1149
+ 9,
1150
+ n0,
1151
+ _LAG,
1152
+ {
1153
+ [_h]: ["POST", "/resource/{ResourceArn}/groups", 200],
1154
+ },
1155
+ () => ListAssociatedGroupsRequest,
1156
+ () => ListAssociatedGroupsResponse,
1157
+ ];
1158
+ var ListGroupResources = [
1159
+ 9,
1160
+ n0,
1161
+ _LGRis,
1162
+ {
1163
+ [_h]: ["POST", "/group/{GroupIdentifier}/resources", 200],
1164
+ },
1165
+ () => ListGroupResourcesRequest,
1166
+ () => ListGroupResourcesResponse,
1167
+ ];
1168
+ var ListGroups = [
1169
+ 9,
1170
+ n0,
1171
+ _LG,
1172
+ {
1173
+ [_h]: ["POST", "/groups", 200],
1174
+ },
1175
+ () => ListGroupsRequest,
1176
+ () => ListGroupsResponse,
1177
+ ];
1178
+ var ListTagsForResource = [
1179
+ 9,
1180
+ n0,
1181
+ _LTFR,
1182
+ {
1183
+ [_h]: ["GET", "/tags/{ResourceArn}", 200],
1184
+ },
1185
+ () => ListTagsForResourceRequest,
1186
+ () => ListTagsForResourceResponse,
1187
+ ];
1188
+ var StartCanary = [
1189
+ 9,
1190
+ n0,
1191
+ _SC,
1192
+ {
1193
+ [_h]: ["POST", "/canary/{Name}/start", 200],
1194
+ },
1195
+ () => StartCanaryRequest,
1196
+ () => StartCanaryResponse,
1197
+ ];
1198
+ var StartCanaryDryRun = [
1199
+ 9,
1200
+ n0,
1201
+ _SCDR,
1202
+ {
1203
+ [_h]: ["POST", "/canary/{Name}/dry-run/start", 200],
1204
+ },
1205
+ () => StartCanaryDryRunRequest,
1206
+ () => StartCanaryDryRunResponse,
1207
+ ];
1208
+ var StopCanary = [
1209
+ 9,
1210
+ n0,
1211
+ _SCt,
1212
+ {
1213
+ [_h]: ["POST", "/canary/{Name}/stop", 200],
1214
+ },
1215
+ () => StopCanaryRequest,
1216
+ () => StopCanaryResponse,
1217
+ ];
1218
+ var TagResource = [
1219
+ 9,
1220
+ n0,
1221
+ _TRa,
1222
+ {
1223
+ [_h]: ["POST", "/tags/{ResourceArn}", 200],
1224
+ },
1225
+ () => TagResourceRequest,
1226
+ () => TagResourceResponse,
1227
+ ];
1228
+ var UntagResource = [
1229
+ 9,
1230
+ n0,
1231
+ _UR,
1232
+ {
1233
+ [_h]: ["DELETE", "/tags/{ResourceArn}", 200],
1234
+ },
1235
+ () => UntagResourceRequest,
1236
+ () => UntagResourceResponse,
1237
+ ];
1238
+ var UpdateCanary = [
1239
+ 9,
1240
+ n0,
1241
+ _UC,
1242
+ {
1243
+ [_h]: ["PATCH", "/canary/{Name}", 200],
1244
+ },
1245
+ () => UpdateCanaryRequest,
1246
+ () => UpdateCanaryResponse,
1247
+ ];
1265
1248
 
1266
1249
  class AssociateResourceCommand extends smithyClient.Command
1267
1250
  .classBuilder()
1268
1251
  .ep(commonParams)
1269
1252
  .m(function (Command, cs, config, o) {
1270
- return [
1271
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1272
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1273
- ];
1253
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1274
1254
  })
1275
1255
  .s("Synthetics", "AssociateResource", {})
1276
1256
  .n("SyntheticsClient", "AssociateResourceCommand")
1277
- .f(void 0, void 0)
1278
- .ser(se_AssociateResourceCommand)
1279
- .de(de_AssociateResourceCommand)
1257
+ .sc(AssociateResource)
1280
1258
  .build() {
1281
1259
  }
1282
1260
 
@@ -1284,16 +1262,11 @@ class CreateCanaryCommand extends smithyClient.Command
1284
1262
  .classBuilder()
1285
1263
  .ep(commonParams)
1286
1264
  .m(function (Command, cs, config, o) {
1287
- return [
1288
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1289
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1290
- ];
1265
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1291
1266
  })
1292
1267
  .s("Synthetics", "CreateCanary", {})
1293
1268
  .n("SyntheticsClient", "CreateCanaryCommand")
1294
- .f(void 0, void 0)
1295
- .ser(se_CreateCanaryCommand)
1296
- .de(de_CreateCanaryCommand)
1269
+ .sc(CreateCanary)
1297
1270
  .build() {
1298
1271
  }
1299
1272
 
@@ -1301,16 +1274,11 @@ class CreateGroupCommand extends smithyClient.Command
1301
1274
  .classBuilder()
1302
1275
  .ep(commonParams)
1303
1276
  .m(function (Command, cs, config, o) {
1304
- return [
1305
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1306
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1307
- ];
1277
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1308
1278
  })
1309
1279
  .s("Synthetics", "CreateGroup", {})
1310
1280
  .n("SyntheticsClient", "CreateGroupCommand")
1311
- .f(void 0, void 0)
1312
- .ser(se_CreateGroupCommand)
1313
- .de(de_CreateGroupCommand)
1281
+ .sc(CreateGroup)
1314
1282
  .build() {
1315
1283
  }
1316
1284
 
@@ -1318,16 +1286,11 @@ class DeleteCanaryCommand extends smithyClient.Command
1318
1286
  .classBuilder()
1319
1287
  .ep(commonParams)
1320
1288
  .m(function (Command, cs, config, o) {
1321
- return [
1322
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1323
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1324
- ];
1289
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1325
1290
  })
1326
1291
  .s("Synthetics", "DeleteCanary", {})
1327
1292
  .n("SyntheticsClient", "DeleteCanaryCommand")
1328
- .f(void 0, void 0)
1329
- .ser(se_DeleteCanaryCommand)
1330
- .de(de_DeleteCanaryCommand)
1293
+ .sc(DeleteCanary)
1331
1294
  .build() {
1332
1295
  }
1333
1296
 
@@ -1335,16 +1298,11 @@ class DeleteGroupCommand extends smithyClient.Command
1335
1298
  .classBuilder()
1336
1299
  .ep(commonParams)
1337
1300
  .m(function (Command, cs, config, o) {
1338
- return [
1339
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1340
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1341
- ];
1301
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1342
1302
  })
1343
1303
  .s("Synthetics", "DeleteGroup", {})
1344
1304
  .n("SyntheticsClient", "DeleteGroupCommand")
1345
- .f(void 0, void 0)
1346
- .ser(se_DeleteGroupCommand)
1347
- .de(de_DeleteGroupCommand)
1305
+ .sc(DeleteGroup)
1348
1306
  .build() {
1349
1307
  }
1350
1308
 
@@ -1352,16 +1310,11 @@ class DescribeCanariesCommand extends smithyClient.Command
1352
1310
  .classBuilder()
1353
1311
  .ep(commonParams)
1354
1312
  .m(function (Command, cs, config, o) {
1355
- return [
1356
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1357
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1358
- ];
1313
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1359
1314
  })
1360
1315
  .s("Synthetics", "DescribeCanaries", {})
1361
1316
  .n("SyntheticsClient", "DescribeCanariesCommand")
1362
- .f(void 0, void 0)
1363
- .ser(se_DescribeCanariesCommand)
1364
- .de(de_DescribeCanariesCommand)
1317
+ .sc(DescribeCanaries)
1365
1318
  .build() {
1366
1319
  }
1367
1320
 
@@ -1369,16 +1322,11 @@ class DescribeCanariesLastRunCommand extends smithyClient.Command
1369
1322
  .classBuilder()
1370
1323
  .ep(commonParams)
1371
1324
  .m(function (Command, cs, config, o) {
1372
- return [
1373
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1374
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1375
- ];
1325
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1376
1326
  })
1377
1327
  .s("Synthetics", "DescribeCanariesLastRun", {})
1378
1328
  .n("SyntheticsClient", "DescribeCanariesLastRunCommand")
1379
- .f(void 0, void 0)
1380
- .ser(se_DescribeCanariesLastRunCommand)
1381
- .de(de_DescribeCanariesLastRunCommand)
1329
+ .sc(DescribeCanariesLastRun)
1382
1330
  .build() {
1383
1331
  }
1384
1332
 
@@ -1386,16 +1334,11 @@ class DescribeRuntimeVersionsCommand extends smithyClient.Command
1386
1334
  .classBuilder()
1387
1335
  .ep(commonParams)
1388
1336
  .m(function (Command, cs, config, o) {
1389
- return [
1390
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1391
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1392
- ];
1337
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1393
1338
  })
1394
1339
  .s("Synthetics", "DescribeRuntimeVersions", {})
1395
1340
  .n("SyntheticsClient", "DescribeRuntimeVersionsCommand")
1396
- .f(void 0, void 0)
1397
- .ser(se_DescribeRuntimeVersionsCommand)
1398
- .de(de_DescribeRuntimeVersionsCommand)
1341
+ .sc(DescribeRuntimeVersions)
1399
1342
  .build() {
1400
1343
  }
1401
1344
 
@@ -1403,16 +1346,11 @@ class DisassociateResourceCommand extends smithyClient.Command
1403
1346
  .classBuilder()
1404
1347
  .ep(commonParams)
1405
1348
  .m(function (Command, cs, config, o) {
1406
- return [
1407
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1408
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1409
- ];
1349
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1410
1350
  })
1411
1351
  .s("Synthetics", "DisassociateResource", {})
1412
1352
  .n("SyntheticsClient", "DisassociateResourceCommand")
1413
- .f(void 0, void 0)
1414
- .ser(se_DisassociateResourceCommand)
1415
- .de(de_DisassociateResourceCommand)
1353
+ .sc(DisassociateResource)
1416
1354
  .build() {
1417
1355
  }
1418
1356
 
@@ -1420,16 +1358,11 @@ class GetCanaryCommand extends smithyClient.Command
1420
1358
  .classBuilder()
1421
1359
  .ep(commonParams)
1422
1360
  .m(function (Command, cs, config, o) {
1423
- return [
1424
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1425
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1426
- ];
1361
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1427
1362
  })
1428
1363
  .s("Synthetics", "GetCanary", {})
1429
1364
  .n("SyntheticsClient", "GetCanaryCommand")
1430
- .f(void 0, void 0)
1431
- .ser(se_GetCanaryCommand)
1432
- .de(de_GetCanaryCommand)
1365
+ .sc(GetCanary)
1433
1366
  .build() {
1434
1367
  }
1435
1368
 
@@ -1437,16 +1370,11 @@ class GetCanaryRunsCommand extends smithyClient.Command
1437
1370
  .classBuilder()
1438
1371
  .ep(commonParams)
1439
1372
  .m(function (Command, cs, config, o) {
1440
- return [
1441
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1442
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1443
- ];
1373
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1444
1374
  })
1445
1375
  .s("Synthetics", "GetCanaryRuns", {})
1446
1376
  .n("SyntheticsClient", "GetCanaryRunsCommand")
1447
- .f(void 0, void 0)
1448
- .ser(se_GetCanaryRunsCommand)
1449
- .de(de_GetCanaryRunsCommand)
1377
+ .sc(GetCanaryRuns)
1450
1378
  .build() {
1451
1379
  }
1452
1380
 
@@ -1454,16 +1382,11 @@ class GetGroupCommand extends smithyClient.Command
1454
1382
  .classBuilder()
1455
1383
  .ep(commonParams)
1456
1384
  .m(function (Command, cs, config, o) {
1457
- return [
1458
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1459
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1460
- ];
1385
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1461
1386
  })
1462
1387
  .s("Synthetics", "GetGroup", {})
1463
1388
  .n("SyntheticsClient", "GetGroupCommand")
1464
- .f(void 0, void 0)
1465
- .ser(se_GetGroupCommand)
1466
- .de(de_GetGroupCommand)
1389
+ .sc(GetGroup)
1467
1390
  .build() {
1468
1391
  }
1469
1392
 
@@ -1471,16 +1394,11 @@ class ListAssociatedGroupsCommand extends smithyClient.Command
1471
1394
  .classBuilder()
1472
1395
  .ep(commonParams)
1473
1396
  .m(function (Command, cs, config, o) {
1474
- return [
1475
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1476
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1477
- ];
1397
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1478
1398
  })
1479
1399
  .s("Synthetics", "ListAssociatedGroups", {})
1480
1400
  .n("SyntheticsClient", "ListAssociatedGroupsCommand")
1481
- .f(void 0, void 0)
1482
- .ser(se_ListAssociatedGroupsCommand)
1483
- .de(de_ListAssociatedGroupsCommand)
1401
+ .sc(ListAssociatedGroups)
1484
1402
  .build() {
1485
1403
  }
1486
1404
 
@@ -1488,16 +1406,11 @@ class ListGroupResourcesCommand extends smithyClient.Command
1488
1406
  .classBuilder()
1489
1407
  .ep(commonParams)
1490
1408
  .m(function (Command, cs, config, o) {
1491
- return [
1492
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1493
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1494
- ];
1409
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1495
1410
  })
1496
1411
  .s("Synthetics", "ListGroupResources", {})
1497
1412
  .n("SyntheticsClient", "ListGroupResourcesCommand")
1498
- .f(void 0, void 0)
1499
- .ser(se_ListGroupResourcesCommand)
1500
- .de(de_ListGroupResourcesCommand)
1413
+ .sc(ListGroupResources)
1501
1414
  .build() {
1502
1415
  }
1503
1416
 
@@ -1505,16 +1418,11 @@ class ListGroupsCommand extends smithyClient.Command
1505
1418
  .classBuilder()
1506
1419
  .ep(commonParams)
1507
1420
  .m(function (Command, cs, config, o) {
1508
- return [
1509
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1510
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1511
- ];
1421
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1512
1422
  })
1513
1423
  .s("Synthetics", "ListGroups", {})
1514
1424
  .n("SyntheticsClient", "ListGroupsCommand")
1515
- .f(void 0, void 0)
1516
- .ser(se_ListGroupsCommand)
1517
- .de(de_ListGroupsCommand)
1425
+ .sc(ListGroups)
1518
1426
  .build() {
1519
1427
  }
1520
1428
 
@@ -1522,16 +1430,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
1522
1430
  .classBuilder()
1523
1431
  .ep(commonParams)
1524
1432
  .m(function (Command, cs, config, o) {
1525
- return [
1526
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1527
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1528
- ];
1433
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1529
1434
  })
1530
1435
  .s("Synthetics", "ListTagsForResource", {})
1531
1436
  .n("SyntheticsClient", "ListTagsForResourceCommand")
1532
- .f(void 0, void 0)
1533
- .ser(se_ListTagsForResourceCommand)
1534
- .de(de_ListTagsForResourceCommand)
1437
+ .sc(ListTagsForResource)
1535
1438
  .build() {
1536
1439
  }
1537
1440
 
@@ -1539,16 +1442,11 @@ class StartCanaryCommand extends smithyClient.Command
1539
1442
  .classBuilder()
1540
1443
  .ep(commonParams)
1541
1444
  .m(function (Command, cs, config, o) {
1542
- return [
1543
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1544
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1545
- ];
1445
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1546
1446
  })
1547
1447
  .s("Synthetics", "StartCanary", {})
1548
1448
  .n("SyntheticsClient", "StartCanaryCommand")
1549
- .f(void 0, void 0)
1550
- .ser(se_StartCanaryCommand)
1551
- .de(de_StartCanaryCommand)
1449
+ .sc(StartCanary)
1552
1450
  .build() {
1553
1451
  }
1554
1452
 
@@ -1556,16 +1454,11 @@ class StartCanaryDryRunCommand extends smithyClient.Command
1556
1454
  .classBuilder()
1557
1455
  .ep(commonParams)
1558
1456
  .m(function (Command, cs, config, o) {
1559
- return [
1560
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1561
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1562
- ];
1457
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1563
1458
  })
1564
1459
  .s("Synthetics", "StartCanaryDryRun", {})
1565
1460
  .n("SyntheticsClient", "StartCanaryDryRunCommand")
1566
- .f(void 0, void 0)
1567
- .ser(se_StartCanaryDryRunCommand)
1568
- .de(de_StartCanaryDryRunCommand)
1461
+ .sc(StartCanaryDryRun)
1569
1462
  .build() {
1570
1463
  }
1571
1464
 
@@ -1573,16 +1466,11 @@ class StopCanaryCommand extends smithyClient.Command
1573
1466
  .classBuilder()
1574
1467
  .ep(commonParams)
1575
1468
  .m(function (Command, cs, config, o) {
1576
- return [
1577
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1578
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1579
- ];
1469
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1580
1470
  })
1581
1471
  .s("Synthetics", "StopCanary", {})
1582
1472
  .n("SyntheticsClient", "StopCanaryCommand")
1583
- .f(void 0, void 0)
1584
- .ser(se_StopCanaryCommand)
1585
- .de(de_StopCanaryCommand)
1473
+ .sc(StopCanary)
1586
1474
  .build() {
1587
1475
  }
1588
1476
 
@@ -1590,16 +1478,11 @@ class TagResourceCommand extends smithyClient.Command
1590
1478
  .classBuilder()
1591
1479
  .ep(commonParams)
1592
1480
  .m(function (Command, cs, config, o) {
1593
- return [
1594
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1595
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1596
- ];
1481
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1597
1482
  })
1598
1483
  .s("Synthetics", "TagResource", {})
1599
1484
  .n("SyntheticsClient", "TagResourceCommand")
1600
- .f(void 0, void 0)
1601
- .ser(se_TagResourceCommand)
1602
- .de(de_TagResourceCommand)
1485
+ .sc(TagResource)
1603
1486
  .build() {
1604
1487
  }
1605
1488
 
@@ -1607,16 +1490,11 @@ class UntagResourceCommand extends smithyClient.Command
1607
1490
  .classBuilder()
1608
1491
  .ep(commonParams)
1609
1492
  .m(function (Command, cs, config, o) {
1610
- return [
1611
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1612
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1613
- ];
1493
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1614
1494
  })
1615
1495
  .s("Synthetics", "UntagResource", {})
1616
1496
  .n("SyntheticsClient", "UntagResourceCommand")
1617
- .f(void 0, void 0)
1618
- .ser(se_UntagResourceCommand)
1619
- .de(de_UntagResourceCommand)
1497
+ .sc(UntagResource)
1620
1498
  .build() {
1621
1499
  }
1622
1500
 
@@ -1624,16 +1502,11 @@ class UpdateCanaryCommand extends smithyClient.Command
1624
1502
  .classBuilder()
1625
1503
  .ep(commonParams)
1626
1504
  .m(function (Command, cs, config, o) {
1627
- return [
1628
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1629
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1630
- ];
1505
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1631
1506
  })
1632
1507
  .s("Synthetics", "UpdateCanary", {})
1633
1508
  .n("SyntheticsClient", "UpdateCanaryCommand")
1634
- .f(void 0, void 0)
1635
- .ser(se_UpdateCanaryCommand)
1636
- .de(de_UpdateCanaryCommand)
1509
+ .sc(UpdateCanary)
1637
1510
  .build() {
1638
1511
  }
1639
1512
 
@@ -1687,16 +1560,16 @@ Object.defineProperty(exports, "__Client", {
1687
1560
  enumerable: true,
1688
1561
  get: function () { return smithyClient.Client; }
1689
1562
  });
1690
- exports.AccessDeniedException = AccessDeniedException;
1563
+ exports.AccessDeniedException = AccessDeniedException$1;
1691
1564
  exports.AssociateResourceCommand = AssociateResourceCommand;
1692
- exports.BadRequestException = BadRequestException;
1565
+ exports.BadRequestException = BadRequestException$1;
1693
1566
  exports.BrowserType = BrowserType;
1694
1567
  exports.CanaryRunState = CanaryRunState;
1695
1568
  exports.CanaryRunStateReasonCode = CanaryRunStateReasonCode;
1696
1569
  exports.CanaryRunTestResult = CanaryRunTestResult;
1697
1570
  exports.CanaryState = CanaryState;
1698
1571
  exports.CanaryStateReasonCode = CanaryStateReasonCode;
1699
- exports.ConflictException = ConflictException;
1572
+ exports.ConflictException = ConflictException$1;
1700
1573
  exports.CreateCanaryCommand = CreateCanaryCommand;
1701
1574
  exports.CreateGroupCommand = CreateGroupCommand;
1702
1575
  exports.DeleteCanaryCommand = DeleteCanaryCommand;
@@ -1710,30 +1583,30 @@ exports.EncryptionMode = EncryptionMode;
1710
1583
  exports.GetCanaryCommand = GetCanaryCommand;
1711
1584
  exports.GetCanaryRunsCommand = GetCanaryRunsCommand;
1712
1585
  exports.GetGroupCommand = GetGroupCommand;
1713
- exports.InternalFailureException = InternalFailureException;
1714
- exports.InternalServerException = InternalServerException;
1586
+ exports.InternalFailureException = InternalFailureException$1;
1587
+ exports.InternalServerException = InternalServerException$1;
1715
1588
  exports.ListAssociatedGroupsCommand = ListAssociatedGroupsCommand;
1716
1589
  exports.ListGroupResourcesCommand = ListGroupResourcesCommand;
1717
1590
  exports.ListGroupsCommand = ListGroupsCommand;
1718
1591
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1719
- exports.NotFoundException = NotFoundException;
1592
+ exports.NotFoundException = NotFoundException$1;
1720
1593
  exports.ProvisionedResourceCleanupSetting = ProvisionedResourceCleanupSetting;
1721
- exports.RequestEntityTooLargeException = RequestEntityTooLargeException;
1722
- exports.ResourceNotFoundException = ResourceNotFoundException;
1594
+ exports.RequestEntityTooLargeException = RequestEntityTooLargeException$1;
1595
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1723
1596
  exports.ResourceToTag = ResourceToTag;
1724
1597
  exports.RunType = RunType;
1725
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1598
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
1726
1599
  exports.StartCanaryCommand = StartCanaryCommand;
1727
1600
  exports.StartCanaryDryRunCommand = StartCanaryDryRunCommand;
1728
1601
  exports.StopCanaryCommand = StopCanaryCommand;
1729
1602
  exports.Synthetics = Synthetics;
1730
1603
  exports.SyntheticsClient = SyntheticsClient;
1731
- exports.SyntheticsServiceException = SyntheticsServiceException;
1604
+ exports.SyntheticsServiceException = SyntheticsServiceException$1;
1732
1605
  exports.TagResourceCommand = TagResourceCommand;
1733
- exports.TooManyRequestsException = TooManyRequestsException;
1606
+ exports.TooManyRequestsException = TooManyRequestsException$1;
1734
1607
  exports.UntagResourceCommand = UntagResourceCommand;
1735
1608
  exports.UpdateCanaryCommand = UpdateCanaryCommand;
1736
- exports.ValidationException = ValidationException;
1609
+ exports.ValidationException = ValidationException$1;
1737
1610
  exports.paginateDescribeCanaries = paginateDescribeCanaries;
1738
1611
  exports.paginateDescribeCanariesLastRun = paginateDescribeCanariesLastRun;
1739
1612
  exports.paginateDescribeRuntimeVersions = paginateDescribeRuntimeVersions;