@aws-sdk/client-amplify 3.306.0 → 3.310.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/CreateAppCommand.js +2 -2
- package/dist-cjs/commands/CreateBackendEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/CreateBranchCommand.js +2 -2
- package/dist-cjs/commands/CreateDeploymentCommand.js +2 -2
- package/dist-cjs/commands/CreateDomainAssociationCommand.js +2 -2
- package/dist-cjs/commands/CreateWebhookCommand.js +2 -2
- package/dist-cjs/commands/DeleteAppCommand.js +2 -2
- package/dist-cjs/commands/DeleteBackendEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/DeleteBranchCommand.js +2 -2
- package/dist-cjs/commands/DeleteDomainAssociationCommand.js +2 -2
- package/dist-cjs/commands/DeleteJobCommand.js +2 -2
- package/dist-cjs/commands/DeleteWebhookCommand.js +2 -2
- package/dist-cjs/commands/GenerateAccessLogsCommand.js +2 -2
- package/dist-cjs/commands/GetAppCommand.js +2 -2
- package/dist-cjs/commands/GetArtifactUrlCommand.js +2 -2
- package/dist-cjs/commands/GetBackendEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/GetBranchCommand.js +2 -2
- package/dist-cjs/commands/GetDomainAssociationCommand.js +2 -2
- package/dist-cjs/commands/GetJobCommand.js +2 -2
- package/dist-cjs/commands/GetWebhookCommand.js +2 -2
- package/dist-cjs/commands/ListAppsCommand.js +2 -2
- package/dist-cjs/commands/ListArtifactsCommand.js +2 -2
- package/dist-cjs/commands/ListBackendEnvironmentsCommand.js +2 -2
- package/dist-cjs/commands/ListBranchesCommand.js +2 -2
- package/dist-cjs/commands/ListDomainAssociationsCommand.js +2 -2
- package/dist-cjs/commands/ListJobsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListWebhooksCommand.js +2 -2
- package/dist-cjs/commands/StartDeploymentCommand.js +2 -2
- package/dist-cjs/commands/StartJobCommand.js +2 -2
- package/dist-cjs/commands/StopJobCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateAppCommand.js +2 -2
- package/dist-cjs/commands/UpdateBranchCommand.js +2 -2
- package/dist-cjs/commands/UpdateDomainAssociationCommand.js +2 -2
- package/dist-cjs/commands/UpdateWebhookCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +518 -530
- package/dist-es/commands/CreateAppCommand.js +3 -3
- package/dist-es/commands/CreateBackendEnvironmentCommand.js +3 -3
- package/dist-es/commands/CreateBranchCommand.js +3 -3
- package/dist-es/commands/CreateDeploymentCommand.js +3 -3
- package/dist-es/commands/CreateDomainAssociationCommand.js +3 -3
- package/dist-es/commands/CreateWebhookCommand.js +3 -3
- package/dist-es/commands/DeleteAppCommand.js +3 -3
- package/dist-es/commands/DeleteBackendEnvironmentCommand.js +3 -3
- package/dist-es/commands/DeleteBranchCommand.js +3 -3
- package/dist-es/commands/DeleteDomainAssociationCommand.js +3 -3
- package/dist-es/commands/DeleteJobCommand.js +3 -3
- package/dist-es/commands/DeleteWebhookCommand.js +3 -3
- package/dist-es/commands/GenerateAccessLogsCommand.js +3 -3
- package/dist-es/commands/GetAppCommand.js +3 -3
- package/dist-es/commands/GetArtifactUrlCommand.js +3 -3
- package/dist-es/commands/GetBackendEnvironmentCommand.js +3 -3
- package/dist-es/commands/GetBranchCommand.js +3 -3
- package/dist-es/commands/GetDomainAssociationCommand.js +3 -3
- package/dist-es/commands/GetJobCommand.js +3 -3
- package/dist-es/commands/GetWebhookCommand.js +3 -3
- package/dist-es/commands/ListAppsCommand.js +3 -3
- package/dist-es/commands/ListArtifactsCommand.js +3 -3
- package/dist-es/commands/ListBackendEnvironmentsCommand.js +3 -3
- package/dist-es/commands/ListBranchesCommand.js +3 -3
- package/dist-es/commands/ListDomainAssociationsCommand.js +3 -3
- package/dist-es/commands/ListJobsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListWebhooksCommand.js +3 -3
- package/dist-es/commands/StartDeploymentCommand.js +3 -3
- package/dist-es/commands/StartJobCommand.js +3 -3
- package/dist-es/commands/StopJobCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateAppCommand.js +3 -3
- package/dist-es/commands/UpdateBranchCommand.js +3 -3
- package/dist-es/commands/UpdateDomainAssociationCommand.js +3 -3
- package/dist-es/commands/UpdateWebhookCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +442 -454
- package/dist-types/protocols/Aws_restJson1.d.ts +296 -74
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +74 -74
- package/package.json +35 -35
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AmplifyServiceException as __BaseException } from "../models/AmplifyServiceException";
|
|
4
4
|
import { BadRequestException, DependentServiceFailureException, InternalFailureException, LimitExceededException, NotFoundException, ResourceNotFoundException, UnauthorizedException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_CreateAppCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
@@ -12,29 +12,29 @@ export const serializeAws_restJson1CreateAppCommand = async (input, context) =>
|
|
|
12
12
|
body = JSON.stringify({
|
|
13
13
|
...(input.accessToken != null && { accessToken: input.accessToken }),
|
|
14
14
|
...(input.autoBranchCreationConfig != null && {
|
|
15
|
-
autoBranchCreationConfig:
|
|
15
|
+
autoBranchCreationConfig: se_AutoBranchCreationConfig(input.autoBranchCreationConfig, context),
|
|
16
16
|
}),
|
|
17
17
|
...(input.autoBranchCreationPatterns != null && {
|
|
18
|
-
autoBranchCreationPatterns:
|
|
18
|
+
autoBranchCreationPatterns: se_AutoBranchCreationPatterns(input.autoBranchCreationPatterns, context),
|
|
19
19
|
}),
|
|
20
20
|
...(input.basicAuthCredentials != null && { basicAuthCredentials: input.basicAuthCredentials }),
|
|
21
21
|
...(input.buildSpec != null && { buildSpec: input.buildSpec }),
|
|
22
22
|
...(input.customHeaders != null && { customHeaders: input.customHeaders }),
|
|
23
|
-
...(input.customRules != null && { customRules:
|
|
23
|
+
...(input.customRules != null && { customRules: se_CustomRules(input.customRules, context) }),
|
|
24
24
|
...(input.description != null && { description: input.description }),
|
|
25
25
|
...(input.enableAutoBranchCreation != null && { enableAutoBranchCreation: input.enableAutoBranchCreation }),
|
|
26
26
|
...(input.enableBasicAuth != null && { enableBasicAuth: input.enableBasicAuth }),
|
|
27
27
|
...(input.enableBranchAutoBuild != null && { enableBranchAutoBuild: input.enableBranchAutoBuild }),
|
|
28
28
|
...(input.enableBranchAutoDeletion != null && { enableBranchAutoDeletion: input.enableBranchAutoDeletion }),
|
|
29
29
|
...(input.environmentVariables != null && {
|
|
30
|
-
environmentVariables:
|
|
30
|
+
environmentVariables: se_EnvironmentVariables(input.environmentVariables, context),
|
|
31
31
|
}),
|
|
32
32
|
...(input.iamServiceRoleArn != null && { iamServiceRoleArn: input.iamServiceRoleArn }),
|
|
33
33
|
...(input.name != null && { name: input.name }),
|
|
34
34
|
...(input.oauthToken != null && { oauthToken: input.oauthToken }),
|
|
35
35
|
...(input.platform != null && { platform: input.platform }),
|
|
36
36
|
...(input.repository != null && { repository: input.repository }),
|
|
37
|
-
...(input.tags != null && { tags:
|
|
37
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
38
38
|
});
|
|
39
39
|
return new __HttpRequest({
|
|
40
40
|
protocol,
|
|
@@ -46,7 +46,7 @@ export const serializeAws_restJson1CreateAppCommand = async (input, context) =>
|
|
|
46
46
|
body,
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
-
export const
|
|
49
|
+
export const se_CreateBackendEnvironmentCommand = async (input, context) => {
|
|
50
50
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
51
51
|
const headers = {
|
|
52
52
|
"content-type": "application/json",
|
|
@@ -69,7 +69,7 @@ export const serializeAws_restJson1CreateBackendEnvironmentCommand = async (inpu
|
|
|
69
69
|
body,
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
|
-
export const
|
|
72
|
+
export const se_CreateBranchCommand = async (input, context) => {
|
|
73
73
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
74
74
|
const headers = {
|
|
75
75
|
"content-type": "application/json",
|
|
@@ -90,12 +90,12 @@ export const serializeAws_restJson1CreateBranchCommand = async (input, context)
|
|
|
90
90
|
...(input.enablePerformanceMode != null && { enablePerformanceMode: input.enablePerformanceMode }),
|
|
91
91
|
...(input.enablePullRequestPreview != null && { enablePullRequestPreview: input.enablePullRequestPreview }),
|
|
92
92
|
...(input.environmentVariables != null && {
|
|
93
|
-
environmentVariables:
|
|
93
|
+
environmentVariables: se_EnvironmentVariables(input.environmentVariables, context),
|
|
94
94
|
}),
|
|
95
95
|
...(input.framework != null && { framework: input.framework }),
|
|
96
96
|
...(input.pullRequestEnvironmentName != null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName }),
|
|
97
97
|
...(input.stage != null && { stage: input.stage }),
|
|
98
|
-
...(input.tags != null && { tags:
|
|
98
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
99
99
|
...(input.ttl != null && { ttl: input.ttl }),
|
|
100
100
|
});
|
|
101
101
|
return new __HttpRequest({
|
|
@@ -108,7 +108,7 @@ export const serializeAws_restJson1CreateBranchCommand = async (input, context)
|
|
|
108
108
|
body,
|
|
109
109
|
});
|
|
110
110
|
};
|
|
111
|
-
export const
|
|
111
|
+
export const se_CreateDeploymentCommand = async (input, context) => {
|
|
112
112
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
113
113
|
const headers = {
|
|
114
114
|
"content-type": "application/json",
|
|
@@ -119,7 +119,7 @@ export const serializeAws_restJson1CreateDeploymentCommand = async (input, conte
|
|
|
119
119
|
resolvedPath = __resolvedPath(resolvedPath, input, "branchName", () => input.branchName, "{branchName}", false);
|
|
120
120
|
let body;
|
|
121
121
|
body = JSON.stringify({
|
|
122
|
-
...(input.fileMap != null && { fileMap:
|
|
122
|
+
...(input.fileMap != null && { fileMap: se_FileMap(input.fileMap, context) }),
|
|
123
123
|
});
|
|
124
124
|
return new __HttpRequest({
|
|
125
125
|
protocol,
|
|
@@ -131,7 +131,7 @@ export const serializeAws_restJson1CreateDeploymentCommand = async (input, conte
|
|
|
131
131
|
body,
|
|
132
132
|
});
|
|
133
133
|
};
|
|
134
|
-
export const
|
|
134
|
+
export const se_CreateDomainAssociationCommand = async (input, context) => {
|
|
135
135
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
136
136
|
const headers = {
|
|
137
137
|
"content-type": "application/json",
|
|
@@ -141,13 +141,13 @@ export const serializeAws_restJson1CreateDomainAssociationCommand = async (input
|
|
|
141
141
|
let body;
|
|
142
142
|
body = JSON.stringify({
|
|
143
143
|
...(input.autoSubDomainCreationPatterns != null && {
|
|
144
|
-
autoSubDomainCreationPatterns:
|
|
144
|
+
autoSubDomainCreationPatterns: se_AutoSubDomainCreationPatterns(input.autoSubDomainCreationPatterns, context),
|
|
145
145
|
}),
|
|
146
146
|
...(input.autoSubDomainIAMRole != null && { autoSubDomainIAMRole: input.autoSubDomainIAMRole }),
|
|
147
147
|
...(input.domainName != null && { domainName: input.domainName }),
|
|
148
148
|
...(input.enableAutoSubDomain != null && { enableAutoSubDomain: input.enableAutoSubDomain }),
|
|
149
149
|
...(input.subDomainSettings != null && {
|
|
150
|
-
subDomainSettings:
|
|
150
|
+
subDomainSettings: se_SubDomainSettings(input.subDomainSettings, context),
|
|
151
151
|
}),
|
|
152
152
|
});
|
|
153
153
|
return new __HttpRequest({
|
|
@@ -160,7 +160,7 @@ export const serializeAws_restJson1CreateDomainAssociationCommand = async (input
|
|
|
160
160
|
body,
|
|
161
161
|
});
|
|
162
162
|
};
|
|
163
|
-
export const
|
|
163
|
+
export const se_CreateWebhookCommand = async (input, context) => {
|
|
164
164
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
165
165
|
const headers = {
|
|
166
166
|
"content-type": "application/json",
|
|
@@ -182,7 +182,7 @@ export const serializeAws_restJson1CreateWebhookCommand = async (input, context)
|
|
|
182
182
|
body,
|
|
183
183
|
});
|
|
184
184
|
};
|
|
185
|
-
export const
|
|
185
|
+
export const se_DeleteAppCommand = async (input, context) => {
|
|
186
186
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
187
187
|
const headers = {};
|
|
188
188
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}";
|
|
@@ -198,7 +198,7 @@ export const serializeAws_restJson1DeleteAppCommand = async (input, context) =>
|
|
|
198
198
|
body,
|
|
199
199
|
});
|
|
200
200
|
};
|
|
201
|
-
export const
|
|
201
|
+
export const se_DeleteBackendEnvironmentCommand = async (input, context) => {
|
|
202
202
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
203
203
|
const headers = {};
|
|
204
204
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -216,7 +216,7 @@ export const serializeAws_restJson1DeleteBackendEnvironmentCommand = async (inpu
|
|
|
216
216
|
body,
|
|
217
217
|
});
|
|
218
218
|
};
|
|
219
|
-
export const
|
|
219
|
+
export const se_DeleteBranchCommand = async (input, context) => {
|
|
220
220
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
221
221
|
const headers = {};
|
|
222
222
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches/{branchName}";
|
|
@@ -233,7 +233,7 @@ export const serializeAws_restJson1DeleteBranchCommand = async (input, context)
|
|
|
233
233
|
body,
|
|
234
234
|
});
|
|
235
235
|
};
|
|
236
|
-
export const
|
|
236
|
+
export const se_DeleteDomainAssociationCommand = async (input, context) => {
|
|
237
237
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
238
238
|
const headers = {};
|
|
239
239
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/domains/{domainName}";
|
|
@@ -250,7 +250,7 @@ export const serializeAws_restJson1DeleteDomainAssociationCommand = async (input
|
|
|
250
250
|
body,
|
|
251
251
|
});
|
|
252
252
|
};
|
|
253
|
-
export const
|
|
253
|
+
export const se_DeleteJobCommand = async (input, context) => {
|
|
254
254
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
255
255
|
const headers = {};
|
|
256
256
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -269,7 +269,7 @@ export const serializeAws_restJson1DeleteJobCommand = async (input, context) =>
|
|
|
269
269
|
body,
|
|
270
270
|
});
|
|
271
271
|
};
|
|
272
|
-
export const
|
|
272
|
+
export const se_DeleteWebhookCommand = async (input, context) => {
|
|
273
273
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
274
274
|
const headers = {};
|
|
275
275
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/webhooks/{webhookId}";
|
|
@@ -285,7 +285,7 @@ export const serializeAws_restJson1DeleteWebhookCommand = async (input, context)
|
|
|
285
285
|
body,
|
|
286
286
|
});
|
|
287
287
|
};
|
|
288
|
-
export const
|
|
288
|
+
export const se_GenerateAccessLogsCommand = async (input, context) => {
|
|
289
289
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
290
290
|
const headers = {
|
|
291
291
|
"content-type": "application/json",
|
|
@@ -308,7 +308,7 @@ export const serializeAws_restJson1GenerateAccessLogsCommand = async (input, con
|
|
|
308
308
|
body,
|
|
309
309
|
});
|
|
310
310
|
};
|
|
311
|
-
export const
|
|
311
|
+
export const se_GetAppCommand = async (input, context) => {
|
|
312
312
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
313
313
|
const headers = {};
|
|
314
314
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}";
|
|
@@ -324,7 +324,7 @@ export const serializeAws_restJson1GetAppCommand = async (input, context) => {
|
|
|
324
324
|
body,
|
|
325
325
|
});
|
|
326
326
|
};
|
|
327
|
-
export const
|
|
327
|
+
export const se_GetArtifactUrlCommand = async (input, context) => {
|
|
328
328
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
329
329
|
const headers = {};
|
|
330
330
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/artifacts/{artifactId}";
|
|
@@ -340,7 +340,7 @@ export const serializeAws_restJson1GetArtifactUrlCommand = async (input, context
|
|
|
340
340
|
body,
|
|
341
341
|
});
|
|
342
342
|
};
|
|
343
|
-
export const
|
|
343
|
+
export const se_GetBackendEnvironmentCommand = async (input, context) => {
|
|
344
344
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
345
345
|
const headers = {};
|
|
346
346
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -358,7 +358,7 @@ export const serializeAws_restJson1GetBackendEnvironmentCommand = async (input,
|
|
|
358
358
|
body,
|
|
359
359
|
});
|
|
360
360
|
};
|
|
361
|
-
export const
|
|
361
|
+
export const se_GetBranchCommand = async (input, context) => {
|
|
362
362
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
363
363
|
const headers = {};
|
|
364
364
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches/{branchName}";
|
|
@@ -375,7 +375,7 @@ export const serializeAws_restJson1GetBranchCommand = async (input, context) =>
|
|
|
375
375
|
body,
|
|
376
376
|
});
|
|
377
377
|
};
|
|
378
|
-
export const
|
|
378
|
+
export const se_GetDomainAssociationCommand = async (input, context) => {
|
|
379
379
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
380
380
|
const headers = {};
|
|
381
381
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/domains/{domainName}";
|
|
@@ -392,7 +392,7 @@ export const serializeAws_restJson1GetDomainAssociationCommand = async (input, c
|
|
|
392
392
|
body,
|
|
393
393
|
});
|
|
394
394
|
};
|
|
395
|
-
export const
|
|
395
|
+
export const se_GetJobCommand = async (input, context) => {
|
|
396
396
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
397
397
|
const headers = {};
|
|
398
398
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -411,7 +411,7 @@ export const serializeAws_restJson1GetJobCommand = async (input, context) => {
|
|
|
411
411
|
body,
|
|
412
412
|
});
|
|
413
413
|
};
|
|
414
|
-
export const
|
|
414
|
+
export const se_GetWebhookCommand = async (input, context) => {
|
|
415
415
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
416
416
|
const headers = {};
|
|
417
417
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/webhooks/{webhookId}";
|
|
@@ -427,7 +427,7 @@ export const serializeAws_restJson1GetWebhookCommand = async (input, context) =>
|
|
|
427
427
|
body,
|
|
428
428
|
});
|
|
429
429
|
};
|
|
430
|
-
export const
|
|
430
|
+
export const se_ListAppsCommand = async (input, context) => {
|
|
431
431
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
432
432
|
const headers = {};
|
|
433
433
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps";
|
|
@@ -447,7 +447,7 @@ export const serializeAws_restJson1ListAppsCommand = async (input, context) => {
|
|
|
447
447
|
body,
|
|
448
448
|
});
|
|
449
449
|
};
|
|
450
|
-
export const
|
|
450
|
+
export const se_ListArtifactsCommand = async (input, context) => {
|
|
451
451
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
452
452
|
const headers = {};
|
|
453
453
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -471,7 +471,7 @@ export const serializeAws_restJson1ListArtifactsCommand = async (input, context)
|
|
|
471
471
|
body,
|
|
472
472
|
});
|
|
473
473
|
};
|
|
474
|
-
export const
|
|
474
|
+
export const se_ListBackendEnvironmentsCommand = async (input, context) => {
|
|
475
475
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
476
476
|
const headers = {};
|
|
477
477
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/backendenvironments";
|
|
@@ -493,7 +493,7 @@ export const serializeAws_restJson1ListBackendEnvironmentsCommand = async (input
|
|
|
493
493
|
body,
|
|
494
494
|
});
|
|
495
495
|
};
|
|
496
|
-
export const
|
|
496
|
+
export const se_ListBranchesCommand = async (input, context) => {
|
|
497
497
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
498
498
|
const headers = {};
|
|
499
499
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches";
|
|
@@ -514,7 +514,7 @@ export const serializeAws_restJson1ListBranchesCommand = async (input, context)
|
|
|
514
514
|
body,
|
|
515
515
|
});
|
|
516
516
|
};
|
|
517
|
-
export const
|
|
517
|
+
export const se_ListDomainAssociationsCommand = async (input, context) => {
|
|
518
518
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
519
519
|
const headers = {};
|
|
520
520
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/domains";
|
|
@@ -535,7 +535,7 @@ export const serializeAws_restJson1ListDomainAssociationsCommand = async (input,
|
|
|
535
535
|
body,
|
|
536
536
|
});
|
|
537
537
|
};
|
|
538
|
-
export const
|
|
538
|
+
export const se_ListJobsCommand = async (input, context) => {
|
|
539
539
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
540
540
|
const headers = {};
|
|
541
541
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches/{branchName}/jobs";
|
|
@@ -557,7 +557,7 @@ export const serializeAws_restJson1ListJobsCommand = async (input, context) => {
|
|
|
557
557
|
body,
|
|
558
558
|
});
|
|
559
559
|
};
|
|
560
|
-
export const
|
|
560
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
561
561
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
562
562
|
const headers = {};
|
|
563
563
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -573,7 +573,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
573
573
|
body,
|
|
574
574
|
});
|
|
575
575
|
};
|
|
576
|
-
export const
|
|
576
|
+
export const se_ListWebhooksCommand = async (input, context) => {
|
|
577
577
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
578
578
|
const headers = {};
|
|
579
579
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/webhooks";
|
|
@@ -594,7 +594,7 @@ export const serializeAws_restJson1ListWebhooksCommand = async (input, context)
|
|
|
594
594
|
body,
|
|
595
595
|
});
|
|
596
596
|
};
|
|
597
|
-
export const
|
|
597
|
+
export const se_StartDeploymentCommand = async (input, context) => {
|
|
598
598
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
599
599
|
const headers = {
|
|
600
600
|
"content-type": "application/json",
|
|
@@ -618,7 +618,7 @@ export const serializeAws_restJson1StartDeploymentCommand = async (input, contex
|
|
|
618
618
|
body,
|
|
619
619
|
});
|
|
620
620
|
};
|
|
621
|
-
export const
|
|
621
|
+
export const se_StartJobCommand = async (input, context) => {
|
|
622
622
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
623
623
|
const headers = {
|
|
624
624
|
"content-type": "application/json",
|
|
@@ -645,7 +645,7 @@ export const serializeAws_restJson1StartJobCommand = async (input, context) => {
|
|
|
645
645
|
body,
|
|
646
646
|
});
|
|
647
647
|
};
|
|
648
|
-
export const
|
|
648
|
+
export const se_StopJobCommand = async (input, context) => {
|
|
649
649
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
650
650
|
const headers = {};
|
|
651
651
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -664,7 +664,7 @@ export const serializeAws_restJson1StopJobCommand = async (input, context) => {
|
|
|
664
664
|
body,
|
|
665
665
|
});
|
|
666
666
|
};
|
|
667
|
-
export const
|
|
667
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
668
668
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
669
669
|
const headers = {
|
|
670
670
|
"content-type": "application/json",
|
|
@@ -673,7 +673,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
673
673
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
674
674
|
let body;
|
|
675
675
|
body = JSON.stringify({
|
|
676
|
-
...(input.tags != null && { tags:
|
|
676
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
677
677
|
});
|
|
678
678
|
return new __HttpRequest({
|
|
679
679
|
protocol,
|
|
@@ -685,7 +685,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
685
685
|
body,
|
|
686
686
|
});
|
|
687
687
|
};
|
|
688
|
-
export const
|
|
688
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
689
689
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
690
690
|
const headers = {};
|
|
691
691
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -708,7 +708,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
708
708
|
body,
|
|
709
709
|
});
|
|
710
710
|
};
|
|
711
|
-
export const
|
|
711
|
+
export const se_UpdateAppCommand = async (input, context) => {
|
|
712
712
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
713
713
|
const headers = {
|
|
714
714
|
"content-type": "application/json",
|
|
@@ -719,22 +719,22 @@ export const serializeAws_restJson1UpdateAppCommand = async (input, context) =>
|
|
|
719
719
|
body = JSON.stringify({
|
|
720
720
|
...(input.accessToken != null && { accessToken: input.accessToken }),
|
|
721
721
|
...(input.autoBranchCreationConfig != null && {
|
|
722
|
-
autoBranchCreationConfig:
|
|
722
|
+
autoBranchCreationConfig: se_AutoBranchCreationConfig(input.autoBranchCreationConfig, context),
|
|
723
723
|
}),
|
|
724
724
|
...(input.autoBranchCreationPatterns != null && {
|
|
725
|
-
autoBranchCreationPatterns:
|
|
725
|
+
autoBranchCreationPatterns: se_AutoBranchCreationPatterns(input.autoBranchCreationPatterns, context),
|
|
726
726
|
}),
|
|
727
727
|
...(input.basicAuthCredentials != null && { basicAuthCredentials: input.basicAuthCredentials }),
|
|
728
728
|
...(input.buildSpec != null && { buildSpec: input.buildSpec }),
|
|
729
729
|
...(input.customHeaders != null && { customHeaders: input.customHeaders }),
|
|
730
|
-
...(input.customRules != null && { customRules:
|
|
730
|
+
...(input.customRules != null && { customRules: se_CustomRules(input.customRules, context) }),
|
|
731
731
|
...(input.description != null && { description: input.description }),
|
|
732
732
|
...(input.enableAutoBranchCreation != null && { enableAutoBranchCreation: input.enableAutoBranchCreation }),
|
|
733
733
|
...(input.enableBasicAuth != null && { enableBasicAuth: input.enableBasicAuth }),
|
|
734
734
|
...(input.enableBranchAutoBuild != null && { enableBranchAutoBuild: input.enableBranchAutoBuild }),
|
|
735
735
|
...(input.enableBranchAutoDeletion != null && { enableBranchAutoDeletion: input.enableBranchAutoDeletion }),
|
|
736
736
|
...(input.environmentVariables != null && {
|
|
737
|
-
environmentVariables:
|
|
737
|
+
environmentVariables: se_EnvironmentVariables(input.environmentVariables, context),
|
|
738
738
|
}),
|
|
739
739
|
...(input.iamServiceRoleArn != null && { iamServiceRoleArn: input.iamServiceRoleArn }),
|
|
740
740
|
...(input.name != null && { name: input.name }),
|
|
@@ -752,7 +752,7 @@ export const serializeAws_restJson1UpdateAppCommand = async (input, context) =>
|
|
|
752
752
|
body,
|
|
753
753
|
});
|
|
754
754
|
};
|
|
755
|
-
export const
|
|
755
|
+
export const se_UpdateBranchCommand = async (input, context) => {
|
|
756
756
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
757
757
|
const headers = {
|
|
758
758
|
"content-type": "application/json",
|
|
@@ -773,7 +773,7 @@ export const serializeAws_restJson1UpdateBranchCommand = async (input, context)
|
|
|
773
773
|
...(input.enablePerformanceMode != null && { enablePerformanceMode: input.enablePerformanceMode }),
|
|
774
774
|
...(input.enablePullRequestPreview != null && { enablePullRequestPreview: input.enablePullRequestPreview }),
|
|
775
775
|
...(input.environmentVariables != null && {
|
|
776
|
-
environmentVariables:
|
|
776
|
+
environmentVariables: se_EnvironmentVariables(input.environmentVariables, context),
|
|
777
777
|
}),
|
|
778
778
|
...(input.framework != null && { framework: input.framework }),
|
|
779
779
|
...(input.pullRequestEnvironmentName != null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName }),
|
|
@@ -790,7 +790,7 @@ export const serializeAws_restJson1UpdateBranchCommand = async (input, context)
|
|
|
790
790
|
body,
|
|
791
791
|
});
|
|
792
792
|
};
|
|
793
|
-
export const
|
|
793
|
+
export const se_UpdateDomainAssociationCommand = async (input, context) => {
|
|
794
794
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
795
795
|
const headers = {
|
|
796
796
|
"content-type": "application/json",
|
|
@@ -801,12 +801,12 @@ export const serializeAws_restJson1UpdateDomainAssociationCommand = async (input
|
|
|
801
801
|
let body;
|
|
802
802
|
body = JSON.stringify({
|
|
803
803
|
...(input.autoSubDomainCreationPatterns != null && {
|
|
804
|
-
autoSubDomainCreationPatterns:
|
|
804
|
+
autoSubDomainCreationPatterns: se_AutoSubDomainCreationPatterns(input.autoSubDomainCreationPatterns, context),
|
|
805
805
|
}),
|
|
806
806
|
...(input.autoSubDomainIAMRole != null && { autoSubDomainIAMRole: input.autoSubDomainIAMRole }),
|
|
807
807
|
...(input.enableAutoSubDomain != null && { enableAutoSubDomain: input.enableAutoSubDomain }),
|
|
808
808
|
...(input.subDomainSettings != null && {
|
|
809
|
-
subDomainSettings:
|
|
809
|
+
subDomainSettings: se_SubDomainSettings(input.subDomainSettings, context),
|
|
810
810
|
}),
|
|
811
811
|
});
|
|
812
812
|
return new __HttpRequest({
|
|
@@ -819,7 +819,7 @@ export const serializeAws_restJson1UpdateDomainAssociationCommand = async (input
|
|
|
819
819
|
body,
|
|
820
820
|
});
|
|
821
821
|
};
|
|
822
|
-
export const
|
|
822
|
+
export const se_UpdateWebhookCommand = async (input, context) => {
|
|
823
823
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
824
824
|
const headers = {
|
|
825
825
|
"content-type": "application/json",
|
|
@@ -841,20 +841,20 @@ export const serializeAws_restJson1UpdateWebhookCommand = async (input, context)
|
|
|
841
841
|
body,
|
|
842
842
|
});
|
|
843
843
|
};
|
|
844
|
-
export const
|
|
844
|
+
export const de_CreateAppCommand = async (output, context) => {
|
|
845
845
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
846
|
-
return
|
|
846
|
+
return de_CreateAppCommandError(output, context);
|
|
847
847
|
}
|
|
848
848
|
const contents = map({
|
|
849
849
|
$metadata: deserializeMetadata(output),
|
|
850
850
|
});
|
|
851
851
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
852
852
|
if (data.app != null) {
|
|
853
|
-
contents.app =
|
|
853
|
+
contents.app = de_App(data.app, context);
|
|
854
854
|
}
|
|
855
855
|
return contents;
|
|
856
856
|
};
|
|
857
|
-
const
|
|
857
|
+
const de_CreateAppCommandError = async (output, context) => {
|
|
858
858
|
const parsedOutput = {
|
|
859
859
|
...output,
|
|
860
860
|
body: await parseErrorBody(output.body, context),
|
|
@@ -863,19 +863,19 @@ const deserializeAws_restJson1CreateAppCommandError = async (output, context) =>
|
|
|
863
863
|
switch (errorCode) {
|
|
864
864
|
case "BadRequestException":
|
|
865
865
|
case "com.amazonaws.amplify#BadRequestException":
|
|
866
|
-
throw await
|
|
866
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
867
867
|
case "DependentServiceFailureException":
|
|
868
868
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
869
|
-
throw await
|
|
869
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
870
870
|
case "InternalFailureException":
|
|
871
871
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
872
|
-
throw await
|
|
872
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
873
873
|
case "LimitExceededException":
|
|
874
874
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
875
|
-
throw await
|
|
875
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
876
876
|
case "UnauthorizedException":
|
|
877
877
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
878
|
-
throw await
|
|
878
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
879
879
|
default:
|
|
880
880
|
const parsedBody = parsedOutput.body;
|
|
881
881
|
throwDefaultError({
|
|
@@ -886,20 +886,20 @@ const deserializeAws_restJson1CreateAppCommandError = async (output, context) =>
|
|
|
886
886
|
});
|
|
887
887
|
}
|
|
888
888
|
};
|
|
889
|
-
export const
|
|
889
|
+
export const de_CreateBackendEnvironmentCommand = async (output, context) => {
|
|
890
890
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
891
|
-
return
|
|
891
|
+
return de_CreateBackendEnvironmentCommandError(output, context);
|
|
892
892
|
}
|
|
893
893
|
const contents = map({
|
|
894
894
|
$metadata: deserializeMetadata(output),
|
|
895
895
|
});
|
|
896
896
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
897
897
|
if (data.backendEnvironment != null) {
|
|
898
|
-
contents.backendEnvironment =
|
|
898
|
+
contents.backendEnvironment = de_BackendEnvironment(data.backendEnvironment, context);
|
|
899
899
|
}
|
|
900
900
|
return contents;
|
|
901
901
|
};
|
|
902
|
-
const
|
|
902
|
+
const de_CreateBackendEnvironmentCommandError = async (output, context) => {
|
|
903
903
|
const parsedOutput = {
|
|
904
904
|
...output,
|
|
905
905
|
body: await parseErrorBody(output.body, context),
|
|
@@ -908,19 +908,19 @@ const deserializeAws_restJson1CreateBackendEnvironmentCommandError = async (outp
|
|
|
908
908
|
switch (errorCode) {
|
|
909
909
|
case "BadRequestException":
|
|
910
910
|
case "com.amazonaws.amplify#BadRequestException":
|
|
911
|
-
throw await
|
|
911
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
912
912
|
case "InternalFailureException":
|
|
913
913
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
914
|
-
throw await
|
|
914
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
915
915
|
case "LimitExceededException":
|
|
916
916
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
917
|
-
throw await
|
|
917
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
918
918
|
case "NotFoundException":
|
|
919
919
|
case "com.amazonaws.amplify#NotFoundException":
|
|
920
|
-
throw await
|
|
920
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
921
921
|
case "UnauthorizedException":
|
|
922
922
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
923
|
-
throw await
|
|
923
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
924
924
|
default:
|
|
925
925
|
const parsedBody = parsedOutput.body;
|
|
926
926
|
throwDefaultError({
|
|
@@ -931,20 +931,20 @@ const deserializeAws_restJson1CreateBackendEnvironmentCommandError = async (outp
|
|
|
931
931
|
});
|
|
932
932
|
}
|
|
933
933
|
};
|
|
934
|
-
export const
|
|
934
|
+
export const de_CreateBranchCommand = async (output, context) => {
|
|
935
935
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
936
|
-
return
|
|
936
|
+
return de_CreateBranchCommandError(output, context);
|
|
937
937
|
}
|
|
938
938
|
const contents = map({
|
|
939
939
|
$metadata: deserializeMetadata(output),
|
|
940
940
|
});
|
|
941
941
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
942
942
|
if (data.branch != null) {
|
|
943
|
-
contents.branch =
|
|
943
|
+
contents.branch = de_Branch(data.branch, context);
|
|
944
944
|
}
|
|
945
945
|
return contents;
|
|
946
946
|
};
|
|
947
|
-
const
|
|
947
|
+
const de_CreateBranchCommandError = async (output, context) => {
|
|
948
948
|
const parsedOutput = {
|
|
949
949
|
...output,
|
|
950
950
|
body: await parseErrorBody(output.body, context),
|
|
@@ -953,22 +953,22 @@ const deserializeAws_restJson1CreateBranchCommandError = async (output, context)
|
|
|
953
953
|
switch (errorCode) {
|
|
954
954
|
case "BadRequestException":
|
|
955
955
|
case "com.amazonaws.amplify#BadRequestException":
|
|
956
|
-
throw await
|
|
956
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
957
957
|
case "DependentServiceFailureException":
|
|
958
958
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
959
|
-
throw await
|
|
959
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
960
960
|
case "InternalFailureException":
|
|
961
961
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
962
|
-
throw await
|
|
962
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
963
963
|
case "LimitExceededException":
|
|
964
964
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
965
|
-
throw await
|
|
965
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
966
966
|
case "NotFoundException":
|
|
967
967
|
case "com.amazonaws.amplify#NotFoundException":
|
|
968
|
-
throw await
|
|
968
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
969
969
|
case "UnauthorizedException":
|
|
970
970
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
971
|
-
throw await
|
|
971
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
972
972
|
default:
|
|
973
973
|
const parsedBody = parsedOutput.body;
|
|
974
974
|
throwDefaultError({
|
|
@@ -979,16 +979,16 @@ const deserializeAws_restJson1CreateBranchCommandError = async (output, context)
|
|
|
979
979
|
});
|
|
980
980
|
}
|
|
981
981
|
};
|
|
982
|
-
export const
|
|
982
|
+
export const de_CreateDeploymentCommand = async (output, context) => {
|
|
983
983
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
984
|
-
return
|
|
984
|
+
return de_CreateDeploymentCommandError(output, context);
|
|
985
985
|
}
|
|
986
986
|
const contents = map({
|
|
987
987
|
$metadata: deserializeMetadata(output),
|
|
988
988
|
});
|
|
989
989
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
990
990
|
if (data.fileUploadUrls != null) {
|
|
991
|
-
contents.fileUploadUrls =
|
|
991
|
+
contents.fileUploadUrls = de_FileUploadUrls(data.fileUploadUrls, context);
|
|
992
992
|
}
|
|
993
993
|
if (data.jobId != null) {
|
|
994
994
|
contents.jobId = __expectString(data.jobId);
|
|
@@ -998,7 +998,7 @@ export const deserializeAws_restJson1CreateDeploymentCommand = async (output, co
|
|
|
998
998
|
}
|
|
999
999
|
return contents;
|
|
1000
1000
|
};
|
|
1001
|
-
const
|
|
1001
|
+
const de_CreateDeploymentCommandError = async (output, context) => {
|
|
1002
1002
|
const parsedOutput = {
|
|
1003
1003
|
...output,
|
|
1004
1004
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1007,16 +1007,16 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
|
|
|
1007
1007
|
switch (errorCode) {
|
|
1008
1008
|
case "BadRequestException":
|
|
1009
1009
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1010
|
-
throw await
|
|
1010
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1011
1011
|
case "InternalFailureException":
|
|
1012
1012
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1013
|
-
throw await
|
|
1013
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1014
1014
|
case "LimitExceededException":
|
|
1015
1015
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1016
|
-
throw await
|
|
1016
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1017
1017
|
case "UnauthorizedException":
|
|
1018
1018
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1019
|
-
throw await
|
|
1019
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1020
1020
|
default:
|
|
1021
1021
|
const parsedBody = parsedOutput.body;
|
|
1022
1022
|
throwDefaultError({
|
|
@@ -1027,20 +1027,20 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
|
|
|
1027
1027
|
});
|
|
1028
1028
|
}
|
|
1029
1029
|
};
|
|
1030
|
-
export const
|
|
1030
|
+
export const de_CreateDomainAssociationCommand = async (output, context) => {
|
|
1031
1031
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1032
|
-
return
|
|
1032
|
+
return de_CreateDomainAssociationCommandError(output, context);
|
|
1033
1033
|
}
|
|
1034
1034
|
const contents = map({
|
|
1035
1035
|
$metadata: deserializeMetadata(output),
|
|
1036
1036
|
});
|
|
1037
1037
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1038
1038
|
if (data.domainAssociation != null) {
|
|
1039
|
-
contents.domainAssociation =
|
|
1039
|
+
contents.domainAssociation = de_DomainAssociation(data.domainAssociation, context);
|
|
1040
1040
|
}
|
|
1041
1041
|
return contents;
|
|
1042
1042
|
};
|
|
1043
|
-
const
|
|
1043
|
+
const de_CreateDomainAssociationCommandError = async (output, context) => {
|
|
1044
1044
|
const parsedOutput = {
|
|
1045
1045
|
...output,
|
|
1046
1046
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1049,22 +1049,22 @@ const deserializeAws_restJson1CreateDomainAssociationCommandError = async (outpu
|
|
|
1049
1049
|
switch (errorCode) {
|
|
1050
1050
|
case "BadRequestException":
|
|
1051
1051
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1052
|
-
throw await
|
|
1052
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1053
1053
|
case "DependentServiceFailureException":
|
|
1054
1054
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1055
|
-
throw await
|
|
1055
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1056
1056
|
case "InternalFailureException":
|
|
1057
1057
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1058
|
-
throw await
|
|
1058
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1059
1059
|
case "LimitExceededException":
|
|
1060
1060
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1061
|
-
throw await
|
|
1061
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1062
1062
|
case "NotFoundException":
|
|
1063
1063
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1064
|
-
throw await
|
|
1064
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1065
1065
|
case "UnauthorizedException":
|
|
1066
1066
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1067
|
-
throw await
|
|
1067
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1068
1068
|
default:
|
|
1069
1069
|
const parsedBody = parsedOutput.body;
|
|
1070
1070
|
throwDefaultError({
|
|
@@ -1075,20 +1075,20 @@ const deserializeAws_restJson1CreateDomainAssociationCommandError = async (outpu
|
|
|
1075
1075
|
});
|
|
1076
1076
|
}
|
|
1077
1077
|
};
|
|
1078
|
-
export const
|
|
1078
|
+
export const de_CreateWebhookCommand = async (output, context) => {
|
|
1079
1079
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1080
|
-
return
|
|
1080
|
+
return de_CreateWebhookCommandError(output, context);
|
|
1081
1081
|
}
|
|
1082
1082
|
const contents = map({
|
|
1083
1083
|
$metadata: deserializeMetadata(output),
|
|
1084
1084
|
});
|
|
1085
1085
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1086
1086
|
if (data.webhook != null) {
|
|
1087
|
-
contents.webhook =
|
|
1087
|
+
contents.webhook = de_Webhook(data.webhook, context);
|
|
1088
1088
|
}
|
|
1089
1089
|
return contents;
|
|
1090
1090
|
};
|
|
1091
|
-
const
|
|
1091
|
+
const de_CreateWebhookCommandError = async (output, context) => {
|
|
1092
1092
|
const parsedOutput = {
|
|
1093
1093
|
...output,
|
|
1094
1094
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1097,22 +1097,22 @@ const deserializeAws_restJson1CreateWebhookCommandError = async (output, context
|
|
|
1097
1097
|
switch (errorCode) {
|
|
1098
1098
|
case "BadRequestException":
|
|
1099
1099
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1100
|
-
throw await
|
|
1100
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1101
1101
|
case "DependentServiceFailureException":
|
|
1102
1102
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1103
|
-
throw await
|
|
1103
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1104
1104
|
case "InternalFailureException":
|
|
1105
1105
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1106
|
-
throw await
|
|
1106
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1107
1107
|
case "LimitExceededException":
|
|
1108
1108
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1109
|
-
throw await
|
|
1109
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1110
1110
|
case "NotFoundException":
|
|
1111
1111
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1112
|
-
throw await
|
|
1112
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1113
1113
|
case "UnauthorizedException":
|
|
1114
1114
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1115
|
-
throw await
|
|
1115
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1116
1116
|
default:
|
|
1117
1117
|
const parsedBody = parsedOutput.body;
|
|
1118
1118
|
throwDefaultError({
|
|
@@ -1123,20 +1123,20 @@ const deserializeAws_restJson1CreateWebhookCommandError = async (output, context
|
|
|
1123
1123
|
});
|
|
1124
1124
|
}
|
|
1125
1125
|
};
|
|
1126
|
-
export const
|
|
1126
|
+
export const de_DeleteAppCommand = async (output, context) => {
|
|
1127
1127
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1128
|
-
return
|
|
1128
|
+
return de_DeleteAppCommandError(output, context);
|
|
1129
1129
|
}
|
|
1130
1130
|
const contents = map({
|
|
1131
1131
|
$metadata: deserializeMetadata(output),
|
|
1132
1132
|
});
|
|
1133
1133
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1134
1134
|
if (data.app != null) {
|
|
1135
|
-
contents.app =
|
|
1135
|
+
contents.app = de_App(data.app, context);
|
|
1136
1136
|
}
|
|
1137
1137
|
return contents;
|
|
1138
1138
|
};
|
|
1139
|
-
const
|
|
1139
|
+
const de_DeleteAppCommandError = async (output, context) => {
|
|
1140
1140
|
const parsedOutput = {
|
|
1141
1141
|
...output,
|
|
1142
1142
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1145,19 +1145,19 @@ const deserializeAws_restJson1DeleteAppCommandError = async (output, context) =>
|
|
|
1145
1145
|
switch (errorCode) {
|
|
1146
1146
|
case "BadRequestException":
|
|
1147
1147
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1148
|
-
throw await
|
|
1148
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1149
1149
|
case "DependentServiceFailureException":
|
|
1150
1150
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1151
|
-
throw await
|
|
1151
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1152
1152
|
case "InternalFailureException":
|
|
1153
1153
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1154
|
-
throw await
|
|
1154
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1155
1155
|
case "NotFoundException":
|
|
1156
1156
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1157
|
-
throw await
|
|
1157
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1158
1158
|
case "UnauthorizedException":
|
|
1159
1159
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1160
|
-
throw await
|
|
1160
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1161
1161
|
default:
|
|
1162
1162
|
const parsedBody = parsedOutput.body;
|
|
1163
1163
|
throwDefaultError({
|
|
@@ -1168,20 +1168,20 @@ const deserializeAws_restJson1DeleteAppCommandError = async (output, context) =>
|
|
|
1168
1168
|
});
|
|
1169
1169
|
}
|
|
1170
1170
|
};
|
|
1171
|
-
export const
|
|
1171
|
+
export const de_DeleteBackendEnvironmentCommand = async (output, context) => {
|
|
1172
1172
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1173
|
-
return
|
|
1173
|
+
return de_DeleteBackendEnvironmentCommandError(output, context);
|
|
1174
1174
|
}
|
|
1175
1175
|
const contents = map({
|
|
1176
1176
|
$metadata: deserializeMetadata(output),
|
|
1177
1177
|
});
|
|
1178
1178
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1179
1179
|
if (data.backendEnvironment != null) {
|
|
1180
|
-
contents.backendEnvironment =
|
|
1180
|
+
contents.backendEnvironment = de_BackendEnvironment(data.backendEnvironment, context);
|
|
1181
1181
|
}
|
|
1182
1182
|
return contents;
|
|
1183
1183
|
};
|
|
1184
|
-
const
|
|
1184
|
+
const de_DeleteBackendEnvironmentCommandError = async (output, context) => {
|
|
1185
1185
|
const parsedOutput = {
|
|
1186
1186
|
...output,
|
|
1187
1187
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1190,19 +1190,19 @@ const deserializeAws_restJson1DeleteBackendEnvironmentCommandError = async (outp
|
|
|
1190
1190
|
switch (errorCode) {
|
|
1191
1191
|
case "BadRequestException":
|
|
1192
1192
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1193
|
-
throw await
|
|
1193
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1194
1194
|
case "DependentServiceFailureException":
|
|
1195
1195
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1196
|
-
throw await
|
|
1196
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1197
1197
|
case "InternalFailureException":
|
|
1198
1198
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1199
|
-
throw await
|
|
1199
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1200
1200
|
case "NotFoundException":
|
|
1201
1201
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1202
|
-
throw await
|
|
1202
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1203
1203
|
case "UnauthorizedException":
|
|
1204
1204
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1205
|
-
throw await
|
|
1205
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1206
1206
|
default:
|
|
1207
1207
|
const parsedBody = parsedOutput.body;
|
|
1208
1208
|
throwDefaultError({
|
|
@@ -1213,20 +1213,20 @@ const deserializeAws_restJson1DeleteBackendEnvironmentCommandError = async (outp
|
|
|
1213
1213
|
});
|
|
1214
1214
|
}
|
|
1215
1215
|
};
|
|
1216
|
-
export const
|
|
1216
|
+
export const de_DeleteBranchCommand = async (output, context) => {
|
|
1217
1217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1218
|
-
return
|
|
1218
|
+
return de_DeleteBranchCommandError(output, context);
|
|
1219
1219
|
}
|
|
1220
1220
|
const contents = map({
|
|
1221
1221
|
$metadata: deserializeMetadata(output),
|
|
1222
1222
|
});
|
|
1223
1223
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1224
1224
|
if (data.branch != null) {
|
|
1225
|
-
contents.branch =
|
|
1225
|
+
contents.branch = de_Branch(data.branch, context);
|
|
1226
1226
|
}
|
|
1227
1227
|
return contents;
|
|
1228
1228
|
};
|
|
1229
|
-
const
|
|
1229
|
+
const de_DeleteBranchCommandError = async (output, context) => {
|
|
1230
1230
|
const parsedOutput = {
|
|
1231
1231
|
...output,
|
|
1232
1232
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1235,19 +1235,19 @@ const deserializeAws_restJson1DeleteBranchCommandError = async (output, context)
|
|
|
1235
1235
|
switch (errorCode) {
|
|
1236
1236
|
case "BadRequestException":
|
|
1237
1237
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1238
|
-
throw await
|
|
1238
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1239
1239
|
case "DependentServiceFailureException":
|
|
1240
1240
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1241
|
-
throw await
|
|
1241
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1242
1242
|
case "InternalFailureException":
|
|
1243
1243
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1244
|
-
throw await
|
|
1244
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1245
1245
|
case "NotFoundException":
|
|
1246
1246
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1247
|
-
throw await
|
|
1247
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1248
1248
|
case "UnauthorizedException":
|
|
1249
1249
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1250
|
-
throw await
|
|
1250
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1251
1251
|
default:
|
|
1252
1252
|
const parsedBody = parsedOutput.body;
|
|
1253
1253
|
throwDefaultError({
|
|
@@ -1258,20 +1258,20 @@ const deserializeAws_restJson1DeleteBranchCommandError = async (output, context)
|
|
|
1258
1258
|
});
|
|
1259
1259
|
}
|
|
1260
1260
|
};
|
|
1261
|
-
export const
|
|
1261
|
+
export const de_DeleteDomainAssociationCommand = async (output, context) => {
|
|
1262
1262
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1263
|
-
return
|
|
1263
|
+
return de_DeleteDomainAssociationCommandError(output, context);
|
|
1264
1264
|
}
|
|
1265
1265
|
const contents = map({
|
|
1266
1266
|
$metadata: deserializeMetadata(output),
|
|
1267
1267
|
});
|
|
1268
1268
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1269
1269
|
if (data.domainAssociation != null) {
|
|
1270
|
-
contents.domainAssociation =
|
|
1270
|
+
contents.domainAssociation = de_DomainAssociation(data.domainAssociation, context);
|
|
1271
1271
|
}
|
|
1272
1272
|
return contents;
|
|
1273
1273
|
};
|
|
1274
|
-
const
|
|
1274
|
+
const de_DeleteDomainAssociationCommandError = async (output, context) => {
|
|
1275
1275
|
const parsedOutput = {
|
|
1276
1276
|
...output,
|
|
1277
1277
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1280,19 +1280,19 @@ const deserializeAws_restJson1DeleteDomainAssociationCommandError = async (outpu
|
|
|
1280
1280
|
switch (errorCode) {
|
|
1281
1281
|
case "BadRequestException":
|
|
1282
1282
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1283
|
-
throw await
|
|
1283
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1284
1284
|
case "DependentServiceFailureException":
|
|
1285
1285
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1286
|
-
throw await
|
|
1286
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1287
1287
|
case "InternalFailureException":
|
|
1288
1288
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1289
|
-
throw await
|
|
1289
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1290
1290
|
case "NotFoundException":
|
|
1291
1291
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1292
|
-
throw await
|
|
1292
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1293
1293
|
case "UnauthorizedException":
|
|
1294
1294
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1295
|
-
throw await
|
|
1295
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1296
1296
|
default:
|
|
1297
1297
|
const parsedBody = parsedOutput.body;
|
|
1298
1298
|
throwDefaultError({
|
|
@@ -1303,20 +1303,20 @@ const deserializeAws_restJson1DeleteDomainAssociationCommandError = async (outpu
|
|
|
1303
1303
|
});
|
|
1304
1304
|
}
|
|
1305
1305
|
};
|
|
1306
|
-
export const
|
|
1306
|
+
export const de_DeleteJobCommand = async (output, context) => {
|
|
1307
1307
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1308
|
-
return
|
|
1308
|
+
return de_DeleteJobCommandError(output, context);
|
|
1309
1309
|
}
|
|
1310
1310
|
const contents = map({
|
|
1311
1311
|
$metadata: deserializeMetadata(output),
|
|
1312
1312
|
});
|
|
1313
1313
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1314
1314
|
if (data.jobSummary != null) {
|
|
1315
|
-
contents.jobSummary =
|
|
1315
|
+
contents.jobSummary = de_JobSummary(data.jobSummary, context);
|
|
1316
1316
|
}
|
|
1317
1317
|
return contents;
|
|
1318
1318
|
};
|
|
1319
|
-
const
|
|
1319
|
+
const de_DeleteJobCommandError = async (output, context) => {
|
|
1320
1320
|
const parsedOutput = {
|
|
1321
1321
|
...output,
|
|
1322
1322
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1325,19 +1325,19 @@ const deserializeAws_restJson1DeleteJobCommandError = async (output, context) =>
|
|
|
1325
1325
|
switch (errorCode) {
|
|
1326
1326
|
case "BadRequestException":
|
|
1327
1327
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1328
|
-
throw await
|
|
1328
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1329
1329
|
case "InternalFailureException":
|
|
1330
1330
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1331
|
-
throw await
|
|
1331
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1332
1332
|
case "LimitExceededException":
|
|
1333
1333
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1334
|
-
throw await
|
|
1334
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1335
1335
|
case "NotFoundException":
|
|
1336
1336
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1337
|
-
throw await
|
|
1337
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1338
1338
|
case "UnauthorizedException":
|
|
1339
1339
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1340
|
-
throw await
|
|
1340
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1341
1341
|
default:
|
|
1342
1342
|
const parsedBody = parsedOutput.body;
|
|
1343
1343
|
throwDefaultError({
|
|
@@ -1348,20 +1348,20 @@ const deserializeAws_restJson1DeleteJobCommandError = async (output, context) =>
|
|
|
1348
1348
|
});
|
|
1349
1349
|
}
|
|
1350
1350
|
};
|
|
1351
|
-
export const
|
|
1351
|
+
export const de_DeleteWebhookCommand = async (output, context) => {
|
|
1352
1352
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1353
|
-
return
|
|
1353
|
+
return de_DeleteWebhookCommandError(output, context);
|
|
1354
1354
|
}
|
|
1355
1355
|
const contents = map({
|
|
1356
1356
|
$metadata: deserializeMetadata(output),
|
|
1357
1357
|
});
|
|
1358
1358
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1359
1359
|
if (data.webhook != null) {
|
|
1360
|
-
contents.webhook =
|
|
1360
|
+
contents.webhook = de_Webhook(data.webhook, context);
|
|
1361
1361
|
}
|
|
1362
1362
|
return contents;
|
|
1363
1363
|
};
|
|
1364
|
-
const
|
|
1364
|
+
const de_DeleteWebhookCommandError = async (output, context) => {
|
|
1365
1365
|
const parsedOutput = {
|
|
1366
1366
|
...output,
|
|
1367
1367
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1370,19 +1370,19 @@ const deserializeAws_restJson1DeleteWebhookCommandError = async (output, context
|
|
|
1370
1370
|
switch (errorCode) {
|
|
1371
1371
|
case "BadRequestException":
|
|
1372
1372
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1373
|
-
throw await
|
|
1373
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1374
1374
|
case "InternalFailureException":
|
|
1375
1375
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1376
|
-
throw await
|
|
1376
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1377
1377
|
case "LimitExceededException":
|
|
1378
1378
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1379
|
-
throw await
|
|
1379
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1380
1380
|
case "NotFoundException":
|
|
1381
1381
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1382
|
-
throw await
|
|
1382
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1383
1383
|
case "UnauthorizedException":
|
|
1384
1384
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1385
|
-
throw await
|
|
1385
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1386
1386
|
default:
|
|
1387
1387
|
const parsedBody = parsedOutput.body;
|
|
1388
1388
|
throwDefaultError({
|
|
@@ -1393,9 +1393,9 @@ const deserializeAws_restJson1DeleteWebhookCommandError = async (output, context
|
|
|
1393
1393
|
});
|
|
1394
1394
|
}
|
|
1395
1395
|
};
|
|
1396
|
-
export const
|
|
1396
|
+
export const de_GenerateAccessLogsCommand = async (output, context) => {
|
|
1397
1397
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1398
|
-
return
|
|
1398
|
+
return de_GenerateAccessLogsCommandError(output, context);
|
|
1399
1399
|
}
|
|
1400
1400
|
const contents = map({
|
|
1401
1401
|
$metadata: deserializeMetadata(output),
|
|
@@ -1406,7 +1406,7 @@ export const deserializeAws_restJson1GenerateAccessLogsCommand = async (output,
|
|
|
1406
1406
|
}
|
|
1407
1407
|
return contents;
|
|
1408
1408
|
};
|
|
1409
|
-
const
|
|
1409
|
+
const de_GenerateAccessLogsCommandError = async (output, context) => {
|
|
1410
1410
|
const parsedOutput = {
|
|
1411
1411
|
...output,
|
|
1412
1412
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1415,16 +1415,16 @@ const deserializeAws_restJson1GenerateAccessLogsCommandError = async (output, co
|
|
|
1415
1415
|
switch (errorCode) {
|
|
1416
1416
|
case "BadRequestException":
|
|
1417
1417
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1418
|
-
throw await
|
|
1418
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1419
1419
|
case "InternalFailureException":
|
|
1420
1420
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1421
|
-
throw await
|
|
1421
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1422
1422
|
case "NotFoundException":
|
|
1423
1423
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1424
|
-
throw await
|
|
1424
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1425
1425
|
case "UnauthorizedException":
|
|
1426
1426
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1427
|
-
throw await
|
|
1427
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1428
1428
|
default:
|
|
1429
1429
|
const parsedBody = parsedOutput.body;
|
|
1430
1430
|
throwDefaultError({
|
|
@@ -1435,20 +1435,20 @@ const deserializeAws_restJson1GenerateAccessLogsCommandError = async (output, co
|
|
|
1435
1435
|
});
|
|
1436
1436
|
}
|
|
1437
1437
|
};
|
|
1438
|
-
export const
|
|
1438
|
+
export const de_GetAppCommand = async (output, context) => {
|
|
1439
1439
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1440
|
-
return
|
|
1440
|
+
return de_GetAppCommandError(output, context);
|
|
1441
1441
|
}
|
|
1442
1442
|
const contents = map({
|
|
1443
1443
|
$metadata: deserializeMetadata(output),
|
|
1444
1444
|
});
|
|
1445
1445
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1446
1446
|
if (data.app != null) {
|
|
1447
|
-
contents.app =
|
|
1447
|
+
contents.app = de_App(data.app, context);
|
|
1448
1448
|
}
|
|
1449
1449
|
return contents;
|
|
1450
1450
|
};
|
|
1451
|
-
const
|
|
1451
|
+
const de_GetAppCommandError = async (output, context) => {
|
|
1452
1452
|
const parsedOutput = {
|
|
1453
1453
|
...output,
|
|
1454
1454
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1457,16 +1457,16 @@ const deserializeAws_restJson1GetAppCommandError = async (output, context) => {
|
|
|
1457
1457
|
switch (errorCode) {
|
|
1458
1458
|
case "BadRequestException":
|
|
1459
1459
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1460
|
-
throw await
|
|
1460
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1461
1461
|
case "InternalFailureException":
|
|
1462
1462
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1463
|
-
throw await
|
|
1463
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1464
1464
|
case "NotFoundException":
|
|
1465
1465
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1466
|
-
throw await
|
|
1466
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1467
1467
|
case "UnauthorizedException":
|
|
1468
1468
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1469
|
-
throw await
|
|
1469
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1470
1470
|
default:
|
|
1471
1471
|
const parsedBody = parsedOutput.body;
|
|
1472
1472
|
throwDefaultError({
|
|
@@ -1477,9 +1477,9 @@ const deserializeAws_restJson1GetAppCommandError = async (output, context) => {
|
|
|
1477
1477
|
});
|
|
1478
1478
|
}
|
|
1479
1479
|
};
|
|
1480
|
-
export const
|
|
1480
|
+
export const de_GetArtifactUrlCommand = async (output, context) => {
|
|
1481
1481
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1482
|
-
return
|
|
1482
|
+
return de_GetArtifactUrlCommandError(output, context);
|
|
1483
1483
|
}
|
|
1484
1484
|
const contents = map({
|
|
1485
1485
|
$metadata: deserializeMetadata(output),
|
|
@@ -1493,7 +1493,7 @@ export const deserializeAws_restJson1GetArtifactUrlCommand = async (output, cont
|
|
|
1493
1493
|
}
|
|
1494
1494
|
return contents;
|
|
1495
1495
|
};
|
|
1496
|
-
const
|
|
1496
|
+
const de_GetArtifactUrlCommandError = async (output, context) => {
|
|
1497
1497
|
const parsedOutput = {
|
|
1498
1498
|
...output,
|
|
1499
1499
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1502,19 +1502,19 @@ const deserializeAws_restJson1GetArtifactUrlCommandError = async (output, contex
|
|
|
1502
1502
|
switch (errorCode) {
|
|
1503
1503
|
case "BadRequestException":
|
|
1504
1504
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1505
|
-
throw await
|
|
1505
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1506
1506
|
case "InternalFailureException":
|
|
1507
1507
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1508
|
-
throw await
|
|
1508
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1509
1509
|
case "LimitExceededException":
|
|
1510
1510
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1511
|
-
throw await
|
|
1511
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1512
1512
|
case "NotFoundException":
|
|
1513
1513
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1514
|
-
throw await
|
|
1514
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1515
1515
|
case "UnauthorizedException":
|
|
1516
1516
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1517
|
-
throw await
|
|
1517
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1518
1518
|
default:
|
|
1519
1519
|
const parsedBody = parsedOutput.body;
|
|
1520
1520
|
throwDefaultError({
|
|
@@ -1525,20 +1525,20 @@ const deserializeAws_restJson1GetArtifactUrlCommandError = async (output, contex
|
|
|
1525
1525
|
});
|
|
1526
1526
|
}
|
|
1527
1527
|
};
|
|
1528
|
-
export const
|
|
1528
|
+
export const de_GetBackendEnvironmentCommand = async (output, context) => {
|
|
1529
1529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1530
|
-
return
|
|
1530
|
+
return de_GetBackendEnvironmentCommandError(output, context);
|
|
1531
1531
|
}
|
|
1532
1532
|
const contents = map({
|
|
1533
1533
|
$metadata: deserializeMetadata(output),
|
|
1534
1534
|
});
|
|
1535
1535
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1536
1536
|
if (data.backendEnvironment != null) {
|
|
1537
|
-
contents.backendEnvironment =
|
|
1537
|
+
contents.backendEnvironment = de_BackendEnvironment(data.backendEnvironment, context);
|
|
1538
1538
|
}
|
|
1539
1539
|
return contents;
|
|
1540
1540
|
};
|
|
1541
|
-
const
|
|
1541
|
+
const de_GetBackendEnvironmentCommandError = async (output, context) => {
|
|
1542
1542
|
const parsedOutput = {
|
|
1543
1543
|
...output,
|
|
1544
1544
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1547,16 +1547,16 @@ const deserializeAws_restJson1GetBackendEnvironmentCommandError = async (output,
|
|
|
1547
1547
|
switch (errorCode) {
|
|
1548
1548
|
case "BadRequestException":
|
|
1549
1549
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1550
|
-
throw await
|
|
1550
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1551
1551
|
case "InternalFailureException":
|
|
1552
1552
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1553
|
-
throw await
|
|
1553
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1554
1554
|
case "NotFoundException":
|
|
1555
1555
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1556
|
-
throw await
|
|
1556
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1557
1557
|
case "UnauthorizedException":
|
|
1558
1558
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1559
|
-
throw await
|
|
1559
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1560
1560
|
default:
|
|
1561
1561
|
const parsedBody = parsedOutput.body;
|
|
1562
1562
|
throwDefaultError({
|
|
@@ -1567,20 +1567,20 @@ const deserializeAws_restJson1GetBackendEnvironmentCommandError = async (output,
|
|
|
1567
1567
|
});
|
|
1568
1568
|
}
|
|
1569
1569
|
};
|
|
1570
|
-
export const
|
|
1570
|
+
export const de_GetBranchCommand = async (output, context) => {
|
|
1571
1571
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1572
|
-
return
|
|
1572
|
+
return de_GetBranchCommandError(output, context);
|
|
1573
1573
|
}
|
|
1574
1574
|
const contents = map({
|
|
1575
1575
|
$metadata: deserializeMetadata(output),
|
|
1576
1576
|
});
|
|
1577
1577
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1578
1578
|
if (data.branch != null) {
|
|
1579
|
-
contents.branch =
|
|
1579
|
+
contents.branch = de_Branch(data.branch, context);
|
|
1580
1580
|
}
|
|
1581
1581
|
return contents;
|
|
1582
1582
|
};
|
|
1583
|
-
const
|
|
1583
|
+
const de_GetBranchCommandError = async (output, context) => {
|
|
1584
1584
|
const parsedOutput = {
|
|
1585
1585
|
...output,
|
|
1586
1586
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1589,16 +1589,16 @@ const deserializeAws_restJson1GetBranchCommandError = async (output, context) =>
|
|
|
1589
1589
|
switch (errorCode) {
|
|
1590
1590
|
case "BadRequestException":
|
|
1591
1591
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1592
|
-
throw await
|
|
1592
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1593
1593
|
case "InternalFailureException":
|
|
1594
1594
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1595
|
-
throw await
|
|
1595
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1596
1596
|
case "NotFoundException":
|
|
1597
1597
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1598
|
-
throw await
|
|
1598
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1599
1599
|
case "UnauthorizedException":
|
|
1600
1600
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1601
|
-
throw await
|
|
1601
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1602
1602
|
default:
|
|
1603
1603
|
const parsedBody = parsedOutput.body;
|
|
1604
1604
|
throwDefaultError({
|
|
@@ -1609,20 +1609,20 @@ const deserializeAws_restJson1GetBranchCommandError = async (output, context) =>
|
|
|
1609
1609
|
});
|
|
1610
1610
|
}
|
|
1611
1611
|
};
|
|
1612
|
-
export const
|
|
1612
|
+
export const de_GetDomainAssociationCommand = async (output, context) => {
|
|
1613
1613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1614
|
-
return
|
|
1614
|
+
return de_GetDomainAssociationCommandError(output, context);
|
|
1615
1615
|
}
|
|
1616
1616
|
const contents = map({
|
|
1617
1617
|
$metadata: deserializeMetadata(output),
|
|
1618
1618
|
});
|
|
1619
1619
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1620
1620
|
if (data.domainAssociation != null) {
|
|
1621
|
-
contents.domainAssociation =
|
|
1621
|
+
contents.domainAssociation = de_DomainAssociation(data.domainAssociation, context);
|
|
1622
1622
|
}
|
|
1623
1623
|
return contents;
|
|
1624
1624
|
};
|
|
1625
|
-
const
|
|
1625
|
+
const de_GetDomainAssociationCommandError = async (output, context) => {
|
|
1626
1626
|
const parsedOutput = {
|
|
1627
1627
|
...output,
|
|
1628
1628
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1631,16 +1631,16 @@ const deserializeAws_restJson1GetDomainAssociationCommandError = async (output,
|
|
|
1631
1631
|
switch (errorCode) {
|
|
1632
1632
|
case "BadRequestException":
|
|
1633
1633
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1634
|
-
throw await
|
|
1634
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1635
1635
|
case "InternalFailureException":
|
|
1636
1636
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1637
|
-
throw await
|
|
1637
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1638
1638
|
case "NotFoundException":
|
|
1639
1639
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1640
|
-
throw await
|
|
1640
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1641
1641
|
case "UnauthorizedException":
|
|
1642
1642
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1643
|
-
throw await
|
|
1643
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1644
1644
|
default:
|
|
1645
1645
|
const parsedBody = parsedOutput.body;
|
|
1646
1646
|
throwDefaultError({
|
|
@@ -1651,20 +1651,20 @@ const deserializeAws_restJson1GetDomainAssociationCommandError = async (output,
|
|
|
1651
1651
|
});
|
|
1652
1652
|
}
|
|
1653
1653
|
};
|
|
1654
|
-
export const
|
|
1654
|
+
export const de_GetJobCommand = async (output, context) => {
|
|
1655
1655
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1656
|
-
return
|
|
1656
|
+
return de_GetJobCommandError(output, context);
|
|
1657
1657
|
}
|
|
1658
1658
|
const contents = map({
|
|
1659
1659
|
$metadata: deserializeMetadata(output),
|
|
1660
1660
|
});
|
|
1661
1661
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1662
1662
|
if (data.job != null) {
|
|
1663
|
-
contents.job =
|
|
1663
|
+
contents.job = de_Job(data.job, context);
|
|
1664
1664
|
}
|
|
1665
1665
|
return contents;
|
|
1666
1666
|
};
|
|
1667
|
-
const
|
|
1667
|
+
const de_GetJobCommandError = async (output, context) => {
|
|
1668
1668
|
const parsedOutput = {
|
|
1669
1669
|
...output,
|
|
1670
1670
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1673,19 +1673,19 @@ const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
|
|
|
1673
1673
|
switch (errorCode) {
|
|
1674
1674
|
case "BadRequestException":
|
|
1675
1675
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1676
|
-
throw await
|
|
1676
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1677
1677
|
case "InternalFailureException":
|
|
1678
1678
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1679
|
-
throw await
|
|
1679
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1680
1680
|
case "LimitExceededException":
|
|
1681
1681
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1682
|
-
throw await
|
|
1682
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1683
1683
|
case "NotFoundException":
|
|
1684
1684
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1685
|
-
throw await
|
|
1685
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1686
1686
|
case "UnauthorizedException":
|
|
1687
1687
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1688
|
-
throw await
|
|
1688
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1689
1689
|
default:
|
|
1690
1690
|
const parsedBody = parsedOutput.body;
|
|
1691
1691
|
throwDefaultError({
|
|
@@ -1696,20 +1696,20 @@ const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
|
|
|
1696
1696
|
});
|
|
1697
1697
|
}
|
|
1698
1698
|
};
|
|
1699
|
-
export const
|
|
1699
|
+
export const de_GetWebhookCommand = async (output, context) => {
|
|
1700
1700
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1701
|
-
return
|
|
1701
|
+
return de_GetWebhookCommandError(output, context);
|
|
1702
1702
|
}
|
|
1703
1703
|
const contents = map({
|
|
1704
1704
|
$metadata: deserializeMetadata(output),
|
|
1705
1705
|
});
|
|
1706
1706
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1707
1707
|
if (data.webhook != null) {
|
|
1708
|
-
contents.webhook =
|
|
1708
|
+
contents.webhook = de_Webhook(data.webhook, context);
|
|
1709
1709
|
}
|
|
1710
1710
|
return contents;
|
|
1711
1711
|
};
|
|
1712
|
-
const
|
|
1712
|
+
const de_GetWebhookCommandError = async (output, context) => {
|
|
1713
1713
|
const parsedOutput = {
|
|
1714
1714
|
...output,
|
|
1715
1715
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1718,19 +1718,19 @@ const deserializeAws_restJson1GetWebhookCommandError = async (output, context) =
|
|
|
1718
1718
|
switch (errorCode) {
|
|
1719
1719
|
case "BadRequestException":
|
|
1720
1720
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1721
|
-
throw await
|
|
1721
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1722
1722
|
case "InternalFailureException":
|
|
1723
1723
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1724
|
-
throw await
|
|
1724
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1725
1725
|
case "LimitExceededException":
|
|
1726
1726
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1727
|
-
throw await
|
|
1727
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1728
1728
|
case "NotFoundException":
|
|
1729
1729
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1730
|
-
throw await
|
|
1730
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1731
1731
|
case "UnauthorizedException":
|
|
1732
1732
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1733
|
-
throw await
|
|
1733
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1734
1734
|
default:
|
|
1735
1735
|
const parsedBody = parsedOutput.body;
|
|
1736
1736
|
throwDefaultError({
|
|
@@ -1741,23 +1741,23 @@ const deserializeAws_restJson1GetWebhookCommandError = async (output, context) =
|
|
|
1741
1741
|
});
|
|
1742
1742
|
}
|
|
1743
1743
|
};
|
|
1744
|
-
export const
|
|
1744
|
+
export const de_ListAppsCommand = async (output, context) => {
|
|
1745
1745
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1746
|
-
return
|
|
1746
|
+
return de_ListAppsCommandError(output, context);
|
|
1747
1747
|
}
|
|
1748
1748
|
const contents = map({
|
|
1749
1749
|
$metadata: deserializeMetadata(output),
|
|
1750
1750
|
});
|
|
1751
1751
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1752
1752
|
if (data.apps != null) {
|
|
1753
|
-
contents.apps =
|
|
1753
|
+
contents.apps = de_Apps(data.apps, context);
|
|
1754
1754
|
}
|
|
1755
1755
|
if (data.nextToken != null) {
|
|
1756
1756
|
contents.nextToken = __expectString(data.nextToken);
|
|
1757
1757
|
}
|
|
1758
1758
|
return contents;
|
|
1759
1759
|
};
|
|
1760
|
-
const
|
|
1760
|
+
const de_ListAppsCommandError = async (output, context) => {
|
|
1761
1761
|
const parsedOutput = {
|
|
1762
1762
|
...output,
|
|
1763
1763
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1766,13 +1766,13 @@ const deserializeAws_restJson1ListAppsCommandError = async (output, context) =>
|
|
|
1766
1766
|
switch (errorCode) {
|
|
1767
1767
|
case "BadRequestException":
|
|
1768
1768
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1769
|
-
throw await
|
|
1769
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1770
1770
|
case "InternalFailureException":
|
|
1771
1771
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1772
|
-
throw await
|
|
1772
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1773
1773
|
case "UnauthorizedException":
|
|
1774
1774
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1775
|
-
throw await
|
|
1775
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1776
1776
|
default:
|
|
1777
1777
|
const parsedBody = parsedOutput.body;
|
|
1778
1778
|
throwDefaultError({
|
|
@@ -1783,23 +1783,23 @@ const deserializeAws_restJson1ListAppsCommandError = async (output, context) =>
|
|
|
1783
1783
|
});
|
|
1784
1784
|
}
|
|
1785
1785
|
};
|
|
1786
|
-
export const
|
|
1786
|
+
export const de_ListArtifactsCommand = async (output, context) => {
|
|
1787
1787
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1788
|
-
return
|
|
1788
|
+
return de_ListArtifactsCommandError(output, context);
|
|
1789
1789
|
}
|
|
1790
1790
|
const contents = map({
|
|
1791
1791
|
$metadata: deserializeMetadata(output),
|
|
1792
1792
|
});
|
|
1793
1793
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1794
1794
|
if (data.artifacts != null) {
|
|
1795
|
-
contents.artifacts =
|
|
1795
|
+
contents.artifacts = de_Artifacts(data.artifacts, context);
|
|
1796
1796
|
}
|
|
1797
1797
|
if (data.nextToken != null) {
|
|
1798
1798
|
contents.nextToken = __expectString(data.nextToken);
|
|
1799
1799
|
}
|
|
1800
1800
|
return contents;
|
|
1801
1801
|
};
|
|
1802
|
-
const
|
|
1802
|
+
const de_ListArtifactsCommandError = async (output, context) => {
|
|
1803
1803
|
const parsedOutput = {
|
|
1804
1804
|
...output,
|
|
1805
1805
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1808,16 +1808,16 @@ const deserializeAws_restJson1ListArtifactsCommandError = async (output, context
|
|
|
1808
1808
|
switch (errorCode) {
|
|
1809
1809
|
case "BadRequestException":
|
|
1810
1810
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1811
|
-
throw await
|
|
1811
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1812
1812
|
case "InternalFailureException":
|
|
1813
1813
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1814
|
-
throw await
|
|
1814
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1815
1815
|
case "LimitExceededException":
|
|
1816
1816
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1817
|
-
throw await
|
|
1817
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1818
1818
|
case "UnauthorizedException":
|
|
1819
1819
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1820
|
-
throw await
|
|
1820
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1821
1821
|
default:
|
|
1822
1822
|
const parsedBody = parsedOutput.body;
|
|
1823
1823
|
throwDefaultError({
|
|
@@ -1828,23 +1828,23 @@ const deserializeAws_restJson1ListArtifactsCommandError = async (output, context
|
|
|
1828
1828
|
});
|
|
1829
1829
|
}
|
|
1830
1830
|
};
|
|
1831
|
-
export const
|
|
1831
|
+
export const de_ListBackendEnvironmentsCommand = async (output, context) => {
|
|
1832
1832
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1833
|
-
return
|
|
1833
|
+
return de_ListBackendEnvironmentsCommandError(output, context);
|
|
1834
1834
|
}
|
|
1835
1835
|
const contents = map({
|
|
1836
1836
|
$metadata: deserializeMetadata(output),
|
|
1837
1837
|
});
|
|
1838
1838
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1839
1839
|
if (data.backendEnvironments != null) {
|
|
1840
|
-
contents.backendEnvironments =
|
|
1840
|
+
contents.backendEnvironments = de_BackendEnvironments(data.backendEnvironments, context);
|
|
1841
1841
|
}
|
|
1842
1842
|
if (data.nextToken != null) {
|
|
1843
1843
|
contents.nextToken = __expectString(data.nextToken);
|
|
1844
1844
|
}
|
|
1845
1845
|
return contents;
|
|
1846
1846
|
};
|
|
1847
|
-
const
|
|
1847
|
+
const de_ListBackendEnvironmentsCommandError = async (output, context) => {
|
|
1848
1848
|
const parsedOutput = {
|
|
1849
1849
|
...output,
|
|
1850
1850
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1853,13 +1853,13 @@ const deserializeAws_restJson1ListBackendEnvironmentsCommandError = async (outpu
|
|
|
1853
1853
|
switch (errorCode) {
|
|
1854
1854
|
case "BadRequestException":
|
|
1855
1855
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1856
|
-
throw await
|
|
1856
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1857
1857
|
case "InternalFailureException":
|
|
1858
1858
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1859
|
-
throw await
|
|
1859
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1860
1860
|
case "UnauthorizedException":
|
|
1861
1861
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1862
|
-
throw await
|
|
1862
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1863
1863
|
default:
|
|
1864
1864
|
const parsedBody = parsedOutput.body;
|
|
1865
1865
|
throwDefaultError({
|
|
@@ -1870,23 +1870,23 @@ const deserializeAws_restJson1ListBackendEnvironmentsCommandError = async (outpu
|
|
|
1870
1870
|
});
|
|
1871
1871
|
}
|
|
1872
1872
|
};
|
|
1873
|
-
export const
|
|
1873
|
+
export const de_ListBranchesCommand = async (output, context) => {
|
|
1874
1874
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1875
|
-
return
|
|
1875
|
+
return de_ListBranchesCommandError(output, context);
|
|
1876
1876
|
}
|
|
1877
1877
|
const contents = map({
|
|
1878
1878
|
$metadata: deserializeMetadata(output),
|
|
1879
1879
|
});
|
|
1880
1880
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1881
1881
|
if (data.branches != null) {
|
|
1882
|
-
contents.branches =
|
|
1882
|
+
contents.branches = de_Branches(data.branches, context);
|
|
1883
1883
|
}
|
|
1884
1884
|
if (data.nextToken != null) {
|
|
1885
1885
|
contents.nextToken = __expectString(data.nextToken);
|
|
1886
1886
|
}
|
|
1887
1887
|
return contents;
|
|
1888
1888
|
};
|
|
1889
|
-
const
|
|
1889
|
+
const de_ListBranchesCommandError = async (output, context) => {
|
|
1890
1890
|
const parsedOutput = {
|
|
1891
1891
|
...output,
|
|
1892
1892
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1895,13 +1895,13 @@ const deserializeAws_restJson1ListBranchesCommandError = async (output, context)
|
|
|
1895
1895
|
switch (errorCode) {
|
|
1896
1896
|
case "BadRequestException":
|
|
1897
1897
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1898
|
-
throw await
|
|
1898
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1899
1899
|
case "InternalFailureException":
|
|
1900
1900
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1901
|
-
throw await
|
|
1901
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1902
1902
|
case "UnauthorizedException":
|
|
1903
1903
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1904
|
-
throw await
|
|
1904
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1905
1905
|
default:
|
|
1906
1906
|
const parsedBody = parsedOutput.body;
|
|
1907
1907
|
throwDefaultError({
|
|
@@ -1912,23 +1912,23 @@ const deserializeAws_restJson1ListBranchesCommandError = async (output, context)
|
|
|
1912
1912
|
});
|
|
1913
1913
|
}
|
|
1914
1914
|
};
|
|
1915
|
-
export const
|
|
1915
|
+
export const de_ListDomainAssociationsCommand = async (output, context) => {
|
|
1916
1916
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1917
|
-
return
|
|
1917
|
+
return de_ListDomainAssociationsCommandError(output, context);
|
|
1918
1918
|
}
|
|
1919
1919
|
const contents = map({
|
|
1920
1920
|
$metadata: deserializeMetadata(output),
|
|
1921
1921
|
});
|
|
1922
1922
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1923
1923
|
if (data.domainAssociations != null) {
|
|
1924
|
-
contents.domainAssociations =
|
|
1924
|
+
contents.domainAssociations = de_DomainAssociations(data.domainAssociations, context);
|
|
1925
1925
|
}
|
|
1926
1926
|
if (data.nextToken != null) {
|
|
1927
1927
|
contents.nextToken = __expectString(data.nextToken);
|
|
1928
1928
|
}
|
|
1929
1929
|
return contents;
|
|
1930
1930
|
};
|
|
1931
|
-
const
|
|
1931
|
+
const de_ListDomainAssociationsCommandError = async (output, context) => {
|
|
1932
1932
|
const parsedOutput = {
|
|
1933
1933
|
...output,
|
|
1934
1934
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1937,13 +1937,13 @@ const deserializeAws_restJson1ListDomainAssociationsCommandError = async (output
|
|
|
1937
1937
|
switch (errorCode) {
|
|
1938
1938
|
case "BadRequestException":
|
|
1939
1939
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1940
|
-
throw await
|
|
1940
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1941
1941
|
case "InternalFailureException":
|
|
1942
1942
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1943
|
-
throw await
|
|
1943
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1944
1944
|
case "UnauthorizedException":
|
|
1945
1945
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1946
|
-
throw await
|
|
1946
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1947
1947
|
default:
|
|
1948
1948
|
const parsedBody = parsedOutput.body;
|
|
1949
1949
|
throwDefaultError({
|
|
@@ -1954,23 +1954,23 @@ const deserializeAws_restJson1ListDomainAssociationsCommandError = async (output
|
|
|
1954
1954
|
});
|
|
1955
1955
|
}
|
|
1956
1956
|
};
|
|
1957
|
-
export const
|
|
1957
|
+
export const de_ListJobsCommand = async (output, context) => {
|
|
1958
1958
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1959
|
-
return
|
|
1959
|
+
return de_ListJobsCommandError(output, context);
|
|
1960
1960
|
}
|
|
1961
1961
|
const contents = map({
|
|
1962
1962
|
$metadata: deserializeMetadata(output),
|
|
1963
1963
|
});
|
|
1964
1964
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1965
1965
|
if (data.jobSummaries != null) {
|
|
1966
|
-
contents.jobSummaries =
|
|
1966
|
+
contents.jobSummaries = de_JobSummaries(data.jobSummaries, context);
|
|
1967
1967
|
}
|
|
1968
1968
|
if (data.nextToken != null) {
|
|
1969
1969
|
contents.nextToken = __expectString(data.nextToken);
|
|
1970
1970
|
}
|
|
1971
1971
|
return contents;
|
|
1972
1972
|
};
|
|
1973
|
-
const
|
|
1973
|
+
const de_ListJobsCommandError = async (output, context) => {
|
|
1974
1974
|
const parsedOutput = {
|
|
1975
1975
|
...output,
|
|
1976
1976
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1979,16 +1979,16 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
|
|
|
1979
1979
|
switch (errorCode) {
|
|
1980
1980
|
case "BadRequestException":
|
|
1981
1981
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1982
|
-
throw await
|
|
1982
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1983
1983
|
case "InternalFailureException":
|
|
1984
1984
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1985
|
-
throw await
|
|
1985
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1986
1986
|
case "LimitExceededException":
|
|
1987
1987
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1988
|
-
throw await
|
|
1988
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1989
1989
|
case "UnauthorizedException":
|
|
1990
1990
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1991
|
-
throw await
|
|
1991
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1992
1992
|
default:
|
|
1993
1993
|
const parsedBody = parsedOutput.body;
|
|
1994
1994
|
throwDefaultError({
|
|
@@ -1999,20 +1999,20 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
|
|
|
1999
1999
|
});
|
|
2000
2000
|
}
|
|
2001
2001
|
};
|
|
2002
|
-
export const
|
|
2002
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2003
2003
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2004
|
-
return
|
|
2004
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
2005
2005
|
}
|
|
2006
2006
|
const contents = map({
|
|
2007
2007
|
$metadata: deserializeMetadata(output),
|
|
2008
2008
|
});
|
|
2009
2009
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2010
2010
|
if (data.tags != null) {
|
|
2011
|
-
contents.tags =
|
|
2011
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
2012
2012
|
}
|
|
2013
2013
|
return contents;
|
|
2014
2014
|
};
|
|
2015
|
-
const
|
|
2015
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2016
2016
|
const parsedOutput = {
|
|
2017
2017
|
...output,
|
|
2018
2018
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2021,13 +2021,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2021
2021
|
switch (errorCode) {
|
|
2022
2022
|
case "BadRequestException":
|
|
2023
2023
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2024
|
-
throw await
|
|
2024
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2025
2025
|
case "InternalFailureException":
|
|
2026
2026
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2027
|
-
throw await
|
|
2027
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2028
2028
|
case "ResourceNotFoundException":
|
|
2029
2029
|
case "com.amazonaws.amplify#ResourceNotFoundException":
|
|
2030
|
-
throw await
|
|
2030
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2031
2031
|
default:
|
|
2032
2032
|
const parsedBody = parsedOutput.body;
|
|
2033
2033
|
throwDefaultError({
|
|
@@ -2038,9 +2038,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2038
2038
|
});
|
|
2039
2039
|
}
|
|
2040
2040
|
};
|
|
2041
|
-
export const
|
|
2041
|
+
export const de_ListWebhooksCommand = async (output, context) => {
|
|
2042
2042
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2043
|
-
return
|
|
2043
|
+
return de_ListWebhooksCommandError(output, context);
|
|
2044
2044
|
}
|
|
2045
2045
|
const contents = map({
|
|
2046
2046
|
$metadata: deserializeMetadata(output),
|
|
@@ -2050,11 +2050,11 @@ export const deserializeAws_restJson1ListWebhooksCommand = async (output, contex
|
|
|
2050
2050
|
contents.nextToken = __expectString(data.nextToken);
|
|
2051
2051
|
}
|
|
2052
2052
|
if (data.webhooks != null) {
|
|
2053
|
-
contents.webhooks =
|
|
2053
|
+
contents.webhooks = de_Webhooks(data.webhooks, context);
|
|
2054
2054
|
}
|
|
2055
2055
|
return contents;
|
|
2056
2056
|
};
|
|
2057
|
-
const
|
|
2057
|
+
const de_ListWebhooksCommandError = async (output, context) => {
|
|
2058
2058
|
const parsedOutput = {
|
|
2059
2059
|
...output,
|
|
2060
2060
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2063,16 +2063,16 @@ const deserializeAws_restJson1ListWebhooksCommandError = async (output, context)
|
|
|
2063
2063
|
switch (errorCode) {
|
|
2064
2064
|
case "BadRequestException":
|
|
2065
2065
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2066
|
-
throw await
|
|
2066
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2067
2067
|
case "InternalFailureException":
|
|
2068
2068
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2069
|
-
throw await
|
|
2069
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2070
2070
|
case "LimitExceededException":
|
|
2071
2071
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
2072
|
-
throw await
|
|
2072
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2073
2073
|
case "UnauthorizedException":
|
|
2074
2074
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2075
|
-
throw await
|
|
2075
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2076
2076
|
default:
|
|
2077
2077
|
const parsedBody = parsedOutput.body;
|
|
2078
2078
|
throwDefaultError({
|
|
@@ -2083,20 +2083,20 @@ const deserializeAws_restJson1ListWebhooksCommandError = async (output, context)
|
|
|
2083
2083
|
});
|
|
2084
2084
|
}
|
|
2085
2085
|
};
|
|
2086
|
-
export const
|
|
2086
|
+
export const de_StartDeploymentCommand = async (output, context) => {
|
|
2087
2087
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2088
|
-
return
|
|
2088
|
+
return de_StartDeploymentCommandError(output, context);
|
|
2089
2089
|
}
|
|
2090
2090
|
const contents = map({
|
|
2091
2091
|
$metadata: deserializeMetadata(output),
|
|
2092
2092
|
});
|
|
2093
2093
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2094
2094
|
if (data.jobSummary != null) {
|
|
2095
|
-
contents.jobSummary =
|
|
2095
|
+
contents.jobSummary = de_JobSummary(data.jobSummary, context);
|
|
2096
2096
|
}
|
|
2097
2097
|
return contents;
|
|
2098
2098
|
};
|
|
2099
|
-
const
|
|
2099
|
+
const de_StartDeploymentCommandError = async (output, context) => {
|
|
2100
2100
|
const parsedOutput = {
|
|
2101
2101
|
...output,
|
|
2102
2102
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2105,19 +2105,19 @@ const deserializeAws_restJson1StartDeploymentCommandError = async (output, conte
|
|
|
2105
2105
|
switch (errorCode) {
|
|
2106
2106
|
case "BadRequestException":
|
|
2107
2107
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2108
|
-
throw await
|
|
2108
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2109
2109
|
case "InternalFailureException":
|
|
2110
2110
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2111
|
-
throw await
|
|
2111
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2112
2112
|
case "LimitExceededException":
|
|
2113
2113
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
2114
|
-
throw await
|
|
2114
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2115
2115
|
case "NotFoundException":
|
|
2116
2116
|
case "com.amazonaws.amplify#NotFoundException":
|
|
2117
|
-
throw await
|
|
2117
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2118
2118
|
case "UnauthorizedException":
|
|
2119
2119
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2120
|
-
throw await
|
|
2120
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2121
2121
|
default:
|
|
2122
2122
|
const parsedBody = parsedOutput.body;
|
|
2123
2123
|
throwDefaultError({
|
|
@@ -2128,20 +2128,20 @@ const deserializeAws_restJson1StartDeploymentCommandError = async (output, conte
|
|
|
2128
2128
|
});
|
|
2129
2129
|
}
|
|
2130
2130
|
};
|
|
2131
|
-
export const
|
|
2131
|
+
export const de_StartJobCommand = async (output, context) => {
|
|
2132
2132
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2133
|
-
return
|
|
2133
|
+
return de_StartJobCommandError(output, context);
|
|
2134
2134
|
}
|
|
2135
2135
|
const contents = map({
|
|
2136
2136
|
$metadata: deserializeMetadata(output),
|
|
2137
2137
|
});
|
|
2138
2138
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2139
2139
|
if (data.jobSummary != null) {
|
|
2140
|
-
contents.jobSummary =
|
|
2140
|
+
contents.jobSummary = de_JobSummary(data.jobSummary, context);
|
|
2141
2141
|
}
|
|
2142
2142
|
return contents;
|
|
2143
2143
|
};
|
|
2144
|
-
const
|
|
2144
|
+
const de_StartJobCommandError = async (output, context) => {
|
|
2145
2145
|
const parsedOutput = {
|
|
2146
2146
|
...output,
|
|
2147
2147
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2150,19 +2150,19 @@ const deserializeAws_restJson1StartJobCommandError = async (output, context) =>
|
|
|
2150
2150
|
switch (errorCode) {
|
|
2151
2151
|
case "BadRequestException":
|
|
2152
2152
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2153
|
-
throw await
|
|
2153
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2154
2154
|
case "InternalFailureException":
|
|
2155
2155
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2156
|
-
throw await
|
|
2156
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2157
2157
|
case "LimitExceededException":
|
|
2158
2158
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
2159
|
-
throw await
|
|
2159
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2160
2160
|
case "NotFoundException":
|
|
2161
2161
|
case "com.amazonaws.amplify#NotFoundException":
|
|
2162
|
-
throw await
|
|
2162
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2163
2163
|
case "UnauthorizedException":
|
|
2164
2164
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2165
|
-
throw await
|
|
2165
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2166
2166
|
default:
|
|
2167
2167
|
const parsedBody = parsedOutput.body;
|
|
2168
2168
|
throwDefaultError({
|
|
@@ -2173,20 +2173,20 @@ const deserializeAws_restJson1StartJobCommandError = async (output, context) =>
|
|
|
2173
2173
|
});
|
|
2174
2174
|
}
|
|
2175
2175
|
};
|
|
2176
|
-
export const
|
|
2176
|
+
export const de_StopJobCommand = async (output, context) => {
|
|
2177
2177
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2178
|
-
return
|
|
2178
|
+
return de_StopJobCommandError(output, context);
|
|
2179
2179
|
}
|
|
2180
2180
|
const contents = map({
|
|
2181
2181
|
$metadata: deserializeMetadata(output),
|
|
2182
2182
|
});
|
|
2183
2183
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2184
2184
|
if (data.jobSummary != null) {
|
|
2185
|
-
contents.jobSummary =
|
|
2185
|
+
contents.jobSummary = de_JobSummary(data.jobSummary, context);
|
|
2186
2186
|
}
|
|
2187
2187
|
return contents;
|
|
2188
2188
|
};
|
|
2189
|
-
const
|
|
2189
|
+
const de_StopJobCommandError = async (output, context) => {
|
|
2190
2190
|
const parsedOutput = {
|
|
2191
2191
|
...output,
|
|
2192
2192
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2195,19 +2195,19 @@ const deserializeAws_restJson1StopJobCommandError = async (output, context) => {
|
|
|
2195
2195
|
switch (errorCode) {
|
|
2196
2196
|
case "BadRequestException":
|
|
2197
2197
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2198
|
-
throw await
|
|
2198
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2199
2199
|
case "InternalFailureException":
|
|
2200
2200
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2201
|
-
throw await
|
|
2201
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2202
2202
|
case "LimitExceededException":
|
|
2203
2203
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
2204
|
-
throw await
|
|
2204
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2205
2205
|
case "NotFoundException":
|
|
2206
2206
|
case "com.amazonaws.amplify#NotFoundException":
|
|
2207
|
-
throw await
|
|
2207
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2208
2208
|
case "UnauthorizedException":
|
|
2209
2209
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2210
|
-
throw await
|
|
2210
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2211
2211
|
default:
|
|
2212
2212
|
const parsedBody = parsedOutput.body;
|
|
2213
2213
|
throwDefaultError({
|
|
@@ -2218,9 +2218,9 @@ const deserializeAws_restJson1StopJobCommandError = async (output, context) => {
|
|
|
2218
2218
|
});
|
|
2219
2219
|
}
|
|
2220
2220
|
};
|
|
2221
|
-
export const
|
|
2221
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
2222
2222
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2223
|
-
return
|
|
2223
|
+
return de_TagResourceCommandError(output, context);
|
|
2224
2224
|
}
|
|
2225
2225
|
const contents = map({
|
|
2226
2226
|
$metadata: deserializeMetadata(output),
|
|
@@ -2228,7 +2228,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
2228
2228
|
await collectBody(output.body, context);
|
|
2229
2229
|
return contents;
|
|
2230
2230
|
};
|
|
2231
|
-
const
|
|
2231
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2232
2232
|
const parsedOutput = {
|
|
2233
2233
|
...output,
|
|
2234
2234
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2237,13 +2237,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2237
2237
|
switch (errorCode) {
|
|
2238
2238
|
case "BadRequestException":
|
|
2239
2239
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2240
|
-
throw await
|
|
2240
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2241
2241
|
case "InternalFailureException":
|
|
2242
2242
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2243
|
-
throw await
|
|
2243
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2244
2244
|
case "ResourceNotFoundException":
|
|
2245
2245
|
case "com.amazonaws.amplify#ResourceNotFoundException":
|
|
2246
|
-
throw await
|
|
2246
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2247
2247
|
default:
|
|
2248
2248
|
const parsedBody = parsedOutput.body;
|
|
2249
2249
|
throwDefaultError({
|
|
@@ -2254,9 +2254,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2254
2254
|
});
|
|
2255
2255
|
}
|
|
2256
2256
|
};
|
|
2257
|
-
export const
|
|
2257
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
2258
2258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2259
|
-
return
|
|
2259
|
+
return de_UntagResourceCommandError(output, context);
|
|
2260
2260
|
}
|
|
2261
2261
|
const contents = map({
|
|
2262
2262
|
$metadata: deserializeMetadata(output),
|
|
@@ -2264,7 +2264,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
2264
2264
|
await collectBody(output.body, context);
|
|
2265
2265
|
return contents;
|
|
2266
2266
|
};
|
|
2267
|
-
const
|
|
2267
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2268
2268
|
const parsedOutput = {
|
|
2269
2269
|
...output,
|
|
2270
2270
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2273,13 +2273,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2273
2273
|
switch (errorCode) {
|
|
2274
2274
|
case "BadRequestException":
|
|
2275
2275
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2276
|
-
throw await
|
|
2276
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2277
2277
|
case "InternalFailureException":
|
|
2278
2278
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2279
|
-
throw await
|
|
2279
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2280
2280
|
case "ResourceNotFoundException":
|
|
2281
2281
|
case "com.amazonaws.amplify#ResourceNotFoundException":
|
|
2282
|
-
throw await
|
|
2282
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2283
2283
|
default:
|
|
2284
2284
|
const parsedBody = parsedOutput.body;
|
|
2285
2285
|
throwDefaultError({
|
|
@@ -2290,20 +2290,20 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2290
2290
|
});
|
|
2291
2291
|
}
|
|
2292
2292
|
};
|
|
2293
|
-
export const
|
|
2293
|
+
export const de_UpdateAppCommand = async (output, context) => {
|
|
2294
2294
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2295
|
-
return
|
|
2295
|
+
return de_UpdateAppCommandError(output, context);
|
|
2296
2296
|
}
|
|
2297
2297
|
const contents = map({
|
|
2298
2298
|
$metadata: deserializeMetadata(output),
|
|
2299
2299
|
});
|
|
2300
2300
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2301
2301
|
if (data.app != null) {
|
|
2302
|
-
contents.app =
|
|
2302
|
+
contents.app = de_App(data.app, context);
|
|
2303
2303
|
}
|
|
2304
2304
|
return contents;
|
|
2305
2305
|
};
|
|
2306
|
-
const
|
|
2306
|
+
const de_UpdateAppCommandError = async (output, context) => {
|
|
2307
2307
|
const parsedOutput = {
|
|
2308
2308
|
...output,
|
|
2309
2309
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2312,16 +2312,16 @@ const deserializeAws_restJson1UpdateAppCommandError = async (output, context) =>
|
|
|
2312
2312
|
switch (errorCode) {
|
|
2313
2313
|
case "BadRequestException":
|
|
2314
2314
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2315
|
-
throw await
|
|
2315
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2316
2316
|
case "InternalFailureException":
|
|
2317
2317
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2318
|
-
throw await
|
|
2318
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2319
2319
|
case "NotFoundException":
|
|
2320
2320
|
case "com.amazonaws.amplify#NotFoundException":
|
|
2321
|
-
throw await
|
|
2321
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2322
2322
|
case "UnauthorizedException":
|
|
2323
2323
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2324
|
-
throw await
|
|
2324
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2325
2325
|
default:
|
|
2326
2326
|
const parsedBody = parsedOutput.body;
|
|
2327
2327
|
throwDefaultError({
|
|
@@ -2332,20 +2332,20 @@ const deserializeAws_restJson1UpdateAppCommandError = async (output, context) =>
|
|
|
2332
2332
|
});
|
|
2333
2333
|
}
|
|
2334
2334
|
};
|
|
2335
|
-
export const
|
|
2335
|
+
export const de_UpdateBranchCommand = async (output, context) => {
|
|
2336
2336
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2337
|
-
return
|
|
2337
|
+
return de_UpdateBranchCommandError(output, context);
|
|
2338
2338
|
}
|
|
2339
2339
|
const contents = map({
|
|
2340
2340
|
$metadata: deserializeMetadata(output),
|
|
2341
2341
|
});
|
|
2342
2342
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2343
2343
|
if (data.branch != null) {
|
|
2344
|
-
contents.branch =
|
|
2344
|
+
contents.branch = de_Branch(data.branch, context);
|
|
2345
2345
|
}
|
|
2346
2346
|
return contents;
|
|
2347
2347
|
};
|
|
2348
|
-
const
|
|
2348
|
+
const de_UpdateBranchCommandError = async (output, context) => {
|
|
2349
2349
|
const parsedOutput = {
|
|
2350
2350
|
...output,
|
|
2351
2351
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2354,19 +2354,19 @@ const deserializeAws_restJson1UpdateBranchCommandError = async (output, context)
|
|
|
2354
2354
|
switch (errorCode) {
|
|
2355
2355
|
case "BadRequestException":
|
|
2356
2356
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2357
|
-
throw await
|
|
2357
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2358
2358
|
case "DependentServiceFailureException":
|
|
2359
2359
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
2360
|
-
throw await
|
|
2360
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
2361
2361
|
case "InternalFailureException":
|
|
2362
2362
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2363
|
-
throw await
|
|
2363
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2364
2364
|
case "NotFoundException":
|
|
2365
2365
|
case "com.amazonaws.amplify#NotFoundException":
|
|
2366
|
-
throw await
|
|
2366
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2367
2367
|
case "UnauthorizedException":
|
|
2368
2368
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2369
|
-
throw await
|
|
2369
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2370
2370
|
default:
|
|
2371
2371
|
const parsedBody = parsedOutput.body;
|
|
2372
2372
|
throwDefaultError({
|
|
@@ -2377,20 +2377,20 @@ const deserializeAws_restJson1UpdateBranchCommandError = async (output, context)
|
|
|
2377
2377
|
});
|
|
2378
2378
|
}
|
|
2379
2379
|
};
|
|
2380
|
-
export const
|
|
2380
|
+
export const de_UpdateDomainAssociationCommand = async (output, context) => {
|
|
2381
2381
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2382
|
-
return
|
|
2382
|
+
return de_UpdateDomainAssociationCommandError(output, context);
|
|
2383
2383
|
}
|
|
2384
2384
|
const contents = map({
|
|
2385
2385
|
$metadata: deserializeMetadata(output),
|
|
2386
2386
|
});
|
|
2387
2387
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2388
2388
|
if (data.domainAssociation != null) {
|
|
2389
|
-
contents.domainAssociation =
|
|
2389
|
+
contents.domainAssociation = de_DomainAssociation(data.domainAssociation, context);
|
|
2390
2390
|
}
|
|
2391
2391
|
return contents;
|
|
2392
2392
|
};
|
|
2393
|
-
const
|
|
2393
|
+
const de_UpdateDomainAssociationCommandError = async (output, context) => {
|
|
2394
2394
|
const parsedOutput = {
|
|
2395
2395
|
...output,
|
|
2396
2396
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2399,19 +2399,19 @@ const deserializeAws_restJson1UpdateDomainAssociationCommandError = async (outpu
|
|
|
2399
2399
|
switch (errorCode) {
|
|
2400
2400
|
case "BadRequestException":
|
|
2401
2401
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2402
|
-
throw await
|
|
2402
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2403
2403
|
case "DependentServiceFailureException":
|
|
2404
2404
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
2405
|
-
throw await
|
|
2405
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
2406
2406
|
case "InternalFailureException":
|
|
2407
2407
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2408
|
-
throw await
|
|
2408
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2409
2409
|
case "NotFoundException":
|
|
2410
2410
|
case "com.amazonaws.amplify#NotFoundException":
|
|
2411
|
-
throw await
|
|
2411
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2412
2412
|
case "UnauthorizedException":
|
|
2413
2413
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2414
|
-
throw await
|
|
2414
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2415
2415
|
default:
|
|
2416
2416
|
const parsedBody = parsedOutput.body;
|
|
2417
2417
|
throwDefaultError({
|
|
@@ -2422,20 +2422,20 @@ const deserializeAws_restJson1UpdateDomainAssociationCommandError = async (outpu
|
|
|
2422
2422
|
});
|
|
2423
2423
|
}
|
|
2424
2424
|
};
|
|
2425
|
-
export const
|
|
2425
|
+
export const de_UpdateWebhookCommand = async (output, context) => {
|
|
2426
2426
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2427
|
-
return
|
|
2427
|
+
return de_UpdateWebhookCommandError(output, context);
|
|
2428
2428
|
}
|
|
2429
2429
|
const contents = map({
|
|
2430
2430
|
$metadata: deserializeMetadata(output),
|
|
2431
2431
|
});
|
|
2432
2432
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2433
2433
|
if (data.webhook != null) {
|
|
2434
|
-
contents.webhook =
|
|
2434
|
+
contents.webhook = de_Webhook(data.webhook, context);
|
|
2435
2435
|
}
|
|
2436
2436
|
return contents;
|
|
2437
2437
|
};
|
|
2438
|
-
const
|
|
2438
|
+
const de_UpdateWebhookCommandError = async (output, context) => {
|
|
2439
2439
|
const parsedOutput = {
|
|
2440
2440
|
...output,
|
|
2441
2441
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2444,19 +2444,19 @@ const deserializeAws_restJson1UpdateWebhookCommandError = async (output, context
|
|
|
2444
2444
|
switch (errorCode) {
|
|
2445
2445
|
case "BadRequestException":
|
|
2446
2446
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2447
|
-
throw await
|
|
2447
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2448
2448
|
case "DependentServiceFailureException":
|
|
2449
2449
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
2450
|
-
throw await
|
|
2450
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
2451
2451
|
case "InternalFailureException":
|
|
2452
2452
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2453
|
-
throw await
|
|
2453
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2454
2454
|
case "NotFoundException":
|
|
2455
2455
|
case "com.amazonaws.amplify#NotFoundException":
|
|
2456
|
-
throw await
|
|
2456
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2457
2457
|
case "UnauthorizedException":
|
|
2458
2458
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2459
|
-
throw await
|
|
2459
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2460
2460
|
default:
|
|
2461
2461
|
const parsedBody = parsedOutput.body;
|
|
2462
2462
|
throwDefaultError({
|
|
@@ -2468,7 +2468,7 @@ const deserializeAws_restJson1UpdateWebhookCommandError = async (output, context
|
|
|
2468
2468
|
}
|
|
2469
2469
|
};
|
|
2470
2470
|
const map = __map;
|
|
2471
|
-
const
|
|
2471
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2472
2472
|
const contents = map({});
|
|
2473
2473
|
const data = parsedOutput.body;
|
|
2474
2474
|
if (data.message != null) {
|
|
@@ -2480,7 +2480,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
2480
2480
|
});
|
|
2481
2481
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2482
2482
|
};
|
|
2483
|
-
const
|
|
2483
|
+
const de_DependentServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
2484
2484
|
const contents = map({});
|
|
2485
2485
|
const data = parsedOutput.body;
|
|
2486
2486
|
if (data.message != null) {
|
|
@@ -2492,7 +2492,7 @@ const deserializeAws_restJson1DependentServiceFailureExceptionResponse = async (
|
|
|
2492
2492
|
});
|
|
2493
2493
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2494
2494
|
};
|
|
2495
|
-
const
|
|
2495
|
+
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
2496
2496
|
const contents = map({});
|
|
2497
2497
|
const data = parsedOutput.body;
|
|
2498
2498
|
if (data.message != null) {
|
|
@@ -2504,7 +2504,7 @@ const deserializeAws_restJson1InternalFailureExceptionResponse = async (parsedOu
|
|
|
2504
2504
|
});
|
|
2505
2505
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2506
2506
|
};
|
|
2507
|
-
const
|
|
2507
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2508
2508
|
const contents = map({});
|
|
2509
2509
|
const data = parsedOutput.body;
|
|
2510
2510
|
if (data.message != null) {
|
|
@@ -2516,7 +2516,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
|
|
|
2516
2516
|
});
|
|
2517
2517
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2518
2518
|
};
|
|
2519
|
-
const
|
|
2519
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2520
2520
|
const contents = map({});
|
|
2521
2521
|
const data = parsedOutput.body;
|
|
2522
2522
|
if (data.message != null) {
|
|
@@ -2528,7 +2528,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
2528
2528
|
});
|
|
2529
2529
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2530
2530
|
};
|
|
2531
|
-
const
|
|
2531
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2532
2532
|
const contents = map({});
|
|
2533
2533
|
const data = parsedOutput.body;
|
|
2534
2534
|
if (data.code != null) {
|
|
@@ -2543,7 +2543,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2543
2543
|
});
|
|
2544
2544
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2545
2545
|
};
|
|
2546
|
-
const
|
|
2546
|
+
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
2547
2547
|
const contents = map({});
|
|
2548
2548
|
const data = parsedOutput.body;
|
|
2549
2549
|
if (data.message != null) {
|
|
@@ -2555,7 +2555,7 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
2555
2555
|
});
|
|
2556
2556
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2557
2557
|
};
|
|
2558
|
-
const
|
|
2558
|
+
const se_AutoBranchCreationConfig = (input, context) => {
|
|
2559
2559
|
return {
|
|
2560
2560
|
...(input.basicAuthCredentials != null && { basicAuthCredentials: input.basicAuthCredentials }),
|
|
2561
2561
|
...(input.buildSpec != null && { buildSpec: input.buildSpec }),
|
|
@@ -2564,28 +2564,28 @@ const serializeAws_restJson1AutoBranchCreationConfig = (input, context) => {
|
|
|
2564
2564
|
...(input.enablePerformanceMode != null && { enablePerformanceMode: input.enablePerformanceMode }),
|
|
2565
2565
|
...(input.enablePullRequestPreview != null && { enablePullRequestPreview: input.enablePullRequestPreview }),
|
|
2566
2566
|
...(input.environmentVariables != null && {
|
|
2567
|
-
environmentVariables:
|
|
2567
|
+
environmentVariables: se_EnvironmentVariables(input.environmentVariables, context),
|
|
2568
2568
|
}),
|
|
2569
2569
|
...(input.framework != null && { framework: input.framework }),
|
|
2570
2570
|
...(input.pullRequestEnvironmentName != null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName }),
|
|
2571
2571
|
...(input.stage != null && { stage: input.stage }),
|
|
2572
2572
|
};
|
|
2573
2573
|
};
|
|
2574
|
-
const
|
|
2574
|
+
const se_AutoBranchCreationPatterns = (input, context) => {
|
|
2575
2575
|
return input
|
|
2576
2576
|
.filter((e) => e != null)
|
|
2577
2577
|
.map((entry) => {
|
|
2578
2578
|
return entry;
|
|
2579
2579
|
});
|
|
2580
2580
|
};
|
|
2581
|
-
const
|
|
2581
|
+
const se_AutoSubDomainCreationPatterns = (input, context) => {
|
|
2582
2582
|
return input
|
|
2583
2583
|
.filter((e) => e != null)
|
|
2584
2584
|
.map((entry) => {
|
|
2585
2585
|
return entry;
|
|
2586
2586
|
});
|
|
2587
2587
|
};
|
|
2588
|
-
const
|
|
2588
|
+
const se_CustomRule = (input, context) => {
|
|
2589
2589
|
return {
|
|
2590
2590
|
...(input.condition != null && { condition: input.condition }),
|
|
2591
2591
|
...(input.source != null && { source: input.source }),
|
|
@@ -2593,14 +2593,14 @@ const serializeAws_restJson1CustomRule = (input, context) => {
|
|
|
2593
2593
|
...(input.target != null && { target: input.target }),
|
|
2594
2594
|
};
|
|
2595
2595
|
};
|
|
2596
|
-
const
|
|
2596
|
+
const se_CustomRules = (input, context) => {
|
|
2597
2597
|
return input
|
|
2598
2598
|
.filter((e) => e != null)
|
|
2599
2599
|
.map((entry) => {
|
|
2600
|
-
return
|
|
2600
|
+
return se_CustomRule(entry, context);
|
|
2601
2601
|
});
|
|
2602
2602
|
};
|
|
2603
|
-
const
|
|
2603
|
+
const se_EnvironmentVariables = (input, context) => {
|
|
2604
2604
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2605
2605
|
if (value === null) {
|
|
2606
2606
|
return acc;
|
|
@@ -2609,7 +2609,7 @@ const serializeAws_restJson1EnvironmentVariables = (input, context) => {
|
|
|
2609
2609
|
return acc;
|
|
2610
2610
|
}, {});
|
|
2611
2611
|
};
|
|
2612
|
-
const
|
|
2612
|
+
const se_FileMap = (input, context) => {
|
|
2613
2613
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2614
2614
|
if (value === null) {
|
|
2615
2615
|
return acc;
|
|
@@ -2618,20 +2618,20 @@ const serializeAws_restJson1FileMap = (input, context) => {
|
|
|
2618
2618
|
return acc;
|
|
2619
2619
|
}, {});
|
|
2620
2620
|
};
|
|
2621
|
-
const
|
|
2621
|
+
const se_SubDomainSetting = (input, context) => {
|
|
2622
2622
|
return {
|
|
2623
2623
|
...(input.branchName != null && { branchName: input.branchName }),
|
|
2624
2624
|
...(input.prefix != null && { prefix: input.prefix }),
|
|
2625
2625
|
};
|
|
2626
2626
|
};
|
|
2627
|
-
const
|
|
2627
|
+
const se_SubDomainSettings = (input, context) => {
|
|
2628
2628
|
return input
|
|
2629
2629
|
.filter((e) => e != null)
|
|
2630
2630
|
.map((entry) => {
|
|
2631
|
-
return
|
|
2631
|
+
return se_SubDomainSetting(entry, context);
|
|
2632
2632
|
});
|
|
2633
2633
|
};
|
|
2634
|
-
const
|
|
2634
|
+
const se_TagMap = (input, context) => {
|
|
2635
2635
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2636
2636
|
if (value === null) {
|
|
2637
2637
|
return acc;
|
|
@@ -2640,71 +2640,67 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2640
2640
|
return acc;
|
|
2641
2641
|
}, {});
|
|
2642
2642
|
};
|
|
2643
|
-
const
|
|
2643
|
+
const de_App = (output, context) => {
|
|
2644
2644
|
return {
|
|
2645
2645
|
appArn: __expectString(output.appArn),
|
|
2646
2646
|
appId: __expectString(output.appId),
|
|
2647
2647
|
autoBranchCreationConfig: output.autoBranchCreationConfig != null
|
|
2648
|
-
?
|
|
2648
|
+
? de_AutoBranchCreationConfig(output.autoBranchCreationConfig, context)
|
|
2649
2649
|
: undefined,
|
|
2650
2650
|
autoBranchCreationPatterns: output.autoBranchCreationPatterns != null
|
|
2651
|
-
?
|
|
2651
|
+
? de_AutoBranchCreationPatterns(output.autoBranchCreationPatterns, context)
|
|
2652
2652
|
: undefined,
|
|
2653
2653
|
basicAuthCredentials: __expectString(output.basicAuthCredentials),
|
|
2654
2654
|
buildSpec: __expectString(output.buildSpec),
|
|
2655
2655
|
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
2656
2656
|
customHeaders: __expectString(output.customHeaders),
|
|
2657
|
-
customRules: output.customRules != null ?
|
|
2657
|
+
customRules: output.customRules != null ? de_CustomRules(output.customRules, context) : undefined,
|
|
2658
2658
|
defaultDomain: __expectString(output.defaultDomain),
|
|
2659
2659
|
description: __expectString(output.description),
|
|
2660
2660
|
enableAutoBranchCreation: __expectBoolean(output.enableAutoBranchCreation),
|
|
2661
2661
|
enableBasicAuth: __expectBoolean(output.enableBasicAuth),
|
|
2662
2662
|
enableBranchAutoBuild: __expectBoolean(output.enableBranchAutoBuild),
|
|
2663
2663
|
enableBranchAutoDeletion: __expectBoolean(output.enableBranchAutoDeletion),
|
|
2664
|
-
environmentVariables: output.environmentVariables != null
|
|
2665
|
-
? deserializeAws_restJson1EnvironmentVariables(output.environmentVariables, context)
|
|
2666
|
-
: undefined,
|
|
2664
|
+
environmentVariables: output.environmentVariables != null ? de_EnvironmentVariables(output.environmentVariables, context) : undefined,
|
|
2667
2665
|
iamServiceRoleArn: __expectString(output.iamServiceRoleArn),
|
|
2668
2666
|
name: __expectString(output.name),
|
|
2669
2667
|
platform: __expectString(output.platform),
|
|
2670
|
-
productionBranch: output.productionBranch != null
|
|
2671
|
-
? deserializeAws_restJson1ProductionBranch(output.productionBranch, context)
|
|
2672
|
-
: undefined,
|
|
2668
|
+
productionBranch: output.productionBranch != null ? de_ProductionBranch(output.productionBranch, context) : undefined,
|
|
2673
2669
|
repository: __expectString(output.repository),
|
|
2674
2670
|
repositoryCloneMethod: __expectString(output.repositoryCloneMethod),
|
|
2675
|
-
tags: output.tags != null ?
|
|
2671
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
2676
2672
|
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
2677
2673
|
};
|
|
2678
2674
|
};
|
|
2679
|
-
const
|
|
2675
|
+
const de_Apps = (output, context) => {
|
|
2680
2676
|
const retVal = (output || [])
|
|
2681
2677
|
.filter((e) => e != null)
|
|
2682
2678
|
.map((entry) => {
|
|
2683
2679
|
if (entry === null) {
|
|
2684
2680
|
return null;
|
|
2685
2681
|
}
|
|
2686
|
-
return
|
|
2682
|
+
return de_App(entry, context);
|
|
2687
2683
|
});
|
|
2688
2684
|
return retVal;
|
|
2689
2685
|
};
|
|
2690
|
-
const
|
|
2686
|
+
const de_Artifact = (output, context) => {
|
|
2691
2687
|
return {
|
|
2692
2688
|
artifactFileName: __expectString(output.artifactFileName),
|
|
2693
2689
|
artifactId: __expectString(output.artifactId),
|
|
2694
2690
|
};
|
|
2695
2691
|
};
|
|
2696
|
-
const
|
|
2692
|
+
const de_Artifacts = (output, context) => {
|
|
2697
2693
|
const retVal = (output || [])
|
|
2698
2694
|
.filter((e) => e != null)
|
|
2699
2695
|
.map((entry) => {
|
|
2700
2696
|
if (entry === null) {
|
|
2701
2697
|
return null;
|
|
2702
2698
|
}
|
|
2703
|
-
return
|
|
2699
|
+
return de_Artifact(entry, context);
|
|
2704
2700
|
});
|
|
2705
2701
|
return retVal;
|
|
2706
2702
|
};
|
|
2707
|
-
const
|
|
2703
|
+
const de_AssociatedResources = (output, context) => {
|
|
2708
2704
|
const retVal = (output || [])
|
|
2709
2705
|
.filter((e) => e != null)
|
|
2710
2706
|
.map((entry) => {
|
|
@@ -2715,7 +2711,7 @@ const deserializeAws_restJson1AssociatedResources = (output, context) => {
|
|
|
2715
2711
|
});
|
|
2716
2712
|
return retVal;
|
|
2717
2713
|
};
|
|
2718
|
-
const
|
|
2714
|
+
const de_AutoBranchCreationConfig = (output, context) => {
|
|
2719
2715
|
return {
|
|
2720
2716
|
basicAuthCredentials: __expectString(output.basicAuthCredentials),
|
|
2721
2717
|
buildSpec: __expectString(output.buildSpec),
|
|
@@ -2723,15 +2719,13 @@ const deserializeAws_restJson1AutoBranchCreationConfig = (output, context) => {
|
|
|
2723
2719
|
enableBasicAuth: __expectBoolean(output.enableBasicAuth),
|
|
2724
2720
|
enablePerformanceMode: __expectBoolean(output.enablePerformanceMode),
|
|
2725
2721
|
enablePullRequestPreview: __expectBoolean(output.enablePullRequestPreview),
|
|
2726
|
-
environmentVariables: output.environmentVariables != null
|
|
2727
|
-
? deserializeAws_restJson1EnvironmentVariables(output.environmentVariables, context)
|
|
2728
|
-
: undefined,
|
|
2722
|
+
environmentVariables: output.environmentVariables != null ? de_EnvironmentVariables(output.environmentVariables, context) : undefined,
|
|
2729
2723
|
framework: __expectString(output.framework),
|
|
2730
2724
|
pullRequestEnvironmentName: __expectString(output.pullRequestEnvironmentName),
|
|
2731
2725
|
stage: __expectString(output.stage),
|
|
2732
2726
|
};
|
|
2733
2727
|
};
|
|
2734
|
-
const
|
|
2728
|
+
const de_AutoBranchCreationPatterns = (output, context) => {
|
|
2735
2729
|
const retVal = (output || [])
|
|
2736
2730
|
.filter((e) => e != null)
|
|
2737
2731
|
.map((entry) => {
|
|
@@ -2742,7 +2736,7 @@ const deserializeAws_restJson1AutoBranchCreationPatterns = (output, context) =>
|
|
|
2742
2736
|
});
|
|
2743
2737
|
return retVal;
|
|
2744
2738
|
};
|
|
2745
|
-
const
|
|
2739
|
+
const de_AutoSubDomainCreationPatterns = (output, context) => {
|
|
2746
2740
|
const retVal = (output || [])
|
|
2747
2741
|
.filter((e) => e != null)
|
|
2748
2742
|
.map((entry) => {
|
|
@@ -2753,7 +2747,7 @@ const deserializeAws_restJson1AutoSubDomainCreationPatterns = (output, context)
|
|
|
2753
2747
|
});
|
|
2754
2748
|
return retVal;
|
|
2755
2749
|
};
|
|
2756
|
-
const
|
|
2750
|
+
const de_BackendEnvironment = (output, context) => {
|
|
2757
2751
|
return {
|
|
2758
2752
|
backendEnvironmentArn: __expectString(output.backendEnvironmentArn),
|
|
2759
2753
|
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
@@ -2763,30 +2757,28 @@ const deserializeAws_restJson1BackendEnvironment = (output, context) => {
|
|
|
2763
2757
|
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
2764
2758
|
};
|
|
2765
2759
|
};
|
|
2766
|
-
const
|
|
2760
|
+
const de_BackendEnvironments = (output, context) => {
|
|
2767
2761
|
const retVal = (output || [])
|
|
2768
2762
|
.filter((e) => e != null)
|
|
2769
2763
|
.map((entry) => {
|
|
2770
2764
|
if (entry === null) {
|
|
2771
2765
|
return null;
|
|
2772
2766
|
}
|
|
2773
|
-
return
|
|
2767
|
+
return de_BackendEnvironment(entry, context);
|
|
2774
2768
|
});
|
|
2775
2769
|
return retVal;
|
|
2776
2770
|
};
|
|
2777
|
-
const
|
|
2771
|
+
const de_Branch = (output, context) => {
|
|
2778
2772
|
return {
|
|
2779
2773
|
activeJobId: __expectString(output.activeJobId),
|
|
2780
|
-
associatedResources: output.associatedResources != null
|
|
2781
|
-
? deserializeAws_restJson1AssociatedResources(output.associatedResources, context)
|
|
2782
|
-
: undefined,
|
|
2774
|
+
associatedResources: output.associatedResources != null ? de_AssociatedResources(output.associatedResources, context) : undefined,
|
|
2783
2775
|
backendEnvironmentArn: __expectString(output.backendEnvironmentArn),
|
|
2784
2776
|
basicAuthCredentials: __expectString(output.basicAuthCredentials),
|
|
2785
2777
|
branchArn: __expectString(output.branchArn),
|
|
2786
2778
|
branchName: __expectString(output.branchName),
|
|
2787
2779
|
buildSpec: __expectString(output.buildSpec),
|
|
2788
2780
|
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
2789
|
-
customDomains: output.customDomains != null ?
|
|
2781
|
+
customDomains: output.customDomains != null ? de_CustomDomains(output.customDomains, context) : undefined,
|
|
2790
2782
|
description: __expectString(output.description),
|
|
2791
2783
|
destinationBranch: __expectString(output.destinationBranch),
|
|
2792
2784
|
displayName: __expectString(output.displayName),
|
|
@@ -2795,32 +2787,30 @@ const deserializeAws_restJson1Branch = (output, context) => {
|
|
|
2795
2787
|
enableNotification: __expectBoolean(output.enableNotification),
|
|
2796
2788
|
enablePerformanceMode: __expectBoolean(output.enablePerformanceMode),
|
|
2797
2789
|
enablePullRequestPreview: __expectBoolean(output.enablePullRequestPreview),
|
|
2798
|
-
environmentVariables: output.environmentVariables != null
|
|
2799
|
-
? deserializeAws_restJson1EnvironmentVariables(output.environmentVariables, context)
|
|
2800
|
-
: undefined,
|
|
2790
|
+
environmentVariables: output.environmentVariables != null ? de_EnvironmentVariables(output.environmentVariables, context) : undefined,
|
|
2801
2791
|
framework: __expectString(output.framework),
|
|
2802
2792
|
pullRequestEnvironmentName: __expectString(output.pullRequestEnvironmentName),
|
|
2803
2793
|
sourceBranch: __expectString(output.sourceBranch),
|
|
2804
2794
|
stage: __expectString(output.stage),
|
|
2805
|
-
tags: output.tags != null ?
|
|
2795
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
2806
2796
|
thumbnailUrl: __expectString(output.thumbnailUrl),
|
|
2807
2797
|
totalNumberOfJobs: __expectString(output.totalNumberOfJobs),
|
|
2808
2798
|
ttl: __expectString(output.ttl),
|
|
2809
2799
|
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
2810
2800
|
};
|
|
2811
2801
|
};
|
|
2812
|
-
const
|
|
2802
|
+
const de_Branches = (output, context) => {
|
|
2813
2803
|
const retVal = (output || [])
|
|
2814
2804
|
.filter((e) => e != null)
|
|
2815
2805
|
.map((entry) => {
|
|
2816
2806
|
if (entry === null) {
|
|
2817
2807
|
return null;
|
|
2818
2808
|
}
|
|
2819
|
-
return
|
|
2809
|
+
return de_Branch(entry, context);
|
|
2820
2810
|
});
|
|
2821
2811
|
return retVal;
|
|
2822
2812
|
};
|
|
2823
|
-
const
|
|
2813
|
+
const de_CustomDomains = (output, context) => {
|
|
2824
2814
|
const retVal = (output || [])
|
|
2825
2815
|
.filter((e) => e != null)
|
|
2826
2816
|
.map((entry) => {
|
|
@@ -2831,7 +2821,7 @@ const deserializeAws_restJson1CustomDomains = (output, context) => {
|
|
|
2831
2821
|
});
|
|
2832
2822
|
return retVal;
|
|
2833
2823
|
};
|
|
2834
|
-
const
|
|
2824
|
+
const de_CustomRule = (output, context) => {
|
|
2835
2825
|
return {
|
|
2836
2826
|
condition: __expectString(output.condition),
|
|
2837
2827
|
source: __expectString(output.source),
|
|
@@ -2839,21 +2829,21 @@ const deserializeAws_restJson1CustomRule = (output, context) => {
|
|
|
2839
2829
|
target: __expectString(output.target),
|
|
2840
2830
|
};
|
|
2841
2831
|
};
|
|
2842
|
-
const
|
|
2832
|
+
const de_CustomRules = (output, context) => {
|
|
2843
2833
|
const retVal = (output || [])
|
|
2844
2834
|
.filter((e) => e != null)
|
|
2845
2835
|
.map((entry) => {
|
|
2846
2836
|
if (entry === null) {
|
|
2847
2837
|
return null;
|
|
2848
2838
|
}
|
|
2849
|
-
return
|
|
2839
|
+
return de_CustomRule(entry, context);
|
|
2850
2840
|
});
|
|
2851
2841
|
return retVal;
|
|
2852
2842
|
};
|
|
2853
|
-
const
|
|
2843
|
+
const de_DomainAssociation = (output, context) => {
|
|
2854
2844
|
return {
|
|
2855
2845
|
autoSubDomainCreationPatterns: output.autoSubDomainCreationPatterns != null
|
|
2856
|
-
?
|
|
2846
|
+
? de_AutoSubDomainCreationPatterns(output.autoSubDomainCreationPatterns, context)
|
|
2857
2847
|
: undefined,
|
|
2858
2848
|
autoSubDomainIAMRole: __expectString(output.autoSubDomainIAMRole),
|
|
2859
2849
|
certificateVerificationDNSRecord: __expectString(output.certificateVerificationDNSRecord),
|
|
@@ -2862,21 +2852,21 @@ const deserializeAws_restJson1DomainAssociation = (output, context) => {
|
|
|
2862
2852
|
domainStatus: __expectString(output.domainStatus),
|
|
2863
2853
|
enableAutoSubDomain: __expectBoolean(output.enableAutoSubDomain),
|
|
2864
2854
|
statusReason: __expectString(output.statusReason),
|
|
2865
|
-
subDomains: output.subDomains != null ?
|
|
2855
|
+
subDomains: output.subDomains != null ? de_SubDomains(output.subDomains, context) : undefined,
|
|
2866
2856
|
};
|
|
2867
2857
|
};
|
|
2868
|
-
const
|
|
2858
|
+
const de_DomainAssociations = (output, context) => {
|
|
2869
2859
|
const retVal = (output || [])
|
|
2870
2860
|
.filter((e) => e != null)
|
|
2871
2861
|
.map((entry) => {
|
|
2872
2862
|
if (entry === null) {
|
|
2873
2863
|
return null;
|
|
2874
2864
|
}
|
|
2875
|
-
return
|
|
2865
|
+
return de_DomainAssociation(entry, context);
|
|
2876
2866
|
});
|
|
2877
2867
|
return retVal;
|
|
2878
2868
|
};
|
|
2879
|
-
const
|
|
2869
|
+
const de_EnvironmentVariables = (output, context) => {
|
|
2880
2870
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2881
2871
|
if (value === null) {
|
|
2882
2872
|
return acc;
|
|
@@ -2885,7 +2875,7 @@ const deserializeAws_restJson1EnvironmentVariables = (output, context) => {
|
|
|
2885
2875
|
return acc;
|
|
2886
2876
|
}, {});
|
|
2887
2877
|
};
|
|
2888
|
-
const
|
|
2878
|
+
const de_FileUploadUrls = (output, context) => {
|
|
2889
2879
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2890
2880
|
if (value === null) {
|
|
2891
2881
|
return acc;
|
|
@@ -2894,24 +2884,24 @@ const deserializeAws_restJson1FileUploadUrls = (output, context) => {
|
|
|
2894
2884
|
return acc;
|
|
2895
2885
|
}, {});
|
|
2896
2886
|
};
|
|
2897
|
-
const
|
|
2887
|
+
const de_Job = (output, context) => {
|
|
2898
2888
|
return {
|
|
2899
|
-
steps: output.steps != null ?
|
|
2900
|
-
summary: output.summary != null ?
|
|
2889
|
+
steps: output.steps != null ? de_Steps(output.steps, context) : undefined,
|
|
2890
|
+
summary: output.summary != null ? de_JobSummary(output.summary, context) : undefined,
|
|
2901
2891
|
};
|
|
2902
2892
|
};
|
|
2903
|
-
const
|
|
2893
|
+
const de_JobSummaries = (output, context) => {
|
|
2904
2894
|
const retVal = (output || [])
|
|
2905
2895
|
.filter((e) => e != null)
|
|
2906
2896
|
.map((entry) => {
|
|
2907
2897
|
if (entry === null) {
|
|
2908
2898
|
return null;
|
|
2909
2899
|
}
|
|
2910
|
-
return
|
|
2900
|
+
return de_JobSummary(entry, context);
|
|
2911
2901
|
});
|
|
2912
2902
|
return retVal;
|
|
2913
2903
|
};
|
|
2914
|
-
const
|
|
2904
|
+
const de_JobSummary = (output, context) => {
|
|
2915
2905
|
return {
|
|
2916
2906
|
commitId: __expectString(output.commitId),
|
|
2917
2907
|
commitMessage: __expectString(output.commitMessage),
|
|
@@ -2924,7 +2914,7 @@ const deserializeAws_restJson1JobSummary = (output, context) => {
|
|
|
2924
2914
|
status: __expectString(output.status),
|
|
2925
2915
|
};
|
|
2926
2916
|
};
|
|
2927
|
-
const
|
|
2917
|
+
const de_ProductionBranch = (output, context) => {
|
|
2928
2918
|
return {
|
|
2929
2919
|
branchName: __expectString(output.branchName),
|
|
2930
2920
|
lastDeployTime: output.lastDeployTime != null
|
|
@@ -2934,7 +2924,7 @@ const deserializeAws_restJson1ProductionBranch = (output, context) => {
|
|
|
2934
2924
|
thumbnailUrl: __expectString(output.thumbnailUrl),
|
|
2935
2925
|
};
|
|
2936
2926
|
};
|
|
2937
|
-
const
|
|
2927
|
+
const de_Screenshots = (output, context) => {
|
|
2938
2928
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2939
2929
|
if (value === null) {
|
|
2940
2930
|
return acc;
|
|
@@ -2943,13 +2933,13 @@ const deserializeAws_restJson1Screenshots = (output, context) => {
|
|
|
2943
2933
|
return acc;
|
|
2944
2934
|
}, {});
|
|
2945
2935
|
};
|
|
2946
|
-
const
|
|
2936
|
+
const de_Step = (output, context) => {
|
|
2947
2937
|
return {
|
|
2948
2938
|
artifactsUrl: __expectString(output.artifactsUrl),
|
|
2949
2939
|
context: __expectString(output.context),
|
|
2950
2940
|
endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
|
|
2951
2941
|
logUrl: __expectString(output.logUrl),
|
|
2952
|
-
screenshots: output.screenshots != null ?
|
|
2942
|
+
screenshots: output.screenshots != null ? de_Screenshots(output.screenshots, context) : undefined,
|
|
2953
2943
|
startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
|
|
2954
2944
|
status: __expectString(output.status),
|
|
2955
2945
|
statusReason: __expectString(output.statusReason),
|
|
@@ -2958,44 +2948,42 @@ const deserializeAws_restJson1Step = (output, context) => {
|
|
|
2958
2948
|
testConfigUrl: __expectString(output.testConfigUrl),
|
|
2959
2949
|
};
|
|
2960
2950
|
};
|
|
2961
|
-
const
|
|
2951
|
+
const de_Steps = (output, context) => {
|
|
2962
2952
|
const retVal = (output || [])
|
|
2963
2953
|
.filter((e) => e != null)
|
|
2964
2954
|
.map((entry) => {
|
|
2965
2955
|
if (entry === null) {
|
|
2966
2956
|
return null;
|
|
2967
2957
|
}
|
|
2968
|
-
return
|
|
2958
|
+
return de_Step(entry, context);
|
|
2969
2959
|
});
|
|
2970
2960
|
return retVal;
|
|
2971
2961
|
};
|
|
2972
|
-
const
|
|
2962
|
+
const de_SubDomain = (output, context) => {
|
|
2973
2963
|
return {
|
|
2974
2964
|
dnsRecord: __expectString(output.dnsRecord),
|
|
2975
|
-
subDomainSetting: output.subDomainSetting != null
|
|
2976
|
-
? deserializeAws_restJson1SubDomainSetting(output.subDomainSetting, context)
|
|
2977
|
-
: undefined,
|
|
2965
|
+
subDomainSetting: output.subDomainSetting != null ? de_SubDomainSetting(output.subDomainSetting, context) : undefined,
|
|
2978
2966
|
verified: __expectBoolean(output.verified),
|
|
2979
2967
|
};
|
|
2980
2968
|
};
|
|
2981
|
-
const
|
|
2969
|
+
const de_SubDomains = (output, context) => {
|
|
2982
2970
|
const retVal = (output || [])
|
|
2983
2971
|
.filter((e) => e != null)
|
|
2984
2972
|
.map((entry) => {
|
|
2985
2973
|
if (entry === null) {
|
|
2986
2974
|
return null;
|
|
2987
2975
|
}
|
|
2988
|
-
return
|
|
2976
|
+
return de_SubDomain(entry, context);
|
|
2989
2977
|
});
|
|
2990
2978
|
return retVal;
|
|
2991
2979
|
};
|
|
2992
|
-
const
|
|
2980
|
+
const de_SubDomainSetting = (output, context) => {
|
|
2993
2981
|
return {
|
|
2994
2982
|
branchName: __expectString(output.branchName),
|
|
2995
2983
|
prefix: __expectString(output.prefix),
|
|
2996
2984
|
};
|
|
2997
2985
|
};
|
|
2998
|
-
const
|
|
2986
|
+
const de_TagMap = (output, context) => {
|
|
2999
2987
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3000
2988
|
if (value === null) {
|
|
3001
2989
|
return acc;
|
|
@@ -3004,7 +2992,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
3004
2992
|
return acc;
|
|
3005
2993
|
}, {});
|
|
3006
2994
|
};
|
|
3007
|
-
const
|
|
2995
|
+
const de_Webhook = (output, context) => {
|
|
3008
2996
|
return {
|
|
3009
2997
|
branchName: __expectString(output.branchName),
|
|
3010
2998
|
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
@@ -3015,14 +3003,14 @@ const deserializeAws_restJson1Webhook = (output, context) => {
|
|
|
3015
3003
|
webhookUrl: __expectString(output.webhookUrl),
|
|
3016
3004
|
};
|
|
3017
3005
|
};
|
|
3018
|
-
const
|
|
3006
|
+
const de_Webhooks = (output, context) => {
|
|
3019
3007
|
const retVal = (output || [])
|
|
3020
3008
|
.filter((e) => e != null)
|
|
3021
3009
|
.map((entry) => {
|
|
3022
3010
|
if (entry === null) {
|
|
3023
3011
|
return null;
|
|
3024
3012
|
}
|
|
3025
|
-
return
|
|
3013
|
+
return de_Webhook(entry, context);
|
|
3026
3014
|
});
|
|
3027
3015
|
return retVal;
|
|
3028
3016
|
};
|