@aws-sdk/client-amplify 3.121.0 → 3.130.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +148 -246
- package/dist-es/protocols/Aws_restJson1.js +62 -160
- package/package.json +26 -26
|
@@ -14,23 +14,13 @@ export var serializeAws_restJson1CreateAppCommand = function (input, context) {
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accessToken
|
|
18
|
-
input.autoBranchCreationConfig !== null && {
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accessToken != null && { accessToken: input.accessToken })), (input.autoBranchCreationConfig != null && {
|
|
19
18
|
autoBranchCreationConfig: serializeAws_restJson1AutoBranchCreationConfig(input.autoBranchCreationConfig, context),
|
|
20
|
-
})), (input.autoBranchCreationPatterns
|
|
21
|
-
input.autoBranchCreationPatterns !== null && {
|
|
19
|
+
})), (input.autoBranchCreationPatterns != null && {
|
|
22
20
|
autoBranchCreationPatterns: serializeAws_restJson1AutoBranchCreationPatterns(input.autoBranchCreationPatterns, context),
|
|
23
|
-
})), (input.basicAuthCredentials
|
|
24
|
-
input.basicAuthCredentials !== null && { basicAuthCredentials: input.basicAuthCredentials })), (input.buildSpec !== undefined && input.buildSpec !== null && { buildSpec: input.buildSpec })), (input.customHeaders !== undefined && input.customHeaders !== null && { customHeaders: input.customHeaders })), (input.customRules !== undefined &&
|
|
25
|
-
input.customRules !== null && { customRules: serializeAws_restJson1CustomRules(input.customRules, context) })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.enableAutoBranchCreation !== undefined &&
|
|
26
|
-
input.enableAutoBranchCreation !== null && { enableAutoBranchCreation: input.enableAutoBranchCreation })), (input.enableBasicAuth !== undefined &&
|
|
27
|
-
input.enableBasicAuth !== null && { enableBasicAuth: input.enableBasicAuth })), (input.enableBranchAutoBuild !== undefined &&
|
|
28
|
-
input.enableBranchAutoBuild !== null && { enableBranchAutoBuild: input.enableBranchAutoBuild })), (input.enableBranchAutoDeletion !== undefined &&
|
|
29
|
-
input.enableBranchAutoDeletion !== null && { enableBranchAutoDeletion: input.enableBranchAutoDeletion })), (input.environmentVariables !== undefined &&
|
|
30
|
-
input.environmentVariables !== null && {
|
|
21
|
+
})), (input.basicAuthCredentials != null && { basicAuthCredentials: input.basicAuthCredentials })), (input.buildSpec != null && { buildSpec: input.buildSpec })), (input.customHeaders != null && { customHeaders: input.customHeaders })), (input.customRules != null && { customRules: serializeAws_restJson1CustomRules(input.customRules, context) })), (input.description != null && { description: input.description })), (input.enableAutoBranchCreation != null && { enableAutoBranchCreation: input.enableAutoBranchCreation })), (input.enableBasicAuth != null && { enableBasicAuth: input.enableBasicAuth })), (input.enableBranchAutoBuild != null && { enableBranchAutoBuild: input.enableBranchAutoBuild })), (input.enableBranchAutoDeletion != null && { enableBranchAutoDeletion: input.enableBranchAutoDeletion })), (input.environmentVariables != null && {
|
|
31
22
|
environmentVariables: serializeAws_restJson1EnvironmentVariables(input.environmentVariables, context),
|
|
32
|
-
})), (input.iamServiceRoleArn
|
|
33
|
-
input.iamServiceRoleArn !== null && { iamServiceRoleArn: input.iamServiceRoleArn })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.oauthToken !== undefined && input.oauthToken !== null && { oauthToken: input.oauthToken })), (input.platform !== undefined && input.platform !== null && { platform: input.platform })), (input.repository !== undefined && input.repository !== null && { repository: input.repository })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
23
|
+
})), (input.iamServiceRoleArn != null && { iamServiceRoleArn: input.iamServiceRoleArn })), (input.name != null && { name: input.name })), (input.oauthToken != null && { oauthToken: input.oauthToken })), (input.platform != null && { platform: input.platform })), (input.repository != null && { repository: input.repository })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
34
24
|
return [2, new __HttpRequest({
|
|
35
25
|
protocol: protocol,
|
|
36
26
|
hostname: hostname,
|
|
@@ -64,9 +54,7 @@ export var serializeAws_restJson1CreateBackendEnvironmentCommand = function (inp
|
|
|
64
54
|
else {
|
|
65
55
|
throw new Error("No value provided for input HTTP label: appId.");
|
|
66
56
|
}
|
|
67
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.deploymentArtifacts
|
|
68
|
-
input.deploymentArtifacts !== null && { deploymentArtifacts: input.deploymentArtifacts })), (input.environmentName !== undefined &&
|
|
69
|
-
input.environmentName !== null && { environmentName: input.environmentName })), (input.stackName !== undefined && input.stackName !== null && { stackName: input.stackName })));
|
|
57
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.deploymentArtifacts != null && { deploymentArtifacts: input.deploymentArtifacts })), (input.environmentName != null && { environmentName: input.environmentName })), (input.stackName != null && { stackName: input.stackName })));
|
|
70
58
|
return [2, new __HttpRequest({
|
|
71
59
|
protocol: protocol,
|
|
72
60
|
hostname: hostname,
|
|
@@ -100,18 +88,9 @@ export var serializeAws_restJson1CreateBranchCommand = function (input, context)
|
|
|
100
88
|
else {
|
|
101
89
|
throw new Error("No value provided for input HTTP label: appId.");
|
|
102
90
|
}
|
|
103
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.backendEnvironmentArn
|
|
104
|
-
input.backendEnvironmentArn !== null && { backendEnvironmentArn: input.backendEnvironmentArn })), (input.basicAuthCredentials !== undefined &&
|
|
105
|
-
input.basicAuthCredentials !== null && { basicAuthCredentials: input.basicAuthCredentials })), (input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName })), (input.buildSpec !== undefined && input.buildSpec !== null && { buildSpec: input.buildSpec })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName })), (input.enableAutoBuild !== undefined &&
|
|
106
|
-
input.enableAutoBuild !== null && { enableAutoBuild: input.enableAutoBuild })), (input.enableBasicAuth !== undefined &&
|
|
107
|
-
input.enableBasicAuth !== null && { enableBasicAuth: input.enableBasicAuth })), (input.enableNotification !== undefined &&
|
|
108
|
-
input.enableNotification !== null && { enableNotification: input.enableNotification })), (input.enablePerformanceMode !== undefined &&
|
|
109
|
-
input.enablePerformanceMode !== null && { enablePerformanceMode: input.enablePerformanceMode })), (input.enablePullRequestPreview !== undefined &&
|
|
110
|
-
input.enablePullRequestPreview !== null && { enablePullRequestPreview: input.enablePullRequestPreview })), (input.environmentVariables !== undefined &&
|
|
111
|
-
input.environmentVariables !== null && {
|
|
91
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.backendEnvironmentArn != null && { backendEnvironmentArn: input.backendEnvironmentArn })), (input.basicAuthCredentials != null && { basicAuthCredentials: input.basicAuthCredentials })), (input.branchName != null && { branchName: input.branchName })), (input.buildSpec != null && { buildSpec: input.buildSpec })), (input.description != null && { description: input.description })), (input.displayName != null && { displayName: input.displayName })), (input.enableAutoBuild != null && { enableAutoBuild: input.enableAutoBuild })), (input.enableBasicAuth != null && { enableBasicAuth: input.enableBasicAuth })), (input.enableNotification != null && { enableNotification: input.enableNotification })), (input.enablePerformanceMode != null && { enablePerformanceMode: input.enablePerformanceMode })), (input.enablePullRequestPreview != null && { enablePullRequestPreview: input.enablePullRequestPreview })), (input.environmentVariables != null && {
|
|
112
92
|
environmentVariables: serializeAws_restJson1EnvironmentVariables(input.environmentVariables, context),
|
|
113
|
-
})), (input.framework
|
|
114
|
-
input.pullRequestEnvironmentName !== null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName })), (input.stage !== undefined && input.stage !== null && { stage: input.stage })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.ttl !== undefined && input.ttl !== null && { ttl: input.ttl })));
|
|
93
|
+
})), (input.framework != null && { framework: input.framework })), (input.pullRequestEnvironmentName != null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName })), (input.stage != null && { stage: input.stage })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.ttl != null && { ttl: input.ttl })));
|
|
115
94
|
return [2, new __HttpRequest({
|
|
116
95
|
protocol: protocol,
|
|
117
96
|
hostname: hostname,
|
|
@@ -156,8 +135,7 @@ export var serializeAws_restJson1CreateDeploymentCommand = function (input, cont
|
|
|
156
135
|
else {
|
|
157
136
|
throw new Error("No value provided for input HTTP label: branchName.");
|
|
158
137
|
}
|
|
159
|
-
body = JSON.stringify(__assign({}, (input.fileMap
|
|
160
|
-
input.fileMap !== null && { fileMap: serializeAws_restJson1FileMap(input.fileMap, context) })));
|
|
138
|
+
body = JSON.stringify(__assign({}, (input.fileMap != null && { fileMap: serializeAws_restJson1FileMap(input.fileMap, context) })));
|
|
161
139
|
return [2, new __HttpRequest({
|
|
162
140
|
protocol: protocol,
|
|
163
141
|
hostname: hostname,
|
|
@@ -191,13 +169,9 @@ export var serializeAws_restJson1CreateDomainAssociationCommand = function (inpu
|
|
|
191
169
|
else {
|
|
192
170
|
throw new Error("No value provided for input HTTP label: appId.");
|
|
193
171
|
}
|
|
194
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.autoSubDomainCreationPatterns
|
|
195
|
-
input.autoSubDomainCreationPatterns !== null && {
|
|
172
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.autoSubDomainCreationPatterns != null && {
|
|
196
173
|
autoSubDomainCreationPatterns: serializeAws_restJson1AutoSubDomainCreationPatterns(input.autoSubDomainCreationPatterns, context),
|
|
197
|
-
})), (input.autoSubDomainIAMRole
|
|
198
|
-
input.autoSubDomainIAMRole !== null && { autoSubDomainIAMRole: input.autoSubDomainIAMRole })), (input.domainName !== undefined && input.domainName !== null && { domainName: input.domainName })), (input.enableAutoSubDomain !== undefined &&
|
|
199
|
-
input.enableAutoSubDomain !== null && { enableAutoSubDomain: input.enableAutoSubDomain })), (input.subDomainSettings !== undefined &&
|
|
200
|
-
input.subDomainSettings !== null && {
|
|
174
|
+
})), (input.autoSubDomainIAMRole != null && { autoSubDomainIAMRole: input.autoSubDomainIAMRole })), (input.domainName != null && { domainName: input.domainName })), (input.enableAutoSubDomain != null && { enableAutoSubDomain: input.enableAutoSubDomain })), (input.subDomainSettings != null && {
|
|
201
175
|
subDomainSettings: serializeAws_restJson1SubDomainSettings(input.subDomainSettings, context),
|
|
202
176
|
})));
|
|
203
177
|
return [2, new __HttpRequest({
|
|
@@ -233,7 +207,7 @@ export var serializeAws_restJson1CreateWebhookCommand = function (input, context
|
|
|
233
207
|
else {
|
|
234
208
|
throw new Error("No value provided for input HTTP label: appId.");
|
|
235
209
|
}
|
|
236
|
-
body = JSON.stringify(__assign(__assign({}, (input.branchName
|
|
210
|
+
body = JSON.stringify(__assign(__assign({}, (input.branchName != null && { branchName: input.branchName })), (input.description != null && { description: input.description })));
|
|
237
211
|
return [2, new __HttpRequest({
|
|
238
212
|
protocol: protocol,
|
|
239
213
|
hostname: hostname,
|
|
@@ -505,9 +479,7 @@ export var serializeAws_restJson1GenerateAccessLogsCommand = function (input, co
|
|
|
505
479
|
else {
|
|
506
480
|
throw new Error("No value provided for input HTTP label: appId.");
|
|
507
481
|
}
|
|
508
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.domainName
|
|
509
|
-
input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) })), (input.startTime !== undefined &&
|
|
510
|
-
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) })));
|
|
482
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.domainName != null && { domainName: input.domainName })), (input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) })), (input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) })));
|
|
511
483
|
return [2, new __HttpRequest({
|
|
512
484
|
protocol: protocol,
|
|
513
485
|
hostname: hostname,
|
|
@@ -1104,7 +1076,7 @@ export var serializeAws_restJson1StartDeploymentCommand = function (input, conte
|
|
|
1104
1076
|
else {
|
|
1105
1077
|
throw new Error("No value provided for input HTTP label: branchName.");
|
|
1106
1078
|
}
|
|
1107
|
-
body = JSON.stringify(__assign(__assign({}, (input.jobId
|
|
1079
|
+
body = JSON.stringify(__assign(__assign({}, (input.jobId != null && { jobId: input.jobId })), (input.sourceUrl != null && { sourceUrl: input.sourceUrl })));
|
|
1108
1080
|
return [2, new __HttpRequest({
|
|
1109
1081
|
protocol: protocol,
|
|
1110
1082
|
hostname: hostname,
|
|
@@ -1148,8 +1120,7 @@ export var serializeAws_restJson1StartJobCommand = function (input, context) { r
|
|
|
1148
1120
|
else {
|
|
1149
1121
|
throw new Error("No value provided for input HTTP label: branchName.");
|
|
1150
1122
|
}
|
|
1151
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.commitId
|
|
1152
|
-
input.commitTime !== null && { commitTime: Math.round(input.commitTime.getTime() / 1000) })), (input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId })), (input.jobReason !== undefined && input.jobReason !== null && { jobReason: input.jobReason })), (input.jobType !== undefined && input.jobType !== null && { jobType: input.jobType })));
|
|
1123
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.commitId != null && { commitId: input.commitId })), (input.commitMessage != null && { commitMessage: input.commitMessage })), (input.commitTime != null && { commitTime: Math.round(input.commitTime.getTime() / 1000) })), (input.jobId != null && { jobId: input.jobId })), (input.jobReason != null && { jobReason: input.jobReason })), (input.jobType != null && { jobType: input.jobType })));
|
|
1153
1124
|
return [2, new __HttpRequest({
|
|
1154
1125
|
protocol: protocol,
|
|
1155
1126
|
hostname: hostname,
|
|
@@ -1235,7 +1206,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1235
1206
|
else {
|
|
1236
1207
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1237
1208
|
}
|
|
1238
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
1209
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
1239
1210
|
return [2, new __HttpRequest({
|
|
1240
1211
|
protocol: protocol,
|
|
1241
1212
|
hostname: hostname,
|
|
@@ -1302,23 +1273,13 @@ export var serializeAws_restJson1UpdateAppCommand = function (input, context) {
|
|
|
1302
1273
|
else {
|
|
1303
1274
|
throw new Error("No value provided for input HTTP label: appId.");
|
|
1304
1275
|
}
|
|
1305
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accessToken
|
|
1306
|
-
input.autoBranchCreationConfig !== null && {
|
|
1276
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accessToken != null && { accessToken: input.accessToken })), (input.autoBranchCreationConfig != null && {
|
|
1307
1277
|
autoBranchCreationConfig: serializeAws_restJson1AutoBranchCreationConfig(input.autoBranchCreationConfig, context),
|
|
1308
|
-
})), (input.autoBranchCreationPatterns
|
|
1309
|
-
input.autoBranchCreationPatterns !== null && {
|
|
1278
|
+
})), (input.autoBranchCreationPatterns != null && {
|
|
1310
1279
|
autoBranchCreationPatterns: serializeAws_restJson1AutoBranchCreationPatterns(input.autoBranchCreationPatterns, context),
|
|
1311
|
-
})), (input.basicAuthCredentials
|
|
1312
|
-
input.basicAuthCredentials !== null && { basicAuthCredentials: input.basicAuthCredentials })), (input.buildSpec !== undefined && input.buildSpec !== null && { buildSpec: input.buildSpec })), (input.customHeaders !== undefined && input.customHeaders !== null && { customHeaders: input.customHeaders })), (input.customRules !== undefined &&
|
|
1313
|
-
input.customRules !== null && { customRules: serializeAws_restJson1CustomRules(input.customRules, context) })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.enableAutoBranchCreation !== undefined &&
|
|
1314
|
-
input.enableAutoBranchCreation !== null && { enableAutoBranchCreation: input.enableAutoBranchCreation })), (input.enableBasicAuth !== undefined &&
|
|
1315
|
-
input.enableBasicAuth !== null && { enableBasicAuth: input.enableBasicAuth })), (input.enableBranchAutoBuild !== undefined &&
|
|
1316
|
-
input.enableBranchAutoBuild !== null && { enableBranchAutoBuild: input.enableBranchAutoBuild })), (input.enableBranchAutoDeletion !== undefined &&
|
|
1317
|
-
input.enableBranchAutoDeletion !== null && { enableBranchAutoDeletion: input.enableBranchAutoDeletion })), (input.environmentVariables !== undefined &&
|
|
1318
|
-
input.environmentVariables !== null && {
|
|
1280
|
+
})), (input.basicAuthCredentials != null && { basicAuthCredentials: input.basicAuthCredentials })), (input.buildSpec != null && { buildSpec: input.buildSpec })), (input.customHeaders != null && { customHeaders: input.customHeaders })), (input.customRules != null && { customRules: serializeAws_restJson1CustomRules(input.customRules, context) })), (input.description != null && { description: input.description })), (input.enableAutoBranchCreation != null && { enableAutoBranchCreation: input.enableAutoBranchCreation })), (input.enableBasicAuth != null && { enableBasicAuth: input.enableBasicAuth })), (input.enableBranchAutoBuild != null && { enableBranchAutoBuild: input.enableBranchAutoBuild })), (input.enableBranchAutoDeletion != null && { enableBranchAutoDeletion: input.enableBranchAutoDeletion })), (input.environmentVariables != null && {
|
|
1319
1281
|
environmentVariables: serializeAws_restJson1EnvironmentVariables(input.environmentVariables, context),
|
|
1320
|
-
})), (input.iamServiceRoleArn
|
|
1321
|
-
input.iamServiceRoleArn !== null && { iamServiceRoleArn: input.iamServiceRoleArn })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.oauthToken !== undefined && input.oauthToken !== null && { oauthToken: input.oauthToken })), (input.platform !== undefined && input.platform !== null && { platform: input.platform })), (input.repository !== undefined && input.repository !== null && { repository: input.repository })));
|
|
1282
|
+
})), (input.iamServiceRoleArn != null && { iamServiceRoleArn: input.iamServiceRoleArn })), (input.name != null && { name: input.name })), (input.oauthToken != null && { oauthToken: input.oauthToken })), (input.platform != null && { platform: input.platform })), (input.repository != null && { repository: input.repository })));
|
|
1322
1283
|
return [2, new __HttpRequest({
|
|
1323
1284
|
protocol: protocol,
|
|
1324
1285
|
hostname: hostname,
|
|
@@ -1362,18 +1323,9 @@ export var serializeAws_restJson1UpdateBranchCommand = function (input, context)
|
|
|
1362
1323
|
else {
|
|
1363
1324
|
throw new Error("No value provided for input HTTP label: branchName.");
|
|
1364
1325
|
}
|
|
1365
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.backendEnvironmentArn
|
|
1366
|
-
input.backendEnvironmentArn !== null && { backendEnvironmentArn: input.backendEnvironmentArn })), (input.basicAuthCredentials !== undefined &&
|
|
1367
|
-
input.basicAuthCredentials !== null && { basicAuthCredentials: input.basicAuthCredentials })), (input.buildSpec !== undefined && input.buildSpec !== null && { buildSpec: input.buildSpec })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName })), (input.enableAutoBuild !== undefined &&
|
|
1368
|
-
input.enableAutoBuild !== null && { enableAutoBuild: input.enableAutoBuild })), (input.enableBasicAuth !== undefined &&
|
|
1369
|
-
input.enableBasicAuth !== null && { enableBasicAuth: input.enableBasicAuth })), (input.enableNotification !== undefined &&
|
|
1370
|
-
input.enableNotification !== null && { enableNotification: input.enableNotification })), (input.enablePerformanceMode !== undefined &&
|
|
1371
|
-
input.enablePerformanceMode !== null && { enablePerformanceMode: input.enablePerformanceMode })), (input.enablePullRequestPreview !== undefined &&
|
|
1372
|
-
input.enablePullRequestPreview !== null && { enablePullRequestPreview: input.enablePullRequestPreview })), (input.environmentVariables !== undefined &&
|
|
1373
|
-
input.environmentVariables !== null && {
|
|
1326
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.backendEnvironmentArn != null && { backendEnvironmentArn: input.backendEnvironmentArn })), (input.basicAuthCredentials != null && { basicAuthCredentials: input.basicAuthCredentials })), (input.buildSpec != null && { buildSpec: input.buildSpec })), (input.description != null && { description: input.description })), (input.displayName != null && { displayName: input.displayName })), (input.enableAutoBuild != null && { enableAutoBuild: input.enableAutoBuild })), (input.enableBasicAuth != null && { enableBasicAuth: input.enableBasicAuth })), (input.enableNotification != null && { enableNotification: input.enableNotification })), (input.enablePerformanceMode != null && { enablePerformanceMode: input.enablePerformanceMode })), (input.enablePullRequestPreview != null && { enablePullRequestPreview: input.enablePullRequestPreview })), (input.environmentVariables != null && {
|
|
1374
1327
|
environmentVariables: serializeAws_restJson1EnvironmentVariables(input.environmentVariables, context),
|
|
1375
|
-
})), (input.framework
|
|
1376
|
-
input.pullRequestEnvironmentName !== null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName })), (input.stage !== undefined && input.stage !== null && { stage: input.stage })), (input.ttl !== undefined && input.ttl !== null && { ttl: input.ttl })));
|
|
1328
|
+
})), (input.framework != null && { framework: input.framework })), (input.pullRequestEnvironmentName != null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName })), (input.stage != null && { stage: input.stage })), (input.ttl != null && { ttl: input.ttl })));
|
|
1377
1329
|
return [2, new __HttpRequest({
|
|
1378
1330
|
protocol: protocol,
|
|
1379
1331
|
hostname: hostname,
|
|
@@ -1417,13 +1369,9 @@ export var serializeAws_restJson1UpdateDomainAssociationCommand = function (inpu
|
|
|
1417
1369
|
else {
|
|
1418
1370
|
throw new Error("No value provided for input HTTP label: domainName.");
|
|
1419
1371
|
}
|
|
1420
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.autoSubDomainCreationPatterns
|
|
1421
|
-
input.autoSubDomainCreationPatterns !== null && {
|
|
1372
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.autoSubDomainCreationPatterns != null && {
|
|
1422
1373
|
autoSubDomainCreationPatterns: serializeAws_restJson1AutoSubDomainCreationPatterns(input.autoSubDomainCreationPatterns, context),
|
|
1423
|
-
})), (input.autoSubDomainIAMRole
|
|
1424
|
-
input.autoSubDomainIAMRole !== null && { autoSubDomainIAMRole: input.autoSubDomainIAMRole })), (input.enableAutoSubDomain !== undefined &&
|
|
1425
|
-
input.enableAutoSubDomain !== null && { enableAutoSubDomain: input.enableAutoSubDomain })), (input.subDomainSettings !== undefined &&
|
|
1426
|
-
input.subDomainSettings !== null && {
|
|
1374
|
+
})), (input.autoSubDomainIAMRole != null && { autoSubDomainIAMRole: input.autoSubDomainIAMRole })), (input.enableAutoSubDomain != null && { enableAutoSubDomain: input.enableAutoSubDomain })), (input.subDomainSettings != null && {
|
|
1427
1375
|
subDomainSettings: serializeAws_restJson1SubDomainSettings(input.subDomainSettings, context),
|
|
1428
1376
|
})));
|
|
1429
1377
|
return [2, new __HttpRequest({
|
|
@@ -1459,7 +1407,7 @@ export var serializeAws_restJson1UpdateWebhookCommand = function (input, context
|
|
|
1459
1407
|
else {
|
|
1460
1408
|
throw new Error("No value provided for input HTTP label: webhookId.");
|
|
1461
1409
|
}
|
|
1462
|
-
body = JSON.stringify(__assign(__assign({}, (input.branchName
|
|
1410
|
+
body = JSON.stringify(__assign(__assign({}, (input.branchName != null && { branchName: input.branchName })), (input.description != null && { description: input.description })));
|
|
1463
1411
|
return [2, new __HttpRequest({
|
|
1464
1412
|
protocol: protocol,
|
|
1465
1413
|
hostname: hostname,
|
|
@@ -4205,16 +4153,9 @@ var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutp
|
|
|
4205
4153
|
});
|
|
4206
4154
|
}); };
|
|
4207
4155
|
var serializeAws_restJson1AutoBranchCreationConfig = function (input, context) {
|
|
4208
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.basicAuthCredentials
|
|
4209
|
-
input.basicAuthCredentials !== null && { basicAuthCredentials: input.basicAuthCredentials })), (input.buildSpec !== undefined && input.buildSpec !== null && { buildSpec: input.buildSpec })), (input.enableAutoBuild !== undefined &&
|
|
4210
|
-
input.enableAutoBuild !== null && { enableAutoBuild: input.enableAutoBuild })), (input.enableBasicAuth !== undefined &&
|
|
4211
|
-
input.enableBasicAuth !== null && { enableBasicAuth: input.enableBasicAuth })), (input.enablePerformanceMode !== undefined &&
|
|
4212
|
-
input.enablePerformanceMode !== null && { enablePerformanceMode: input.enablePerformanceMode })), (input.enablePullRequestPreview !== undefined &&
|
|
4213
|
-
input.enablePullRequestPreview !== null && { enablePullRequestPreview: input.enablePullRequestPreview })), (input.environmentVariables !== undefined &&
|
|
4214
|
-
input.environmentVariables !== null && {
|
|
4156
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.basicAuthCredentials != null && { basicAuthCredentials: input.basicAuthCredentials })), (input.buildSpec != null && { buildSpec: input.buildSpec })), (input.enableAutoBuild != null && { enableAutoBuild: input.enableAutoBuild })), (input.enableBasicAuth != null && { enableBasicAuth: input.enableBasicAuth })), (input.enablePerformanceMode != null && { enablePerformanceMode: input.enablePerformanceMode })), (input.enablePullRequestPreview != null && { enablePullRequestPreview: input.enablePullRequestPreview })), (input.environmentVariables != null && {
|
|
4215
4157
|
environmentVariables: serializeAws_restJson1EnvironmentVariables(input.environmentVariables, context),
|
|
4216
|
-
})), (input.framework
|
|
4217
|
-
input.pullRequestEnvironmentName !== null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName })), (input.stage !== undefined && input.stage !== null && { stage: input.stage }));
|
|
4158
|
+
})), (input.framework != null && { framework: input.framework })), (input.pullRequestEnvironmentName != null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName })), (input.stage != null && { stage: input.stage }));
|
|
4218
4159
|
};
|
|
4219
4160
|
var serializeAws_restJson1AutoBranchCreationPatterns = function (input, context) {
|
|
4220
4161
|
return input
|
|
@@ -4237,7 +4178,7 @@ var serializeAws_restJson1AutoSubDomainCreationPatterns = function (input, conte
|
|
|
4237
4178
|
});
|
|
4238
4179
|
};
|
|
4239
4180
|
var serializeAws_restJson1CustomRule = function (input, context) {
|
|
4240
|
-
return __assign(__assign(__assign(__assign({}, (input.condition
|
|
4181
|
+
return __assign(__assign(__assign(__assign({}, (input.condition != null && { condition: input.condition })), (input.source != null && { source: input.source })), (input.status != null && { status: input.status })), (input.target != null && { target: input.target }));
|
|
4241
4182
|
};
|
|
4242
4183
|
var serializeAws_restJson1CustomRules = function (input, context) {
|
|
4243
4184
|
return input
|
|
@@ -4270,7 +4211,7 @@ var serializeAws_restJson1FileMap = function (input, context) {
|
|
|
4270
4211
|
}, {});
|
|
4271
4212
|
};
|
|
4272
4213
|
var serializeAws_restJson1SubDomainSetting = function (input, context) {
|
|
4273
|
-
return __assign(__assign({}, (input.branchName
|
|
4214
|
+
return __assign(__assign({}, (input.branchName != null && { branchName: input.branchName })), (input.prefix != null && { prefix: input.prefix }));
|
|
4274
4215
|
};
|
|
4275
4216
|
var serializeAws_restJson1SubDomainSettings = function (input, context) {
|
|
4276
4217
|
return input
|
|
@@ -4296,44 +4237,36 @@ var deserializeAws_restJson1App = function (output, context) {
|
|
|
4296
4237
|
return {
|
|
4297
4238
|
appArn: __expectString(output.appArn),
|
|
4298
4239
|
appId: __expectString(output.appId),
|
|
4299
|
-
autoBranchCreationConfig: output.autoBranchCreationConfig
|
|
4240
|
+
autoBranchCreationConfig: output.autoBranchCreationConfig != null
|
|
4300
4241
|
? deserializeAws_restJson1AutoBranchCreationConfig(output.autoBranchCreationConfig, context)
|
|
4301
4242
|
: undefined,
|
|
4302
|
-
autoBranchCreationPatterns: output.autoBranchCreationPatterns
|
|
4243
|
+
autoBranchCreationPatterns: output.autoBranchCreationPatterns != null
|
|
4303
4244
|
? deserializeAws_restJson1AutoBranchCreationPatterns(output.autoBranchCreationPatterns, context)
|
|
4304
4245
|
: undefined,
|
|
4305
4246
|
basicAuthCredentials: __expectString(output.basicAuthCredentials),
|
|
4306
4247
|
buildSpec: __expectString(output.buildSpec),
|
|
4307
|
-
createTime: output.createTime
|
|
4308
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime)))
|
|
4309
|
-
: undefined,
|
|
4248
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
4310
4249
|
customHeaders: __expectString(output.customHeaders),
|
|
4311
|
-
customRules: output.customRules
|
|
4312
|
-
? deserializeAws_restJson1CustomRules(output.customRules, context)
|
|
4313
|
-
: undefined,
|
|
4250
|
+
customRules: output.customRules != null ? deserializeAws_restJson1CustomRules(output.customRules, context) : undefined,
|
|
4314
4251
|
defaultDomain: __expectString(output.defaultDomain),
|
|
4315
4252
|
description: __expectString(output.description),
|
|
4316
4253
|
enableAutoBranchCreation: __expectBoolean(output.enableAutoBranchCreation),
|
|
4317
4254
|
enableBasicAuth: __expectBoolean(output.enableBasicAuth),
|
|
4318
4255
|
enableBranchAutoBuild: __expectBoolean(output.enableBranchAutoBuild),
|
|
4319
4256
|
enableBranchAutoDeletion: __expectBoolean(output.enableBranchAutoDeletion),
|
|
4320
|
-
environmentVariables: output.environmentVariables
|
|
4257
|
+
environmentVariables: output.environmentVariables != null
|
|
4321
4258
|
? deserializeAws_restJson1EnvironmentVariables(output.environmentVariables, context)
|
|
4322
4259
|
: undefined,
|
|
4323
4260
|
iamServiceRoleArn: __expectString(output.iamServiceRoleArn),
|
|
4324
4261
|
name: __expectString(output.name),
|
|
4325
4262
|
platform: __expectString(output.platform),
|
|
4326
|
-
productionBranch: output.productionBranch
|
|
4263
|
+
productionBranch: output.productionBranch != null
|
|
4327
4264
|
? deserializeAws_restJson1ProductionBranch(output.productionBranch, context)
|
|
4328
4265
|
: undefined,
|
|
4329
4266
|
repository: __expectString(output.repository),
|
|
4330
4267
|
repositoryCloneMethod: __expectString(output.repositoryCloneMethod),
|
|
4331
|
-
tags: output.tags
|
|
4332
|
-
|
|
4333
|
-
: undefined,
|
|
4334
|
-
updateTime: output.updateTime !== undefined && output.updateTime !== null
|
|
4335
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime)))
|
|
4336
|
-
: undefined,
|
|
4268
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
4269
|
+
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
4337
4270
|
};
|
|
4338
4271
|
};
|
|
4339
4272
|
var deserializeAws_restJson1Apps = function (output, context) {
|
|
@@ -4383,7 +4316,7 @@ var deserializeAws_restJson1AutoBranchCreationConfig = function (output, context
|
|
|
4383
4316
|
enableBasicAuth: __expectBoolean(output.enableBasicAuth),
|
|
4384
4317
|
enablePerformanceMode: __expectBoolean(output.enablePerformanceMode),
|
|
4385
4318
|
enablePullRequestPreview: __expectBoolean(output.enablePullRequestPreview),
|
|
4386
|
-
environmentVariables: output.environmentVariables
|
|
4319
|
+
environmentVariables: output.environmentVariables != null
|
|
4387
4320
|
? deserializeAws_restJson1EnvironmentVariables(output.environmentVariables, context)
|
|
4388
4321
|
: undefined,
|
|
4389
4322
|
framework: __expectString(output.framework),
|
|
@@ -4416,15 +4349,11 @@ var deserializeAws_restJson1AutoSubDomainCreationPatterns = function (output, co
|
|
|
4416
4349
|
var deserializeAws_restJson1BackendEnvironment = function (output, context) {
|
|
4417
4350
|
return {
|
|
4418
4351
|
backendEnvironmentArn: __expectString(output.backendEnvironmentArn),
|
|
4419
|
-
createTime: output.createTime
|
|
4420
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime)))
|
|
4421
|
-
: undefined,
|
|
4352
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
4422
4353
|
deploymentArtifacts: __expectString(output.deploymentArtifacts),
|
|
4423
4354
|
environmentName: __expectString(output.environmentName),
|
|
4424
4355
|
stackName: __expectString(output.stackName),
|
|
4425
|
-
updateTime: output.updateTime
|
|
4426
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime)))
|
|
4427
|
-
: undefined,
|
|
4356
|
+
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
4428
4357
|
};
|
|
4429
4358
|
};
|
|
4430
4359
|
var deserializeAws_restJson1BackendEnvironments = function (output, context) {
|
|
@@ -4441,7 +4370,7 @@ var deserializeAws_restJson1BackendEnvironments = function (output, context) {
|
|
|
4441
4370
|
var deserializeAws_restJson1Branch = function (output, context) {
|
|
4442
4371
|
return {
|
|
4443
4372
|
activeJobId: __expectString(output.activeJobId),
|
|
4444
|
-
associatedResources: output.associatedResources
|
|
4373
|
+
associatedResources: output.associatedResources != null
|
|
4445
4374
|
? deserializeAws_restJson1AssociatedResources(output.associatedResources, context)
|
|
4446
4375
|
: undefined,
|
|
4447
4376
|
backendEnvironmentArn: __expectString(output.backendEnvironmentArn),
|
|
@@ -4449,12 +4378,8 @@ var deserializeAws_restJson1Branch = function (output, context) {
|
|
|
4449
4378
|
branchArn: __expectString(output.branchArn),
|
|
4450
4379
|
branchName: __expectString(output.branchName),
|
|
4451
4380
|
buildSpec: __expectString(output.buildSpec),
|
|
4452
|
-
createTime: output.createTime
|
|
4453
|
-
|
|
4454
|
-
: undefined,
|
|
4455
|
-
customDomains: output.customDomains !== undefined && output.customDomains !== null
|
|
4456
|
-
? deserializeAws_restJson1CustomDomains(output.customDomains, context)
|
|
4457
|
-
: undefined,
|
|
4381
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
4382
|
+
customDomains: output.customDomains != null ? deserializeAws_restJson1CustomDomains(output.customDomains, context) : undefined,
|
|
4458
4383
|
description: __expectString(output.description),
|
|
4459
4384
|
destinationBranch: __expectString(output.destinationBranch),
|
|
4460
4385
|
displayName: __expectString(output.displayName),
|
|
@@ -4463,22 +4388,18 @@ var deserializeAws_restJson1Branch = function (output, context) {
|
|
|
4463
4388
|
enableNotification: __expectBoolean(output.enableNotification),
|
|
4464
4389
|
enablePerformanceMode: __expectBoolean(output.enablePerformanceMode),
|
|
4465
4390
|
enablePullRequestPreview: __expectBoolean(output.enablePullRequestPreview),
|
|
4466
|
-
environmentVariables: output.environmentVariables
|
|
4391
|
+
environmentVariables: output.environmentVariables != null
|
|
4467
4392
|
? deserializeAws_restJson1EnvironmentVariables(output.environmentVariables, context)
|
|
4468
4393
|
: undefined,
|
|
4469
4394
|
framework: __expectString(output.framework),
|
|
4470
4395
|
pullRequestEnvironmentName: __expectString(output.pullRequestEnvironmentName),
|
|
4471
4396
|
sourceBranch: __expectString(output.sourceBranch),
|
|
4472
4397
|
stage: __expectString(output.stage),
|
|
4473
|
-
tags: output.tags
|
|
4474
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
4475
|
-
: undefined,
|
|
4398
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
4476
4399
|
thumbnailUrl: __expectString(output.thumbnailUrl),
|
|
4477
4400
|
totalNumberOfJobs: __expectString(output.totalNumberOfJobs),
|
|
4478
4401
|
ttl: __expectString(output.ttl),
|
|
4479
|
-
updateTime: output.updateTime
|
|
4480
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime)))
|
|
4481
|
-
: undefined,
|
|
4402
|
+
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
4482
4403
|
};
|
|
4483
4404
|
};
|
|
4484
4405
|
var deserializeAws_restJson1Branches = function (output, context) {
|
|
@@ -4524,7 +4445,7 @@ var deserializeAws_restJson1CustomRules = function (output, context) {
|
|
|
4524
4445
|
};
|
|
4525
4446
|
var deserializeAws_restJson1DomainAssociation = function (output, context) {
|
|
4526
4447
|
return {
|
|
4527
|
-
autoSubDomainCreationPatterns: output.autoSubDomainCreationPatterns
|
|
4448
|
+
autoSubDomainCreationPatterns: output.autoSubDomainCreationPatterns != null
|
|
4528
4449
|
? deserializeAws_restJson1AutoSubDomainCreationPatterns(output.autoSubDomainCreationPatterns, context)
|
|
4529
4450
|
: undefined,
|
|
4530
4451
|
autoSubDomainIAMRole: __expectString(output.autoSubDomainIAMRole),
|
|
@@ -4534,9 +4455,7 @@ var deserializeAws_restJson1DomainAssociation = function (output, context) {
|
|
|
4534
4455
|
domainStatus: __expectString(output.domainStatus),
|
|
4535
4456
|
enableAutoSubDomain: __expectBoolean(output.enableAutoSubDomain),
|
|
4536
4457
|
statusReason: __expectString(output.statusReason),
|
|
4537
|
-
subDomains: output.subDomains
|
|
4538
|
-
? deserializeAws_restJson1SubDomains(output.subDomains, context)
|
|
4539
|
-
: undefined,
|
|
4458
|
+
subDomains: output.subDomains != null ? deserializeAws_restJson1SubDomains(output.subDomains, context) : undefined,
|
|
4540
4459
|
};
|
|
4541
4460
|
};
|
|
4542
4461
|
var deserializeAws_restJson1DomainAssociations = function (output, context) {
|
|
@@ -4572,12 +4491,8 @@ var deserializeAws_restJson1FileUploadUrls = function (output, context) {
|
|
|
4572
4491
|
};
|
|
4573
4492
|
var deserializeAws_restJson1Job = function (output, context) {
|
|
4574
4493
|
return {
|
|
4575
|
-
steps: output.steps
|
|
4576
|
-
|
|
4577
|
-
: undefined,
|
|
4578
|
-
summary: output.summary !== undefined && output.summary !== null
|
|
4579
|
-
? deserializeAws_restJson1JobSummary(output.summary, context)
|
|
4580
|
-
: undefined,
|
|
4494
|
+
steps: output.steps != null ? deserializeAws_restJson1Steps(output.steps, context) : undefined,
|
|
4495
|
+
summary: output.summary != null ? deserializeAws_restJson1JobSummary(output.summary, context) : undefined,
|
|
4581
4496
|
};
|
|
4582
4497
|
};
|
|
4583
4498
|
var deserializeAws_restJson1JobSummaries = function (output, context) {
|
|
@@ -4595,25 +4510,19 @@ var deserializeAws_restJson1JobSummary = function (output, context) {
|
|
|
4595
4510
|
return {
|
|
4596
4511
|
commitId: __expectString(output.commitId),
|
|
4597
4512
|
commitMessage: __expectString(output.commitMessage),
|
|
4598
|
-
commitTime: output.commitTime
|
|
4599
|
-
|
|
4600
|
-
: undefined,
|
|
4601
|
-
endTime: output.endTime !== undefined && output.endTime !== null
|
|
4602
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
|
|
4603
|
-
: undefined,
|
|
4513
|
+
commitTime: output.commitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.commitTime))) : undefined,
|
|
4514
|
+
endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
|
|
4604
4515
|
jobArn: __expectString(output.jobArn),
|
|
4605
4516
|
jobId: __expectString(output.jobId),
|
|
4606
4517
|
jobType: __expectString(output.jobType),
|
|
4607
|
-
startTime: output.startTime
|
|
4608
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
4609
|
-
: undefined,
|
|
4518
|
+
startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
|
|
4610
4519
|
status: __expectString(output.status),
|
|
4611
4520
|
};
|
|
4612
4521
|
};
|
|
4613
4522
|
var deserializeAws_restJson1ProductionBranch = function (output, context) {
|
|
4614
4523
|
return {
|
|
4615
4524
|
branchName: __expectString(output.branchName),
|
|
4616
|
-
lastDeployTime: output.lastDeployTime
|
|
4525
|
+
lastDeployTime: output.lastDeployTime != null
|
|
4617
4526
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastDeployTime)))
|
|
4618
4527
|
: undefined,
|
|
4619
4528
|
status: __expectString(output.status),
|
|
@@ -4634,16 +4543,10 @@ var deserializeAws_restJson1Step = function (output, context) {
|
|
|
4634
4543
|
return {
|
|
4635
4544
|
artifactsUrl: __expectString(output.artifactsUrl),
|
|
4636
4545
|
context: __expectString(output.context),
|
|
4637
|
-
endTime: output.endTime
|
|
4638
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
|
|
4639
|
-
: undefined,
|
|
4546
|
+
endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
|
|
4640
4547
|
logUrl: __expectString(output.logUrl),
|
|
4641
|
-
screenshots: output.screenshots
|
|
4642
|
-
|
|
4643
|
-
: undefined,
|
|
4644
|
-
startTime: output.startTime !== undefined && output.startTime !== null
|
|
4645
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
4646
|
-
: undefined,
|
|
4548
|
+
screenshots: output.screenshots != null ? deserializeAws_restJson1Screenshots(output.screenshots, context) : undefined,
|
|
4549
|
+
startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
|
|
4647
4550
|
status: __expectString(output.status),
|
|
4648
4551
|
statusReason: __expectString(output.statusReason),
|
|
4649
4552
|
stepName: __expectString(output.stepName),
|
|
@@ -4665,7 +4568,7 @@ var deserializeAws_restJson1Steps = function (output, context) {
|
|
|
4665
4568
|
var deserializeAws_restJson1SubDomain = function (output, context) {
|
|
4666
4569
|
return {
|
|
4667
4570
|
dnsRecord: __expectString(output.dnsRecord),
|
|
4668
|
-
subDomainSetting: output.subDomainSetting
|
|
4571
|
+
subDomainSetting: output.subDomainSetting != null
|
|
4669
4572
|
? deserializeAws_restJson1SubDomainSetting(output.subDomainSetting, context)
|
|
4670
4573
|
: undefined,
|
|
4671
4574
|
verified: __expectBoolean(output.verified),
|
|
@@ -4701,13 +4604,9 @@ var deserializeAws_restJson1TagMap = function (output, context) {
|
|
|
4701
4604
|
var deserializeAws_restJson1Webhook = function (output, context) {
|
|
4702
4605
|
return {
|
|
4703
4606
|
branchName: __expectString(output.branchName),
|
|
4704
|
-
createTime: output.createTime
|
|
4705
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime)))
|
|
4706
|
-
: undefined,
|
|
4607
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
4707
4608
|
description: __expectString(output.description),
|
|
4708
|
-
updateTime: output.updateTime
|
|
4709
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime)))
|
|
4710
|
-
: undefined,
|
|
4609
|
+
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
4711
4610
|
webhookArn: __expectString(output.webhookArn),
|
|
4712
4611
|
webhookId: __expectString(output.webhookId),
|
|
4713
4612
|
webhookUrl: __expectString(output.webhookUrl),
|
|
@@ -4762,6 +4661,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
4762
4661
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4763
4662
|
var sanitizeErrorCode = function (rawValue) {
|
|
4764
4663
|
var cleanValue = rawValue;
|
|
4664
|
+
if (typeof cleanValue === "number") {
|
|
4665
|
+
cleanValue = cleanValue.toString();
|
|
4666
|
+
}
|
|
4765
4667
|
if (cleanValue.indexOf(":") >= 0) {
|
|
4766
4668
|
cleanValue = cleanValue.split(":")[0];
|
|
4767
4669
|
}
|
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.130.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|