@aws-sdk/client-synthetics 3.804.0 → 3.805.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -353,6 +353,14 @@ StartCanary
353
353
 
354
354
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/synthetics/command/StartCanaryCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-synthetics/Interface/StartCanaryCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-synthetics/Interface/StartCanaryCommandOutput/)
355
355
 
356
+ </details>
357
+ <details>
358
+ <summary>
359
+ StartCanaryDryRun
360
+ </summary>
361
+
362
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/synthetics/command/StartCanaryDryRunCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-synthetics/Interface/StartCanaryDryRunCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-synthetics/Interface/StartCanaryDryRunCommandOutput/)
363
+
356
364
  </details>
357
365
  <details>
358
366
  <summary>
package/dist-cjs/index.js CHANGED
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  // src/index.ts
22
22
  var index_exports = {};
23
23
  __export(index_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
24
25
  AssociateResourceCommand: () => AssociateResourceCommand,
25
26
  BadRequestException: () => BadRequestException,
26
27
  CanaryRunState: () => CanaryRunState,
@@ -51,8 +52,10 @@ __export(index_exports, {
51
52
  RequestEntityTooLargeException: () => RequestEntityTooLargeException,
52
53
  ResourceNotFoundException: () => ResourceNotFoundException,
53
54
  ResourceToTag: () => ResourceToTag,
55
+ RunType: () => RunType,
54
56
  ServiceQuotaExceededException: () => ServiceQuotaExceededException,
55
57
  StartCanaryCommand: () => StartCanaryCommand,
58
+ StartCanaryDryRunCommand: () => StartCanaryDryRunCommand,
56
59
  StopCanaryCommand: () => StopCanaryCommand,
57
60
  Synthetics: () => Synthetics,
58
61
  SyntheticsClient: () => SyntheticsClient,
@@ -243,6 +246,26 @@ var SyntheticsServiceException = class _SyntheticsServiceException extends impor
243
246
  };
244
247
 
245
248
  // src/models/models_0.ts
249
+ var AccessDeniedException = class _AccessDeniedException extends SyntheticsServiceException {
250
+ static {
251
+ __name(this, "AccessDeniedException");
252
+ }
253
+ name = "AccessDeniedException";
254
+ $fault = "client";
255
+ Message;
256
+ /**
257
+ * @internal
258
+ */
259
+ constructor(opts) {
260
+ super({
261
+ name: "AccessDeniedException",
262
+ $fault: "client",
263
+ ...opts
264
+ });
265
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
266
+ this.Message = opts.Message;
267
+ }
268
+ };
246
269
  var EncryptionMode = {
247
270
  SSE_KMS: "SSE_KMS",
248
271
  SSE_S3: "SSE_S3"
@@ -428,6 +451,10 @@ var RequestEntityTooLargeException = class _RequestEntityTooLargeException exten
428
451
  this.Message = opts.Message;
429
452
  }
430
453
  };
454
+ var RunType = {
455
+ CANARY_RUN: "CANARY_RUN",
456
+ DRY_RUN: "DRY_RUN"
457
+ };
431
458
  var InternalFailureException = class _InternalFailureException extends SyntheticsServiceException {
432
459
  static {
433
460
  __name(this, "InternalFailureException");
@@ -642,8 +669,11 @@ var se_GetCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
642
669
  const headers = {};
643
670
  b.bp("/canary/{Name}");
644
671
  b.p("Name", () => input.Name, "{Name}", false);
672
+ const query = (0, import_smithy_client.map)({
673
+ [_dRI]: [, input[_DRI]]
674
+ });
645
675
  let body;
646
- b.m("GET").h(headers).b(body);
676
+ b.m("GET").h(headers).q(query).b(body);
647
677
  return b.build();
648
678
  }, "se_GetCanaryCommand");
649
679
  var se_GetCanaryRunsCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -656,8 +686,10 @@ var se_GetCanaryRunsCommand = /* @__PURE__ */ __name(async (input, context) => {
656
686
  let body;
657
687
  body = JSON.stringify(
658
688
  (0, import_smithy_client.take)(input, {
689
+ DryRunId: [],
659
690
  MaxResults: [],
660
- NextToken: []
691
+ NextToken: [],
692
+ RunType: []
661
693
  })
662
694
  );
663
695
  b.m("POST").h(headers).b(body);
@@ -740,6 +772,32 @@ var se_StartCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
740
772
  b.m("POST").h(headers).b(body);
741
773
  return b.build();
742
774
  }, "se_StartCanaryCommand");
775
+ var se_StartCanaryDryRunCommand = /* @__PURE__ */ __name(async (input, context) => {
776
+ const b = (0, import_core.requestBuilder)(input, context);
777
+ const headers = {
778
+ "content-type": "application/json"
779
+ };
780
+ b.bp("/canary/{Name}/dry-run/start");
781
+ b.p("Name", () => input.Name, "{Name}", false);
782
+ let body;
783
+ body = JSON.stringify(
784
+ (0, import_smithy_client.take)(input, {
785
+ ArtifactConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ArtifactConfig"),
786
+ ArtifactS3Location: [],
787
+ Code: /* @__PURE__ */ __name((_) => se_CanaryCodeInput(_, context), "Code"),
788
+ ExecutionRoleArn: [],
789
+ FailureRetentionPeriodInDays: [],
790
+ ProvisionedResourceCleanup: [],
791
+ RunConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "RunConfig"),
792
+ RuntimeVersion: [],
793
+ SuccessRetentionPeriodInDays: [],
794
+ VisualReference: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "VisualReference"),
795
+ VpcConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "VpcConfig")
796
+ })
797
+ );
798
+ b.m("POST").h(headers).b(body);
799
+ return b.build();
800
+ }, "se_StartCanaryDryRunCommand");
743
801
  var se_StopCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
744
802
  const b = (0, import_core.requestBuilder)(input, context);
745
803
  const headers = {};
@@ -790,6 +848,7 @@ var se_UpdateCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
790
848
  ArtifactConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ArtifactConfig"),
791
849
  ArtifactS3Location: [],
792
850
  Code: /* @__PURE__ */ __name((_) => se_CanaryCodeInput(_, context), "Code"),
851
+ DryRunId: [],
793
852
  ExecutionRoleArn: [],
794
853
  FailureRetentionPeriodInDays: [],
795
854
  ProvisionedResourceCleanup: [],
@@ -1029,6 +1088,20 @@ var de_StartCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
1029
1088
  await (0, import_smithy_client.collectBody)(output.body, context);
1030
1089
  return contents;
1031
1090
  }, "de_StartCanaryCommand");
1091
+ var de_StartCanaryDryRunCommand = /* @__PURE__ */ __name(async (output, context) => {
1092
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1093
+ return de_CommandError(output, context);
1094
+ }
1095
+ const contents = (0, import_smithy_client.map)({
1096
+ $metadata: deserializeMetadata(output)
1097
+ });
1098
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1099
+ const doc = (0, import_smithy_client.take)(data, {
1100
+ DryRunConfig: import_smithy_client._json
1101
+ });
1102
+ Object.assign(contents, doc);
1103
+ return contents;
1104
+ }, "de_StartCanaryDryRunCommand");
1032
1105
  var de_StopCanaryCommand = /* @__PURE__ */ __name(async (output, context) => {
1033
1106
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1034
1107
  return de_CommandError(output, context);
@@ -1106,6 +1179,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1106
1179
  case "TooManyRequestsException":
1107
1180
  case "com.amazonaws.synthetics#TooManyRequestsException":
1108
1181
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1182
+ case "AccessDeniedException":
1183
+ case "com.amazonaws.synthetics#AccessDeniedException":
1184
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1109
1185
  default:
1110
1186
  const parsedBody = parsedOutput.body;
1111
1187
  return throwDefaultError({
@@ -1116,6 +1192,19 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1116
1192
  }
1117
1193
  }, "de_CommandError");
1118
1194
  var throwDefaultError = (0, import_smithy_client.withBaseException)(SyntheticsServiceException);
1195
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1196
+ const contents = (0, import_smithy_client.map)({});
1197
+ const data = parsedOutput.body;
1198
+ const doc = (0, import_smithy_client.take)(data, {
1199
+ Message: import_smithy_client.expectString
1200
+ });
1201
+ Object.assign(contents, doc);
1202
+ const exception = new AccessDeniedException({
1203
+ $metadata: deserializeMetadata(parsedOutput),
1204
+ ...contents
1205
+ });
1206
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1207
+ }, "de_AccessDeniedExceptionRes");
1119
1208
  var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1120
1209
  const contents = (0, import_smithy_client.map)({});
1121
1210
  const data = parsedOutput.body;
@@ -1272,6 +1361,7 @@ var de_Canary = /* @__PURE__ */ __name((output, context) => {
1272
1361
  ArtifactConfig: import_smithy_client._json,
1273
1362
  ArtifactS3Location: import_smithy_client.expectString,
1274
1363
  Code: import_smithy_client._json,
1364
+ DryRunConfig: import_smithy_client._json,
1275
1365
  EngineArn: import_smithy_client.expectString,
1276
1366
  ExecutionRoleArn: import_smithy_client.expectString,
1277
1367
  FailureRetentionPeriodInDays: import_smithy_client.expectInt32,
@@ -1298,6 +1388,7 @@ var de_CanaryLastRun = /* @__PURE__ */ __name((output, context) => {
1298
1388
  var de_CanaryRun = /* @__PURE__ */ __name((output, context) => {
1299
1389
  return (0, import_smithy_client.take)(output, {
1300
1390
  ArtifactS3Location: import_smithy_client.expectString,
1391
+ DryRunConfig: import_smithy_client._json,
1301
1392
  Id: import_smithy_client.expectString,
1302
1393
  Name: import_smithy_client.expectString,
1303
1394
  Status: import_smithy_client._json,
@@ -1355,8 +1446,10 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1355
1446
  cfId: output.headers["x-amz-cf-id"]
1356
1447
  }), "deserializeMetadata");
1357
1448
  var _DL = "DeleteLambda";
1449
+ var _DRI = "DryRunId";
1358
1450
  var _TK = "TagKeys";
1359
1451
  var _dL = "deleteLambda";
1452
+ var _dRI = "dryRunId";
1360
1453
  var _tK = "tagKeys";
1361
1454
 
1362
1455
  // src/commands/AssociateResourceCommand.ts
@@ -1611,6 +1704,21 @@ var StartCanaryCommand = class extends import_smithy_client.Command.classBuilder
1611
1704
  }
1612
1705
  };
1613
1706
 
1707
+ // src/commands/StartCanaryDryRunCommand.ts
1708
+
1709
+
1710
+
1711
+ var StartCanaryDryRunCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1712
+ return [
1713
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1714
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1715
+ ];
1716
+ }).s("Synthetics", "StartCanaryDryRun", {}).n("SyntheticsClient", "StartCanaryDryRunCommand").f(void 0, void 0).ser(se_StartCanaryDryRunCommand).de(de_StartCanaryDryRunCommand).build() {
1717
+ static {
1718
+ __name(this, "StartCanaryDryRunCommand");
1719
+ }
1720
+ };
1721
+
1614
1722
  // src/commands/StopCanaryCommand.ts
1615
1723
 
1616
1724
 
@@ -1690,6 +1798,7 @@ var commands = {
1690
1798
  ListGroupsCommand,
1691
1799
  ListTagsForResourceCommand,
1692
1800
  StartCanaryCommand,
1801
+ StartCanaryDryRunCommand,
1693
1802
  StopCanaryCommand,
1694
1803
  TagResourceCommand,
1695
1804
  UntagResourceCommand,
@@ -1754,6 +1863,7 @@ var paginateListGroups = (0, import_core.createPaginator)(SyntheticsClient, List
1754
1863
  ListGroupsCommand,
1755
1864
  ListTagsForResourceCommand,
1756
1865
  StartCanaryCommand,
1866
+ StartCanaryDryRunCommand,
1757
1867
  StopCanaryCommand,
1758
1868
  TagResourceCommand,
1759
1869
  UntagResourceCommand,
@@ -1765,6 +1875,7 @@ var paginateListGroups = (0, import_core.createPaginator)(SyntheticsClient, List
1765
1875
  paginateListAssociatedGroups,
1766
1876
  paginateListGroupResources,
1767
1877
  paginateListGroups,
1878
+ AccessDeniedException,
1768
1879
  EncryptionMode,
1769
1880
  ConflictException,
1770
1881
  InternalServerException,
@@ -1779,6 +1890,7 @@ var paginateListGroups = (0, import_core.createPaginator)(SyntheticsClient, List
1779
1890
  CanaryRunStateReasonCode,
1780
1891
  ResourceToTag,
1781
1892
  RequestEntityTooLargeException,
1893
+ RunType,
1782
1894
  InternalFailureException,
1783
1895
  NotFoundException,
1784
1896
  TooManyRequestsException
@@ -16,6 +16,7 @@ import { ListGroupResourcesCommand, } from "./commands/ListGroupResourcesCommand
16
16
  import { ListGroupsCommand } from "./commands/ListGroupsCommand";
17
17
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
18
18
  import { StartCanaryCommand } from "./commands/StartCanaryCommand";
19
+ import { StartCanaryDryRunCommand, } from "./commands/StartCanaryDryRunCommand";
19
20
  import { StopCanaryCommand } from "./commands/StopCanaryCommand";
20
21
  import { TagResourceCommand } from "./commands/TagResourceCommand";
21
22
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
@@ -39,6 +40,7 @@ const commands = {
39
40
  ListGroupsCommand,
40
41
  ListTagsForResourceCommand,
41
42
  StartCanaryCommand,
43
+ StartCanaryDryRunCommand,
42
44
  StopCanaryCommand,
43
45
  TagResourceCommand,
44
46
  UntagResourceCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_StartCanaryDryRunCommand, se_StartCanaryDryRunCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class StartCanaryDryRunCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Synthetics", "StartCanaryDryRun", {})
17
+ .n("SyntheticsClient", "StartCanaryDryRunCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_StartCanaryDryRunCommand)
20
+ .de(de_StartCanaryDryRunCommand)
21
+ .build() {
22
+ }
@@ -15,6 +15,7 @@ export * from "./ListGroupResourcesCommand";
15
15
  export * from "./ListGroupsCommand";
16
16
  export * from "./ListTagsForResourceCommand";
17
17
  export * from "./StartCanaryCommand";
18
+ export * from "./StartCanaryDryRunCommand";
18
19
  export * from "./StopCanaryCommand";
19
20
  export * from "./TagResourceCommand";
20
21
  export * from "./UntagResourceCommand";
@@ -1,4 +1,18 @@
1
1
  import { SyntheticsServiceException as __BaseException } from "./SyntheticsServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ Message;
6
+ constructor(opts) {
7
+ super({
8
+ name: "AccessDeniedException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
+ this.Message = opts.Message;
14
+ }
15
+ }
2
16
  export const EncryptionMode = {
3
17
  SSE_KMS: "SSE_KMS",
4
18
  SSE_S3: "SSE_S3",
@@ -142,6 +156,10 @@ export class RequestEntityTooLargeException extends __BaseException {
142
156
  this.Message = opts.Message;
143
157
  }
144
158
  }
159
+ export const RunType = {
160
+ CANARY_RUN: "CANARY_RUN",
161
+ DRY_RUN: "DRY_RUN",
162
+ };
145
163
  export class InternalFailureException extends __BaseException {
146
164
  name = "InternalFailureException";
147
165
  $fault = "server";
@@ -1,7 +1,7 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { BadRequestException, ConflictException, InternalFailureException, InternalServerException, NotFoundException, RequestEntityTooLargeException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsException, ValidationException, } from "../models/models_0";
4
+ import { AccessDeniedException, BadRequestException, ConflictException, InternalFailureException, InternalServerException, NotFoundException, RequestEntityTooLargeException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsException, ValidationException, } from "../models/models_0";
5
5
  import { SyntheticsServiceException as __BaseException } from "../models/SyntheticsServiceException";
6
6
  export const se_AssociateResourceCommand = async (input, context) => {
7
7
  const b = rb(input, context);
@@ -141,8 +141,11 @@ export const se_GetCanaryCommand = async (input, context) => {
141
141
  const headers = {};
142
142
  b.bp("/canary/{Name}");
143
143
  b.p("Name", () => input.Name, "{Name}", false);
144
+ const query = map({
145
+ [_dRI]: [, input[_DRI]],
146
+ });
144
147
  let body;
145
- b.m("GET").h(headers).b(body);
148
+ b.m("GET").h(headers).q(query).b(body);
146
149
  return b.build();
147
150
  };
148
151
  export const se_GetCanaryRunsCommand = async (input, context) => {
@@ -154,8 +157,10 @@ export const se_GetCanaryRunsCommand = async (input, context) => {
154
157
  b.p("Name", () => input.Name, "{Name}", false);
155
158
  let body;
156
159
  body = JSON.stringify(take(input, {
160
+ DryRunId: [],
157
161
  MaxResults: [],
158
162
  NextToken: [],
163
+ RunType: [],
159
164
  }));
160
165
  b.m("POST").h(headers).b(body);
161
166
  return b.build();
@@ -231,6 +236,30 @@ export const se_StartCanaryCommand = async (input, context) => {
231
236
  b.m("POST").h(headers).b(body);
232
237
  return b.build();
233
238
  };
239
+ export const se_StartCanaryDryRunCommand = async (input, context) => {
240
+ const b = rb(input, context);
241
+ const headers = {
242
+ "content-type": "application/json",
243
+ };
244
+ b.bp("/canary/{Name}/dry-run/start");
245
+ b.p("Name", () => input.Name, "{Name}", false);
246
+ let body;
247
+ body = JSON.stringify(take(input, {
248
+ ArtifactConfig: (_) => _json(_),
249
+ ArtifactS3Location: [],
250
+ Code: (_) => se_CanaryCodeInput(_, context),
251
+ ExecutionRoleArn: [],
252
+ FailureRetentionPeriodInDays: [],
253
+ ProvisionedResourceCleanup: [],
254
+ RunConfig: (_) => _json(_),
255
+ RuntimeVersion: [],
256
+ SuccessRetentionPeriodInDays: [],
257
+ VisualReference: (_) => _json(_),
258
+ VpcConfig: (_) => _json(_),
259
+ }));
260
+ b.m("POST").h(headers).b(body);
261
+ return b.build();
262
+ };
234
263
  export const se_StopCanaryCommand = async (input, context) => {
235
264
  const b = rb(input, context);
236
265
  const headers = {};
@@ -278,6 +307,7 @@ export const se_UpdateCanaryCommand = async (input, context) => {
278
307
  ArtifactConfig: (_) => _json(_),
279
308
  ArtifactS3Location: [],
280
309
  Code: (_) => se_CanaryCodeInput(_, context),
310
+ DryRunId: [],
281
311
  ExecutionRoleArn: [],
282
312
  FailureRetentionPeriodInDays: [],
283
313
  ProvisionedResourceCleanup: [],
@@ -516,6 +546,20 @@ export const de_StartCanaryCommand = async (output, context) => {
516
546
  await collectBody(output.body, context);
517
547
  return contents;
518
548
  };
549
+ export const de_StartCanaryDryRunCommand = async (output, context) => {
550
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
551
+ return de_CommandError(output, context);
552
+ }
553
+ const contents = map({
554
+ $metadata: deserializeMetadata(output),
555
+ });
556
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
557
+ const doc = take(data, {
558
+ DryRunConfig: _json,
559
+ });
560
+ Object.assign(contents, doc);
561
+ return contents;
562
+ };
519
563
  export const de_StopCanaryCommand = async (output, context) => {
520
564
  if (output.statusCode !== 200 && output.statusCode >= 300) {
521
565
  return de_CommandError(output, context);
@@ -593,6 +637,9 @@ const de_CommandError = async (output, context) => {
593
637
  case "TooManyRequestsException":
594
638
  case "com.amazonaws.synthetics#TooManyRequestsException":
595
639
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
640
+ case "AccessDeniedException":
641
+ case "com.amazonaws.synthetics#AccessDeniedException":
642
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
596
643
  default:
597
644
  const parsedBody = parsedOutput.body;
598
645
  return throwDefaultError({
@@ -603,6 +650,19 @@ const de_CommandError = async (output, context) => {
603
650
  }
604
651
  };
605
652
  const throwDefaultError = withBaseException(__BaseException);
653
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
654
+ const contents = map({});
655
+ const data = parsedOutput.body;
656
+ const doc = take(data, {
657
+ Message: __expectString,
658
+ });
659
+ Object.assign(contents, doc);
660
+ const exception = new AccessDeniedException({
661
+ $metadata: deserializeMetadata(parsedOutput),
662
+ ...contents,
663
+ });
664
+ return __decorateServiceException(exception, parsedOutput.body);
665
+ };
606
666
  const de_BadRequestExceptionRes = async (parsedOutput, context) => {
607
667
  const contents = map({});
608
668
  const data = parsedOutput.body;
@@ -763,6 +823,7 @@ const de_Canary = (output, context) => {
763
823
  ArtifactConfig: _json,
764
824
  ArtifactS3Location: __expectString,
765
825
  Code: _json,
826
+ DryRunConfig: _json,
766
827
  EngineArn: __expectString,
767
828
  ExecutionRoleArn: __expectString,
768
829
  FailureRetentionPeriodInDays: __expectInt32,
@@ -789,6 +850,7 @@ const de_CanaryLastRun = (output, context) => {
789
850
  const de_CanaryRun = (output, context) => {
790
851
  return take(output, {
791
852
  ArtifactS3Location: __expectString,
853
+ DryRunConfig: _json,
792
854
  Id: __expectString,
793
855
  Name: __expectString,
794
856
  Status: _json,
@@ -851,6 +913,8 @@ const deserializeMetadata = (output) => ({
851
913
  });
852
914
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
853
915
  const _DL = "DeleteLambda";
916
+ const _DRI = "DryRunId";
854
917
  const _TK = "TagKeys";
855
918
  const _dL = "deleteLambda";
919
+ const _dRI = "dryRunId";
856
920
  const _tK = "tagKeys";
@@ -16,6 +16,7 @@ import { ListGroupResourcesCommandInput, ListGroupResourcesCommandOutput } from
16
16
  import { ListGroupsCommandInput, ListGroupsCommandOutput } from "./commands/ListGroupsCommand";
17
17
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
18
18
  import { StartCanaryCommandInput, StartCanaryCommandOutput } from "./commands/StartCanaryCommand";
19
+ import { StartCanaryDryRunCommandInput, StartCanaryDryRunCommandOutput } from "./commands/StartCanaryDryRunCommand";
19
20
  import { StopCanaryCommandInput, StopCanaryCommandOutput } from "./commands/StopCanaryCommand";
20
21
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
21
22
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -128,6 +129,12 @@ export interface Synthetics {
128
129
  startCanary(args: StartCanaryCommandInput, options?: __HttpHandlerOptions): Promise<StartCanaryCommandOutput>;
129
130
  startCanary(args: StartCanaryCommandInput, cb: (err: any, data?: StartCanaryCommandOutput) => void): void;
130
131
  startCanary(args: StartCanaryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartCanaryCommandOutput) => void): void;
132
+ /**
133
+ * @see {@link StartCanaryDryRunCommand}
134
+ */
135
+ startCanaryDryRun(args: StartCanaryDryRunCommandInput, options?: __HttpHandlerOptions): Promise<StartCanaryDryRunCommandOutput>;
136
+ startCanaryDryRun(args: StartCanaryDryRunCommandInput, cb: (err: any, data?: StartCanaryDryRunCommandOutput) => void): void;
137
+ startCanaryDryRun(args: StartCanaryDryRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartCanaryDryRunCommandOutput) => void): void;
131
138
  /**
132
139
  * @see {@link StopCanaryCommand}
133
140
  */
@@ -24,6 +24,7 @@ import { ListGroupResourcesCommandInput, ListGroupResourcesCommandOutput } from
24
24
  import { ListGroupsCommandInput, ListGroupsCommandOutput } from "./commands/ListGroupsCommand";
25
25
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
26
26
  import { StartCanaryCommandInput, StartCanaryCommandOutput } from "./commands/StartCanaryCommand";
27
+ import { StartCanaryDryRunCommandInput, StartCanaryDryRunCommandOutput } from "./commands/StartCanaryDryRunCommand";
27
28
  import { StopCanaryCommandInput, StopCanaryCommandOutput } from "./commands/StopCanaryCommand";
28
29
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
29
30
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -34,11 +35,11 @@ export { __Client };
34
35
  /**
35
36
  * @public
36
37
  */
37
- export type ServiceInputTypes = AssociateResourceCommandInput | CreateCanaryCommandInput | CreateGroupCommandInput | DeleteCanaryCommandInput | DeleteGroupCommandInput | DescribeCanariesCommandInput | DescribeCanariesLastRunCommandInput | DescribeRuntimeVersionsCommandInput | DisassociateResourceCommandInput | GetCanaryCommandInput | GetCanaryRunsCommandInput | GetGroupCommandInput | ListAssociatedGroupsCommandInput | ListGroupResourcesCommandInput | ListGroupsCommandInput | ListTagsForResourceCommandInput | StartCanaryCommandInput | StopCanaryCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCanaryCommandInput;
38
+ export type ServiceInputTypes = AssociateResourceCommandInput | CreateCanaryCommandInput | CreateGroupCommandInput | DeleteCanaryCommandInput | DeleteGroupCommandInput | DescribeCanariesCommandInput | DescribeCanariesLastRunCommandInput | DescribeRuntimeVersionsCommandInput | DisassociateResourceCommandInput | GetCanaryCommandInput | GetCanaryRunsCommandInput | GetGroupCommandInput | ListAssociatedGroupsCommandInput | ListGroupResourcesCommandInput | ListGroupsCommandInput | ListTagsForResourceCommandInput | StartCanaryCommandInput | StartCanaryDryRunCommandInput | StopCanaryCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCanaryCommandInput;
38
39
  /**
39
40
  * @public
40
41
  */
41
- export type ServiceOutputTypes = AssociateResourceCommandOutput | CreateCanaryCommandOutput | CreateGroupCommandOutput | DeleteCanaryCommandOutput | DeleteGroupCommandOutput | DescribeCanariesCommandOutput | DescribeCanariesLastRunCommandOutput | DescribeRuntimeVersionsCommandOutput | DisassociateResourceCommandOutput | GetCanaryCommandOutput | GetCanaryRunsCommandOutput | GetGroupCommandOutput | ListAssociatedGroupsCommandOutput | ListGroupResourcesCommandOutput | ListGroupsCommandOutput | ListTagsForResourceCommandOutput | StartCanaryCommandOutput | StopCanaryCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCanaryCommandOutput;
42
+ export type ServiceOutputTypes = AssociateResourceCommandOutput | CreateCanaryCommandOutput | CreateGroupCommandOutput | DeleteCanaryCommandOutput | DeleteGroupCommandOutput | DescribeCanariesCommandOutput | DescribeCanariesLastRunCommandOutput | DescribeRuntimeVersionsCommandOutput | DisassociateResourceCommandOutput | GetCanaryCommandOutput | GetCanaryRunsCommandOutput | GetGroupCommandOutput | ListAssociatedGroupsCommandOutput | ListGroupResourcesCommandOutput | ListGroupsCommandOutput | ListTagsForResourceCommandOutput | StartCanaryCommandOutput | StartCanaryDryRunCommandOutput | StopCanaryCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCanaryCommandOutput;
42
43
  /**
43
44
  * @public
44
45
  */
@@ -163,6 +163,10 @@ declare const CreateCanaryCommand_base: {
163
163
  * // KmsKeyArn: "STRING_VALUE",
164
164
  * // },
165
165
  * // },
166
+ * // DryRunConfig: { // DryRunConfigOutput
167
+ * // DryRunId: "STRING_VALUE",
168
+ * // LastDryRunExecutionStatus: "STRING_VALUE",
169
+ * // },
166
170
  * // },
167
171
  * // };
168
172
  *
@@ -118,6 +118,10 @@ declare const DescribeCanariesCommand_base: {
118
118
  * // KmsKeyArn: "STRING_VALUE",
119
119
  * // },
120
120
  * // },
121
+ * // DryRunConfig: { // DryRunConfigOutput
122
+ * // DryRunId: "STRING_VALUE",
123
+ * // LastDryRunExecutionStatus: "STRING_VALUE",
124
+ * // },
121
125
  * // },
122
126
  * // ],
123
127
  * // NextToken: "STRING_VALUE",
@@ -68,6 +68,9 @@ declare const DescribeCanariesLastRunCommand_base: {
68
68
  * // Completed: new Date("TIMESTAMP"),
69
69
  * // },
70
70
  * // ArtifactS3Location: "STRING_VALUE",
71
+ * // DryRunConfig: { // CanaryDryRunConfigOutput
72
+ * // DryRunId: "STRING_VALUE",
73
+ * // },
71
74
  * // },
72
75
  * // },
73
76
  * // ],
@@ -38,6 +38,7 @@ declare const GetCanaryCommand_base: {
38
38
  * const client = new SyntheticsClient(config);
39
39
  * const input = { // GetCanaryRequest
40
40
  * Name: "STRING_VALUE", // required
41
+ * DryRunId: "STRING_VALUE",
41
42
  * };
42
43
  * const command = new GetCanaryCommand(input);
43
44
  * const response = await client.send(command);
@@ -106,6 +107,10 @@ declare const GetCanaryCommand_base: {
106
107
  * // KmsKeyArn: "STRING_VALUE",
107
108
  * // },
108
109
  * // },
110
+ * // DryRunConfig: { // DryRunConfigOutput
111
+ * // DryRunId: "STRING_VALUE",
112
+ * // LastDryRunExecutionStatus: "STRING_VALUE",
113
+ * // },
109
114
  * // },
110
115
  * // };
111
116
  *
@@ -38,6 +38,8 @@ declare const GetCanaryRunsCommand_base: {
38
38
  * Name: "STRING_VALUE", // required
39
39
  * NextToken: "STRING_VALUE",
40
40
  * MaxResults: Number("int"),
41
+ * DryRunId: "STRING_VALUE",
42
+ * RunType: "CANARY_RUN" || "DRY_RUN",
41
43
  * };
42
44
  * const command = new GetCanaryRunsCommand(input);
43
45
  * const response = await client.send(command);
@@ -56,6 +58,9 @@ declare const GetCanaryRunsCommand_base: {
56
58
  * // Completed: new Date("TIMESTAMP"),
57
59
  * // },
58
60
  * // ArtifactS3Location: "STRING_VALUE",
61
+ * // DryRunConfig: { // CanaryDryRunConfigOutput
62
+ * // DryRunId: "STRING_VALUE",
63
+ * // },
59
64
  * // },
60
65
  * // ],
61
66
  * // NextToken: "STRING_VALUE",