@aws-sdk/client-synthetics 3.806.0 → 3.808.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1391,6 +1391,8 @@ var de_CanaryRun = /* @__PURE__ */ __name((output, context) => {
1391
1391
  DryRunConfig: import_smithy_client._json,
1392
1392
  Id: import_smithy_client.expectString,
1393
1393
  Name: import_smithy_client.expectString,
1394
+ RetryAttempt: import_smithy_client.expectInt32,
1395
+ ScheduledRunId: import_smithy_client.expectString,
1394
1396
  Status: import_smithy_client._json,
1395
1397
  Timeline: /* @__PURE__ */ __name((_) => de_CanaryRunTimeline(_, context), "Timeline")
1396
1398
  });
@@ -1404,6 +1406,7 @@ var de_CanaryRuns = /* @__PURE__ */ __name((output, context) => {
1404
1406
  var de_CanaryRunTimeline = /* @__PURE__ */ __name((output, context) => {
1405
1407
  return (0, import_smithy_client.take)(output, {
1406
1408
  Completed: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Completed"),
1409
+ MetricTimestampForRunAndRetries: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "MetricTimestampForRunAndRetries"),
1407
1410
  Started: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Started")
1408
1411
  });
1409
1412
  }, "de_CanaryRunTimeline");
@@ -853,6 +853,8 @@ const de_CanaryRun = (output, context) => {
853
853
  DryRunConfig: _json,
854
854
  Id: __expectString,
855
855
  Name: __expectString,
856
+ RetryAttempt: __expectInt32,
857
+ ScheduledRunId: __expectString,
856
858
  Status: _json,
857
859
  Timeline: (_) => de_CanaryRunTimeline(_, context),
858
860
  });
@@ -868,6 +870,7 @@ const de_CanaryRuns = (output, context) => {
868
870
  const de_CanaryRunTimeline = (output, context) => {
869
871
  return take(output, {
870
872
  Completed: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
873
+ MetricTimestampForRunAndRetries: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
871
874
  Started: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
872
875
  });
873
876
  };
@@ -61,6 +61,9 @@ declare const CreateCanaryCommand_base: {
61
61
  * Schedule: { // CanaryScheduleInput
62
62
  * Expression: "STRING_VALUE", // required
63
63
  * DurationInSeconds: Number("long"),
64
+ * RetryConfig: { // RetryConfigInput
65
+ * MaxRetries: Number("int"), // required
66
+ * },
64
67
  * },
65
68
  * RunConfig: { // CanaryRunConfigInput
66
69
  * TimeoutInSeconds: Number("int"),
@@ -110,6 +113,9 @@ declare const CreateCanaryCommand_base: {
110
113
  * // Schedule: { // CanaryScheduleOutput
111
114
  * // Expression: "STRING_VALUE",
112
115
  * // DurationInSeconds: Number("long"),
116
+ * // RetryConfig: { // RetryConfigOutput
117
+ * // MaxRetries: Number("int"),
118
+ * // },
113
119
  * // },
114
120
  * // RunConfig: { // CanaryRunConfigOutput
115
121
  * // TimeoutInSeconds: Number("int"),
@@ -65,6 +65,9 @@ declare const DescribeCanariesCommand_base: {
65
65
  * // Schedule: { // CanaryScheduleOutput
66
66
  * // Expression: "STRING_VALUE",
67
67
  * // DurationInSeconds: Number("long"),
68
+ * // RetryConfig: { // RetryConfigOutput
69
+ * // MaxRetries: Number("int"),
70
+ * // },
68
71
  * // },
69
72
  * // RunConfig: { // CanaryRunConfigOutput
70
73
  * // TimeoutInSeconds: Number("int"),
@@ -57,6 +57,8 @@ declare const DescribeCanariesLastRunCommand_base: {
57
57
  * // CanaryName: "STRING_VALUE",
58
58
  * // LastRun: { // CanaryRun
59
59
  * // Id: "STRING_VALUE",
60
+ * // ScheduledRunId: "STRING_VALUE",
61
+ * // RetryAttempt: Number("int"),
60
62
  * // Name: "STRING_VALUE",
61
63
  * // Status: { // CanaryRunStatus
62
64
  * // State: "RUNNING" || "PASSED" || "FAILED",
@@ -66,6 +68,7 @@ declare const DescribeCanariesLastRunCommand_base: {
66
68
  * // Timeline: { // CanaryRunTimeline
67
69
  * // Started: new Date("TIMESTAMP"),
68
70
  * // Completed: new Date("TIMESTAMP"),
71
+ * // MetricTimestampForRunAndRetries: new Date("TIMESTAMP"),
69
72
  * // },
70
73
  * // ArtifactS3Location: "STRING_VALUE",
71
74
  * // DryRunConfig: { // CanaryDryRunConfigOutput
@@ -54,6 +54,9 @@ declare const GetCanaryCommand_base: {
54
54
  * // Schedule: { // CanaryScheduleOutput
55
55
  * // Expression: "STRING_VALUE",
56
56
  * // DurationInSeconds: Number("long"),
57
+ * // RetryConfig: { // RetryConfigOutput
58
+ * // MaxRetries: Number("int"),
59
+ * // },
57
60
  * // },
58
61
  * // RunConfig: { // CanaryRunConfigOutput
59
62
  * // TimeoutInSeconds: Number("int"),
@@ -47,6 +47,8 @@ declare const GetCanaryRunsCommand_base: {
47
47
  * // CanaryRuns: [ // CanaryRuns
48
48
  * // { // CanaryRun
49
49
  * // Id: "STRING_VALUE",
50
+ * // ScheduledRunId: "STRING_VALUE",
51
+ * // RetryAttempt: Number("int"),
50
52
  * // Name: "STRING_VALUE",
51
53
  * // Status: { // CanaryRunStatus
52
54
  * // State: "RUNNING" || "PASSED" || "FAILED",
@@ -56,6 +58,7 @@ declare const GetCanaryRunsCommand_base: {
56
58
  * // Timeline: { // CanaryRunTimeline
57
59
  * // Started: new Date("TIMESTAMP"),
58
60
  * // Completed: new Date("TIMESTAMP"),
61
+ * // MetricTimestampForRunAndRetries: new Date("TIMESTAMP"),
59
62
  * // },
60
63
  * // ArtifactS3Location: "STRING_VALUE",
61
64
  * // DryRunConfig: { // CanaryDryRunConfigOutput
@@ -55,6 +55,9 @@ declare const UpdateCanaryCommand_base: {
55
55
  * Schedule: { // CanaryScheduleInput
56
56
  * Expression: "STRING_VALUE", // required
57
57
  * DurationInSeconds: Number("long"),
58
+ * RetryConfig: { // RetryConfigInput
59
+ * MaxRetries: Number("int"), // required
60
+ * },
58
61
  * },
59
62
  * RunConfig: { // CanaryRunConfigInput
60
63
  * TimeoutInSeconds: Number("int"),
@@ -269,6 +269,17 @@ export interface CanaryRunConfigOutput {
269
269
  */
270
270
  ActiveTracing?: boolean | undefined;
271
271
  }
272
+ /**
273
+ * <p>This structure contains information about the canary's retry configuration.</p>
274
+ * @public
275
+ */
276
+ export interface RetryConfigOutput {
277
+ /**
278
+ * <p>The maximum number of retries. The value must be less than or equal to 2.</p>
279
+ * @public
280
+ */
281
+ MaxRetries?: number | undefined;
282
+ }
272
283
  /**
273
284
  * <p>How long, in seconds, for the canary to continue making regular runs according to the schedule in the
274
285
  * <code>Expression</code> value.</p>
@@ -300,6 +311,11 @@ export interface CanaryScheduleOutput {
300
311
  * @public
301
312
  */
302
313
  DurationInSeconds?: number | undefined;
314
+ /**
315
+ * <p>A structure that contains the retry configuration for a canary</p>
316
+ * @public
317
+ */
318
+ RetryConfig?: RetryConfigOutput | undefined;
303
319
  }
304
320
  /**
305
321
  * @public
@@ -353,12 +369,12 @@ export interface CanaryStatus {
353
369
  */
354
370
  State?: CanaryState | undefined;
355
371
  /**
356
- * <p>If the canary has insufficient permissions to run, this field provides more details.</p>
372
+ * <p>If the canary creation or update failed, this field provides details on the failure.</p>
357
373
  * @public
358
374
  */
359
375
  StateReason?: string | undefined;
360
376
  /**
361
- * <p>If the canary cannot run or has failed, this field displays the reason.</p>
377
+ * <p>If the canary creation or update failed, this field displays the reason code.</p>
362
378
  * @public
363
379
  */
364
380
  StateReasonCode?: CanaryStateReasonCode | undefined;
@@ -636,6 +652,11 @@ export interface CanaryRunTimeline {
636
652
  * @public
637
653
  */
638
654
  Completed?: Date | undefined;
655
+ /**
656
+ * <p>The time at which the metrics will be generated for this run or retries.</p>
657
+ * @public
658
+ */
659
+ MetricTimestampForRunAndRetries?: Date | undefined;
639
660
  }
640
661
  /**
641
662
  * <p>This structure contains the details about one run of one canary.</p>
@@ -647,6 +668,16 @@ export interface CanaryRun {
647
668
  * @public
648
669
  */
649
670
  Id?: string | undefined;
671
+ /**
672
+ * <p>The ID of the scheduled canary run.</p>
673
+ * @public
674
+ */
675
+ ScheduledRunId?: string | undefined;
676
+ /**
677
+ * <p>The count in number of the retry attempt.</p>
678
+ * @public
679
+ */
680
+ RetryAttempt?: number | undefined;
650
681
  /**
651
682
  * <p>The name of the canary.</p>
652
683
  * @public
@@ -807,6 +838,24 @@ export interface CanaryRunConfigInput {
807
838
  */
808
839
  EnvironmentVariables?: Record<string, string> | undefined;
809
840
  }
841
+ /**
842
+ * <p>This structure contains information about the canary's retry configuration.</p>
843
+ * <note>
844
+ * <p>The default account level concurrent execution limit from Lambda is 1000. When you have more than 1000 canaries, it's possible there are more than 1000 Lambda invocations due to retries and the console might hang. For more information on the Lambda execution limit,
845
+ * see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-concurrency.html#:~:text=As%20your%20functions%20receive%20more,functions%20in%20an%20AWS%20Region">Understanding Lambda function scaling</a>.</p>
846
+ * </note>
847
+ * <note>
848
+ * <p>For canary with <code>MaxRetries = 2</code>, you need to set the <code>CanaryRunConfigInput.TimeoutInSeconds</code> to less than 600 seconds to avoid validation errors.</p>
849
+ * </note>
850
+ * @public
851
+ */
852
+ export interface RetryConfigInput {
853
+ /**
854
+ * <p>The maximum number of retries. The value must be less than or equal to 2.</p>
855
+ * @public
856
+ */
857
+ MaxRetries: number | undefined;
858
+ }
810
859
  /**
811
860
  * <p>This structure specifies how often a canary is to make runs and the date and time
812
861
  * when it should stop making runs.</p>
@@ -838,6 +887,11 @@ export interface CanaryScheduleInput {
838
887
  * @public
839
888
  */
840
889
  DurationInSeconds?: number | undefined;
890
+ /**
891
+ * <p>A structure that contains the retry configuration for a canary</p>
892
+ * @public
893
+ */
894
+ RetryConfig?: RetryConfigInput | undefined;
841
895
  }
842
896
  /**
843
897
  * @public
@@ -1402,6 +1456,9 @@ export interface GetCanaryRunsRequest {
1402
1456
  * <p>A token that indicates that there is more data
1403
1457
  * available. You can use this token in a subsequent <code>GetCanaryRuns</code> operation to retrieve the next
1404
1458
  * set of results.</p>
1459
+ * <note>
1460
+ * <p>When auto retry is enabled for the canary, the first subsequent retry is suffixed with *1 indicating its the first retry and the next subsequent try is suffixed with *2.</p>
1461
+ * </note>
1405
1462
  * @public
1406
1463
  */
1407
1464
  NextToken?: string | undefined;
@@ -98,9 +98,13 @@ export interface CanaryRunConfigOutput {
98
98
  MemoryInMB?: number | undefined;
99
99
  ActiveTracing?: boolean | undefined;
100
100
  }
101
+ export interface RetryConfigOutput {
102
+ MaxRetries?: number | undefined;
103
+ }
101
104
  export interface CanaryScheduleOutput {
102
105
  Expression?: string | undefined;
103
106
  DurationInSeconds?: number | undefined;
107
+ RetryConfig?: RetryConfigOutput | undefined;
104
108
  }
105
109
  export declare const CanaryState: {
106
110
  readonly CREATING: "CREATING";
@@ -196,9 +200,12 @@ export interface CanaryRunStatus {
196
200
  export interface CanaryRunTimeline {
197
201
  Started?: Date | undefined;
198
202
  Completed?: Date | undefined;
203
+ MetricTimestampForRunAndRetries?: Date | undefined;
199
204
  }
200
205
  export interface CanaryRun {
201
206
  Id?: string | undefined;
207
+ ScheduledRunId?: string | undefined;
208
+ RetryAttempt?: number | undefined;
202
209
  Name?: string | undefined;
203
210
  Status?: CanaryRunStatus | undefined;
204
211
  Timeline?: CanaryRunTimeline | undefined;
@@ -222,9 +229,13 @@ export interface CanaryRunConfigInput {
222
229
  ActiveTracing?: boolean | undefined;
223
230
  EnvironmentVariables?: Record<string, string> | undefined;
224
231
  }
232
+ export interface RetryConfigInput {
233
+ MaxRetries: number | undefined;
234
+ }
225
235
  export interface CanaryScheduleInput {
226
236
  Expression: string | undefined;
227
237
  DurationInSeconds?: number | undefined;
238
+ RetryConfig?: RetryConfigInput | undefined;
228
239
  }
229
240
  export declare const ResourceToTag: {
230
241
  readonly LAMBDA_FUNCTION: "lambda-function";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-synthetics",
3
3
  "description": "AWS SDK for JavaScript Synthetics Client for Node.js, Browser and React Native",
4
- "version": "3.806.0",
4
+ "version": "3.808.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-synthetics",
@@ -20,39 +20,39 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.806.0",
24
- "@aws-sdk/credential-provider-node": "3.806.0",
23
+ "@aws-sdk/core": "3.808.0",
24
+ "@aws-sdk/credential-provider-node": "3.808.0",
25
25
  "@aws-sdk/middleware-host-header": "3.804.0",
26
26
  "@aws-sdk/middleware-logger": "3.804.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.804.0",
28
- "@aws-sdk/middleware-user-agent": "3.806.0",
29
- "@aws-sdk/region-config-resolver": "3.806.0",
28
+ "@aws-sdk/middleware-user-agent": "3.808.0",
29
+ "@aws-sdk/region-config-resolver": "3.808.0",
30
30
  "@aws-sdk/types": "3.804.0",
31
- "@aws-sdk/util-endpoints": "3.806.0",
31
+ "@aws-sdk/util-endpoints": "3.808.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.804.0",
33
- "@aws-sdk/util-user-agent-node": "3.806.0",
34
- "@smithy/config-resolver": "^4.1.1",
33
+ "@aws-sdk/util-user-agent-node": "3.808.0",
34
+ "@smithy/config-resolver": "^4.1.2",
35
35
  "@smithy/core": "^3.3.1",
36
36
  "@smithy/fetch-http-handler": "^5.0.2",
37
37
  "@smithy/hash-node": "^4.0.2",
38
38
  "@smithy/invalid-dependency": "^4.0.2",
39
39
  "@smithy/middleware-content-length": "^4.0.2",
40
- "@smithy/middleware-endpoint": "^4.1.3",
41
- "@smithy/middleware-retry": "^4.1.4",
40
+ "@smithy/middleware-endpoint": "^4.1.4",
41
+ "@smithy/middleware-retry": "^4.1.5",
42
42
  "@smithy/middleware-serde": "^4.0.3",
43
43
  "@smithy/middleware-stack": "^4.0.2",
44
- "@smithy/node-config-provider": "^4.1.0",
44
+ "@smithy/node-config-provider": "^4.1.1",
45
45
  "@smithy/node-http-handler": "^4.0.4",
46
46
  "@smithy/protocol-http": "^5.1.0",
47
- "@smithy/smithy-client": "^4.2.3",
47
+ "@smithy/smithy-client": "^4.2.4",
48
48
  "@smithy/types": "^4.2.0",
49
49
  "@smithy/url-parser": "^4.0.2",
50
50
  "@smithy/util-base64": "^4.0.0",
51
51
  "@smithy/util-body-length-browser": "^4.0.0",
52
52
  "@smithy/util-body-length-node": "^4.0.0",
53
- "@smithy/util-defaults-mode-browser": "^4.0.11",
54
- "@smithy/util-defaults-mode-node": "^4.0.11",
55
- "@smithy/util-endpoints": "^3.0.3",
53
+ "@smithy/util-defaults-mode-browser": "^4.0.12",
54
+ "@smithy/util-defaults-mode-node": "^4.0.12",
55
+ "@smithy/util-endpoints": "^3.0.4",
56
56
  "@smithy/util-middleware": "^4.0.2",
57
57
  "@smithy/util-retry": "^4.0.3",
58
58
  "@smithy/util-utf8": "^4.0.0",