@aws-sdk/client-amplify 3.28.0 → 3.32.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/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +53 -49
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_restJson1.js +229 -155
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +57 -49
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-amplify",
|
|
3
3
|
"description": "AWS SDK for JavaScript Amplify Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.32.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.32.0",
|
|
31
|
+
"@aws-sdk/config-resolver": "3.32.0",
|
|
32
|
+
"@aws-sdk/credential-provider-node": "3.32.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.32.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.32.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.3.
|
|
68
|
+
"typescript": "~4.3.5"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=10.0.0"
|
|
@@ -91,8 +91,12 @@ import {
|
|
|
91
91
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
92
92
|
import {
|
|
93
93
|
expectBoolean as __expectBoolean,
|
|
94
|
+
expectNonNull as __expectNonNull,
|
|
95
|
+
expectNumber as __expectNumber,
|
|
96
|
+
expectObject as __expectObject,
|
|
94
97
|
expectString as __expectString,
|
|
95
98
|
extendedEncodeURIComponent as __extendedEncodeURIComponent,
|
|
99
|
+
parseEpochTimestamp as __parseEpochTimestamp,
|
|
96
100
|
} from "@aws-sdk/smithy-client";
|
|
97
101
|
import {
|
|
98
102
|
Endpoint as __Endpoint,
|
|
@@ -1625,7 +1629,7 @@ export const deserializeAws_restJson1CreateAppCommand = async (
|
|
|
1625
1629
|
$metadata: deserializeMetadata(output),
|
|
1626
1630
|
app: undefined,
|
|
1627
1631
|
};
|
|
1628
|
-
const data: any = await parseBody(output.body, context);
|
|
1632
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1629
1633
|
if (data.app !== undefined && data.app !== null) {
|
|
1630
1634
|
contents.app = deserializeAws_restJson1App(data.app, context);
|
|
1631
1635
|
}
|
|
@@ -1712,7 +1716,7 @@ export const deserializeAws_restJson1CreateBackendEnvironmentCommand = async (
|
|
|
1712
1716
|
$metadata: deserializeMetadata(output),
|
|
1713
1717
|
backendEnvironment: undefined,
|
|
1714
1718
|
};
|
|
1715
|
-
const data: any = await parseBody(output.body, context);
|
|
1719
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1716
1720
|
if (data.backendEnvironment !== undefined && data.backendEnvironment !== null) {
|
|
1717
1721
|
contents.backendEnvironment = deserializeAws_restJson1BackendEnvironment(data.backendEnvironment, context);
|
|
1718
1722
|
}
|
|
@@ -1799,7 +1803,7 @@ export const deserializeAws_restJson1CreateBranchCommand = async (
|
|
|
1799
1803
|
$metadata: deserializeMetadata(output),
|
|
1800
1804
|
branch: undefined,
|
|
1801
1805
|
};
|
|
1802
|
-
const data: any = await parseBody(output.body, context);
|
|
1806
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1803
1807
|
if (data.branch !== undefined && data.branch !== null) {
|
|
1804
1808
|
contents.branch = deserializeAws_restJson1Branch(data.branch, context);
|
|
1805
1809
|
}
|
|
@@ -1896,7 +1900,7 @@ export const deserializeAws_restJson1CreateDeploymentCommand = async (
|
|
|
1896
1900
|
jobId: undefined,
|
|
1897
1901
|
zipUploadUrl: undefined,
|
|
1898
1902
|
};
|
|
1899
|
-
const data: any = await parseBody(output.body, context);
|
|
1903
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1900
1904
|
if (data.fileUploadUrls !== undefined && data.fileUploadUrls !== null) {
|
|
1901
1905
|
contents.fileUploadUrls = deserializeAws_restJson1FileUploadUrls(data.fileUploadUrls, context);
|
|
1902
1906
|
}
|
|
@@ -1981,7 +1985,7 @@ export const deserializeAws_restJson1CreateDomainAssociationCommand = async (
|
|
|
1981
1985
|
$metadata: deserializeMetadata(output),
|
|
1982
1986
|
domainAssociation: undefined,
|
|
1983
1987
|
};
|
|
1984
|
-
const data: any = await parseBody(output.body, context);
|
|
1988
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1985
1989
|
if (data.domainAssociation !== undefined && data.domainAssociation !== null) {
|
|
1986
1990
|
contents.domainAssociation = deserializeAws_restJson1DomainAssociation(data.domainAssociation, context);
|
|
1987
1991
|
}
|
|
@@ -2076,7 +2080,7 @@ export const deserializeAws_restJson1CreateWebhookCommand = async (
|
|
|
2076
2080
|
$metadata: deserializeMetadata(output),
|
|
2077
2081
|
webhook: undefined,
|
|
2078
2082
|
};
|
|
2079
|
-
const data: any = await parseBody(output.body, context);
|
|
2083
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2080
2084
|
if (data.webhook !== undefined && data.webhook !== null) {
|
|
2081
2085
|
contents.webhook = deserializeAws_restJson1Webhook(data.webhook, context);
|
|
2082
2086
|
}
|
|
@@ -2171,7 +2175,7 @@ export const deserializeAws_restJson1DeleteAppCommand = async (
|
|
|
2171
2175
|
$metadata: deserializeMetadata(output),
|
|
2172
2176
|
app: undefined,
|
|
2173
2177
|
};
|
|
2174
|
-
const data: any = await parseBody(output.body, context);
|
|
2178
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2175
2179
|
if (data.app !== undefined && data.app !== null) {
|
|
2176
2180
|
contents.app = deserializeAws_restJson1App(data.app, context);
|
|
2177
2181
|
}
|
|
@@ -2258,7 +2262,7 @@ export const deserializeAws_restJson1DeleteBackendEnvironmentCommand = async (
|
|
|
2258
2262
|
$metadata: deserializeMetadata(output),
|
|
2259
2263
|
backendEnvironment: undefined,
|
|
2260
2264
|
};
|
|
2261
|
-
const data: any = await parseBody(output.body, context);
|
|
2265
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2262
2266
|
if (data.backendEnvironment !== undefined && data.backendEnvironment !== null) {
|
|
2263
2267
|
contents.backendEnvironment = deserializeAws_restJson1BackendEnvironment(data.backendEnvironment, context);
|
|
2264
2268
|
}
|
|
@@ -2345,7 +2349,7 @@ export const deserializeAws_restJson1DeleteBranchCommand = async (
|
|
|
2345
2349
|
$metadata: deserializeMetadata(output),
|
|
2346
2350
|
branch: undefined,
|
|
2347
2351
|
};
|
|
2348
|
-
const data: any = await parseBody(output.body, context);
|
|
2352
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2349
2353
|
if (data.branch !== undefined && data.branch !== null) {
|
|
2350
2354
|
contents.branch = deserializeAws_restJson1Branch(data.branch, context);
|
|
2351
2355
|
}
|
|
@@ -2432,7 +2436,7 @@ export const deserializeAws_restJson1DeleteDomainAssociationCommand = async (
|
|
|
2432
2436
|
$metadata: deserializeMetadata(output),
|
|
2433
2437
|
domainAssociation: undefined,
|
|
2434
2438
|
};
|
|
2435
|
-
const data: any = await parseBody(output.body, context);
|
|
2439
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2436
2440
|
if (data.domainAssociation !== undefined && data.domainAssociation !== null) {
|
|
2437
2441
|
contents.domainAssociation = deserializeAws_restJson1DomainAssociation(data.domainAssociation, context);
|
|
2438
2442
|
}
|
|
@@ -2519,7 +2523,7 @@ export const deserializeAws_restJson1DeleteJobCommand = async (
|
|
|
2519
2523
|
$metadata: deserializeMetadata(output),
|
|
2520
2524
|
jobSummary: undefined,
|
|
2521
2525
|
};
|
|
2522
|
-
const data: any = await parseBody(output.body, context);
|
|
2526
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2523
2527
|
if (data.jobSummary !== undefined && data.jobSummary !== null) {
|
|
2524
2528
|
contents.jobSummary = deserializeAws_restJson1JobSummary(data.jobSummary, context);
|
|
2525
2529
|
}
|
|
@@ -2606,7 +2610,7 @@ export const deserializeAws_restJson1DeleteWebhookCommand = async (
|
|
|
2606
2610
|
$metadata: deserializeMetadata(output),
|
|
2607
2611
|
webhook: undefined,
|
|
2608
2612
|
};
|
|
2609
|
-
const data: any = await parseBody(output.body, context);
|
|
2613
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2610
2614
|
if (data.webhook !== undefined && data.webhook !== null) {
|
|
2611
2615
|
contents.webhook = deserializeAws_restJson1Webhook(data.webhook, context);
|
|
2612
2616
|
}
|
|
@@ -2693,7 +2697,7 @@ export const deserializeAws_restJson1GenerateAccessLogsCommand = async (
|
|
|
2693
2697
|
$metadata: deserializeMetadata(output),
|
|
2694
2698
|
logUrl: undefined,
|
|
2695
2699
|
};
|
|
2696
|
-
const data: any = await parseBody(output.body, context);
|
|
2700
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2697
2701
|
if (data.logUrl !== undefined && data.logUrl !== null) {
|
|
2698
2702
|
contents.logUrl = __expectString(data.logUrl);
|
|
2699
2703
|
}
|
|
@@ -2772,7 +2776,7 @@ export const deserializeAws_restJson1GetAppCommand = async (
|
|
|
2772
2776
|
$metadata: deserializeMetadata(output),
|
|
2773
2777
|
app: undefined,
|
|
2774
2778
|
};
|
|
2775
|
-
const data: any = await parseBody(output.body, context);
|
|
2779
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2776
2780
|
if (data.app !== undefined && data.app !== null) {
|
|
2777
2781
|
contents.app = deserializeAws_restJson1App(data.app, context);
|
|
2778
2782
|
}
|
|
@@ -2852,7 +2856,7 @@ export const deserializeAws_restJson1GetArtifactUrlCommand = async (
|
|
|
2852
2856
|
artifactId: undefined,
|
|
2853
2857
|
artifactUrl: undefined,
|
|
2854
2858
|
};
|
|
2855
|
-
const data: any = await parseBody(output.body, context);
|
|
2859
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2856
2860
|
if (data.artifactId !== undefined && data.artifactId !== null) {
|
|
2857
2861
|
contents.artifactId = __expectString(data.artifactId);
|
|
2858
2862
|
}
|
|
@@ -2942,7 +2946,7 @@ export const deserializeAws_restJson1GetBackendEnvironmentCommand = async (
|
|
|
2942
2946
|
$metadata: deserializeMetadata(output),
|
|
2943
2947
|
backendEnvironment: undefined,
|
|
2944
2948
|
};
|
|
2945
|
-
const data: any = await parseBody(output.body, context);
|
|
2949
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2946
2950
|
if (data.backendEnvironment !== undefined && data.backendEnvironment !== null) {
|
|
2947
2951
|
contents.backendEnvironment = deserializeAws_restJson1BackendEnvironment(data.backendEnvironment, context);
|
|
2948
2952
|
}
|
|
@@ -3021,7 +3025,7 @@ export const deserializeAws_restJson1GetBranchCommand = async (
|
|
|
3021
3025
|
$metadata: deserializeMetadata(output),
|
|
3022
3026
|
branch: undefined,
|
|
3023
3027
|
};
|
|
3024
|
-
const data: any = await parseBody(output.body, context);
|
|
3028
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3025
3029
|
if (data.branch !== undefined && data.branch !== null) {
|
|
3026
3030
|
contents.branch = deserializeAws_restJson1Branch(data.branch, context);
|
|
3027
3031
|
}
|
|
@@ -3100,7 +3104,7 @@ export const deserializeAws_restJson1GetDomainAssociationCommand = async (
|
|
|
3100
3104
|
$metadata: deserializeMetadata(output),
|
|
3101
3105
|
domainAssociation: undefined,
|
|
3102
3106
|
};
|
|
3103
|
-
const data: any = await parseBody(output.body, context);
|
|
3107
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3104
3108
|
if (data.domainAssociation !== undefined && data.domainAssociation !== null) {
|
|
3105
3109
|
contents.domainAssociation = deserializeAws_restJson1DomainAssociation(data.domainAssociation, context);
|
|
3106
3110
|
}
|
|
@@ -3179,7 +3183,7 @@ export const deserializeAws_restJson1GetJobCommand = async (
|
|
|
3179
3183
|
$metadata: deserializeMetadata(output),
|
|
3180
3184
|
job: undefined,
|
|
3181
3185
|
};
|
|
3182
|
-
const data: any = await parseBody(output.body, context);
|
|
3186
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3183
3187
|
if (data.job !== undefined && data.job !== null) {
|
|
3184
3188
|
contents.job = deserializeAws_restJson1Job(data.job, context);
|
|
3185
3189
|
}
|
|
@@ -3266,7 +3270,7 @@ export const deserializeAws_restJson1GetWebhookCommand = async (
|
|
|
3266
3270
|
$metadata: deserializeMetadata(output),
|
|
3267
3271
|
webhook: undefined,
|
|
3268
3272
|
};
|
|
3269
|
-
const data: any = await parseBody(output.body, context);
|
|
3273
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3270
3274
|
if (data.webhook !== undefined && data.webhook !== null) {
|
|
3271
3275
|
contents.webhook = deserializeAws_restJson1Webhook(data.webhook, context);
|
|
3272
3276
|
}
|
|
@@ -3354,7 +3358,7 @@ export const deserializeAws_restJson1ListAppsCommand = async (
|
|
|
3354
3358
|
apps: undefined,
|
|
3355
3359
|
nextToken: undefined,
|
|
3356
3360
|
};
|
|
3357
|
-
const data: any = await parseBody(output.body, context);
|
|
3361
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3358
3362
|
if (data.apps !== undefined && data.apps !== null) {
|
|
3359
3363
|
contents.apps = deserializeAws_restJson1Apps(data.apps, context);
|
|
3360
3364
|
}
|
|
@@ -3429,7 +3433,7 @@ export const deserializeAws_restJson1ListArtifactsCommand = async (
|
|
|
3429
3433
|
artifacts: undefined,
|
|
3430
3434
|
nextToken: undefined,
|
|
3431
3435
|
};
|
|
3432
|
-
const data: any = await parseBody(output.body, context);
|
|
3436
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3433
3437
|
if (data.artifacts !== undefined && data.artifacts !== null) {
|
|
3434
3438
|
contents.artifacts = deserializeAws_restJson1Artifacts(data.artifacts, context);
|
|
3435
3439
|
}
|
|
@@ -3512,7 +3516,7 @@ export const deserializeAws_restJson1ListBackendEnvironmentsCommand = async (
|
|
|
3512
3516
|
backendEnvironments: undefined,
|
|
3513
3517
|
nextToken: undefined,
|
|
3514
3518
|
};
|
|
3515
|
-
const data: any = await parseBody(output.body, context);
|
|
3519
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3516
3520
|
if (data.backendEnvironments !== undefined && data.backendEnvironments !== null) {
|
|
3517
3521
|
contents.backendEnvironments = deserializeAws_restJson1BackendEnvironments(data.backendEnvironments, context);
|
|
3518
3522
|
}
|
|
@@ -3587,7 +3591,7 @@ export const deserializeAws_restJson1ListBranchesCommand = async (
|
|
|
3587
3591
|
branches: undefined,
|
|
3588
3592
|
nextToken: undefined,
|
|
3589
3593
|
};
|
|
3590
|
-
const data: any = await parseBody(output.body, context);
|
|
3594
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3591
3595
|
if (data.branches !== undefined && data.branches !== null) {
|
|
3592
3596
|
contents.branches = deserializeAws_restJson1Branches(data.branches, context);
|
|
3593
3597
|
}
|
|
@@ -3662,7 +3666,7 @@ export const deserializeAws_restJson1ListDomainAssociationsCommand = async (
|
|
|
3662
3666
|
domainAssociations: undefined,
|
|
3663
3667
|
nextToken: undefined,
|
|
3664
3668
|
};
|
|
3665
|
-
const data: any = await parseBody(output.body, context);
|
|
3669
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3666
3670
|
if (data.domainAssociations !== undefined && data.domainAssociations !== null) {
|
|
3667
3671
|
contents.domainAssociations = deserializeAws_restJson1DomainAssociations(data.domainAssociations, context);
|
|
3668
3672
|
}
|
|
@@ -3737,7 +3741,7 @@ export const deserializeAws_restJson1ListJobsCommand = async (
|
|
|
3737
3741
|
jobSummaries: undefined,
|
|
3738
3742
|
nextToken: undefined,
|
|
3739
3743
|
};
|
|
3740
|
-
const data: any = await parseBody(output.body, context);
|
|
3744
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3741
3745
|
if (data.jobSummaries !== undefined && data.jobSummaries !== null) {
|
|
3742
3746
|
contents.jobSummaries = deserializeAws_restJson1JobSummaries(data.jobSummaries, context);
|
|
3743
3747
|
}
|
|
@@ -3819,7 +3823,7 @@ export const deserializeAws_restJson1ListTagsForResourceCommand = async (
|
|
|
3819
3823
|
$metadata: deserializeMetadata(output),
|
|
3820
3824
|
tags: undefined,
|
|
3821
3825
|
};
|
|
3822
|
-
const data: any = await parseBody(output.body, context);
|
|
3826
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3823
3827
|
if (data.tags !== undefined && data.tags !== null) {
|
|
3824
3828
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
3825
3829
|
}
|
|
@@ -3891,7 +3895,7 @@ export const deserializeAws_restJson1ListWebhooksCommand = async (
|
|
|
3891
3895
|
nextToken: undefined,
|
|
3892
3896
|
webhooks: undefined,
|
|
3893
3897
|
};
|
|
3894
|
-
const data: any = await parseBody(output.body, context);
|
|
3898
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3895
3899
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
3896
3900
|
contents.nextToken = __expectString(data.nextToken);
|
|
3897
3901
|
}
|
|
@@ -3973,7 +3977,7 @@ export const deserializeAws_restJson1StartDeploymentCommand = async (
|
|
|
3973
3977
|
$metadata: deserializeMetadata(output),
|
|
3974
3978
|
jobSummary: undefined,
|
|
3975
3979
|
};
|
|
3976
|
-
const data: any = await parseBody(output.body, context);
|
|
3980
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3977
3981
|
if (data.jobSummary !== undefined && data.jobSummary !== null) {
|
|
3978
3982
|
contents.jobSummary = deserializeAws_restJson1JobSummary(data.jobSummary, context);
|
|
3979
3983
|
}
|
|
@@ -4060,7 +4064,7 @@ export const deserializeAws_restJson1StartJobCommand = async (
|
|
|
4060
4064
|
$metadata: deserializeMetadata(output),
|
|
4061
4065
|
jobSummary: undefined,
|
|
4062
4066
|
};
|
|
4063
|
-
const data: any = await parseBody(output.body, context);
|
|
4067
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4064
4068
|
if (data.jobSummary !== undefined && data.jobSummary !== null) {
|
|
4065
4069
|
contents.jobSummary = deserializeAws_restJson1JobSummary(data.jobSummary, context);
|
|
4066
4070
|
}
|
|
@@ -4147,7 +4151,7 @@ export const deserializeAws_restJson1StopJobCommand = async (
|
|
|
4147
4151
|
$metadata: deserializeMetadata(output),
|
|
4148
4152
|
jobSummary: undefined,
|
|
4149
4153
|
};
|
|
4150
|
-
const data: any = await parseBody(output.body, context);
|
|
4154
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4151
4155
|
if (data.jobSummary !== undefined && data.jobSummary !== null) {
|
|
4152
4156
|
contents.jobSummary = deserializeAws_restJson1JobSummary(data.jobSummary, context);
|
|
4153
4157
|
}
|
|
@@ -4368,7 +4372,7 @@ export const deserializeAws_restJson1UpdateAppCommand = async (
|
|
|
4368
4372
|
$metadata: deserializeMetadata(output),
|
|
4369
4373
|
app: undefined,
|
|
4370
4374
|
};
|
|
4371
|
-
const data: any = await parseBody(output.body, context);
|
|
4375
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4372
4376
|
if (data.app !== undefined && data.app !== null) {
|
|
4373
4377
|
contents.app = deserializeAws_restJson1App(data.app, context);
|
|
4374
4378
|
}
|
|
@@ -4447,7 +4451,7 @@ export const deserializeAws_restJson1UpdateBranchCommand = async (
|
|
|
4447
4451
|
$metadata: deserializeMetadata(output),
|
|
4448
4452
|
branch: undefined,
|
|
4449
4453
|
};
|
|
4450
|
-
const data: any = await parseBody(output.body, context);
|
|
4454
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4451
4455
|
if (data.branch !== undefined && data.branch !== null) {
|
|
4452
4456
|
contents.branch = deserializeAws_restJson1Branch(data.branch, context);
|
|
4453
4457
|
}
|
|
@@ -4534,7 +4538,7 @@ export const deserializeAws_restJson1UpdateDomainAssociationCommand = async (
|
|
|
4534
4538
|
$metadata: deserializeMetadata(output),
|
|
4535
4539
|
domainAssociation: undefined,
|
|
4536
4540
|
};
|
|
4537
|
-
const data: any = await parseBody(output.body, context);
|
|
4541
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4538
4542
|
if (data.domainAssociation !== undefined && data.domainAssociation !== null) {
|
|
4539
4543
|
contents.domainAssociation = deserializeAws_restJson1DomainAssociation(data.domainAssociation, context);
|
|
4540
4544
|
}
|
|
@@ -4621,7 +4625,7 @@ export const deserializeAws_restJson1UpdateWebhookCommand = async (
|
|
|
4621
4625
|
$metadata: deserializeMetadata(output),
|
|
4622
4626
|
webhook: undefined,
|
|
4623
4627
|
};
|
|
4624
|
-
const data: any = await parseBody(output.body, context);
|
|
4628
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4625
4629
|
if (data.webhook !== undefined && data.webhook !== null) {
|
|
4626
4630
|
contents.webhook = deserializeAws_restJson1Webhook(data.webhook, context);
|
|
4627
4631
|
}
|
|
@@ -4959,7 +4963,7 @@ const deserializeAws_restJson1App = (output: any, context: __SerdeContext): App
|
|
|
4959
4963
|
buildSpec: __expectString(output.buildSpec),
|
|
4960
4964
|
createTime:
|
|
4961
4965
|
output.createTime !== undefined && output.createTime !== null
|
|
4962
|
-
?
|
|
4966
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime)))
|
|
4963
4967
|
: undefined,
|
|
4964
4968
|
customHeaders: __expectString(output.customHeaders),
|
|
4965
4969
|
customRules:
|
|
@@ -4990,7 +4994,7 @@ const deserializeAws_restJson1App = (output: any, context: __SerdeContext): App
|
|
|
4990
4994
|
: undefined,
|
|
4991
4995
|
updateTime:
|
|
4992
4996
|
output.updateTime !== undefined && output.updateTime !== null
|
|
4993
|
-
?
|
|
4997
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime)))
|
|
4994
4998
|
: undefined,
|
|
4995
4999
|
} as any;
|
|
4996
5000
|
};
|
|
@@ -5083,14 +5087,14 @@ const deserializeAws_restJson1BackendEnvironment = (output: any, context: __Serd
|
|
|
5083
5087
|
backendEnvironmentArn: __expectString(output.backendEnvironmentArn),
|
|
5084
5088
|
createTime:
|
|
5085
5089
|
output.createTime !== undefined && output.createTime !== null
|
|
5086
|
-
?
|
|
5090
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime)))
|
|
5087
5091
|
: undefined,
|
|
5088
5092
|
deploymentArtifacts: __expectString(output.deploymentArtifacts),
|
|
5089
5093
|
environmentName: __expectString(output.environmentName),
|
|
5090
5094
|
stackName: __expectString(output.stackName),
|
|
5091
5095
|
updateTime:
|
|
5092
5096
|
output.updateTime !== undefined && output.updateTime !== null
|
|
5093
|
-
?
|
|
5097
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime)))
|
|
5094
5098
|
: undefined,
|
|
5095
5099
|
} as any;
|
|
5096
5100
|
};
|
|
@@ -5120,7 +5124,7 @@ const deserializeAws_restJson1Branch = (output: any, context: __SerdeContext): B
|
|
|
5120
5124
|
buildSpec: __expectString(output.buildSpec),
|
|
5121
5125
|
createTime:
|
|
5122
5126
|
output.createTime !== undefined && output.createTime !== null
|
|
5123
|
-
?
|
|
5127
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime)))
|
|
5124
5128
|
: undefined,
|
|
5125
5129
|
customDomains:
|
|
5126
5130
|
output.customDomains !== undefined && output.customDomains !== null
|
|
@@ -5151,7 +5155,7 @@ const deserializeAws_restJson1Branch = (output: any, context: __SerdeContext): B
|
|
|
5151
5155
|
ttl: __expectString(output.ttl),
|
|
5152
5156
|
updateTime:
|
|
5153
5157
|
output.updateTime !== undefined && output.updateTime !== null
|
|
5154
|
-
?
|
|
5158
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime)))
|
|
5155
5159
|
: undefined,
|
|
5156
5160
|
} as any;
|
|
5157
5161
|
};
|
|
@@ -5286,16 +5290,18 @@ const deserializeAws_restJson1JobSummary = (output: any, context: __SerdeContext
|
|
|
5286
5290
|
commitMessage: __expectString(output.commitMessage),
|
|
5287
5291
|
commitTime:
|
|
5288
5292
|
output.commitTime !== undefined && output.commitTime !== null
|
|
5289
|
-
?
|
|
5293
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.commitTime)))
|
|
5290
5294
|
: undefined,
|
|
5291
5295
|
endTime:
|
|
5292
|
-
output.endTime !== undefined && output.endTime !== null
|
|
5296
|
+
output.endTime !== undefined && output.endTime !== null
|
|
5297
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
|
|
5298
|
+
: undefined,
|
|
5293
5299
|
jobArn: __expectString(output.jobArn),
|
|
5294
5300
|
jobId: __expectString(output.jobId),
|
|
5295
5301
|
jobType: __expectString(output.jobType),
|
|
5296
5302
|
startTime:
|
|
5297
5303
|
output.startTime !== undefined && output.startTime !== null
|
|
5298
|
-
?
|
|
5304
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
5299
5305
|
: undefined,
|
|
5300
5306
|
status: __expectString(output.status),
|
|
5301
5307
|
} as any;
|
|
@@ -5306,7 +5312,7 @@ const deserializeAws_restJson1ProductionBranch = (output: any, context: __SerdeC
|
|
|
5306
5312
|
branchName: __expectString(output.branchName),
|
|
5307
5313
|
lastDeployTime:
|
|
5308
5314
|
output.lastDeployTime !== undefined && output.lastDeployTime !== null
|
|
5309
|
-
?
|
|
5315
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastDeployTime)))
|
|
5310
5316
|
: undefined,
|
|
5311
5317
|
status: __expectString(output.status),
|
|
5312
5318
|
thumbnailUrl: __expectString(output.thumbnailUrl),
|
|
@@ -5330,7 +5336,9 @@ const deserializeAws_restJson1Step = (output: any, context: __SerdeContext): Ste
|
|
|
5330
5336
|
artifactsUrl: __expectString(output.artifactsUrl),
|
|
5331
5337
|
context: __expectString(output.context),
|
|
5332
5338
|
endTime:
|
|
5333
|
-
output.endTime !== undefined && output.endTime !== null
|
|
5339
|
+
output.endTime !== undefined && output.endTime !== null
|
|
5340
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
|
|
5341
|
+
: undefined,
|
|
5334
5342
|
logUrl: __expectString(output.logUrl),
|
|
5335
5343
|
screenshots:
|
|
5336
5344
|
output.screenshots !== undefined && output.screenshots !== null
|
|
@@ -5338,7 +5346,7 @@ const deserializeAws_restJson1Step = (output: any, context: __SerdeContext): Ste
|
|
|
5338
5346
|
: undefined,
|
|
5339
5347
|
startTime:
|
|
5340
5348
|
output.startTime !== undefined && output.startTime !== null
|
|
5341
|
-
?
|
|
5349
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
5342
5350
|
: undefined,
|
|
5343
5351
|
status: __expectString(output.status),
|
|
5344
5352
|
statusReason: __expectString(output.statusReason),
|
|
@@ -5405,12 +5413,12 @@ const deserializeAws_restJson1Webhook = (output: any, context: __SerdeContext):
|
|
|
5405
5413
|
branchName: __expectString(output.branchName),
|
|
5406
5414
|
createTime:
|
|
5407
5415
|
output.createTime !== undefined && output.createTime !== null
|
|
5408
|
-
?
|
|
5416
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime)))
|
|
5409
5417
|
: undefined,
|
|
5410
5418
|
description: __expectString(output.description),
|
|
5411
5419
|
updateTime:
|
|
5412
5420
|
output.updateTime !== undefined && output.updateTime !== null
|
|
5413
|
-
?
|
|
5421
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime)))
|
|
5414
5422
|
: undefined,
|
|
5415
5423
|
webhookArn: __expectString(output.webhookArn),
|
|
5416
5424
|
webhookId: __expectString(output.webhookId),
|