@aws-sdk/client-synthetics 3.29.0 → 3.33.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/CHANGELOG.md +32 -0
- package/dist/cjs/SyntheticsClient.js +13 -13
- package/dist/cjs/SyntheticsClient.js.map +1 -1
- package/dist/cjs/commands/CreateCanaryCommand.js +3 -3
- package/dist/cjs/commands/CreateCanaryCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteCanaryCommand.js +3 -3
- package/dist/cjs/commands/DeleteCanaryCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeCanariesCommand.js +3 -3
- package/dist/cjs/commands/DescribeCanariesCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeCanariesLastRunCommand.js +3 -3
- package/dist/cjs/commands/DescribeCanariesLastRunCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeRuntimeVersionsCommand.js +3 -3
- package/dist/cjs/commands/DescribeRuntimeVersionsCommand.js.map +1 -1
- package/dist/cjs/commands/GetCanaryCommand.js +3 -3
- package/dist/cjs/commands/GetCanaryCommand.js.map +1 -1
- package/dist/cjs/commands/GetCanaryRunsCommand.js +3 -3
- package/dist/cjs/commands/GetCanaryRunsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/StartCanaryCommand.js +3 -3
- package/dist/cjs/commands/StartCanaryCommand.js.map +1 -1
- package/dist/cjs/commands/StopCanaryCommand.js +3 -3
- package/dist/cjs/commands/StopCanaryCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateCanaryCommand.js +3 -3
- package/dist/cjs/commands/UpdateCanaryCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +21 -21
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +70 -66
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/pagination/DescribeCanariesLastRunPaginator.js +4 -4
- package/dist/es/pagination/DescribeCanariesLastRunPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeCanariesPaginator.js +4 -4
- package/dist/es/pagination/DescribeCanariesPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeRuntimeVersionsPaginator.js +4 -4
- package/dist/es/pagination/DescribeRuntimeVersionsPaginator.js.map +1 -1
- package/dist/es/pagination/GetCanaryRunsPaginator.js +4 -4
- package/dist/es/pagination/GetCanaryRunsPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_restJson1.js +13 -9
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +14 -8
- package/tsconfig.json +1 -2
package/dist/cjs/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.
|
|
4
|
+
"version": "3.33.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
|
|
7
7
|
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
@@ -27,45 +27,45 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
30
|
+
"@aws-sdk/client-sts": "3.33.0",
|
|
31
|
+
"@aws-sdk/config-resolver": "3.33.0",
|
|
32
|
+
"@aws-sdk/credential-provider-node": "3.33.0",
|
|
33
|
+
"@aws-sdk/fetch-http-handler": "3.32.0",
|
|
34
|
+
"@aws-sdk/hash-node": "3.32.0",
|
|
35
|
+
"@aws-sdk/invalid-dependency": "3.32.0",
|
|
36
|
+
"@aws-sdk/middleware-content-length": "3.32.0",
|
|
37
|
+
"@aws-sdk/middleware-host-header": "3.32.0",
|
|
38
|
+
"@aws-sdk/middleware-logger": "3.32.0",
|
|
39
|
+
"@aws-sdk/middleware-retry": "3.32.0",
|
|
40
|
+
"@aws-sdk/middleware-serde": "3.32.0",
|
|
41
|
+
"@aws-sdk/middleware-signing": "3.33.0",
|
|
42
|
+
"@aws-sdk/middleware-stack": "3.32.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.32.0",
|
|
44
|
+
"@aws-sdk/node-config-provider": "3.32.0",
|
|
45
|
+
"@aws-sdk/node-http-handler": "3.32.0",
|
|
46
|
+
"@aws-sdk/protocol-http": "3.32.0",
|
|
47
|
+
"@aws-sdk/smithy-client": "3.32.0",
|
|
48
|
+
"@aws-sdk/types": "3.32.0",
|
|
49
|
+
"@aws-sdk/url-parser": "3.32.0",
|
|
50
|
+
"@aws-sdk/util-base64-browser": "3.32.0",
|
|
51
|
+
"@aws-sdk/util-base64-node": "3.32.0",
|
|
52
|
+
"@aws-sdk/util-body-length-browser": "3.32.0",
|
|
53
|
+
"@aws-sdk/util-body-length-node": "3.32.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.32.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.33.0",
|
|
56
|
+
"@aws-sdk/util-utf8-browser": "3.32.0",
|
|
57
|
+
"@aws-sdk/util-utf8-node": "3.32.0",
|
|
58
58
|
"tslib": "^2.3.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
61
|
+
"@aws-sdk/client-documentation-generator": "3.32.0",
|
|
62
62
|
"@types/node": "^12.7.5",
|
|
63
63
|
"downlevel-dts": "0.7.0",
|
|
64
64
|
"jest": "^26.1.0",
|
|
65
65
|
"rimraf": "^3.0.0",
|
|
66
66
|
"ts-jest": "^26.4.1",
|
|
67
67
|
"typedoc": "^0.19.2",
|
|
68
|
-
"typescript": "~4.
|
|
68
|
+
"typescript": "~4.3.5"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=10.0.0"
|
|
@@ -56,7 +56,7 @@ const serializeAws_restJson1DeleteCanaryCommand = async (input, context) => {
|
|
|
56
56
|
if (labelValue.length <= 0) {
|
|
57
57
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
58
58
|
}
|
|
59
|
-
resolvedPath = resolvedPath.replace("{Name}",
|
|
59
|
+
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
60
60
|
}
|
|
61
61
|
else {
|
|
62
62
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -148,7 +148,7 @@ const serializeAws_restJson1GetCanaryCommand = async (input, context) => {
|
|
|
148
148
|
if (labelValue.length <= 0) {
|
|
149
149
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
150
150
|
}
|
|
151
|
-
resolvedPath = resolvedPath.replace("{Name}",
|
|
151
|
+
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
152
152
|
}
|
|
153
153
|
else {
|
|
154
154
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -176,7 +176,7 @@ const serializeAws_restJson1GetCanaryRunsCommand = async (input, context) => {
|
|
|
176
176
|
if (labelValue.length <= 0) {
|
|
177
177
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
178
178
|
}
|
|
179
|
-
resolvedPath = resolvedPath.replace("{Name}",
|
|
179
|
+
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
180
180
|
}
|
|
181
181
|
else {
|
|
182
182
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -206,7 +206,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
206
206
|
if (labelValue.length <= 0) {
|
|
207
207
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
208
208
|
}
|
|
209
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}",
|
|
209
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
210
210
|
}
|
|
211
211
|
else {
|
|
212
212
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -232,7 +232,7 @@ const serializeAws_restJson1StartCanaryCommand = async (input, context) => {
|
|
|
232
232
|
if (labelValue.length <= 0) {
|
|
233
233
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
234
234
|
}
|
|
235
|
-
resolvedPath = resolvedPath.replace("{Name}",
|
|
235
|
+
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
236
236
|
}
|
|
237
237
|
else {
|
|
238
238
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -258,7 +258,7 @@ const serializeAws_restJson1StopCanaryCommand = async (input, context) => {
|
|
|
258
258
|
if (labelValue.length <= 0) {
|
|
259
259
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
260
260
|
}
|
|
261
|
-
resolvedPath = resolvedPath.replace("{Name}",
|
|
261
|
+
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
262
262
|
}
|
|
263
263
|
else {
|
|
264
264
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -286,7 +286,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
286
286
|
if (labelValue.length <= 0) {
|
|
287
287
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
288
288
|
}
|
|
289
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}",
|
|
289
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
290
290
|
}
|
|
291
291
|
else {
|
|
292
292
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -315,7 +315,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
315
315
|
if (labelValue.length <= 0) {
|
|
316
316
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
317
317
|
}
|
|
318
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}",
|
|
318
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
319
319
|
}
|
|
320
320
|
else {
|
|
321
321
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -347,7 +347,7 @@ const serializeAws_restJson1UpdateCanaryCommand = async (input, context) => {
|
|
|
347
347
|
if (labelValue.length <= 0) {
|
|
348
348
|
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
349
349
|
}
|
|
350
|
-
resolvedPath = resolvedPath.replace("{Name}",
|
|
350
|
+
resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
351
351
|
}
|
|
352
352
|
else {
|
|
353
353
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
@@ -398,7 +398,7 @@ const deserializeAws_restJson1CreateCanaryCommand = async (output, context) => {
|
|
|
398
398
|
$metadata: deserializeMetadata(output),
|
|
399
399
|
Canary: undefined,
|
|
400
400
|
};
|
|
401
|
-
const data =
|
|
401
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
402
402
|
if (data.Canary !== undefined && data.Canary !== null) {
|
|
403
403
|
contents.Canary = deserializeAws_restJson1Canary(data.Canary, context);
|
|
404
404
|
}
|
|
@@ -523,12 +523,12 @@ const deserializeAws_restJson1DescribeCanariesCommand = async (output, context)
|
|
|
523
523
|
Canaries: undefined,
|
|
524
524
|
NextToken: undefined,
|
|
525
525
|
};
|
|
526
|
-
const data =
|
|
526
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
527
527
|
if (data.Canaries !== undefined && data.Canaries !== null) {
|
|
528
528
|
contents.Canaries = deserializeAws_restJson1Canaries(data.Canaries, context);
|
|
529
529
|
}
|
|
530
530
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
531
|
-
contents.NextToken =
|
|
531
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
532
532
|
}
|
|
533
533
|
return Promise.resolve(contents);
|
|
534
534
|
};
|
|
@@ -583,12 +583,12 @@ const deserializeAws_restJson1DescribeCanariesLastRunCommand = async (output, co
|
|
|
583
583
|
CanariesLastRun: undefined,
|
|
584
584
|
NextToken: undefined,
|
|
585
585
|
};
|
|
586
|
-
const data =
|
|
586
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
587
587
|
if (data.CanariesLastRun !== undefined && data.CanariesLastRun !== null) {
|
|
588
588
|
contents.CanariesLastRun = deserializeAws_restJson1CanariesLastRun(data.CanariesLastRun, context);
|
|
589
589
|
}
|
|
590
590
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
591
|
-
contents.NextToken =
|
|
591
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
592
592
|
}
|
|
593
593
|
return Promise.resolve(contents);
|
|
594
594
|
};
|
|
@@ -643,9 +643,9 @@ const deserializeAws_restJson1DescribeRuntimeVersionsCommand = async (output, co
|
|
|
643
643
|
NextToken: undefined,
|
|
644
644
|
RuntimeVersions: undefined,
|
|
645
645
|
};
|
|
646
|
-
const data =
|
|
646
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
647
647
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
648
|
-
contents.NextToken =
|
|
648
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
649
649
|
}
|
|
650
650
|
if (data.RuntimeVersions !== undefined && data.RuntimeVersions !== null) {
|
|
651
651
|
contents.RuntimeVersions = deserializeAws_restJson1RuntimeVersionList(data.RuntimeVersions, context);
|
|
@@ -702,7 +702,7 @@ const deserializeAws_restJson1GetCanaryCommand = async (output, context) => {
|
|
|
702
702
|
$metadata: deserializeMetadata(output),
|
|
703
703
|
Canary: undefined,
|
|
704
704
|
};
|
|
705
|
-
const data =
|
|
705
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
706
706
|
if (data.Canary !== undefined && data.Canary !== null) {
|
|
707
707
|
contents.Canary = deserializeAws_restJson1Canary(data.Canary, context);
|
|
708
708
|
}
|
|
@@ -759,12 +759,12 @@ const deserializeAws_restJson1GetCanaryRunsCommand = async (output, context) =>
|
|
|
759
759
|
CanaryRuns: undefined,
|
|
760
760
|
NextToken: undefined,
|
|
761
761
|
};
|
|
762
|
-
const data =
|
|
762
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
763
763
|
if (data.CanaryRuns !== undefined && data.CanaryRuns !== null) {
|
|
764
764
|
contents.CanaryRuns = deserializeAws_restJson1CanaryRuns(data.CanaryRuns, context);
|
|
765
765
|
}
|
|
766
766
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
767
|
-
contents.NextToken =
|
|
767
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
768
768
|
}
|
|
769
769
|
return Promise.resolve(contents);
|
|
770
770
|
};
|
|
@@ -826,7 +826,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
826
826
|
$metadata: deserializeMetadata(output),
|
|
827
827
|
Tags: undefined,
|
|
828
828
|
};
|
|
829
|
-
const data =
|
|
829
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
830
830
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
831
831
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
832
832
|
}
|
|
@@ -1215,7 +1215,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1215
1215
|
};
|
|
1216
1216
|
const data = parsedOutput.body;
|
|
1217
1217
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1218
|
-
contents.Message =
|
|
1218
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1219
1219
|
}
|
|
1220
1220
|
return contents;
|
|
1221
1221
|
};
|
|
@@ -1228,7 +1228,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1228
1228
|
};
|
|
1229
1229
|
const data = parsedOutput.body;
|
|
1230
1230
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1231
|
-
contents.Message =
|
|
1231
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1232
1232
|
}
|
|
1233
1233
|
return contents;
|
|
1234
1234
|
};
|
|
@@ -1241,7 +1241,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1241
1241
|
};
|
|
1242
1242
|
const data = parsedOutput.body;
|
|
1243
1243
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1244
|
-
contents.Message =
|
|
1244
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1245
1245
|
}
|
|
1246
1246
|
return contents;
|
|
1247
1247
|
};
|
|
@@ -1254,7 +1254,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1254
1254
|
};
|
|
1255
1255
|
const data = parsedOutput.body;
|
|
1256
1256
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1257
|
-
contents.Message =
|
|
1257
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1258
1258
|
}
|
|
1259
1259
|
return contents;
|
|
1260
1260
|
};
|
|
@@ -1383,7 +1383,7 @@ const deserializeAws_restJson1BaseScreenshot = (output, context) => {
|
|
|
1383
1383
|
IgnoreCoordinates: output.IgnoreCoordinates !== undefined && output.IgnoreCoordinates !== null
|
|
1384
1384
|
? deserializeAws_restJson1BaseScreenshotIgnoreCoordinates(output.IgnoreCoordinates, context)
|
|
1385
1385
|
: undefined,
|
|
1386
|
-
ScreenshotName:
|
|
1386
|
+
ScreenshotName: smithy_client_1.expectString(output.ScreenshotName),
|
|
1387
1387
|
};
|
|
1388
1388
|
};
|
|
1389
1389
|
const deserializeAws_restJson1BaseScreenshotIgnoreCoordinates = (output, context) => {
|
|
@@ -1393,7 +1393,7 @@ const deserializeAws_restJson1BaseScreenshotIgnoreCoordinates = (output, context
|
|
|
1393
1393
|
if (entry === null) {
|
|
1394
1394
|
return null;
|
|
1395
1395
|
}
|
|
1396
|
-
return
|
|
1396
|
+
return smithy_client_1.expectString(entry);
|
|
1397
1397
|
});
|
|
1398
1398
|
};
|
|
1399
1399
|
const deserializeAws_restJson1BaseScreenshots = (output, context) => {
|
|
@@ -1428,26 +1428,26 @@ const deserializeAws_restJson1CanariesLastRun = (output, context) => {
|
|
|
1428
1428
|
};
|
|
1429
1429
|
const deserializeAws_restJson1Canary = (output, context) => {
|
|
1430
1430
|
return {
|
|
1431
|
-
ArtifactS3Location:
|
|
1431
|
+
ArtifactS3Location: smithy_client_1.expectString(output.ArtifactS3Location),
|
|
1432
1432
|
Code: output.Code !== undefined && output.Code !== null
|
|
1433
1433
|
? deserializeAws_restJson1CanaryCodeOutput(output.Code, context)
|
|
1434
1434
|
: undefined,
|
|
1435
|
-
EngineArn:
|
|
1436
|
-
ExecutionRoleArn:
|
|
1437
|
-
FailureRetentionPeriodInDays:
|
|
1438
|
-
Id:
|
|
1439
|
-
Name:
|
|
1435
|
+
EngineArn: smithy_client_1.expectString(output.EngineArn),
|
|
1436
|
+
ExecutionRoleArn: smithy_client_1.expectString(output.ExecutionRoleArn),
|
|
1437
|
+
FailureRetentionPeriodInDays: smithy_client_1.expectInt32(output.FailureRetentionPeriodInDays),
|
|
1438
|
+
Id: smithy_client_1.expectString(output.Id),
|
|
1439
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
1440
1440
|
RunConfig: output.RunConfig !== undefined && output.RunConfig !== null
|
|
1441
1441
|
? deserializeAws_restJson1CanaryRunConfigOutput(output.RunConfig, context)
|
|
1442
1442
|
: undefined,
|
|
1443
|
-
RuntimeVersion:
|
|
1443
|
+
RuntimeVersion: smithy_client_1.expectString(output.RuntimeVersion),
|
|
1444
1444
|
Schedule: output.Schedule !== undefined && output.Schedule !== null
|
|
1445
1445
|
? deserializeAws_restJson1CanaryScheduleOutput(output.Schedule, context)
|
|
1446
1446
|
: undefined,
|
|
1447
1447
|
Status: output.Status !== undefined && output.Status !== null
|
|
1448
1448
|
? deserializeAws_restJson1CanaryStatus(output.Status, context)
|
|
1449
1449
|
: undefined,
|
|
1450
|
-
SuccessRetentionPeriodInDays:
|
|
1450
|
+
SuccessRetentionPeriodInDays: smithy_client_1.expectInt32(output.SuccessRetentionPeriodInDays),
|
|
1451
1451
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
1452
1452
|
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
1453
1453
|
: undefined,
|
|
@@ -1464,13 +1464,13 @@ const deserializeAws_restJson1Canary = (output, context) => {
|
|
|
1464
1464
|
};
|
|
1465
1465
|
const deserializeAws_restJson1CanaryCodeOutput = (output, context) => {
|
|
1466
1466
|
return {
|
|
1467
|
-
Handler:
|
|
1468
|
-
SourceLocationArn:
|
|
1467
|
+
Handler: smithy_client_1.expectString(output.Handler),
|
|
1468
|
+
SourceLocationArn: smithy_client_1.expectString(output.SourceLocationArn),
|
|
1469
1469
|
};
|
|
1470
1470
|
};
|
|
1471
1471
|
const deserializeAws_restJson1CanaryLastRun = (output, context) => {
|
|
1472
1472
|
return {
|
|
1473
|
-
CanaryName:
|
|
1473
|
+
CanaryName: smithy_client_1.expectString(output.CanaryName),
|
|
1474
1474
|
LastRun: output.LastRun !== undefined && output.LastRun !== null
|
|
1475
1475
|
? deserializeAws_restJson1CanaryRun(output.LastRun, context)
|
|
1476
1476
|
: undefined,
|
|
@@ -1478,9 +1478,9 @@ const deserializeAws_restJson1CanaryLastRun = (output, context) => {
|
|
|
1478
1478
|
};
|
|
1479
1479
|
const deserializeAws_restJson1CanaryRun = (output, context) => {
|
|
1480
1480
|
return {
|
|
1481
|
-
ArtifactS3Location:
|
|
1482
|
-
Id:
|
|
1483
|
-
Name:
|
|
1481
|
+
ArtifactS3Location: smithy_client_1.expectString(output.ArtifactS3Location),
|
|
1482
|
+
Id: smithy_client_1.expectString(output.Id),
|
|
1483
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
1484
1484
|
Status: output.Status !== undefined && output.Status !== null
|
|
1485
1485
|
? deserializeAws_restJson1CanaryRunStatus(output.Status, context)
|
|
1486
1486
|
: undefined,
|
|
@@ -1491,9 +1491,9 @@ const deserializeAws_restJson1CanaryRun = (output, context) => {
|
|
|
1491
1491
|
};
|
|
1492
1492
|
const deserializeAws_restJson1CanaryRunConfigOutput = (output, context) => {
|
|
1493
1493
|
return {
|
|
1494
|
-
ActiveTracing:
|
|
1495
|
-
MemoryInMB:
|
|
1496
|
-
TimeoutInSeconds:
|
|
1494
|
+
ActiveTracing: smithy_client_1.expectBoolean(output.ActiveTracing),
|
|
1495
|
+
MemoryInMB: smithy_client_1.expectInt32(output.MemoryInMB),
|
|
1496
|
+
TimeoutInSeconds: smithy_client_1.expectInt32(output.TimeoutInSeconds),
|
|
1497
1497
|
};
|
|
1498
1498
|
};
|
|
1499
1499
|
const deserializeAws_restJson1CanaryRuns = (output, context) => {
|
|
@@ -1508,56 +1508,60 @@ const deserializeAws_restJson1CanaryRuns = (output, context) => {
|
|
|
1508
1508
|
};
|
|
1509
1509
|
const deserializeAws_restJson1CanaryRunStatus = (output, context) => {
|
|
1510
1510
|
return {
|
|
1511
|
-
State:
|
|
1512
|
-
StateReason:
|
|
1513
|
-
StateReasonCode:
|
|
1511
|
+
State: smithy_client_1.expectString(output.State),
|
|
1512
|
+
StateReason: smithy_client_1.expectString(output.StateReason),
|
|
1513
|
+
StateReasonCode: smithy_client_1.expectString(output.StateReasonCode),
|
|
1514
1514
|
};
|
|
1515
1515
|
};
|
|
1516
1516
|
const deserializeAws_restJson1CanaryRunTimeline = (output, context) => {
|
|
1517
1517
|
return {
|
|
1518
1518
|
Completed: output.Completed !== undefined && output.Completed !== null
|
|
1519
|
-
?
|
|
1519
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.Completed)))
|
|
1520
|
+
: undefined,
|
|
1521
|
+
Started: output.Started !== undefined && output.Started !== null
|
|
1522
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.Started)))
|
|
1520
1523
|
: undefined,
|
|
1521
|
-
Started: output.Started !== undefined && output.Started !== null ? new Date(Math.round(output.Started * 1000)) : undefined,
|
|
1522
1524
|
};
|
|
1523
1525
|
};
|
|
1524
1526
|
const deserializeAws_restJson1CanaryScheduleOutput = (output, context) => {
|
|
1525
1527
|
return {
|
|
1526
|
-
DurationInSeconds:
|
|
1527
|
-
Expression:
|
|
1528
|
+
DurationInSeconds: smithy_client_1.expectLong(output.DurationInSeconds),
|
|
1529
|
+
Expression: smithy_client_1.expectString(output.Expression),
|
|
1528
1530
|
};
|
|
1529
1531
|
};
|
|
1530
1532
|
const deserializeAws_restJson1CanaryStatus = (output, context) => {
|
|
1531
1533
|
return {
|
|
1532
|
-
State:
|
|
1533
|
-
StateReason:
|
|
1534
|
-
StateReasonCode:
|
|
1534
|
+
State: smithy_client_1.expectString(output.State),
|
|
1535
|
+
StateReason: smithy_client_1.expectString(output.StateReason),
|
|
1536
|
+
StateReasonCode: smithy_client_1.expectString(output.StateReasonCode),
|
|
1535
1537
|
};
|
|
1536
1538
|
};
|
|
1537
1539
|
const deserializeAws_restJson1CanaryTimeline = (output, context) => {
|
|
1538
1540
|
return {
|
|
1539
|
-
Created: output.Created !== undefined && output.Created !== null
|
|
1541
|
+
Created: output.Created !== undefined && output.Created !== null
|
|
1542
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.Created)))
|
|
1543
|
+
: undefined,
|
|
1540
1544
|
LastModified: output.LastModified !== undefined && output.LastModified !== null
|
|
1541
|
-
?
|
|
1545
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModified)))
|
|
1542
1546
|
: undefined,
|
|
1543
1547
|
LastStarted: output.LastStarted !== undefined && output.LastStarted !== null
|
|
1544
|
-
?
|
|
1548
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastStarted)))
|
|
1545
1549
|
: undefined,
|
|
1546
1550
|
LastStopped: output.LastStopped !== undefined && output.LastStopped !== null
|
|
1547
|
-
?
|
|
1551
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastStopped)))
|
|
1548
1552
|
: undefined,
|
|
1549
1553
|
};
|
|
1550
1554
|
};
|
|
1551
1555
|
const deserializeAws_restJson1RuntimeVersion = (output, context) => {
|
|
1552
1556
|
return {
|
|
1553
1557
|
DeprecationDate: output.DeprecationDate !== undefined && output.DeprecationDate !== null
|
|
1554
|
-
?
|
|
1558
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.DeprecationDate)))
|
|
1555
1559
|
: undefined,
|
|
1556
|
-
Description:
|
|
1560
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
1557
1561
|
ReleaseDate: output.ReleaseDate !== undefined && output.ReleaseDate !== null
|
|
1558
|
-
?
|
|
1562
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ReleaseDate)))
|
|
1559
1563
|
: undefined,
|
|
1560
|
-
VersionName:
|
|
1564
|
+
VersionName: smithy_client_1.expectString(output.VersionName),
|
|
1561
1565
|
};
|
|
1562
1566
|
};
|
|
1563
1567
|
const deserializeAws_restJson1RuntimeVersionList = (output, context) => {
|
|
@@ -1577,7 +1581,7 @@ const deserializeAws_restJson1SecurityGroupIds = (output, context) => {
|
|
|
1577
1581
|
if (entry === null) {
|
|
1578
1582
|
return null;
|
|
1579
1583
|
}
|
|
1580
|
-
return
|
|
1584
|
+
return smithy_client_1.expectString(entry);
|
|
1581
1585
|
});
|
|
1582
1586
|
};
|
|
1583
1587
|
const deserializeAws_restJson1SubnetIds = (output, context) => {
|
|
@@ -1587,7 +1591,7 @@ const deserializeAws_restJson1SubnetIds = (output, context) => {
|
|
|
1587
1591
|
if (entry === null) {
|
|
1588
1592
|
return null;
|
|
1589
1593
|
}
|
|
1590
|
-
return
|
|
1594
|
+
return smithy_client_1.expectString(entry);
|
|
1591
1595
|
});
|
|
1592
1596
|
};
|
|
1593
1597
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
@@ -1597,13 +1601,13 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1597
1601
|
}
|
|
1598
1602
|
return {
|
|
1599
1603
|
...acc,
|
|
1600
|
-
[key]:
|
|
1604
|
+
[key]: smithy_client_1.expectString(value),
|
|
1601
1605
|
};
|
|
1602
1606
|
}, {});
|
|
1603
1607
|
};
|
|
1604
1608
|
const deserializeAws_restJson1VisualReferenceOutput = (output, context) => {
|
|
1605
1609
|
return {
|
|
1606
|
-
BaseCanaryRunId:
|
|
1610
|
+
BaseCanaryRunId: smithy_client_1.expectString(output.BaseCanaryRunId),
|
|
1607
1611
|
BaseScreenshots: output.BaseScreenshots !== undefined && output.BaseScreenshots !== null
|
|
1608
1612
|
? deserializeAws_restJson1BaseScreenshots(output.BaseScreenshots, context)
|
|
1609
1613
|
: undefined,
|
|
@@ -1617,7 +1621,7 @@ const deserializeAws_restJson1VpcConfigOutput = (output, context) => {
|
|
|
1617
1621
|
SubnetIds: output.SubnetIds !== undefined && output.SubnetIds !== null
|
|
1618
1622
|
? deserializeAws_restJson1SubnetIds(output.SubnetIds, context)
|
|
1619
1623
|
: undefined,
|
|
1620
|
-
VpcId:
|
|
1624
|
+
VpcId: smithy_client_1.expectString(output.VpcId),
|
|
1621
1625
|
};
|
|
1622
1626
|
};
|
|
1623
1627
|
const deserializeMetadata = (output) => {
|