@aws-sdk/client-amplify 3.303.0 → 3.309.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 +29 -29
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_GenerateAccessLogsCommand = exports.de_DeleteWebhookCommand = exports.de_DeleteJobCommand = exports.de_DeleteDomainAssociationCommand = exports.de_DeleteBranchCommand = exports.de_DeleteBackendEnvironmentCommand = exports.de_DeleteAppCommand = exports.de_CreateWebhookCommand = exports.de_CreateDomainAssociationCommand = exports.de_CreateDeploymentCommand = exports.de_CreateBranchCommand = exports.de_CreateBackendEnvironmentCommand = exports.de_CreateAppCommand = exports.se_UpdateWebhookCommand = exports.se_UpdateDomainAssociationCommand = exports.se_UpdateBranchCommand = exports.se_UpdateAppCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopJobCommand = exports.se_StartJobCommand = exports.se_StartDeploymentCommand = exports.se_ListWebhooksCommand = exports.se_ListTagsForResourceCommand = exports.se_ListJobsCommand = exports.se_ListDomainAssociationsCommand = exports.se_ListBranchesCommand = exports.se_ListBackendEnvironmentsCommand = exports.se_ListArtifactsCommand = exports.se_ListAppsCommand = exports.se_GetWebhookCommand = exports.se_GetJobCommand = exports.se_GetDomainAssociationCommand = exports.se_GetBranchCommand = exports.se_GetBackendEnvironmentCommand = exports.se_GetArtifactUrlCommand = exports.se_GetAppCommand = exports.se_GenerateAccessLogsCommand = exports.se_DeleteWebhookCommand = exports.se_DeleteJobCommand = exports.se_DeleteDomainAssociationCommand = exports.se_DeleteBranchCommand = exports.se_DeleteBackendEnvironmentCommand = exports.se_DeleteAppCommand = exports.se_CreateWebhookCommand = exports.se_CreateDomainAssociationCommand = exports.se_CreateDeploymentCommand = exports.se_CreateBranchCommand = exports.se_CreateBackendEnvironmentCommand = exports.se_CreateAppCommand = void 0;
|
|
4
|
+
exports.de_UpdateWebhookCommand = exports.de_UpdateDomainAssociationCommand = exports.de_UpdateBranchCommand = exports.de_UpdateAppCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopJobCommand = exports.de_StartJobCommand = exports.de_StartDeploymentCommand = exports.de_ListWebhooksCommand = exports.de_ListTagsForResourceCommand = exports.de_ListJobsCommand = exports.de_ListDomainAssociationsCommand = exports.de_ListBranchesCommand = exports.de_ListBackendEnvironmentsCommand = exports.de_ListArtifactsCommand = exports.de_ListAppsCommand = exports.de_GetWebhookCommand = exports.de_GetJobCommand = exports.de_GetDomainAssociationCommand = exports.de_GetBranchCommand = exports.de_GetBackendEnvironmentCommand = exports.de_GetArtifactUrlCommand = exports.de_GetAppCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const AmplifyServiceException_1 = require("../models/AmplifyServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const
|
|
9
|
+
const se_CreateAppCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
@@ -16,29 +16,29 @@ const serializeAws_restJson1CreateAppCommand = async (input, context) => {
|
|
|
16
16
|
body = JSON.stringify({
|
|
17
17
|
...(input.accessToken != null && { accessToken: input.accessToken }),
|
|
18
18
|
...(input.autoBranchCreationConfig != null && {
|
|
19
|
-
autoBranchCreationConfig:
|
|
19
|
+
autoBranchCreationConfig: se_AutoBranchCreationConfig(input.autoBranchCreationConfig, context),
|
|
20
20
|
}),
|
|
21
21
|
...(input.autoBranchCreationPatterns != null && {
|
|
22
|
-
autoBranchCreationPatterns:
|
|
22
|
+
autoBranchCreationPatterns: se_AutoBranchCreationPatterns(input.autoBranchCreationPatterns, context),
|
|
23
23
|
}),
|
|
24
24
|
...(input.basicAuthCredentials != null && { basicAuthCredentials: input.basicAuthCredentials }),
|
|
25
25
|
...(input.buildSpec != null && { buildSpec: input.buildSpec }),
|
|
26
26
|
...(input.customHeaders != null && { customHeaders: input.customHeaders }),
|
|
27
|
-
...(input.customRules != null && { customRules:
|
|
27
|
+
...(input.customRules != null && { customRules: se_CustomRules(input.customRules, context) }),
|
|
28
28
|
...(input.description != null && { description: input.description }),
|
|
29
29
|
...(input.enableAutoBranchCreation != null && { enableAutoBranchCreation: input.enableAutoBranchCreation }),
|
|
30
30
|
...(input.enableBasicAuth != null && { enableBasicAuth: input.enableBasicAuth }),
|
|
31
31
|
...(input.enableBranchAutoBuild != null && { enableBranchAutoBuild: input.enableBranchAutoBuild }),
|
|
32
32
|
...(input.enableBranchAutoDeletion != null && { enableBranchAutoDeletion: input.enableBranchAutoDeletion }),
|
|
33
33
|
...(input.environmentVariables != null && {
|
|
34
|
-
environmentVariables:
|
|
34
|
+
environmentVariables: se_EnvironmentVariables(input.environmentVariables, context),
|
|
35
35
|
}),
|
|
36
36
|
...(input.iamServiceRoleArn != null && { iamServiceRoleArn: input.iamServiceRoleArn }),
|
|
37
37
|
...(input.name != null && { name: input.name }),
|
|
38
38
|
...(input.oauthToken != null && { oauthToken: input.oauthToken }),
|
|
39
39
|
...(input.platform != null && { platform: input.platform }),
|
|
40
40
|
...(input.repository != null && { repository: input.repository }),
|
|
41
|
-
...(input.tags != null && { tags:
|
|
41
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
42
42
|
});
|
|
43
43
|
return new protocol_http_1.HttpRequest({
|
|
44
44
|
protocol,
|
|
@@ -50,8 +50,8 @@ const serializeAws_restJson1CreateAppCommand = async (input, context) => {
|
|
|
50
50
|
body,
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
|
-
exports.
|
|
54
|
-
const
|
|
53
|
+
exports.se_CreateAppCommand = se_CreateAppCommand;
|
|
54
|
+
const se_CreateBackendEnvironmentCommand = async (input, context) => {
|
|
55
55
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
56
56
|
const headers = {
|
|
57
57
|
"content-type": "application/json",
|
|
@@ -74,8 +74,8 @@ const serializeAws_restJson1CreateBackendEnvironmentCommand = async (input, cont
|
|
|
74
74
|
body,
|
|
75
75
|
});
|
|
76
76
|
};
|
|
77
|
-
exports.
|
|
78
|
-
const
|
|
77
|
+
exports.se_CreateBackendEnvironmentCommand = se_CreateBackendEnvironmentCommand;
|
|
78
|
+
const se_CreateBranchCommand = async (input, context) => {
|
|
79
79
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
80
80
|
const headers = {
|
|
81
81
|
"content-type": "application/json",
|
|
@@ -96,12 +96,12 @@ const serializeAws_restJson1CreateBranchCommand = async (input, context) => {
|
|
|
96
96
|
...(input.enablePerformanceMode != null && { enablePerformanceMode: input.enablePerformanceMode }),
|
|
97
97
|
...(input.enablePullRequestPreview != null && { enablePullRequestPreview: input.enablePullRequestPreview }),
|
|
98
98
|
...(input.environmentVariables != null && {
|
|
99
|
-
environmentVariables:
|
|
99
|
+
environmentVariables: se_EnvironmentVariables(input.environmentVariables, context),
|
|
100
100
|
}),
|
|
101
101
|
...(input.framework != null && { framework: input.framework }),
|
|
102
102
|
...(input.pullRequestEnvironmentName != null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName }),
|
|
103
103
|
...(input.stage != null && { stage: input.stage }),
|
|
104
|
-
...(input.tags != null && { tags:
|
|
104
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
105
105
|
...(input.ttl != null && { ttl: input.ttl }),
|
|
106
106
|
});
|
|
107
107
|
return new protocol_http_1.HttpRequest({
|
|
@@ -114,8 +114,8 @@ const serializeAws_restJson1CreateBranchCommand = async (input, context) => {
|
|
|
114
114
|
body,
|
|
115
115
|
});
|
|
116
116
|
};
|
|
117
|
-
exports.
|
|
118
|
-
const
|
|
117
|
+
exports.se_CreateBranchCommand = se_CreateBranchCommand;
|
|
118
|
+
const se_CreateDeploymentCommand = async (input, context) => {
|
|
119
119
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
120
120
|
const headers = {
|
|
121
121
|
"content-type": "application/json",
|
|
@@ -126,7 +126,7 @@ const serializeAws_restJson1CreateDeploymentCommand = async (input, context) =>
|
|
|
126
126
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "branchName", () => input.branchName, "{branchName}", false);
|
|
127
127
|
let body;
|
|
128
128
|
body = JSON.stringify({
|
|
129
|
-
...(input.fileMap != null && { fileMap:
|
|
129
|
+
...(input.fileMap != null && { fileMap: se_FileMap(input.fileMap, context) }),
|
|
130
130
|
});
|
|
131
131
|
return new protocol_http_1.HttpRequest({
|
|
132
132
|
protocol,
|
|
@@ -138,8 +138,8 @@ const serializeAws_restJson1CreateDeploymentCommand = async (input, context) =>
|
|
|
138
138
|
body,
|
|
139
139
|
});
|
|
140
140
|
};
|
|
141
|
-
exports.
|
|
142
|
-
const
|
|
141
|
+
exports.se_CreateDeploymentCommand = se_CreateDeploymentCommand;
|
|
142
|
+
const se_CreateDomainAssociationCommand = async (input, context) => {
|
|
143
143
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
144
144
|
const headers = {
|
|
145
145
|
"content-type": "application/json",
|
|
@@ -149,13 +149,13 @@ const serializeAws_restJson1CreateDomainAssociationCommand = async (input, conte
|
|
|
149
149
|
let body;
|
|
150
150
|
body = JSON.stringify({
|
|
151
151
|
...(input.autoSubDomainCreationPatterns != null && {
|
|
152
|
-
autoSubDomainCreationPatterns:
|
|
152
|
+
autoSubDomainCreationPatterns: se_AutoSubDomainCreationPatterns(input.autoSubDomainCreationPatterns, context),
|
|
153
153
|
}),
|
|
154
154
|
...(input.autoSubDomainIAMRole != null && { autoSubDomainIAMRole: input.autoSubDomainIAMRole }),
|
|
155
155
|
...(input.domainName != null && { domainName: input.domainName }),
|
|
156
156
|
...(input.enableAutoSubDomain != null && { enableAutoSubDomain: input.enableAutoSubDomain }),
|
|
157
157
|
...(input.subDomainSettings != null && {
|
|
158
|
-
subDomainSettings:
|
|
158
|
+
subDomainSettings: se_SubDomainSettings(input.subDomainSettings, context),
|
|
159
159
|
}),
|
|
160
160
|
});
|
|
161
161
|
return new protocol_http_1.HttpRequest({
|
|
@@ -168,8 +168,8 @@ const serializeAws_restJson1CreateDomainAssociationCommand = async (input, conte
|
|
|
168
168
|
body,
|
|
169
169
|
});
|
|
170
170
|
};
|
|
171
|
-
exports.
|
|
172
|
-
const
|
|
171
|
+
exports.se_CreateDomainAssociationCommand = se_CreateDomainAssociationCommand;
|
|
172
|
+
const se_CreateWebhookCommand = async (input, context) => {
|
|
173
173
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
174
174
|
const headers = {
|
|
175
175
|
"content-type": "application/json",
|
|
@@ -191,8 +191,8 @@ const serializeAws_restJson1CreateWebhookCommand = async (input, context) => {
|
|
|
191
191
|
body,
|
|
192
192
|
});
|
|
193
193
|
};
|
|
194
|
-
exports.
|
|
195
|
-
const
|
|
194
|
+
exports.se_CreateWebhookCommand = se_CreateWebhookCommand;
|
|
195
|
+
const se_DeleteAppCommand = async (input, context) => {
|
|
196
196
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
197
197
|
const headers = {};
|
|
198
198
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}";
|
|
@@ -208,8 +208,8 @@ const serializeAws_restJson1DeleteAppCommand = async (input, context) => {
|
|
|
208
208
|
body,
|
|
209
209
|
});
|
|
210
210
|
};
|
|
211
|
-
exports.
|
|
212
|
-
const
|
|
211
|
+
exports.se_DeleteAppCommand = se_DeleteAppCommand;
|
|
212
|
+
const se_DeleteBackendEnvironmentCommand = async (input, context) => {
|
|
213
213
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
214
214
|
const headers = {};
|
|
215
215
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -227,8 +227,8 @@ const serializeAws_restJson1DeleteBackendEnvironmentCommand = async (input, cont
|
|
|
227
227
|
body,
|
|
228
228
|
});
|
|
229
229
|
};
|
|
230
|
-
exports.
|
|
231
|
-
const
|
|
230
|
+
exports.se_DeleteBackendEnvironmentCommand = se_DeleteBackendEnvironmentCommand;
|
|
231
|
+
const se_DeleteBranchCommand = async (input, context) => {
|
|
232
232
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
233
233
|
const headers = {};
|
|
234
234
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches/{branchName}";
|
|
@@ -245,8 +245,8 @@ const serializeAws_restJson1DeleteBranchCommand = async (input, context) => {
|
|
|
245
245
|
body,
|
|
246
246
|
});
|
|
247
247
|
};
|
|
248
|
-
exports.
|
|
249
|
-
const
|
|
248
|
+
exports.se_DeleteBranchCommand = se_DeleteBranchCommand;
|
|
249
|
+
const se_DeleteDomainAssociationCommand = async (input, context) => {
|
|
250
250
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
251
251
|
const headers = {};
|
|
252
252
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/domains/{domainName}";
|
|
@@ -263,8 +263,8 @@ const serializeAws_restJson1DeleteDomainAssociationCommand = async (input, conte
|
|
|
263
263
|
body,
|
|
264
264
|
});
|
|
265
265
|
};
|
|
266
|
-
exports.
|
|
267
|
-
const
|
|
266
|
+
exports.se_DeleteDomainAssociationCommand = se_DeleteDomainAssociationCommand;
|
|
267
|
+
const se_DeleteJobCommand = async (input, context) => {
|
|
268
268
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
269
269
|
const headers = {};
|
|
270
270
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -283,8 +283,8 @@ const serializeAws_restJson1DeleteJobCommand = async (input, context) => {
|
|
|
283
283
|
body,
|
|
284
284
|
});
|
|
285
285
|
};
|
|
286
|
-
exports.
|
|
287
|
-
const
|
|
286
|
+
exports.se_DeleteJobCommand = se_DeleteJobCommand;
|
|
287
|
+
const se_DeleteWebhookCommand = async (input, context) => {
|
|
288
288
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
289
289
|
const headers = {};
|
|
290
290
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/webhooks/{webhookId}";
|
|
@@ -300,8 +300,8 @@ const serializeAws_restJson1DeleteWebhookCommand = async (input, context) => {
|
|
|
300
300
|
body,
|
|
301
301
|
});
|
|
302
302
|
};
|
|
303
|
-
exports.
|
|
304
|
-
const
|
|
303
|
+
exports.se_DeleteWebhookCommand = se_DeleteWebhookCommand;
|
|
304
|
+
const se_GenerateAccessLogsCommand = async (input, context) => {
|
|
305
305
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
306
306
|
const headers = {
|
|
307
307
|
"content-type": "application/json",
|
|
@@ -324,8 +324,8 @@ const serializeAws_restJson1GenerateAccessLogsCommand = async (input, context) =
|
|
|
324
324
|
body,
|
|
325
325
|
});
|
|
326
326
|
};
|
|
327
|
-
exports.
|
|
328
|
-
const
|
|
327
|
+
exports.se_GenerateAccessLogsCommand = se_GenerateAccessLogsCommand;
|
|
328
|
+
const se_GetAppCommand = async (input, context) => {
|
|
329
329
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
330
330
|
const headers = {};
|
|
331
331
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}";
|
|
@@ -341,8 +341,8 @@ const serializeAws_restJson1GetAppCommand = async (input, context) => {
|
|
|
341
341
|
body,
|
|
342
342
|
});
|
|
343
343
|
};
|
|
344
|
-
exports.
|
|
345
|
-
const
|
|
344
|
+
exports.se_GetAppCommand = se_GetAppCommand;
|
|
345
|
+
const se_GetArtifactUrlCommand = async (input, context) => {
|
|
346
346
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
347
347
|
const headers = {};
|
|
348
348
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/artifacts/{artifactId}";
|
|
@@ -358,8 +358,8 @@ const serializeAws_restJson1GetArtifactUrlCommand = async (input, context) => {
|
|
|
358
358
|
body,
|
|
359
359
|
});
|
|
360
360
|
};
|
|
361
|
-
exports.
|
|
362
|
-
const
|
|
361
|
+
exports.se_GetArtifactUrlCommand = se_GetArtifactUrlCommand;
|
|
362
|
+
const se_GetBackendEnvironmentCommand = async (input, context) => {
|
|
363
363
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
364
364
|
const headers = {};
|
|
365
365
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -377,8 +377,8 @@ const serializeAws_restJson1GetBackendEnvironmentCommand = async (input, context
|
|
|
377
377
|
body,
|
|
378
378
|
});
|
|
379
379
|
};
|
|
380
|
-
exports.
|
|
381
|
-
const
|
|
380
|
+
exports.se_GetBackendEnvironmentCommand = se_GetBackendEnvironmentCommand;
|
|
381
|
+
const se_GetBranchCommand = async (input, context) => {
|
|
382
382
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
383
383
|
const headers = {};
|
|
384
384
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches/{branchName}";
|
|
@@ -395,8 +395,8 @@ const serializeAws_restJson1GetBranchCommand = async (input, context) => {
|
|
|
395
395
|
body,
|
|
396
396
|
});
|
|
397
397
|
};
|
|
398
|
-
exports.
|
|
399
|
-
const
|
|
398
|
+
exports.se_GetBranchCommand = se_GetBranchCommand;
|
|
399
|
+
const se_GetDomainAssociationCommand = async (input, context) => {
|
|
400
400
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
401
401
|
const headers = {};
|
|
402
402
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/domains/{domainName}";
|
|
@@ -413,8 +413,8 @@ const serializeAws_restJson1GetDomainAssociationCommand = async (input, context)
|
|
|
413
413
|
body,
|
|
414
414
|
});
|
|
415
415
|
};
|
|
416
|
-
exports.
|
|
417
|
-
const
|
|
416
|
+
exports.se_GetDomainAssociationCommand = se_GetDomainAssociationCommand;
|
|
417
|
+
const se_GetJobCommand = async (input, context) => {
|
|
418
418
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
419
419
|
const headers = {};
|
|
420
420
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -433,8 +433,8 @@ const serializeAws_restJson1GetJobCommand = async (input, context) => {
|
|
|
433
433
|
body,
|
|
434
434
|
});
|
|
435
435
|
};
|
|
436
|
-
exports.
|
|
437
|
-
const
|
|
436
|
+
exports.se_GetJobCommand = se_GetJobCommand;
|
|
437
|
+
const se_GetWebhookCommand = async (input, context) => {
|
|
438
438
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
439
439
|
const headers = {};
|
|
440
440
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/webhooks/{webhookId}";
|
|
@@ -450,8 +450,8 @@ const serializeAws_restJson1GetWebhookCommand = async (input, context) => {
|
|
|
450
450
|
body,
|
|
451
451
|
});
|
|
452
452
|
};
|
|
453
|
-
exports.
|
|
454
|
-
const
|
|
453
|
+
exports.se_GetWebhookCommand = se_GetWebhookCommand;
|
|
454
|
+
const se_ListAppsCommand = async (input, context) => {
|
|
455
455
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
456
456
|
const headers = {};
|
|
457
457
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps";
|
|
@@ -471,8 +471,8 @@ const serializeAws_restJson1ListAppsCommand = async (input, context) => {
|
|
|
471
471
|
body,
|
|
472
472
|
});
|
|
473
473
|
};
|
|
474
|
-
exports.
|
|
475
|
-
const
|
|
474
|
+
exports.se_ListAppsCommand = se_ListAppsCommand;
|
|
475
|
+
const se_ListArtifactsCommand = async (input, context) => {
|
|
476
476
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
477
477
|
const headers = {};
|
|
478
478
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -496,8 +496,8 @@ const serializeAws_restJson1ListArtifactsCommand = async (input, context) => {
|
|
|
496
496
|
body,
|
|
497
497
|
});
|
|
498
498
|
};
|
|
499
|
-
exports.
|
|
500
|
-
const
|
|
499
|
+
exports.se_ListArtifactsCommand = se_ListArtifactsCommand;
|
|
500
|
+
const se_ListBackendEnvironmentsCommand = async (input, context) => {
|
|
501
501
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
502
502
|
const headers = {};
|
|
503
503
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/backendenvironments";
|
|
@@ -519,8 +519,8 @@ const serializeAws_restJson1ListBackendEnvironmentsCommand = async (input, conte
|
|
|
519
519
|
body,
|
|
520
520
|
});
|
|
521
521
|
};
|
|
522
|
-
exports.
|
|
523
|
-
const
|
|
522
|
+
exports.se_ListBackendEnvironmentsCommand = se_ListBackendEnvironmentsCommand;
|
|
523
|
+
const se_ListBranchesCommand = async (input, context) => {
|
|
524
524
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
525
525
|
const headers = {};
|
|
526
526
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches";
|
|
@@ -541,8 +541,8 @@ const serializeAws_restJson1ListBranchesCommand = async (input, context) => {
|
|
|
541
541
|
body,
|
|
542
542
|
});
|
|
543
543
|
};
|
|
544
|
-
exports.
|
|
545
|
-
const
|
|
544
|
+
exports.se_ListBranchesCommand = se_ListBranchesCommand;
|
|
545
|
+
const se_ListDomainAssociationsCommand = async (input, context) => {
|
|
546
546
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
547
547
|
const headers = {};
|
|
548
548
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/domains";
|
|
@@ -563,8 +563,8 @@ const serializeAws_restJson1ListDomainAssociationsCommand = async (input, contex
|
|
|
563
563
|
body,
|
|
564
564
|
});
|
|
565
565
|
};
|
|
566
|
-
exports.
|
|
567
|
-
const
|
|
566
|
+
exports.se_ListDomainAssociationsCommand = se_ListDomainAssociationsCommand;
|
|
567
|
+
const se_ListJobsCommand = async (input, context) => {
|
|
568
568
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
569
569
|
const headers = {};
|
|
570
570
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/branches/{branchName}/jobs";
|
|
@@ -586,8 +586,8 @@ const serializeAws_restJson1ListJobsCommand = async (input, context) => {
|
|
|
586
586
|
body,
|
|
587
587
|
});
|
|
588
588
|
};
|
|
589
|
-
exports.
|
|
590
|
-
const
|
|
589
|
+
exports.se_ListJobsCommand = se_ListJobsCommand;
|
|
590
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
591
591
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
592
592
|
const headers = {};
|
|
593
593
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -603,8 +603,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
603
603
|
body,
|
|
604
604
|
});
|
|
605
605
|
};
|
|
606
|
-
exports.
|
|
607
|
-
const
|
|
606
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
607
|
+
const se_ListWebhooksCommand = async (input, context) => {
|
|
608
608
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
609
609
|
const headers = {};
|
|
610
610
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apps/{appId}/webhooks";
|
|
@@ -625,8 +625,8 @@ const serializeAws_restJson1ListWebhooksCommand = async (input, context) => {
|
|
|
625
625
|
body,
|
|
626
626
|
});
|
|
627
627
|
};
|
|
628
|
-
exports.
|
|
629
|
-
const
|
|
628
|
+
exports.se_ListWebhooksCommand = se_ListWebhooksCommand;
|
|
629
|
+
const se_StartDeploymentCommand = async (input, context) => {
|
|
630
630
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
631
631
|
const headers = {
|
|
632
632
|
"content-type": "application/json",
|
|
@@ -650,8 +650,8 @@ const serializeAws_restJson1StartDeploymentCommand = async (input, context) => {
|
|
|
650
650
|
body,
|
|
651
651
|
});
|
|
652
652
|
};
|
|
653
|
-
exports.
|
|
654
|
-
const
|
|
653
|
+
exports.se_StartDeploymentCommand = se_StartDeploymentCommand;
|
|
654
|
+
const se_StartJobCommand = async (input, context) => {
|
|
655
655
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
656
656
|
const headers = {
|
|
657
657
|
"content-type": "application/json",
|
|
@@ -678,8 +678,8 @@ const serializeAws_restJson1StartJobCommand = async (input, context) => {
|
|
|
678
678
|
body,
|
|
679
679
|
});
|
|
680
680
|
};
|
|
681
|
-
exports.
|
|
682
|
-
const
|
|
681
|
+
exports.se_StartJobCommand = se_StartJobCommand;
|
|
682
|
+
const se_StopJobCommand = async (input, context) => {
|
|
683
683
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
684
684
|
const headers = {};
|
|
685
685
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -698,8 +698,8 @@ const serializeAws_restJson1StopJobCommand = async (input, context) => {
|
|
|
698
698
|
body,
|
|
699
699
|
});
|
|
700
700
|
};
|
|
701
|
-
exports.
|
|
702
|
-
const
|
|
701
|
+
exports.se_StopJobCommand = se_StopJobCommand;
|
|
702
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
703
703
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
704
704
|
const headers = {
|
|
705
705
|
"content-type": "application/json",
|
|
@@ -708,7 +708,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
708
708
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
709
709
|
let body;
|
|
710
710
|
body = JSON.stringify({
|
|
711
|
-
...(input.tags != null && { tags:
|
|
711
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
712
712
|
});
|
|
713
713
|
return new protocol_http_1.HttpRequest({
|
|
714
714
|
protocol,
|
|
@@ -720,8 +720,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
720
720
|
body,
|
|
721
721
|
});
|
|
722
722
|
};
|
|
723
|
-
exports.
|
|
724
|
-
const
|
|
723
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
724
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
725
725
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
726
726
|
const headers = {};
|
|
727
727
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -744,8 +744,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
744
744
|
body,
|
|
745
745
|
});
|
|
746
746
|
};
|
|
747
|
-
exports.
|
|
748
|
-
const
|
|
747
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
748
|
+
const se_UpdateAppCommand = async (input, context) => {
|
|
749
749
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
750
750
|
const headers = {
|
|
751
751
|
"content-type": "application/json",
|
|
@@ -756,22 +756,22 @@ const serializeAws_restJson1UpdateAppCommand = async (input, context) => {
|
|
|
756
756
|
body = JSON.stringify({
|
|
757
757
|
...(input.accessToken != null && { accessToken: input.accessToken }),
|
|
758
758
|
...(input.autoBranchCreationConfig != null && {
|
|
759
|
-
autoBranchCreationConfig:
|
|
759
|
+
autoBranchCreationConfig: se_AutoBranchCreationConfig(input.autoBranchCreationConfig, context),
|
|
760
760
|
}),
|
|
761
761
|
...(input.autoBranchCreationPatterns != null && {
|
|
762
|
-
autoBranchCreationPatterns:
|
|
762
|
+
autoBranchCreationPatterns: se_AutoBranchCreationPatterns(input.autoBranchCreationPatterns, context),
|
|
763
763
|
}),
|
|
764
764
|
...(input.basicAuthCredentials != null && { basicAuthCredentials: input.basicAuthCredentials }),
|
|
765
765
|
...(input.buildSpec != null && { buildSpec: input.buildSpec }),
|
|
766
766
|
...(input.customHeaders != null && { customHeaders: input.customHeaders }),
|
|
767
|
-
...(input.customRules != null && { customRules:
|
|
767
|
+
...(input.customRules != null && { customRules: se_CustomRules(input.customRules, context) }),
|
|
768
768
|
...(input.description != null && { description: input.description }),
|
|
769
769
|
...(input.enableAutoBranchCreation != null && { enableAutoBranchCreation: input.enableAutoBranchCreation }),
|
|
770
770
|
...(input.enableBasicAuth != null && { enableBasicAuth: input.enableBasicAuth }),
|
|
771
771
|
...(input.enableBranchAutoBuild != null && { enableBranchAutoBuild: input.enableBranchAutoBuild }),
|
|
772
772
|
...(input.enableBranchAutoDeletion != null && { enableBranchAutoDeletion: input.enableBranchAutoDeletion }),
|
|
773
773
|
...(input.environmentVariables != null && {
|
|
774
|
-
environmentVariables:
|
|
774
|
+
environmentVariables: se_EnvironmentVariables(input.environmentVariables, context),
|
|
775
775
|
}),
|
|
776
776
|
...(input.iamServiceRoleArn != null && { iamServiceRoleArn: input.iamServiceRoleArn }),
|
|
777
777
|
...(input.name != null && { name: input.name }),
|
|
@@ -789,8 +789,8 @@ const serializeAws_restJson1UpdateAppCommand = async (input, context) => {
|
|
|
789
789
|
body,
|
|
790
790
|
});
|
|
791
791
|
};
|
|
792
|
-
exports.
|
|
793
|
-
const
|
|
792
|
+
exports.se_UpdateAppCommand = se_UpdateAppCommand;
|
|
793
|
+
const se_UpdateBranchCommand = 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",
|
|
@@ -811,7 +811,7 @@ const serializeAws_restJson1UpdateBranchCommand = async (input, context) => {
|
|
|
811
811
|
...(input.enablePerformanceMode != null && { enablePerformanceMode: input.enablePerformanceMode }),
|
|
812
812
|
...(input.enablePullRequestPreview != null && { enablePullRequestPreview: input.enablePullRequestPreview }),
|
|
813
813
|
...(input.environmentVariables != null && {
|
|
814
|
-
environmentVariables:
|
|
814
|
+
environmentVariables: se_EnvironmentVariables(input.environmentVariables, context),
|
|
815
815
|
}),
|
|
816
816
|
...(input.framework != null && { framework: input.framework }),
|
|
817
817
|
...(input.pullRequestEnvironmentName != null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName }),
|
|
@@ -828,8 +828,8 @@ const serializeAws_restJson1UpdateBranchCommand = async (input, context) => {
|
|
|
828
828
|
body,
|
|
829
829
|
});
|
|
830
830
|
};
|
|
831
|
-
exports.
|
|
832
|
-
const
|
|
831
|
+
exports.se_UpdateBranchCommand = se_UpdateBranchCommand;
|
|
832
|
+
const se_UpdateDomainAssociationCommand = async (input, context) => {
|
|
833
833
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
834
834
|
const headers = {
|
|
835
835
|
"content-type": "application/json",
|
|
@@ -840,12 +840,12 @@ const serializeAws_restJson1UpdateDomainAssociationCommand = async (input, conte
|
|
|
840
840
|
let body;
|
|
841
841
|
body = JSON.stringify({
|
|
842
842
|
...(input.autoSubDomainCreationPatterns != null && {
|
|
843
|
-
autoSubDomainCreationPatterns:
|
|
843
|
+
autoSubDomainCreationPatterns: se_AutoSubDomainCreationPatterns(input.autoSubDomainCreationPatterns, context),
|
|
844
844
|
}),
|
|
845
845
|
...(input.autoSubDomainIAMRole != null && { autoSubDomainIAMRole: input.autoSubDomainIAMRole }),
|
|
846
846
|
...(input.enableAutoSubDomain != null && { enableAutoSubDomain: input.enableAutoSubDomain }),
|
|
847
847
|
...(input.subDomainSettings != null && {
|
|
848
|
-
subDomainSettings:
|
|
848
|
+
subDomainSettings: se_SubDomainSettings(input.subDomainSettings, context),
|
|
849
849
|
}),
|
|
850
850
|
});
|
|
851
851
|
return new protocol_http_1.HttpRequest({
|
|
@@ -858,8 +858,8 @@ const serializeAws_restJson1UpdateDomainAssociationCommand = async (input, conte
|
|
|
858
858
|
body,
|
|
859
859
|
});
|
|
860
860
|
};
|
|
861
|
-
exports.
|
|
862
|
-
const
|
|
861
|
+
exports.se_UpdateDomainAssociationCommand = se_UpdateDomainAssociationCommand;
|
|
862
|
+
const se_UpdateWebhookCommand = async (input, context) => {
|
|
863
863
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
864
864
|
const headers = {
|
|
865
865
|
"content-type": "application/json",
|
|
@@ -881,22 +881,22 @@ const serializeAws_restJson1UpdateWebhookCommand = async (input, context) => {
|
|
|
881
881
|
body,
|
|
882
882
|
});
|
|
883
883
|
};
|
|
884
|
-
exports.
|
|
885
|
-
const
|
|
884
|
+
exports.se_UpdateWebhookCommand = se_UpdateWebhookCommand;
|
|
885
|
+
const de_CreateAppCommand = async (output, context) => {
|
|
886
886
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
887
|
-
return
|
|
887
|
+
return de_CreateAppCommandError(output, context);
|
|
888
888
|
}
|
|
889
889
|
const contents = map({
|
|
890
890
|
$metadata: deserializeMetadata(output),
|
|
891
891
|
});
|
|
892
892
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
893
893
|
if (data.app != null) {
|
|
894
|
-
contents.app =
|
|
894
|
+
contents.app = de_App(data.app, context);
|
|
895
895
|
}
|
|
896
896
|
return contents;
|
|
897
897
|
};
|
|
898
|
-
exports.
|
|
899
|
-
const
|
|
898
|
+
exports.de_CreateAppCommand = de_CreateAppCommand;
|
|
899
|
+
const de_CreateAppCommandError = async (output, context) => {
|
|
900
900
|
const parsedOutput = {
|
|
901
901
|
...output,
|
|
902
902
|
body: await parseErrorBody(output.body, context),
|
|
@@ -905,19 +905,19 @@ const deserializeAws_restJson1CreateAppCommandError = async (output, context) =>
|
|
|
905
905
|
switch (errorCode) {
|
|
906
906
|
case "BadRequestException":
|
|
907
907
|
case "com.amazonaws.amplify#BadRequestException":
|
|
908
|
-
throw await
|
|
908
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
909
909
|
case "DependentServiceFailureException":
|
|
910
910
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
911
|
-
throw await
|
|
911
|
+
throw await de_DependentServiceFailureExceptionRes(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 "UnauthorizedException":
|
|
919
919
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
920
|
-
throw await
|
|
920
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
921
921
|
default:
|
|
922
922
|
const parsedBody = parsedOutput.body;
|
|
923
923
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -928,21 +928,21 @@ const deserializeAws_restJson1CreateAppCommandError = async (output, context) =>
|
|
|
928
928
|
});
|
|
929
929
|
}
|
|
930
930
|
};
|
|
931
|
-
const
|
|
931
|
+
const de_CreateBackendEnvironmentCommand = async (output, context) => {
|
|
932
932
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
933
|
-
return
|
|
933
|
+
return de_CreateBackendEnvironmentCommandError(output, context);
|
|
934
934
|
}
|
|
935
935
|
const contents = map({
|
|
936
936
|
$metadata: deserializeMetadata(output),
|
|
937
937
|
});
|
|
938
938
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
939
939
|
if (data.backendEnvironment != null) {
|
|
940
|
-
contents.backendEnvironment =
|
|
940
|
+
contents.backendEnvironment = de_BackendEnvironment(data.backendEnvironment, context);
|
|
941
941
|
}
|
|
942
942
|
return contents;
|
|
943
943
|
};
|
|
944
|
-
exports.
|
|
945
|
-
const
|
|
944
|
+
exports.de_CreateBackendEnvironmentCommand = de_CreateBackendEnvironmentCommand;
|
|
945
|
+
const de_CreateBackendEnvironmentCommandError = async (output, context) => {
|
|
946
946
|
const parsedOutput = {
|
|
947
947
|
...output,
|
|
948
948
|
body: await parseErrorBody(output.body, context),
|
|
@@ -951,19 +951,19 @@ const deserializeAws_restJson1CreateBackendEnvironmentCommandError = async (outp
|
|
|
951
951
|
switch (errorCode) {
|
|
952
952
|
case "BadRequestException":
|
|
953
953
|
case "com.amazonaws.amplify#BadRequestException":
|
|
954
|
-
throw await
|
|
954
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
955
955
|
case "InternalFailureException":
|
|
956
956
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
957
|
-
throw await
|
|
957
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
958
958
|
case "LimitExceededException":
|
|
959
959
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
960
|
-
throw await
|
|
960
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
961
961
|
case "NotFoundException":
|
|
962
962
|
case "com.amazonaws.amplify#NotFoundException":
|
|
963
|
-
throw await
|
|
963
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
964
964
|
case "UnauthorizedException":
|
|
965
965
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
966
|
-
throw await
|
|
966
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
967
967
|
default:
|
|
968
968
|
const parsedBody = parsedOutput.body;
|
|
969
969
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -974,21 +974,21 @@ const deserializeAws_restJson1CreateBackendEnvironmentCommandError = async (outp
|
|
|
974
974
|
});
|
|
975
975
|
}
|
|
976
976
|
};
|
|
977
|
-
const
|
|
977
|
+
const de_CreateBranchCommand = async (output, context) => {
|
|
978
978
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
979
|
-
return
|
|
979
|
+
return de_CreateBranchCommandError(output, context);
|
|
980
980
|
}
|
|
981
981
|
const contents = map({
|
|
982
982
|
$metadata: deserializeMetadata(output),
|
|
983
983
|
});
|
|
984
984
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
985
985
|
if (data.branch != null) {
|
|
986
|
-
contents.branch =
|
|
986
|
+
contents.branch = de_Branch(data.branch, context);
|
|
987
987
|
}
|
|
988
988
|
return contents;
|
|
989
989
|
};
|
|
990
|
-
exports.
|
|
991
|
-
const
|
|
990
|
+
exports.de_CreateBranchCommand = de_CreateBranchCommand;
|
|
991
|
+
const de_CreateBranchCommandError = async (output, context) => {
|
|
992
992
|
const parsedOutput = {
|
|
993
993
|
...output,
|
|
994
994
|
body: await parseErrorBody(output.body, context),
|
|
@@ -997,22 +997,22 @@ const deserializeAws_restJson1CreateBranchCommandError = async (output, context)
|
|
|
997
997
|
switch (errorCode) {
|
|
998
998
|
case "BadRequestException":
|
|
999
999
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1000
|
-
throw await
|
|
1000
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1001
1001
|
case "DependentServiceFailureException":
|
|
1002
1002
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1003
|
-
throw await
|
|
1003
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1004
1004
|
case "InternalFailureException":
|
|
1005
1005
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1006
|
-
throw await
|
|
1006
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1007
1007
|
case "LimitExceededException":
|
|
1008
1008
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1009
|
-
throw await
|
|
1009
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1010
1010
|
case "NotFoundException":
|
|
1011
1011
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1012
|
-
throw await
|
|
1012
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1013
1013
|
case "UnauthorizedException":
|
|
1014
1014
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1015
|
-
throw await
|
|
1015
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1016
1016
|
default:
|
|
1017
1017
|
const parsedBody = parsedOutput.body;
|
|
1018
1018
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1023,16 +1023,16 @@ const deserializeAws_restJson1CreateBranchCommandError = async (output, context)
|
|
|
1023
1023
|
});
|
|
1024
1024
|
}
|
|
1025
1025
|
};
|
|
1026
|
-
const
|
|
1026
|
+
const de_CreateDeploymentCommand = async (output, context) => {
|
|
1027
1027
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1028
|
-
return
|
|
1028
|
+
return de_CreateDeploymentCommandError(output, context);
|
|
1029
1029
|
}
|
|
1030
1030
|
const contents = map({
|
|
1031
1031
|
$metadata: deserializeMetadata(output),
|
|
1032
1032
|
});
|
|
1033
1033
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1034
1034
|
if (data.fileUploadUrls != null) {
|
|
1035
|
-
contents.fileUploadUrls =
|
|
1035
|
+
contents.fileUploadUrls = de_FileUploadUrls(data.fileUploadUrls, context);
|
|
1036
1036
|
}
|
|
1037
1037
|
if (data.jobId != null) {
|
|
1038
1038
|
contents.jobId = (0, smithy_client_1.expectString)(data.jobId);
|
|
@@ -1042,8 +1042,8 @@ const deserializeAws_restJson1CreateDeploymentCommand = async (output, context)
|
|
|
1042
1042
|
}
|
|
1043
1043
|
return contents;
|
|
1044
1044
|
};
|
|
1045
|
-
exports.
|
|
1046
|
-
const
|
|
1045
|
+
exports.de_CreateDeploymentCommand = de_CreateDeploymentCommand;
|
|
1046
|
+
const de_CreateDeploymentCommandError = async (output, context) => {
|
|
1047
1047
|
const parsedOutput = {
|
|
1048
1048
|
...output,
|
|
1049
1049
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1052,16 +1052,16 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
|
|
|
1052
1052
|
switch (errorCode) {
|
|
1053
1053
|
case "BadRequestException":
|
|
1054
1054
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1055
|
-
throw await
|
|
1055
|
+
throw await de_BadRequestExceptionRes(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 "UnauthorizedException":
|
|
1063
1063
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1064
|
-
throw await
|
|
1064
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1065
1065
|
default:
|
|
1066
1066
|
const parsedBody = parsedOutput.body;
|
|
1067
1067
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1072,21 +1072,21 @@ const deserializeAws_restJson1CreateDeploymentCommandError = async (output, cont
|
|
|
1072
1072
|
});
|
|
1073
1073
|
}
|
|
1074
1074
|
};
|
|
1075
|
-
const
|
|
1075
|
+
const de_CreateDomainAssociationCommand = async (output, context) => {
|
|
1076
1076
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1077
|
-
return
|
|
1077
|
+
return de_CreateDomainAssociationCommandError(output, context);
|
|
1078
1078
|
}
|
|
1079
1079
|
const contents = map({
|
|
1080
1080
|
$metadata: deserializeMetadata(output),
|
|
1081
1081
|
});
|
|
1082
1082
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1083
1083
|
if (data.domainAssociation != null) {
|
|
1084
|
-
contents.domainAssociation =
|
|
1084
|
+
contents.domainAssociation = de_DomainAssociation(data.domainAssociation, context);
|
|
1085
1085
|
}
|
|
1086
1086
|
return contents;
|
|
1087
1087
|
};
|
|
1088
|
-
exports.
|
|
1089
|
-
const
|
|
1088
|
+
exports.de_CreateDomainAssociationCommand = de_CreateDomainAssociationCommand;
|
|
1089
|
+
const de_CreateDomainAssociationCommandError = async (output, context) => {
|
|
1090
1090
|
const parsedOutput = {
|
|
1091
1091
|
...output,
|
|
1092
1092
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1095,22 +1095,22 @@ const deserializeAws_restJson1CreateDomainAssociationCommandError = async (outpu
|
|
|
1095
1095
|
switch (errorCode) {
|
|
1096
1096
|
case "BadRequestException":
|
|
1097
1097
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1098
|
-
throw await
|
|
1098
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1099
1099
|
case "DependentServiceFailureException":
|
|
1100
1100
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1101
|
-
throw await
|
|
1101
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1102
1102
|
case "InternalFailureException":
|
|
1103
1103
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1104
|
-
throw await
|
|
1104
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1105
1105
|
case "LimitExceededException":
|
|
1106
1106
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1107
|
-
throw await
|
|
1107
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1108
1108
|
case "NotFoundException":
|
|
1109
1109
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1110
|
-
throw await
|
|
1110
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1111
1111
|
case "UnauthorizedException":
|
|
1112
1112
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1113
|
-
throw await
|
|
1113
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1114
1114
|
default:
|
|
1115
1115
|
const parsedBody = parsedOutput.body;
|
|
1116
1116
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1121,21 +1121,21 @@ const deserializeAws_restJson1CreateDomainAssociationCommandError = async (outpu
|
|
|
1121
1121
|
});
|
|
1122
1122
|
}
|
|
1123
1123
|
};
|
|
1124
|
-
const
|
|
1124
|
+
const de_CreateWebhookCommand = async (output, context) => {
|
|
1125
1125
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1126
|
-
return
|
|
1126
|
+
return de_CreateWebhookCommandError(output, context);
|
|
1127
1127
|
}
|
|
1128
1128
|
const contents = map({
|
|
1129
1129
|
$metadata: deserializeMetadata(output),
|
|
1130
1130
|
});
|
|
1131
1131
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1132
1132
|
if (data.webhook != null) {
|
|
1133
|
-
contents.webhook =
|
|
1133
|
+
contents.webhook = de_Webhook(data.webhook, context);
|
|
1134
1134
|
}
|
|
1135
1135
|
return contents;
|
|
1136
1136
|
};
|
|
1137
|
-
exports.
|
|
1138
|
-
const
|
|
1137
|
+
exports.de_CreateWebhookCommand = de_CreateWebhookCommand;
|
|
1138
|
+
const de_CreateWebhookCommandError = async (output, context) => {
|
|
1139
1139
|
const parsedOutput = {
|
|
1140
1140
|
...output,
|
|
1141
1141
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1144,22 +1144,22 @@ const deserializeAws_restJson1CreateWebhookCommandError = async (output, context
|
|
|
1144
1144
|
switch (errorCode) {
|
|
1145
1145
|
case "BadRequestException":
|
|
1146
1146
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1147
|
-
throw await
|
|
1147
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1148
1148
|
case "DependentServiceFailureException":
|
|
1149
1149
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1150
|
-
throw await
|
|
1150
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1151
1151
|
case "InternalFailureException":
|
|
1152
1152
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1153
|
-
throw await
|
|
1153
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1154
1154
|
case "LimitExceededException":
|
|
1155
1155
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1156
|
-
throw await
|
|
1156
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1157
1157
|
case "NotFoundException":
|
|
1158
1158
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1159
|
-
throw await
|
|
1159
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1160
1160
|
case "UnauthorizedException":
|
|
1161
1161
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1162
|
-
throw await
|
|
1162
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1163
1163
|
default:
|
|
1164
1164
|
const parsedBody = parsedOutput.body;
|
|
1165
1165
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1170,21 +1170,21 @@ const deserializeAws_restJson1CreateWebhookCommandError = async (output, context
|
|
|
1170
1170
|
});
|
|
1171
1171
|
}
|
|
1172
1172
|
};
|
|
1173
|
-
const
|
|
1173
|
+
const de_DeleteAppCommand = async (output, context) => {
|
|
1174
1174
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1175
|
-
return
|
|
1175
|
+
return de_DeleteAppCommandError(output, context);
|
|
1176
1176
|
}
|
|
1177
1177
|
const contents = map({
|
|
1178
1178
|
$metadata: deserializeMetadata(output),
|
|
1179
1179
|
});
|
|
1180
1180
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1181
1181
|
if (data.app != null) {
|
|
1182
|
-
contents.app =
|
|
1182
|
+
contents.app = de_App(data.app, context);
|
|
1183
1183
|
}
|
|
1184
1184
|
return contents;
|
|
1185
1185
|
};
|
|
1186
|
-
exports.
|
|
1187
|
-
const
|
|
1186
|
+
exports.de_DeleteAppCommand = de_DeleteAppCommand;
|
|
1187
|
+
const de_DeleteAppCommandError = async (output, context) => {
|
|
1188
1188
|
const parsedOutput = {
|
|
1189
1189
|
...output,
|
|
1190
1190
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1193,19 +1193,19 @@ const deserializeAws_restJson1DeleteAppCommandError = async (output, context) =>
|
|
|
1193
1193
|
switch (errorCode) {
|
|
1194
1194
|
case "BadRequestException":
|
|
1195
1195
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1196
|
-
throw await
|
|
1196
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1197
1197
|
case "DependentServiceFailureException":
|
|
1198
1198
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1199
|
-
throw await
|
|
1199
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1200
1200
|
case "InternalFailureException":
|
|
1201
1201
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1202
|
-
throw await
|
|
1202
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1203
1203
|
case "NotFoundException":
|
|
1204
1204
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1205
|
-
throw await
|
|
1205
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1206
1206
|
case "UnauthorizedException":
|
|
1207
1207
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1208
|
-
throw await
|
|
1208
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1209
1209
|
default:
|
|
1210
1210
|
const parsedBody = parsedOutput.body;
|
|
1211
1211
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1216,21 +1216,21 @@ const deserializeAws_restJson1DeleteAppCommandError = async (output, context) =>
|
|
|
1216
1216
|
});
|
|
1217
1217
|
}
|
|
1218
1218
|
};
|
|
1219
|
-
const
|
|
1219
|
+
const de_DeleteBackendEnvironmentCommand = async (output, context) => {
|
|
1220
1220
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1221
|
-
return
|
|
1221
|
+
return de_DeleteBackendEnvironmentCommandError(output, context);
|
|
1222
1222
|
}
|
|
1223
1223
|
const contents = map({
|
|
1224
1224
|
$metadata: deserializeMetadata(output),
|
|
1225
1225
|
});
|
|
1226
1226
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1227
1227
|
if (data.backendEnvironment != null) {
|
|
1228
|
-
contents.backendEnvironment =
|
|
1228
|
+
contents.backendEnvironment = de_BackendEnvironment(data.backendEnvironment, context);
|
|
1229
1229
|
}
|
|
1230
1230
|
return contents;
|
|
1231
1231
|
};
|
|
1232
|
-
exports.
|
|
1233
|
-
const
|
|
1232
|
+
exports.de_DeleteBackendEnvironmentCommand = de_DeleteBackendEnvironmentCommand;
|
|
1233
|
+
const de_DeleteBackendEnvironmentCommandError = async (output, context) => {
|
|
1234
1234
|
const parsedOutput = {
|
|
1235
1235
|
...output,
|
|
1236
1236
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1239,19 +1239,19 @@ const deserializeAws_restJson1DeleteBackendEnvironmentCommandError = async (outp
|
|
|
1239
1239
|
switch (errorCode) {
|
|
1240
1240
|
case "BadRequestException":
|
|
1241
1241
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1242
|
-
throw await
|
|
1242
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1243
1243
|
case "DependentServiceFailureException":
|
|
1244
1244
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1245
|
-
throw await
|
|
1245
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1246
1246
|
case "InternalFailureException":
|
|
1247
1247
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1248
|
-
throw await
|
|
1248
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1249
1249
|
case "NotFoundException":
|
|
1250
1250
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1251
|
-
throw await
|
|
1251
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1252
1252
|
case "UnauthorizedException":
|
|
1253
1253
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1254
|
-
throw await
|
|
1254
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1255
1255
|
default:
|
|
1256
1256
|
const parsedBody = parsedOutput.body;
|
|
1257
1257
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1262,21 +1262,21 @@ const deserializeAws_restJson1DeleteBackendEnvironmentCommandError = async (outp
|
|
|
1262
1262
|
});
|
|
1263
1263
|
}
|
|
1264
1264
|
};
|
|
1265
|
-
const
|
|
1265
|
+
const de_DeleteBranchCommand = async (output, context) => {
|
|
1266
1266
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1267
|
-
return
|
|
1267
|
+
return de_DeleteBranchCommandError(output, context);
|
|
1268
1268
|
}
|
|
1269
1269
|
const contents = map({
|
|
1270
1270
|
$metadata: deserializeMetadata(output),
|
|
1271
1271
|
});
|
|
1272
1272
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1273
1273
|
if (data.branch != null) {
|
|
1274
|
-
contents.branch =
|
|
1274
|
+
contents.branch = de_Branch(data.branch, context);
|
|
1275
1275
|
}
|
|
1276
1276
|
return contents;
|
|
1277
1277
|
};
|
|
1278
|
-
exports.
|
|
1279
|
-
const
|
|
1278
|
+
exports.de_DeleteBranchCommand = de_DeleteBranchCommand;
|
|
1279
|
+
const de_DeleteBranchCommandError = async (output, context) => {
|
|
1280
1280
|
const parsedOutput = {
|
|
1281
1281
|
...output,
|
|
1282
1282
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1285,19 +1285,19 @@ const deserializeAws_restJson1DeleteBranchCommandError = async (output, context)
|
|
|
1285
1285
|
switch (errorCode) {
|
|
1286
1286
|
case "BadRequestException":
|
|
1287
1287
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1288
|
-
throw await
|
|
1288
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1289
1289
|
case "DependentServiceFailureException":
|
|
1290
1290
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1291
|
-
throw await
|
|
1291
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1292
1292
|
case "InternalFailureException":
|
|
1293
1293
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1294
|
-
throw await
|
|
1294
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1295
1295
|
case "NotFoundException":
|
|
1296
1296
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1297
|
-
throw await
|
|
1297
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1298
1298
|
case "UnauthorizedException":
|
|
1299
1299
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1300
|
-
throw await
|
|
1300
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1301
1301
|
default:
|
|
1302
1302
|
const parsedBody = parsedOutput.body;
|
|
1303
1303
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1308,21 +1308,21 @@ const deserializeAws_restJson1DeleteBranchCommandError = async (output, context)
|
|
|
1308
1308
|
});
|
|
1309
1309
|
}
|
|
1310
1310
|
};
|
|
1311
|
-
const
|
|
1311
|
+
const de_DeleteDomainAssociationCommand = async (output, context) => {
|
|
1312
1312
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1313
|
-
return
|
|
1313
|
+
return de_DeleteDomainAssociationCommandError(output, context);
|
|
1314
1314
|
}
|
|
1315
1315
|
const contents = map({
|
|
1316
1316
|
$metadata: deserializeMetadata(output),
|
|
1317
1317
|
});
|
|
1318
1318
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1319
1319
|
if (data.domainAssociation != null) {
|
|
1320
|
-
contents.domainAssociation =
|
|
1320
|
+
contents.domainAssociation = de_DomainAssociation(data.domainAssociation, context);
|
|
1321
1321
|
}
|
|
1322
1322
|
return contents;
|
|
1323
1323
|
};
|
|
1324
|
-
exports.
|
|
1325
|
-
const
|
|
1324
|
+
exports.de_DeleteDomainAssociationCommand = de_DeleteDomainAssociationCommand;
|
|
1325
|
+
const de_DeleteDomainAssociationCommandError = async (output, context) => {
|
|
1326
1326
|
const parsedOutput = {
|
|
1327
1327
|
...output,
|
|
1328
1328
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1331,19 +1331,19 @@ const deserializeAws_restJson1DeleteDomainAssociationCommandError = async (outpu
|
|
|
1331
1331
|
switch (errorCode) {
|
|
1332
1332
|
case "BadRequestException":
|
|
1333
1333
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1334
|
-
throw await
|
|
1334
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1335
1335
|
case "DependentServiceFailureException":
|
|
1336
1336
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1337
|
-
throw await
|
|
1337
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1338
1338
|
case "InternalFailureException":
|
|
1339
1339
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1340
|
-
throw await
|
|
1340
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1341
1341
|
case "NotFoundException":
|
|
1342
1342
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1343
|
-
throw await
|
|
1343
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1344
1344
|
case "UnauthorizedException":
|
|
1345
1345
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1346
|
-
throw await
|
|
1346
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1347
1347
|
default:
|
|
1348
1348
|
const parsedBody = parsedOutput.body;
|
|
1349
1349
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1354,21 +1354,21 @@ const deserializeAws_restJson1DeleteDomainAssociationCommandError = async (outpu
|
|
|
1354
1354
|
});
|
|
1355
1355
|
}
|
|
1356
1356
|
};
|
|
1357
|
-
const
|
|
1357
|
+
const de_DeleteJobCommand = async (output, context) => {
|
|
1358
1358
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1359
|
-
return
|
|
1359
|
+
return de_DeleteJobCommandError(output, context);
|
|
1360
1360
|
}
|
|
1361
1361
|
const contents = map({
|
|
1362
1362
|
$metadata: deserializeMetadata(output),
|
|
1363
1363
|
});
|
|
1364
1364
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1365
1365
|
if (data.jobSummary != null) {
|
|
1366
|
-
contents.jobSummary =
|
|
1366
|
+
contents.jobSummary = de_JobSummary(data.jobSummary, context);
|
|
1367
1367
|
}
|
|
1368
1368
|
return contents;
|
|
1369
1369
|
};
|
|
1370
|
-
exports.
|
|
1371
|
-
const
|
|
1370
|
+
exports.de_DeleteJobCommand = de_DeleteJobCommand;
|
|
1371
|
+
const de_DeleteJobCommandError = async (output, context) => {
|
|
1372
1372
|
const parsedOutput = {
|
|
1373
1373
|
...output,
|
|
1374
1374
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1377,19 +1377,19 @@ const deserializeAws_restJson1DeleteJobCommandError = async (output, context) =>
|
|
|
1377
1377
|
switch (errorCode) {
|
|
1378
1378
|
case "BadRequestException":
|
|
1379
1379
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1380
|
-
throw await
|
|
1380
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1381
1381
|
case "InternalFailureException":
|
|
1382
1382
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1383
|
-
throw await
|
|
1383
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1384
1384
|
case "LimitExceededException":
|
|
1385
1385
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1386
|
-
throw await
|
|
1386
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1387
1387
|
case "NotFoundException":
|
|
1388
1388
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1389
|
-
throw await
|
|
1389
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1390
1390
|
case "UnauthorizedException":
|
|
1391
1391
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1392
|
-
throw await
|
|
1392
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1393
1393
|
default:
|
|
1394
1394
|
const parsedBody = parsedOutput.body;
|
|
1395
1395
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1400,21 +1400,21 @@ const deserializeAws_restJson1DeleteJobCommandError = async (output, context) =>
|
|
|
1400
1400
|
});
|
|
1401
1401
|
}
|
|
1402
1402
|
};
|
|
1403
|
-
const
|
|
1403
|
+
const de_DeleteWebhookCommand = async (output, context) => {
|
|
1404
1404
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1405
|
-
return
|
|
1405
|
+
return de_DeleteWebhookCommandError(output, context);
|
|
1406
1406
|
}
|
|
1407
1407
|
const contents = map({
|
|
1408
1408
|
$metadata: deserializeMetadata(output),
|
|
1409
1409
|
});
|
|
1410
1410
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1411
1411
|
if (data.webhook != null) {
|
|
1412
|
-
contents.webhook =
|
|
1412
|
+
contents.webhook = de_Webhook(data.webhook, context);
|
|
1413
1413
|
}
|
|
1414
1414
|
return contents;
|
|
1415
1415
|
};
|
|
1416
|
-
exports.
|
|
1417
|
-
const
|
|
1416
|
+
exports.de_DeleteWebhookCommand = de_DeleteWebhookCommand;
|
|
1417
|
+
const de_DeleteWebhookCommandError = async (output, context) => {
|
|
1418
1418
|
const parsedOutput = {
|
|
1419
1419
|
...output,
|
|
1420
1420
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1423,19 +1423,19 @@ const deserializeAws_restJson1DeleteWebhookCommandError = async (output, context
|
|
|
1423
1423
|
switch (errorCode) {
|
|
1424
1424
|
case "BadRequestException":
|
|
1425
1425
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1426
|
-
throw await
|
|
1426
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1427
1427
|
case "InternalFailureException":
|
|
1428
1428
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1429
|
-
throw await
|
|
1429
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1430
1430
|
case "LimitExceededException":
|
|
1431
1431
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1432
|
-
throw await
|
|
1432
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1433
1433
|
case "NotFoundException":
|
|
1434
1434
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1435
|
-
throw await
|
|
1435
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1436
1436
|
case "UnauthorizedException":
|
|
1437
1437
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1438
|
-
throw await
|
|
1438
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1439
1439
|
default:
|
|
1440
1440
|
const parsedBody = parsedOutput.body;
|
|
1441
1441
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1446,9 +1446,9 @@ const deserializeAws_restJson1DeleteWebhookCommandError = async (output, context
|
|
|
1446
1446
|
});
|
|
1447
1447
|
}
|
|
1448
1448
|
};
|
|
1449
|
-
const
|
|
1449
|
+
const de_GenerateAccessLogsCommand = async (output, context) => {
|
|
1450
1450
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1451
|
-
return
|
|
1451
|
+
return de_GenerateAccessLogsCommandError(output, context);
|
|
1452
1452
|
}
|
|
1453
1453
|
const contents = map({
|
|
1454
1454
|
$metadata: deserializeMetadata(output),
|
|
@@ -1459,8 +1459,8 @@ const deserializeAws_restJson1GenerateAccessLogsCommand = async (output, context
|
|
|
1459
1459
|
}
|
|
1460
1460
|
return contents;
|
|
1461
1461
|
};
|
|
1462
|
-
exports.
|
|
1463
|
-
const
|
|
1462
|
+
exports.de_GenerateAccessLogsCommand = de_GenerateAccessLogsCommand;
|
|
1463
|
+
const de_GenerateAccessLogsCommandError = async (output, context) => {
|
|
1464
1464
|
const parsedOutput = {
|
|
1465
1465
|
...output,
|
|
1466
1466
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1469,16 +1469,16 @@ const deserializeAws_restJson1GenerateAccessLogsCommandError = async (output, co
|
|
|
1469
1469
|
switch (errorCode) {
|
|
1470
1470
|
case "BadRequestException":
|
|
1471
1471
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1472
|
-
throw await
|
|
1472
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1473
1473
|
case "InternalFailureException":
|
|
1474
1474
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1475
|
-
throw await
|
|
1475
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1476
1476
|
case "NotFoundException":
|
|
1477
1477
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1478
|
-
throw await
|
|
1478
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1479
1479
|
case "UnauthorizedException":
|
|
1480
1480
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1481
|
-
throw await
|
|
1481
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1482
1482
|
default:
|
|
1483
1483
|
const parsedBody = parsedOutput.body;
|
|
1484
1484
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1489,21 +1489,21 @@ const deserializeAws_restJson1GenerateAccessLogsCommandError = async (output, co
|
|
|
1489
1489
|
});
|
|
1490
1490
|
}
|
|
1491
1491
|
};
|
|
1492
|
-
const
|
|
1492
|
+
const de_GetAppCommand = async (output, context) => {
|
|
1493
1493
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1494
|
-
return
|
|
1494
|
+
return de_GetAppCommandError(output, context);
|
|
1495
1495
|
}
|
|
1496
1496
|
const contents = map({
|
|
1497
1497
|
$metadata: deserializeMetadata(output),
|
|
1498
1498
|
});
|
|
1499
1499
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1500
1500
|
if (data.app != null) {
|
|
1501
|
-
contents.app =
|
|
1501
|
+
contents.app = de_App(data.app, context);
|
|
1502
1502
|
}
|
|
1503
1503
|
return contents;
|
|
1504
1504
|
};
|
|
1505
|
-
exports.
|
|
1506
|
-
const
|
|
1505
|
+
exports.de_GetAppCommand = de_GetAppCommand;
|
|
1506
|
+
const de_GetAppCommandError = async (output, context) => {
|
|
1507
1507
|
const parsedOutput = {
|
|
1508
1508
|
...output,
|
|
1509
1509
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1512,16 +1512,16 @@ const deserializeAws_restJson1GetAppCommandError = async (output, context) => {
|
|
|
1512
1512
|
switch (errorCode) {
|
|
1513
1513
|
case "BadRequestException":
|
|
1514
1514
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1515
|
-
throw await
|
|
1515
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1516
1516
|
case "InternalFailureException":
|
|
1517
1517
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1518
|
-
throw await
|
|
1518
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1519
1519
|
case "NotFoundException":
|
|
1520
1520
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1521
|
-
throw await
|
|
1521
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1522
1522
|
case "UnauthorizedException":
|
|
1523
1523
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1524
|
-
throw await
|
|
1524
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1525
1525
|
default:
|
|
1526
1526
|
const parsedBody = parsedOutput.body;
|
|
1527
1527
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1532,9 +1532,9 @@ const deserializeAws_restJson1GetAppCommandError = async (output, context) => {
|
|
|
1532
1532
|
});
|
|
1533
1533
|
}
|
|
1534
1534
|
};
|
|
1535
|
-
const
|
|
1535
|
+
const de_GetArtifactUrlCommand = async (output, context) => {
|
|
1536
1536
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1537
|
-
return
|
|
1537
|
+
return de_GetArtifactUrlCommandError(output, context);
|
|
1538
1538
|
}
|
|
1539
1539
|
const contents = map({
|
|
1540
1540
|
$metadata: deserializeMetadata(output),
|
|
@@ -1548,8 +1548,8 @@ const deserializeAws_restJson1GetArtifactUrlCommand = async (output, context) =>
|
|
|
1548
1548
|
}
|
|
1549
1549
|
return contents;
|
|
1550
1550
|
};
|
|
1551
|
-
exports.
|
|
1552
|
-
const
|
|
1551
|
+
exports.de_GetArtifactUrlCommand = de_GetArtifactUrlCommand;
|
|
1552
|
+
const de_GetArtifactUrlCommandError = async (output, context) => {
|
|
1553
1553
|
const parsedOutput = {
|
|
1554
1554
|
...output,
|
|
1555
1555
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1558,19 +1558,19 @@ const deserializeAws_restJson1GetArtifactUrlCommandError = async (output, contex
|
|
|
1558
1558
|
switch (errorCode) {
|
|
1559
1559
|
case "BadRequestException":
|
|
1560
1560
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1561
|
-
throw await
|
|
1561
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1562
1562
|
case "InternalFailureException":
|
|
1563
1563
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1564
|
-
throw await
|
|
1564
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1565
1565
|
case "LimitExceededException":
|
|
1566
1566
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1567
|
-
throw await
|
|
1567
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1568
1568
|
case "NotFoundException":
|
|
1569
1569
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1570
|
-
throw await
|
|
1570
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1571
1571
|
case "UnauthorizedException":
|
|
1572
1572
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1573
|
-
throw await
|
|
1573
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1574
1574
|
default:
|
|
1575
1575
|
const parsedBody = parsedOutput.body;
|
|
1576
1576
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1581,21 +1581,21 @@ const deserializeAws_restJson1GetArtifactUrlCommandError = async (output, contex
|
|
|
1581
1581
|
});
|
|
1582
1582
|
}
|
|
1583
1583
|
};
|
|
1584
|
-
const
|
|
1584
|
+
const de_GetBackendEnvironmentCommand = async (output, context) => {
|
|
1585
1585
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1586
|
-
return
|
|
1586
|
+
return de_GetBackendEnvironmentCommandError(output, context);
|
|
1587
1587
|
}
|
|
1588
1588
|
const contents = map({
|
|
1589
1589
|
$metadata: deserializeMetadata(output),
|
|
1590
1590
|
});
|
|
1591
1591
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1592
1592
|
if (data.backendEnvironment != null) {
|
|
1593
|
-
contents.backendEnvironment =
|
|
1593
|
+
contents.backendEnvironment = de_BackendEnvironment(data.backendEnvironment, context);
|
|
1594
1594
|
}
|
|
1595
1595
|
return contents;
|
|
1596
1596
|
};
|
|
1597
|
-
exports.
|
|
1598
|
-
const
|
|
1597
|
+
exports.de_GetBackendEnvironmentCommand = de_GetBackendEnvironmentCommand;
|
|
1598
|
+
const de_GetBackendEnvironmentCommandError = async (output, context) => {
|
|
1599
1599
|
const parsedOutput = {
|
|
1600
1600
|
...output,
|
|
1601
1601
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1604,16 +1604,16 @@ const deserializeAws_restJson1GetBackendEnvironmentCommandError = async (output,
|
|
|
1604
1604
|
switch (errorCode) {
|
|
1605
1605
|
case "BadRequestException":
|
|
1606
1606
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1607
|
-
throw await
|
|
1607
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1608
1608
|
case "InternalFailureException":
|
|
1609
1609
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1610
|
-
throw await
|
|
1610
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1611
1611
|
case "NotFoundException":
|
|
1612
1612
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1613
|
-
throw await
|
|
1613
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1614
1614
|
case "UnauthorizedException":
|
|
1615
1615
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1616
|
-
throw await
|
|
1616
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1617
1617
|
default:
|
|
1618
1618
|
const parsedBody = parsedOutput.body;
|
|
1619
1619
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1624,21 +1624,21 @@ const deserializeAws_restJson1GetBackendEnvironmentCommandError = async (output,
|
|
|
1624
1624
|
});
|
|
1625
1625
|
}
|
|
1626
1626
|
};
|
|
1627
|
-
const
|
|
1627
|
+
const de_GetBranchCommand = async (output, context) => {
|
|
1628
1628
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1629
|
-
return
|
|
1629
|
+
return de_GetBranchCommandError(output, context);
|
|
1630
1630
|
}
|
|
1631
1631
|
const contents = map({
|
|
1632
1632
|
$metadata: deserializeMetadata(output),
|
|
1633
1633
|
});
|
|
1634
1634
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1635
1635
|
if (data.branch != null) {
|
|
1636
|
-
contents.branch =
|
|
1636
|
+
contents.branch = de_Branch(data.branch, context);
|
|
1637
1637
|
}
|
|
1638
1638
|
return contents;
|
|
1639
1639
|
};
|
|
1640
|
-
exports.
|
|
1641
|
-
const
|
|
1640
|
+
exports.de_GetBranchCommand = de_GetBranchCommand;
|
|
1641
|
+
const de_GetBranchCommandError = async (output, context) => {
|
|
1642
1642
|
const parsedOutput = {
|
|
1643
1643
|
...output,
|
|
1644
1644
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1647,16 +1647,16 @@ const deserializeAws_restJson1GetBranchCommandError = async (output, context) =>
|
|
|
1647
1647
|
switch (errorCode) {
|
|
1648
1648
|
case "BadRequestException":
|
|
1649
1649
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1650
|
-
throw await
|
|
1650
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1651
1651
|
case "InternalFailureException":
|
|
1652
1652
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1653
|
-
throw await
|
|
1653
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1654
1654
|
case "NotFoundException":
|
|
1655
1655
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1656
|
-
throw await
|
|
1656
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1657
1657
|
case "UnauthorizedException":
|
|
1658
1658
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1659
|
-
throw await
|
|
1659
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1660
1660
|
default:
|
|
1661
1661
|
const parsedBody = parsedOutput.body;
|
|
1662
1662
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1667,21 +1667,21 @@ const deserializeAws_restJson1GetBranchCommandError = async (output, context) =>
|
|
|
1667
1667
|
});
|
|
1668
1668
|
}
|
|
1669
1669
|
};
|
|
1670
|
-
const
|
|
1670
|
+
const de_GetDomainAssociationCommand = async (output, context) => {
|
|
1671
1671
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1672
|
-
return
|
|
1672
|
+
return de_GetDomainAssociationCommandError(output, context);
|
|
1673
1673
|
}
|
|
1674
1674
|
const contents = map({
|
|
1675
1675
|
$metadata: deserializeMetadata(output),
|
|
1676
1676
|
});
|
|
1677
1677
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1678
1678
|
if (data.domainAssociation != null) {
|
|
1679
|
-
contents.domainAssociation =
|
|
1679
|
+
contents.domainAssociation = de_DomainAssociation(data.domainAssociation, context);
|
|
1680
1680
|
}
|
|
1681
1681
|
return contents;
|
|
1682
1682
|
};
|
|
1683
|
-
exports.
|
|
1684
|
-
const
|
|
1683
|
+
exports.de_GetDomainAssociationCommand = de_GetDomainAssociationCommand;
|
|
1684
|
+
const de_GetDomainAssociationCommandError = async (output, context) => {
|
|
1685
1685
|
const parsedOutput = {
|
|
1686
1686
|
...output,
|
|
1687
1687
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1690,16 +1690,16 @@ const deserializeAws_restJson1GetDomainAssociationCommandError = async (output,
|
|
|
1690
1690
|
switch (errorCode) {
|
|
1691
1691
|
case "BadRequestException":
|
|
1692
1692
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1693
|
-
throw await
|
|
1693
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1694
1694
|
case "InternalFailureException":
|
|
1695
1695
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1696
|
-
throw await
|
|
1696
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1697
1697
|
case "NotFoundException":
|
|
1698
1698
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1699
|
-
throw await
|
|
1699
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1700
1700
|
case "UnauthorizedException":
|
|
1701
1701
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1702
|
-
throw await
|
|
1702
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1703
1703
|
default:
|
|
1704
1704
|
const parsedBody = parsedOutput.body;
|
|
1705
1705
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1710,21 +1710,21 @@ const deserializeAws_restJson1GetDomainAssociationCommandError = async (output,
|
|
|
1710
1710
|
});
|
|
1711
1711
|
}
|
|
1712
1712
|
};
|
|
1713
|
-
const
|
|
1713
|
+
const de_GetJobCommand = async (output, context) => {
|
|
1714
1714
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1715
|
-
return
|
|
1715
|
+
return de_GetJobCommandError(output, context);
|
|
1716
1716
|
}
|
|
1717
1717
|
const contents = map({
|
|
1718
1718
|
$metadata: deserializeMetadata(output),
|
|
1719
1719
|
});
|
|
1720
1720
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1721
1721
|
if (data.job != null) {
|
|
1722
|
-
contents.job =
|
|
1722
|
+
contents.job = de_Job(data.job, context);
|
|
1723
1723
|
}
|
|
1724
1724
|
return contents;
|
|
1725
1725
|
};
|
|
1726
|
-
exports.
|
|
1727
|
-
const
|
|
1726
|
+
exports.de_GetJobCommand = de_GetJobCommand;
|
|
1727
|
+
const de_GetJobCommandError = async (output, context) => {
|
|
1728
1728
|
const parsedOutput = {
|
|
1729
1729
|
...output,
|
|
1730
1730
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1733,19 +1733,19 @@ const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
|
|
|
1733
1733
|
switch (errorCode) {
|
|
1734
1734
|
case "BadRequestException":
|
|
1735
1735
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1736
|
-
throw await
|
|
1736
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1737
1737
|
case "InternalFailureException":
|
|
1738
1738
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1739
|
-
throw await
|
|
1739
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1740
1740
|
case "LimitExceededException":
|
|
1741
1741
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1742
|
-
throw await
|
|
1742
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1743
1743
|
case "NotFoundException":
|
|
1744
1744
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1745
|
-
throw await
|
|
1745
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1746
1746
|
case "UnauthorizedException":
|
|
1747
1747
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1748
|
-
throw await
|
|
1748
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1749
1749
|
default:
|
|
1750
1750
|
const parsedBody = parsedOutput.body;
|
|
1751
1751
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1756,21 +1756,21 @@ const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
|
|
|
1756
1756
|
});
|
|
1757
1757
|
}
|
|
1758
1758
|
};
|
|
1759
|
-
const
|
|
1759
|
+
const de_GetWebhookCommand = async (output, context) => {
|
|
1760
1760
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1761
|
-
return
|
|
1761
|
+
return de_GetWebhookCommandError(output, context);
|
|
1762
1762
|
}
|
|
1763
1763
|
const contents = map({
|
|
1764
1764
|
$metadata: deserializeMetadata(output),
|
|
1765
1765
|
});
|
|
1766
1766
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1767
1767
|
if (data.webhook != null) {
|
|
1768
|
-
contents.webhook =
|
|
1768
|
+
contents.webhook = de_Webhook(data.webhook, context);
|
|
1769
1769
|
}
|
|
1770
1770
|
return contents;
|
|
1771
1771
|
};
|
|
1772
|
-
exports.
|
|
1773
|
-
const
|
|
1772
|
+
exports.de_GetWebhookCommand = de_GetWebhookCommand;
|
|
1773
|
+
const de_GetWebhookCommandError = async (output, context) => {
|
|
1774
1774
|
const parsedOutput = {
|
|
1775
1775
|
...output,
|
|
1776
1776
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1779,19 +1779,19 @@ const deserializeAws_restJson1GetWebhookCommandError = async (output, context) =
|
|
|
1779
1779
|
switch (errorCode) {
|
|
1780
1780
|
case "BadRequestException":
|
|
1781
1781
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1782
|
-
throw await
|
|
1782
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1783
1783
|
case "InternalFailureException":
|
|
1784
1784
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1785
|
-
throw await
|
|
1785
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1786
1786
|
case "LimitExceededException":
|
|
1787
1787
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1788
|
-
throw await
|
|
1788
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1789
1789
|
case "NotFoundException":
|
|
1790
1790
|
case "com.amazonaws.amplify#NotFoundException":
|
|
1791
|
-
throw await
|
|
1791
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1792
1792
|
case "UnauthorizedException":
|
|
1793
1793
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1794
|
-
throw await
|
|
1794
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1795
1795
|
default:
|
|
1796
1796
|
const parsedBody = parsedOutput.body;
|
|
1797
1797
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1802,24 +1802,24 @@ const deserializeAws_restJson1GetWebhookCommandError = async (output, context) =
|
|
|
1802
1802
|
});
|
|
1803
1803
|
}
|
|
1804
1804
|
};
|
|
1805
|
-
const
|
|
1805
|
+
const de_ListAppsCommand = async (output, context) => {
|
|
1806
1806
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1807
|
-
return
|
|
1807
|
+
return de_ListAppsCommandError(output, context);
|
|
1808
1808
|
}
|
|
1809
1809
|
const contents = map({
|
|
1810
1810
|
$metadata: deserializeMetadata(output),
|
|
1811
1811
|
});
|
|
1812
1812
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1813
1813
|
if (data.apps != null) {
|
|
1814
|
-
contents.apps =
|
|
1814
|
+
contents.apps = de_Apps(data.apps, context);
|
|
1815
1815
|
}
|
|
1816
1816
|
if (data.nextToken != null) {
|
|
1817
1817
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1818
1818
|
}
|
|
1819
1819
|
return contents;
|
|
1820
1820
|
};
|
|
1821
|
-
exports.
|
|
1822
|
-
const
|
|
1821
|
+
exports.de_ListAppsCommand = de_ListAppsCommand;
|
|
1822
|
+
const de_ListAppsCommandError = async (output, context) => {
|
|
1823
1823
|
const parsedOutput = {
|
|
1824
1824
|
...output,
|
|
1825
1825
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1828,13 +1828,13 @@ const deserializeAws_restJson1ListAppsCommandError = async (output, context) =>
|
|
|
1828
1828
|
switch (errorCode) {
|
|
1829
1829
|
case "BadRequestException":
|
|
1830
1830
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1831
|
-
throw await
|
|
1831
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1832
1832
|
case "InternalFailureException":
|
|
1833
1833
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1834
|
-
throw await
|
|
1834
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1835
1835
|
case "UnauthorizedException":
|
|
1836
1836
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1837
|
-
throw await
|
|
1837
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1838
1838
|
default:
|
|
1839
1839
|
const parsedBody = parsedOutput.body;
|
|
1840
1840
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1845,24 +1845,24 @@ const deserializeAws_restJson1ListAppsCommandError = async (output, context) =>
|
|
|
1845
1845
|
});
|
|
1846
1846
|
}
|
|
1847
1847
|
};
|
|
1848
|
-
const
|
|
1848
|
+
const de_ListArtifactsCommand = async (output, context) => {
|
|
1849
1849
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1850
|
-
return
|
|
1850
|
+
return de_ListArtifactsCommandError(output, context);
|
|
1851
1851
|
}
|
|
1852
1852
|
const contents = map({
|
|
1853
1853
|
$metadata: deserializeMetadata(output),
|
|
1854
1854
|
});
|
|
1855
1855
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1856
1856
|
if (data.artifacts != null) {
|
|
1857
|
-
contents.artifacts =
|
|
1857
|
+
contents.artifacts = de_Artifacts(data.artifacts, context);
|
|
1858
1858
|
}
|
|
1859
1859
|
if (data.nextToken != null) {
|
|
1860
1860
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1861
1861
|
}
|
|
1862
1862
|
return contents;
|
|
1863
1863
|
};
|
|
1864
|
-
exports.
|
|
1865
|
-
const
|
|
1864
|
+
exports.de_ListArtifactsCommand = de_ListArtifactsCommand;
|
|
1865
|
+
const de_ListArtifactsCommandError = async (output, context) => {
|
|
1866
1866
|
const parsedOutput = {
|
|
1867
1867
|
...output,
|
|
1868
1868
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1871,16 +1871,16 @@ const deserializeAws_restJson1ListArtifactsCommandError = async (output, context
|
|
|
1871
1871
|
switch (errorCode) {
|
|
1872
1872
|
case "BadRequestException":
|
|
1873
1873
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1874
|
-
throw await
|
|
1874
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1875
1875
|
case "InternalFailureException":
|
|
1876
1876
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1877
|
-
throw await
|
|
1877
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1878
1878
|
case "LimitExceededException":
|
|
1879
1879
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
1880
|
-
throw await
|
|
1880
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1881
1881
|
case "UnauthorizedException":
|
|
1882
1882
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1883
|
-
throw await
|
|
1883
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1884
1884
|
default:
|
|
1885
1885
|
const parsedBody = parsedOutput.body;
|
|
1886
1886
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1891,24 +1891,24 @@ const deserializeAws_restJson1ListArtifactsCommandError = async (output, context
|
|
|
1891
1891
|
});
|
|
1892
1892
|
}
|
|
1893
1893
|
};
|
|
1894
|
-
const
|
|
1894
|
+
const de_ListBackendEnvironmentsCommand = async (output, context) => {
|
|
1895
1895
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1896
|
-
return
|
|
1896
|
+
return de_ListBackendEnvironmentsCommandError(output, context);
|
|
1897
1897
|
}
|
|
1898
1898
|
const contents = map({
|
|
1899
1899
|
$metadata: deserializeMetadata(output),
|
|
1900
1900
|
});
|
|
1901
1901
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1902
1902
|
if (data.backendEnvironments != null) {
|
|
1903
|
-
contents.backendEnvironments =
|
|
1903
|
+
contents.backendEnvironments = de_BackendEnvironments(data.backendEnvironments, context);
|
|
1904
1904
|
}
|
|
1905
1905
|
if (data.nextToken != null) {
|
|
1906
1906
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1907
1907
|
}
|
|
1908
1908
|
return contents;
|
|
1909
1909
|
};
|
|
1910
|
-
exports.
|
|
1911
|
-
const
|
|
1910
|
+
exports.de_ListBackendEnvironmentsCommand = de_ListBackendEnvironmentsCommand;
|
|
1911
|
+
const de_ListBackendEnvironmentsCommandError = async (output, context) => {
|
|
1912
1912
|
const parsedOutput = {
|
|
1913
1913
|
...output,
|
|
1914
1914
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1917,13 +1917,13 @@ const deserializeAws_restJson1ListBackendEnvironmentsCommandError = async (outpu
|
|
|
1917
1917
|
switch (errorCode) {
|
|
1918
1918
|
case "BadRequestException":
|
|
1919
1919
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1920
|
-
throw await
|
|
1920
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1921
1921
|
case "InternalFailureException":
|
|
1922
1922
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1923
|
-
throw await
|
|
1923
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1924
1924
|
case "UnauthorizedException":
|
|
1925
1925
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1926
|
-
throw await
|
|
1926
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1927
1927
|
default:
|
|
1928
1928
|
const parsedBody = parsedOutput.body;
|
|
1929
1929
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1934,24 +1934,24 @@ const deserializeAws_restJson1ListBackendEnvironmentsCommandError = async (outpu
|
|
|
1934
1934
|
});
|
|
1935
1935
|
}
|
|
1936
1936
|
};
|
|
1937
|
-
const
|
|
1937
|
+
const de_ListBranchesCommand = async (output, context) => {
|
|
1938
1938
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1939
|
-
return
|
|
1939
|
+
return de_ListBranchesCommandError(output, context);
|
|
1940
1940
|
}
|
|
1941
1941
|
const contents = map({
|
|
1942
1942
|
$metadata: deserializeMetadata(output),
|
|
1943
1943
|
});
|
|
1944
1944
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1945
1945
|
if (data.branches != null) {
|
|
1946
|
-
contents.branches =
|
|
1946
|
+
contents.branches = de_Branches(data.branches, context);
|
|
1947
1947
|
}
|
|
1948
1948
|
if (data.nextToken != null) {
|
|
1949
1949
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1950
1950
|
}
|
|
1951
1951
|
return contents;
|
|
1952
1952
|
};
|
|
1953
|
-
exports.
|
|
1954
|
-
const
|
|
1953
|
+
exports.de_ListBranchesCommand = de_ListBranchesCommand;
|
|
1954
|
+
const de_ListBranchesCommandError = async (output, context) => {
|
|
1955
1955
|
const parsedOutput = {
|
|
1956
1956
|
...output,
|
|
1957
1957
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1960,13 +1960,13 @@ const deserializeAws_restJson1ListBranchesCommandError = async (output, context)
|
|
|
1960
1960
|
switch (errorCode) {
|
|
1961
1961
|
case "BadRequestException":
|
|
1962
1962
|
case "com.amazonaws.amplify#BadRequestException":
|
|
1963
|
-
throw await
|
|
1963
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1964
1964
|
case "InternalFailureException":
|
|
1965
1965
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
1966
|
-
throw await
|
|
1966
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1967
1967
|
case "UnauthorizedException":
|
|
1968
1968
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1969
|
-
throw await
|
|
1969
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1970
1970
|
default:
|
|
1971
1971
|
const parsedBody = parsedOutput.body;
|
|
1972
1972
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1977,24 +1977,24 @@ const deserializeAws_restJson1ListBranchesCommandError = async (output, context)
|
|
|
1977
1977
|
});
|
|
1978
1978
|
}
|
|
1979
1979
|
};
|
|
1980
|
-
const
|
|
1980
|
+
const de_ListDomainAssociationsCommand = async (output, context) => {
|
|
1981
1981
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1982
|
-
return
|
|
1982
|
+
return de_ListDomainAssociationsCommandError(output, context);
|
|
1983
1983
|
}
|
|
1984
1984
|
const contents = map({
|
|
1985
1985
|
$metadata: deserializeMetadata(output),
|
|
1986
1986
|
});
|
|
1987
1987
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1988
1988
|
if (data.domainAssociations != null) {
|
|
1989
|
-
contents.domainAssociations =
|
|
1989
|
+
contents.domainAssociations = de_DomainAssociations(data.domainAssociations, context);
|
|
1990
1990
|
}
|
|
1991
1991
|
if (data.nextToken != null) {
|
|
1992
1992
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1993
1993
|
}
|
|
1994
1994
|
return contents;
|
|
1995
1995
|
};
|
|
1996
|
-
exports.
|
|
1997
|
-
const
|
|
1996
|
+
exports.de_ListDomainAssociationsCommand = de_ListDomainAssociationsCommand;
|
|
1997
|
+
const de_ListDomainAssociationsCommandError = async (output, context) => {
|
|
1998
1998
|
const parsedOutput = {
|
|
1999
1999
|
...output,
|
|
2000
2000
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2003,13 +2003,13 @@ const deserializeAws_restJson1ListDomainAssociationsCommandError = async (output
|
|
|
2003
2003
|
switch (errorCode) {
|
|
2004
2004
|
case "BadRequestException":
|
|
2005
2005
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2006
|
-
throw await
|
|
2006
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2007
2007
|
case "InternalFailureException":
|
|
2008
2008
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2009
|
-
throw await
|
|
2009
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2010
2010
|
case "UnauthorizedException":
|
|
2011
2011
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2012
|
-
throw await
|
|
2012
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2013
2013
|
default:
|
|
2014
2014
|
const parsedBody = parsedOutput.body;
|
|
2015
2015
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2020,24 +2020,24 @@ const deserializeAws_restJson1ListDomainAssociationsCommandError = async (output
|
|
|
2020
2020
|
});
|
|
2021
2021
|
}
|
|
2022
2022
|
};
|
|
2023
|
-
const
|
|
2023
|
+
const de_ListJobsCommand = async (output, context) => {
|
|
2024
2024
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2025
|
-
return
|
|
2025
|
+
return de_ListJobsCommandError(output, context);
|
|
2026
2026
|
}
|
|
2027
2027
|
const contents = map({
|
|
2028
2028
|
$metadata: deserializeMetadata(output),
|
|
2029
2029
|
});
|
|
2030
2030
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2031
2031
|
if (data.jobSummaries != null) {
|
|
2032
|
-
contents.jobSummaries =
|
|
2032
|
+
contents.jobSummaries = de_JobSummaries(data.jobSummaries, context);
|
|
2033
2033
|
}
|
|
2034
2034
|
if (data.nextToken != null) {
|
|
2035
2035
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2036
2036
|
}
|
|
2037
2037
|
return contents;
|
|
2038
2038
|
};
|
|
2039
|
-
exports.
|
|
2040
|
-
const
|
|
2039
|
+
exports.de_ListJobsCommand = de_ListJobsCommand;
|
|
2040
|
+
const de_ListJobsCommandError = async (output, context) => {
|
|
2041
2041
|
const parsedOutput = {
|
|
2042
2042
|
...output,
|
|
2043
2043
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2046,16 +2046,16 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
|
|
|
2046
2046
|
switch (errorCode) {
|
|
2047
2047
|
case "BadRequestException":
|
|
2048
2048
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2049
|
-
throw await
|
|
2049
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2050
2050
|
case "InternalFailureException":
|
|
2051
2051
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2052
|
-
throw await
|
|
2052
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2053
2053
|
case "LimitExceededException":
|
|
2054
2054
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
2055
|
-
throw await
|
|
2055
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2056
2056
|
case "UnauthorizedException":
|
|
2057
2057
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2058
|
-
throw await
|
|
2058
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2059
2059
|
default:
|
|
2060
2060
|
const parsedBody = parsedOutput.body;
|
|
2061
2061
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2066,21 +2066,21 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
|
|
|
2066
2066
|
});
|
|
2067
2067
|
}
|
|
2068
2068
|
};
|
|
2069
|
-
const
|
|
2069
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2070
2070
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2071
|
-
return
|
|
2071
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
2072
2072
|
}
|
|
2073
2073
|
const contents = map({
|
|
2074
2074
|
$metadata: deserializeMetadata(output),
|
|
2075
2075
|
});
|
|
2076
2076
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2077
2077
|
if (data.tags != null) {
|
|
2078
|
-
contents.tags =
|
|
2078
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
2079
2079
|
}
|
|
2080
2080
|
return contents;
|
|
2081
2081
|
};
|
|
2082
|
-
exports.
|
|
2083
|
-
const
|
|
2082
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2083
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2084
2084
|
const parsedOutput = {
|
|
2085
2085
|
...output,
|
|
2086
2086
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2089,13 +2089,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2089
2089
|
switch (errorCode) {
|
|
2090
2090
|
case "BadRequestException":
|
|
2091
2091
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2092
|
-
throw await
|
|
2092
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2093
2093
|
case "InternalFailureException":
|
|
2094
2094
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2095
|
-
throw await
|
|
2095
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2096
2096
|
case "ResourceNotFoundException":
|
|
2097
2097
|
case "com.amazonaws.amplify#ResourceNotFoundException":
|
|
2098
|
-
throw await
|
|
2098
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2099
2099
|
default:
|
|
2100
2100
|
const parsedBody = parsedOutput.body;
|
|
2101
2101
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2106,9 +2106,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2106
2106
|
});
|
|
2107
2107
|
}
|
|
2108
2108
|
};
|
|
2109
|
-
const
|
|
2109
|
+
const de_ListWebhooksCommand = async (output, context) => {
|
|
2110
2110
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2111
|
-
return
|
|
2111
|
+
return de_ListWebhooksCommandError(output, context);
|
|
2112
2112
|
}
|
|
2113
2113
|
const contents = map({
|
|
2114
2114
|
$metadata: deserializeMetadata(output),
|
|
@@ -2118,12 +2118,12 @@ const deserializeAws_restJson1ListWebhooksCommand = async (output, context) => {
|
|
|
2118
2118
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2119
2119
|
}
|
|
2120
2120
|
if (data.webhooks != null) {
|
|
2121
|
-
contents.webhooks =
|
|
2121
|
+
contents.webhooks = de_Webhooks(data.webhooks, context);
|
|
2122
2122
|
}
|
|
2123
2123
|
return contents;
|
|
2124
2124
|
};
|
|
2125
|
-
exports.
|
|
2126
|
-
const
|
|
2125
|
+
exports.de_ListWebhooksCommand = de_ListWebhooksCommand;
|
|
2126
|
+
const de_ListWebhooksCommandError = async (output, context) => {
|
|
2127
2127
|
const parsedOutput = {
|
|
2128
2128
|
...output,
|
|
2129
2129
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2132,16 +2132,16 @@ const deserializeAws_restJson1ListWebhooksCommandError = async (output, context)
|
|
|
2132
2132
|
switch (errorCode) {
|
|
2133
2133
|
case "BadRequestException":
|
|
2134
2134
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2135
|
-
throw await
|
|
2135
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2136
2136
|
case "InternalFailureException":
|
|
2137
2137
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2138
|
-
throw await
|
|
2138
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2139
2139
|
case "LimitExceededException":
|
|
2140
2140
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
2141
|
-
throw await
|
|
2141
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2142
2142
|
case "UnauthorizedException":
|
|
2143
2143
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2144
|
-
throw await
|
|
2144
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2145
2145
|
default:
|
|
2146
2146
|
const parsedBody = parsedOutput.body;
|
|
2147
2147
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2152,21 +2152,21 @@ const deserializeAws_restJson1ListWebhooksCommandError = async (output, context)
|
|
|
2152
2152
|
});
|
|
2153
2153
|
}
|
|
2154
2154
|
};
|
|
2155
|
-
const
|
|
2155
|
+
const de_StartDeploymentCommand = async (output, context) => {
|
|
2156
2156
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2157
|
-
return
|
|
2157
|
+
return de_StartDeploymentCommandError(output, context);
|
|
2158
2158
|
}
|
|
2159
2159
|
const contents = map({
|
|
2160
2160
|
$metadata: deserializeMetadata(output),
|
|
2161
2161
|
});
|
|
2162
2162
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2163
2163
|
if (data.jobSummary != null) {
|
|
2164
|
-
contents.jobSummary =
|
|
2164
|
+
contents.jobSummary = de_JobSummary(data.jobSummary, context);
|
|
2165
2165
|
}
|
|
2166
2166
|
return contents;
|
|
2167
2167
|
};
|
|
2168
|
-
exports.
|
|
2169
|
-
const
|
|
2168
|
+
exports.de_StartDeploymentCommand = de_StartDeploymentCommand;
|
|
2169
|
+
const de_StartDeploymentCommandError = async (output, context) => {
|
|
2170
2170
|
const parsedOutput = {
|
|
2171
2171
|
...output,
|
|
2172
2172
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2175,19 +2175,19 @@ const deserializeAws_restJson1StartDeploymentCommandError = async (output, conte
|
|
|
2175
2175
|
switch (errorCode) {
|
|
2176
2176
|
case "BadRequestException":
|
|
2177
2177
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2178
|
-
throw await
|
|
2178
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2179
2179
|
case "InternalFailureException":
|
|
2180
2180
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2181
|
-
throw await
|
|
2181
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2182
2182
|
case "LimitExceededException":
|
|
2183
2183
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
2184
|
-
throw await
|
|
2184
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2185
2185
|
case "NotFoundException":
|
|
2186
2186
|
case "com.amazonaws.amplify#NotFoundException":
|
|
2187
|
-
throw await
|
|
2187
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2188
2188
|
case "UnauthorizedException":
|
|
2189
2189
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2190
|
-
throw await
|
|
2190
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2191
2191
|
default:
|
|
2192
2192
|
const parsedBody = parsedOutput.body;
|
|
2193
2193
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2198,21 +2198,21 @@ const deserializeAws_restJson1StartDeploymentCommandError = async (output, conte
|
|
|
2198
2198
|
});
|
|
2199
2199
|
}
|
|
2200
2200
|
};
|
|
2201
|
-
const
|
|
2201
|
+
const de_StartJobCommand = async (output, context) => {
|
|
2202
2202
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2203
|
-
return
|
|
2203
|
+
return de_StartJobCommandError(output, context);
|
|
2204
2204
|
}
|
|
2205
2205
|
const contents = map({
|
|
2206
2206
|
$metadata: deserializeMetadata(output),
|
|
2207
2207
|
});
|
|
2208
2208
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2209
2209
|
if (data.jobSummary != null) {
|
|
2210
|
-
contents.jobSummary =
|
|
2210
|
+
contents.jobSummary = de_JobSummary(data.jobSummary, context);
|
|
2211
2211
|
}
|
|
2212
2212
|
return contents;
|
|
2213
2213
|
};
|
|
2214
|
-
exports.
|
|
2215
|
-
const
|
|
2214
|
+
exports.de_StartJobCommand = de_StartJobCommand;
|
|
2215
|
+
const de_StartJobCommandError = async (output, context) => {
|
|
2216
2216
|
const parsedOutput = {
|
|
2217
2217
|
...output,
|
|
2218
2218
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2221,19 +2221,19 @@ const deserializeAws_restJson1StartJobCommandError = async (output, context) =>
|
|
|
2221
2221
|
switch (errorCode) {
|
|
2222
2222
|
case "BadRequestException":
|
|
2223
2223
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2224
|
-
throw await
|
|
2224
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2225
2225
|
case "InternalFailureException":
|
|
2226
2226
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2227
|
-
throw await
|
|
2227
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2228
2228
|
case "LimitExceededException":
|
|
2229
2229
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
2230
|
-
throw await
|
|
2230
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2231
2231
|
case "NotFoundException":
|
|
2232
2232
|
case "com.amazonaws.amplify#NotFoundException":
|
|
2233
|
-
throw await
|
|
2233
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2234
2234
|
case "UnauthorizedException":
|
|
2235
2235
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2236
|
-
throw await
|
|
2236
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2237
2237
|
default:
|
|
2238
2238
|
const parsedBody = parsedOutput.body;
|
|
2239
2239
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2244,21 +2244,21 @@ const deserializeAws_restJson1StartJobCommandError = async (output, context) =>
|
|
|
2244
2244
|
});
|
|
2245
2245
|
}
|
|
2246
2246
|
};
|
|
2247
|
-
const
|
|
2247
|
+
const de_StopJobCommand = async (output, context) => {
|
|
2248
2248
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2249
|
-
return
|
|
2249
|
+
return de_StopJobCommandError(output, context);
|
|
2250
2250
|
}
|
|
2251
2251
|
const contents = map({
|
|
2252
2252
|
$metadata: deserializeMetadata(output),
|
|
2253
2253
|
});
|
|
2254
2254
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2255
2255
|
if (data.jobSummary != null) {
|
|
2256
|
-
contents.jobSummary =
|
|
2256
|
+
contents.jobSummary = de_JobSummary(data.jobSummary, context);
|
|
2257
2257
|
}
|
|
2258
2258
|
return contents;
|
|
2259
2259
|
};
|
|
2260
|
-
exports.
|
|
2261
|
-
const
|
|
2260
|
+
exports.de_StopJobCommand = de_StopJobCommand;
|
|
2261
|
+
const de_StopJobCommandError = async (output, context) => {
|
|
2262
2262
|
const parsedOutput = {
|
|
2263
2263
|
...output,
|
|
2264
2264
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2267,19 +2267,19 @@ const deserializeAws_restJson1StopJobCommandError = async (output, context) => {
|
|
|
2267
2267
|
switch (errorCode) {
|
|
2268
2268
|
case "BadRequestException":
|
|
2269
2269
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2270
|
-
throw await
|
|
2270
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2271
2271
|
case "InternalFailureException":
|
|
2272
2272
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2273
|
-
throw await
|
|
2273
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2274
2274
|
case "LimitExceededException":
|
|
2275
2275
|
case "com.amazonaws.amplify#LimitExceededException":
|
|
2276
|
-
throw await
|
|
2276
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2277
2277
|
case "NotFoundException":
|
|
2278
2278
|
case "com.amazonaws.amplify#NotFoundException":
|
|
2279
|
-
throw await
|
|
2279
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2280
2280
|
case "UnauthorizedException":
|
|
2281
2281
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2282
|
-
throw await
|
|
2282
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2283
2283
|
default:
|
|
2284
2284
|
const parsedBody = parsedOutput.body;
|
|
2285
2285
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2290,9 +2290,9 @@ const deserializeAws_restJson1StopJobCommandError = async (output, context) => {
|
|
|
2290
2290
|
});
|
|
2291
2291
|
}
|
|
2292
2292
|
};
|
|
2293
|
-
const
|
|
2293
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
2294
2294
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2295
|
-
return
|
|
2295
|
+
return de_TagResourceCommandError(output, context);
|
|
2296
2296
|
}
|
|
2297
2297
|
const contents = map({
|
|
2298
2298
|
$metadata: deserializeMetadata(output),
|
|
@@ -2300,8 +2300,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
2300
2300
|
await collectBody(output.body, context);
|
|
2301
2301
|
return contents;
|
|
2302
2302
|
};
|
|
2303
|
-
exports.
|
|
2304
|
-
const
|
|
2303
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2304
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2305
2305
|
const parsedOutput = {
|
|
2306
2306
|
...output,
|
|
2307
2307
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2310,13 +2310,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2310
2310
|
switch (errorCode) {
|
|
2311
2311
|
case "BadRequestException":
|
|
2312
2312
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2313
|
-
throw await
|
|
2313
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2314
2314
|
case "InternalFailureException":
|
|
2315
2315
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2316
|
-
throw await
|
|
2316
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2317
2317
|
case "ResourceNotFoundException":
|
|
2318
2318
|
case "com.amazonaws.amplify#ResourceNotFoundException":
|
|
2319
|
-
throw await
|
|
2319
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2320
2320
|
default:
|
|
2321
2321
|
const parsedBody = parsedOutput.body;
|
|
2322
2322
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2327,9 +2327,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2327
2327
|
});
|
|
2328
2328
|
}
|
|
2329
2329
|
};
|
|
2330
|
-
const
|
|
2330
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
2331
2331
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2332
|
-
return
|
|
2332
|
+
return de_UntagResourceCommandError(output, context);
|
|
2333
2333
|
}
|
|
2334
2334
|
const contents = map({
|
|
2335
2335
|
$metadata: deserializeMetadata(output),
|
|
@@ -2337,8 +2337,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
2337
2337
|
await collectBody(output.body, context);
|
|
2338
2338
|
return contents;
|
|
2339
2339
|
};
|
|
2340
|
-
exports.
|
|
2341
|
-
const
|
|
2340
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2341
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2342
2342
|
const parsedOutput = {
|
|
2343
2343
|
...output,
|
|
2344
2344
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2347,13 +2347,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2347
2347
|
switch (errorCode) {
|
|
2348
2348
|
case "BadRequestException":
|
|
2349
2349
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2350
|
-
throw await
|
|
2350
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2351
2351
|
case "InternalFailureException":
|
|
2352
2352
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2353
|
-
throw await
|
|
2353
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2354
2354
|
case "ResourceNotFoundException":
|
|
2355
2355
|
case "com.amazonaws.amplify#ResourceNotFoundException":
|
|
2356
|
-
throw await
|
|
2356
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2357
2357
|
default:
|
|
2358
2358
|
const parsedBody = parsedOutput.body;
|
|
2359
2359
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2364,21 +2364,21 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2364
2364
|
});
|
|
2365
2365
|
}
|
|
2366
2366
|
};
|
|
2367
|
-
const
|
|
2367
|
+
const de_UpdateAppCommand = async (output, context) => {
|
|
2368
2368
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2369
|
-
return
|
|
2369
|
+
return de_UpdateAppCommandError(output, context);
|
|
2370
2370
|
}
|
|
2371
2371
|
const contents = map({
|
|
2372
2372
|
$metadata: deserializeMetadata(output),
|
|
2373
2373
|
});
|
|
2374
2374
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2375
2375
|
if (data.app != null) {
|
|
2376
|
-
contents.app =
|
|
2376
|
+
contents.app = de_App(data.app, context);
|
|
2377
2377
|
}
|
|
2378
2378
|
return contents;
|
|
2379
2379
|
};
|
|
2380
|
-
exports.
|
|
2381
|
-
const
|
|
2380
|
+
exports.de_UpdateAppCommand = de_UpdateAppCommand;
|
|
2381
|
+
const de_UpdateAppCommandError = async (output, context) => {
|
|
2382
2382
|
const parsedOutput = {
|
|
2383
2383
|
...output,
|
|
2384
2384
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2387,16 +2387,16 @@ const deserializeAws_restJson1UpdateAppCommandError = async (output, context) =>
|
|
|
2387
2387
|
switch (errorCode) {
|
|
2388
2388
|
case "BadRequestException":
|
|
2389
2389
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2390
|
-
throw await
|
|
2390
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2391
2391
|
case "InternalFailureException":
|
|
2392
2392
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2393
|
-
throw await
|
|
2393
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2394
2394
|
case "NotFoundException":
|
|
2395
2395
|
case "com.amazonaws.amplify#NotFoundException":
|
|
2396
|
-
throw await
|
|
2396
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2397
2397
|
case "UnauthorizedException":
|
|
2398
2398
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2399
|
-
throw await
|
|
2399
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2400
2400
|
default:
|
|
2401
2401
|
const parsedBody = parsedOutput.body;
|
|
2402
2402
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2407,21 +2407,21 @@ const deserializeAws_restJson1UpdateAppCommandError = async (output, context) =>
|
|
|
2407
2407
|
});
|
|
2408
2408
|
}
|
|
2409
2409
|
};
|
|
2410
|
-
const
|
|
2410
|
+
const de_UpdateBranchCommand = async (output, context) => {
|
|
2411
2411
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2412
|
-
return
|
|
2412
|
+
return de_UpdateBranchCommandError(output, context);
|
|
2413
2413
|
}
|
|
2414
2414
|
const contents = map({
|
|
2415
2415
|
$metadata: deserializeMetadata(output),
|
|
2416
2416
|
});
|
|
2417
2417
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2418
2418
|
if (data.branch != null) {
|
|
2419
|
-
contents.branch =
|
|
2419
|
+
contents.branch = de_Branch(data.branch, context);
|
|
2420
2420
|
}
|
|
2421
2421
|
return contents;
|
|
2422
2422
|
};
|
|
2423
|
-
exports.
|
|
2424
|
-
const
|
|
2423
|
+
exports.de_UpdateBranchCommand = de_UpdateBranchCommand;
|
|
2424
|
+
const de_UpdateBranchCommandError = async (output, context) => {
|
|
2425
2425
|
const parsedOutput = {
|
|
2426
2426
|
...output,
|
|
2427
2427
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2430,19 +2430,19 @@ const deserializeAws_restJson1UpdateBranchCommandError = async (output, context)
|
|
|
2430
2430
|
switch (errorCode) {
|
|
2431
2431
|
case "BadRequestException":
|
|
2432
2432
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2433
|
-
throw await
|
|
2433
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2434
2434
|
case "DependentServiceFailureException":
|
|
2435
2435
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
2436
|
-
throw await
|
|
2436
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
2437
2437
|
case "InternalFailureException":
|
|
2438
2438
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2439
|
-
throw await
|
|
2439
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2440
2440
|
case "NotFoundException":
|
|
2441
2441
|
case "com.amazonaws.amplify#NotFoundException":
|
|
2442
|
-
throw await
|
|
2442
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2443
2443
|
case "UnauthorizedException":
|
|
2444
2444
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2445
|
-
throw await
|
|
2445
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2446
2446
|
default:
|
|
2447
2447
|
const parsedBody = parsedOutput.body;
|
|
2448
2448
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2453,21 +2453,21 @@ const deserializeAws_restJson1UpdateBranchCommandError = async (output, context)
|
|
|
2453
2453
|
});
|
|
2454
2454
|
}
|
|
2455
2455
|
};
|
|
2456
|
-
const
|
|
2456
|
+
const de_UpdateDomainAssociationCommand = async (output, context) => {
|
|
2457
2457
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2458
|
-
return
|
|
2458
|
+
return de_UpdateDomainAssociationCommandError(output, context);
|
|
2459
2459
|
}
|
|
2460
2460
|
const contents = map({
|
|
2461
2461
|
$metadata: deserializeMetadata(output),
|
|
2462
2462
|
});
|
|
2463
2463
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2464
2464
|
if (data.domainAssociation != null) {
|
|
2465
|
-
contents.domainAssociation =
|
|
2465
|
+
contents.domainAssociation = de_DomainAssociation(data.domainAssociation, context);
|
|
2466
2466
|
}
|
|
2467
2467
|
return contents;
|
|
2468
2468
|
};
|
|
2469
|
-
exports.
|
|
2470
|
-
const
|
|
2469
|
+
exports.de_UpdateDomainAssociationCommand = de_UpdateDomainAssociationCommand;
|
|
2470
|
+
const de_UpdateDomainAssociationCommandError = async (output, context) => {
|
|
2471
2471
|
const parsedOutput = {
|
|
2472
2472
|
...output,
|
|
2473
2473
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2476,19 +2476,19 @@ const deserializeAws_restJson1UpdateDomainAssociationCommandError = async (outpu
|
|
|
2476
2476
|
switch (errorCode) {
|
|
2477
2477
|
case "BadRequestException":
|
|
2478
2478
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2479
|
-
throw await
|
|
2479
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2480
2480
|
case "DependentServiceFailureException":
|
|
2481
2481
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
2482
|
-
throw await
|
|
2482
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
2483
2483
|
case "InternalFailureException":
|
|
2484
2484
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2485
|
-
throw await
|
|
2485
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2486
2486
|
case "NotFoundException":
|
|
2487
2487
|
case "com.amazonaws.amplify#NotFoundException":
|
|
2488
|
-
throw await
|
|
2488
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2489
2489
|
case "UnauthorizedException":
|
|
2490
2490
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2491
|
-
throw await
|
|
2491
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2492
2492
|
default:
|
|
2493
2493
|
const parsedBody = parsedOutput.body;
|
|
2494
2494
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2499,21 +2499,21 @@ const deserializeAws_restJson1UpdateDomainAssociationCommandError = async (outpu
|
|
|
2499
2499
|
});
|
|
2500
2500
|
}
|
|
2501
2501
|
};
|
|
2502
|
-
const
|
|
2502
|
+
const de_UpdateWebhookCommand = async (output, context) => {
|
|
2503
2503
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2504
|
-
return
|
|
2504
|
+
return de_UpdateWebhookCommandError(output, context);
|
|
2505
2505
|
}
|
|
2506
2506
|
const contents = map({
|
|
2507
2507
|
$metadata: deserializeMetadata(output),
|
|
2508
2508
|
});
|
|
2509
2509
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2510
2510
|
if (data.webhook != null) {
|
|
2511
|
-
contents.webhook =
|
|
2511
|
+
contents.webhook = de_Webhook(data.webhook, context);
|
|
2512
2512
|
}
|
|
2513
2513
|
return contents;
|
|
2514
2514
|
};
|
|
2515
|
-
exports.
|
|
2516
|
-
const
|
|
2515
|
+
exports.de_UpdateWebhookCommand = de_UpdateWebhookCommand;
|
|
2516
|
+
const de_UpdateWebhookCommandError = async (output, context) => {
|
|
2517
2517
|
const parsedOutput = {
|
|
2518
2518
|
...output,
|
|
2519
2519
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2522,19 +2522,19 @@ const deserializeAws_restJson1UpdateWebhookCommandError = async (output, context
|
|
|
2522
2522
|
switch (errorCode) {
|
|
2523
2523
|
case "BadRequestException":
|
|
2524
2524
|
case "com.amazonaws.amplify#BadRequestException":
|
|
2525
|
-
throw await
|
|
2525
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2526
2526
|
case "DependentServiceFailureException":
|
|
2527
2527
|
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
2528
|
-
throw await
|
|
2528
|
+
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
2529
2529
|
case "InternalFailureException":
|
|
2530
2530
|
case "com.amazonaws.amplify#InternalFailureException":
|
|
2531
|
-
throw await
|
|
2531
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2532
2532
|
case "NotFoundException":
|
|
2533
2533
|
case "com.amazonaws.amplify#NotFoundException":
|
|
2534
|
-
throw await
|
|
2534
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2535
2535
|
case "UnauthorizedException":
|
|
2536
2536
|
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2537
|
-
throw await
|
|
2537
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2538
2538
|
default:
|
|
2539
2539
|
const parsedBody = parsedOutput.body;
|
|
2540
2540
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2546,7 +2546,7 @@ const deserializeAws_restJson1UpdateWebhookCommandError = async (output, context
|
|
|
2546
2546
|
}
|
|
2547
2547
|
};
|
|
2548
2548
|
const map = smithy_client_1.map;
|
|
2549
|
-
const
|
|
2549
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2550
2550
|
const contents = map({});
|
|
2551
2551
|
const data = parsedOutput.body;
|
|
2552
2552
|
if (data.message != null) {
|
|
@@ -2558,7 +2558,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
2558
2558
|
});
|
|
2559
2559
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2560
2560
|
};
|
|
2561
|
-
const
|
|
2561
|
+
const de_DependentServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
2562
2562
|
const contents = map({});
|
|
2563
2563
|
const data = parsedOutput.body;
|
|
2564
2564
|
if (data.message != null) {
|
|
@@ -2570,7 +2570,7 @@ const deserializeAws_restJson1DependentServiceFailureExceptionResponse = async (
|
|
|
2570
2570
|
});
|
|
2571
2571
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2572
2572
|
};
|
|
2573
|
-
const
|
|
2573
|
+
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
2574
2574
|
const contents = map({});
|
|
2575
2575
|
const data = parsedOutput.body;
|
|
2576
2576
|
if (data.message != null) {
|
|
@@ -2582,7 +2582,7 @@ const deserializeAws_restJson1InternalFailureExceptionResponse = async (parsedOu
|
|
|
2582
2582
|
});
|
|
2583
2583
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2584
2584
|
};
|
|
2585
|
-
const
|
|
2585
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2586
2586
|
const contents = map({});
|
|
2587
2587
|
const data = parsedOutput.body;
|
|
2588
2588
|
if (data.message != null) {
|
|
@@ -2594,7 +2594,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
|
|
|
2594
2594
|
});
|
|
2595
2595
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2596
2596
|
};
|
|
2597
|
-
const
|
|
2597
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2598
2598
|
const contents = map({});
|
|
2599
2599
|
const data = parsedOutput.body;
|
|
2600
2600
|
if (data.message != null) {
|
|
@@ -2606,7 +2606,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
2606
2606
|
});
|
|
2607
2607
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2608
2608
|
};
|
|
2609
|
-
const
|
|
2609
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2610
2610
|
const contents = map({});
|
|
2611
2611
|
const data = parsedOutput.body;
|
|
2612
2612
|
if (data.code != null) {
|
|
@@ -2621,7 +2621,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2621
2621
|
});
|
|
2622
2622
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2623
2623
|
};
|
|
2624
|
-
const
|
|
2624
|
+
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
2625
2625
|
const contents = map({});
|
|
2626
2626
|
const data = parsedOutput.body;
|
|
2627
2627
|
if (data.message != null) {
|
|
@@ -2633,7 +2633,7 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
2633
2633
|
});
|
|
2634
2634
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2635
2635
|
};
|
|
2636
|
-
const
|
|
2636
|
+
const se_AutoBranchCreationConfig = (input, context) => {
|
|
2637
2637
|
return {
|
|
2638
2638
|
...(input.basicAuthCredentials != null && { basicAuthCredentials: input.basicAuthCredentials }),
|
|
2639
2639
|
...(input.buildSpec != null && { buildSpec: input.buildSpec }),
|
|
@@ -2642,28 +2642,28 @@ const serializeAws_restJson1AutoBranchCreationConfig = (input, context) => {
|
|
|
2642
2642
|
...(input.enablePerformanceMode != null && { enablePerformanceMode: input.enablePerformanceMode }),
|
|
2643
2643
|
...(input.enablePullRequestPreview != null && { enablePullRequestPreview: input.enablePullRequestPreview }),
|
|
2644
2644
|
...(input.environmentVariables != null && {
|
|
2645
|
-
environmentVariables:
|
|
2645
|
+
environmentVariables: se_EnvironmentVariables(input.environmentVariables, context),
|
|
2646
2646
|
}),
|
|
2647
2647
|
...(input.framework != null && { framework: input.framework }),
|
|
2648
2648
|
...(input.pullRequestEnvironmentName != null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName }),
|
|
2649
2649
|
...(input.stage != null && { stage: input.stage }),
|
|
2650
2650
|
};
|
|
2651
2651
|
};
|
|
2652
|
-
const
|
|
2652
|
+
const se_AutoBranchCreationPatterns = (input, context) => {
|
|
2653
2653
|
return input
|
|
2654
2654
|
.filter((e) => e != null)
|
|
2655
2655
|
.map((entry) => {
|
|
2656
2656
|
return entry;
|
|
2657
2657
|
});
|
|
2658
2658
|
};
|
|
2659
|
-
const
|
|
2659
|
+
const se_AutoSubDomainCreationPatterns = (input, context) => {
|
|
2660
2660
|
return input
|
|
2661
2661
|
.filter((e) => e != null)
|
|
2662
2662
|
.map((entry) => {
|
|
2663
2663
|
return entry;
|
|
2664
2664
|
});
|
|
2665
2665
|
};
|
|
2666
|
-
const
|
|
2666
|
+
const se_CustomRule = (input, context) => {
|
|
2667
2667
|
return {
|
|
2668
2668
|
...(input.condition != null && { condition: input.condition }),
|
|
2669
2669
|
...(input.source != null && { source: input.source }),
|
|
@@ -2671,14 +2671,14 @@ const serializeAws_restJson1CustomRule = (input, context) => {
|
|
|
2671
2671
|
...(input.target != null && { target: input.target }),
|
|
2672
2672
|
};
|
|
2673
2673
|
};
|
|
2674
|
-
const
|
|
2674
|
+
const se_CustomRules = (input, context) => {
|
|
2675
2675
|
return input
|
|
2676
2676
|
.filter((e) => e != null)
|
|
2677
2677
|
.map((entry) => {
|
|
2678
|
-
return
|
|
2678
|
+
return se_CustomRule(entry, context);
|
|
2679
2679
|
});
|
|
2680
2680
|
};
|
|
2681
|
-
const
|
|
2681
|
+
const se_EnvironmentVariables = (input, context) => {
|
|
2682
2682
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2683
2683
|
if (value === null) {
|
|
2684
2684
|
return acc;
|
|
@@ -2687,7 +2687,7 @@ const serializeAws_restJson1EnvironmentVariables = (input, context) => {
|
|
|
2687
2687
|
return acc;
|
|
2688
2688
|
}, {});
|
|
2689
2689
|
};
|
|
2690
|
-
const
|
|
2690
|
+
const se_FileMap = (input, context) => {
|
|
2691
2691
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2692
2692
|
if (value === null) {
|
|
2693
2693
|
return acc;
|
|
@@ -2696,20 +2696,20 @@ const serializeAws_restJson1FileMap = (input, context) => {
|
|
|
2696
2696
|
return acc;
|
|
2697
2697
|
}, {});
|
|
2698
2698
|
};
|
|
2699
|
-
const
|
|
2699
|
+
const se_SubDomainSetting = (input, context) => {
|
|
2700
2700
|
return {
|
|
2701
2701
|
...(input.branchName != null && { branchName: input.branchName }),
|
|
2702
2702
|
...(input.prefix != null && { prefix: input.prefix }),
|
|
2703
2703
|
};
|
|
2704
2704
|
};
|
|
2705
|
-
const
|
|
2705
|
+
const se_SubDomainSettings = (input, context) => {
|
|
2706
2706
|
return input
|
|
2707
2707
|
.filter((e) => e != null)
|
|
2708
2708
|
.map((entry) => {
|
|
2709
|
-
return
|
|
2709
|
+
return se_SubDomainSetting(entry, context);
|
|
2710
2710
|
});
|
|
2711
2711
|
};
|
|
2712
|
-
const
|
|
2712
|
+
const se_TagMap = (input, context) => {
|
|
2713
2713
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2714
2714
|
if (value === null) {
|
|
2715
2715
|
return acc;
|
|
@@ -2718,71 +2718,67 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2718
2718
|
return acc;
|
|
2719
2719
|
}, {});
|
|
2720
2720
|
};
|
|
2721
|
-
const
|
|
2721
|
+
const de_App = (output, context) => {
|
|
2722
2722
|
return {
|
|
2723
2723
|
appArn: (0, smithy_client_1.expectString)(output.appArn),
|
|
2724
2724
|
appId: (0, smithy_client_1.expectString)(output.appId),
|
|
2725
2725
|
autoBranchCreationConfig: output.autoBranchCreationConfig != null
|
|
2726
|
-
?
|
|
2726
|
+
? de_AutoBranchCreationConfig(output.autoBranchCreationConfig, context)
|
|
2727
2727
|
: undefined,
|
|
2728
2728
|
autoBranchCreationPatterns: output.autoBranchCreationPatterns != null
|
|
2729
|
-
?
|
|
2729
|
+
? de_AutoBranchCreationPatterns(output.autoBranchCreationPatterns, context)
|
|
2730
2730
|
: undefined,
|
|
2731
2731
|
basicAuthCredentials: (0, smithy_client_1.expectString)(output.basicAuthCredentials),
|
|
2732
2732
|
buildSpec: (0, smithy_client_1.expectString)(output.buildSpec),
|
|
2733
2733
|
createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime))) : undefined,
|
|
2734
2734
|
customHeaders: (0, smithy_client_1.expectString)(output.customHeaders),
|
|
2735
|
-
customRules: output.customRules != null ?
|
|
2735
|
+
customRules: output.customRules != null ? de_CustomRules(output.customRules, context) : undefined,
|
|
2736
2736
|
defaultDomain: (0, smithy_client_1.expectString)(output.defaultDomain),
|
|
2737
2737
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
2738
2738
|
enableAutoBranchCreation: (0, smithy_client_1.expectBoolean)(output.enableAutoBranchCreation),
|
|
2739
2739
|
enableBasicAuth: (0, smithy_client_1.expectBoolean)(output.enableBasicAuth),
|
|
2740
2740
|
enableBranchAutoBuild: (0, smithy_client_1.expectBoolean)(output.enableBranchAutoBuild),
|
|
2741
2741
|
enableBranchAutoDeletion: (0, smithy_client_1.expectBoolean)(output.enableBranchAutoDeletion),
|
|
2742
|
-
environmentVariables: output.environmentVariables != null
|
|
2743
|
-
? deserializeAws_restJson1EnvironmentVariables(output.environmentVariables, context)
|
|
2744
|
-
: undefined,
|
|
2742
|
+
environmentVariables: output.environmentVariables != null ? de_EnvironmentVariables(output.environmentVariables, context) : undefined,
|
|
2745
2743
|
iamServiceRoleArn: (0, smithy_client_1.expectString)(output.iamServiceRoleArn),
|
|
2746
2744
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2747
2745
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
2748
|
-
productionBranch: output.productionBranch != null
|
|
2749
|
-
? deserializeAws_restJson1ProductionBranch(output.productionBranch, context)
|
|
2750
|
-
: undefined,
|
|
2746
|
+
productionBranch: output.productionBranch != null ? de_ProductionBranch(output.productionBranch, context) : undefined,
|
|
2751
2747
|
repository: (0, smithy_client_1.expectString)(output.repository),
|
|
2752
2748
|
repositoryCloneMethod: (0, smithy_client_1.expectString)(output.repositoryCloneMethod),
|
|
2753
|
-
tags: output.tags != null ?
|
|
2749
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
2754
2750
|
updateTime: output.updateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateTime))) : undefined,
|
|
2755
2751
|
};
|
|
2756
2752
|
};
|
|
2757
|
-
const
|
|
2753
|
+
const de_Apps = (output, context) => {
|
|
2758
2754
|
const retVal = (output || [])
|
|
2759
2755
|
.filter((e) => e != null)
|
|
2760
2756
|
.map((entry) => {
|
|
2761
2757
|
if (entry === null) {
|
|
2762
2758
|
return null;
|
|
2763
2759
|
}
|
|
2764
|
-
return
|
|
2760
|
+
return de_App(entry, context);
|
|
2765
2761
|
});
|
|
2766
2762
|
return retVal;
|
|
2767
2763
|
};
|
|
2768
|
-
const
|
|
2764
|
+
const de_Artifact = (output, context) => {
|
|
2769
2765
|
return {
|
|
2770
2766
|
artifactFileName: (0, smithy_client_1.expectString)(output.artifactFileName),
|
|
2771
2767
|
artifactId: (0, smithy_client_1.expectString)(output.artifactId),
|
|
2772
2768
|
};
|
|
2773
2769
|
};
|
|
2774
|
-
const
|
|
2770
|
+
const de_Artifacts = (output, context) => {
|
|
2775
2771
|
const retVal = (output || [])
|
|
2776
2772
|
.filter((e) => e != null)
|
|
2777
2773
|
.map((entry) => {
|
|
2778
2774
|
if (entry === null) {
|
|
2779
2775
|
return null;
|
|
2780
2776
|
}
|
|
2781
|
-
return
|
|
2777
|
+
return de_Artifact(entry, context);
|
|
2782
2778
|
});
|
|
2783
2779
|
return retVal;
|
|
2784
2780
|
};
|
|
2785
|
-
const
|
|
2781
|
+
const de_AssociatedResources = (output, context) => {
|
|
2786
2782
|
const retVal = (output || [])
|
|
2787
2783
|
.filter((e) => e != null)
|
|
2788
2784
|
.map((entry) => {
|
|
@@ -2793,7 +2789,7 @@ const deserializeAws_restJson1AssociatedResources = (output, context) => {
|
|
|
2793
2789
|
});
|
|
2794
2790
|
return retVal;
|
|
2795
2791
|
};
|
|
2796
|
-
const
|
|
2792
|
+
const de_AutoBranchCreationConfig = (output, context) => {
|
|
2797
2793
|
return {
|
|
2798
2794
|
basicAuthCredentials: (0, smithy_client_1.expectString)(output.basicAuthCredentials),
|
|
2799
2795
|
buildSpec: (0, smithy_client_1.expectString)(output.buildSpec),
|
|
@@ -2801,15 +2797,13 @@ const deserializeAws_restJson1AutoBranchCreationConfig = (output, context) => {
|
|
|
2801
2797
|
enableBasicAuth: (0, smithy_client_1.expectBoolean)(output.enableBasicAuth),
|
|
2802
2798
|
enablePerformanceMode: (0, smithy_client_1.expectBoolean)(output.enablePerformanceMode),
|
|
2803
2799
|
enablePullRequestPreview: (0, smithy_client_1.expectBoolean)(output.enablePullRequestPreview),
|
|
2804
|
-
environmentVariables: output.environmentVariables != null
|
|
2805
|
-
? deserializeAws_restJson1EnvironmentVariables(output.environmentVariables, context)
|
|
2806
|
-
: undefined,
|
|
2800
|
+
environmentVariables: output.environmentVariables != null ? de_EnvironmentVariables(output.environmentVariables, context) : undefined,
|
|
2807
2801
|
framework: (0, smithy_client_1.expectString)(output.framework),
|
|
2808
2802
|
pullRequestEnvironmentName: (0, smithy_client_1.expectString)(output.pullRequestEnvironmentName),
|
|
2809
2803
|
stage: (0, smithy_client_1.expectString)(output.stage),
|
|
2810
2804
|
};
|
|
2811
2805
|
};
|
|
2812
|
-
const
|
|
2806
|
+
const de_AutoBranchCreationPatterns = (output, context) => {
|
|
2813
2807
|
const retVal = (output || [])
|
|
2814
2808
|
.filter((e) => e != null)
|
|
2815
2809
|
.map((entry) => {
|
|
@@ -2820,7 +2814,7 @@ const deserializeAws_restJson1AutoBranchCreationPatterns = (output, context) =>
|
|
|
2820
2814
|
});
|
|
2821
2815
|
return retVal;
|
|
2822
2816
|
};
|
|
2823
|
-
const
|
|
2817
|
+
const de_AutoSubDomainCreationPatterns = (output, context) => {
|
|
2824
2818
|
const retVal = (output || [])
|
|
2825
2819
|
.filter((e) => e != null)
|
|
2826
2820
|
.map((entry) => {
|
|
@@ -2831,7 +2825,7 @@ const deserializeAws_restJson1AutoSubDomainCreationPatterns = (output, context)
|
|
|
2831
2825
|
});
|
|
2832
2826
|
return retVal;
|
|
2833
2827
|
};
|
|
2834
|
-
const
|
|
2828
|
+
const de_BackendEnvironment = (output, context) => {
|
|
2835
2829
|
return {
|
|
2836
2830
|
backendEnvironmentArn: (0, smithy_client_1.expectString)(output.backendEnvironmentArn),
|
|
2837
2831
|
createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime))) : undefined,
|
|
@@ -2841,30 +2835,28 @@ const deserializeAws_restJson1BackendEnvironment = (output, context) => {
|
|
|
2841
2835
|
updateTime: output.updateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateTime))) : undefined,
|
|
2842
2836
|
};
|
|
2843
2837
|
};
|
|
2844
|
-
const
|
|
2838
|
+
const de_BackendEnvironments = (output, context) => {
|
|
2845
2839
|
const retVal = (output || [])
|
|
2846
2840
|
.filter((e) => e != null)
|
|
2847
2841
|
.map((entry) => {
|
|
2848
2842
|
if (entry === null) {
|
|
2849
2843
|
return null;
|
|
2850
2844
|
}
|
|
2851
|
-
return
|
|
2845
|
+
return de_BackendEnvironment(entry, context);
|
|
2852
2846
|
});
|
|
2853
2847
|
return retVal;
|
|
2854
2848
|
};
|
|
2855
|
-
const
|
|
2849
|
+
const de_Branch = (output, context) => {
|
|
2856
2850
|
return {
|
|
2857
2851
|
activeJobId: (0, smithy_client_1.expectString)(output.activeJobId),
|
|
2858
|
-
associatedResources: output.associatedResources != null
|
|
2859
|
-
? deserializeAws_restJson1AssociatedResources(output.associatedResources, context)
|
|
2860
|
-
: undefined,
|
|
2852
|
+
associatedResources: output.associatedResources != null ? de_AssociatedResources(output.associatedResources, context) : undefined,
|
|
2861
2853
|
backendEnvironmentArn: (0, smithy_client_1.expectString)(output.backendEnvironmentArn),
|
|
2862
2854
|
basicAuthCredentials: (0, smithy_client_1.expectString)(output.basicAuthCredentials),
|
|
2863
2855
|
branchArn: (0, smithy_client_1.expectString)(output.branchArn),
|
|
2864
2856
|
branchName: (0, smithy_client_1.expectString)(output.branchName),
|
|
2865
2857
|
buildSpec: (0, smithy_client_1.expectString)(output.buildSpec),
|
|
2866
2858
|
createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime))) : undefined,
|
|
2867
|
-
customDomains: output.customDomains != null ?
|
|
2859
|
+
customDomains: output.customDomains != null ? de_CustomDomains(output.customDomains, context) : undefined,
|
|
2868
2860
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
2869
2861
|
destinationBranch: (0, smithy_client_1.expectString)(output.destinationBranch),
|
|
2870
2862
|
displayName: (0, smithy_client_1.expectString)(output.displayName),
|
|
@@ -2873,32 +2865,30 @@ const deserializeAws_restJson1Branch = (output, context) => {
|
|
|
2873
2865
|
enableNotification: (0, smithy_client_1.expectBoolean)(output.enableNotification),
|
|
2874
2866
|
enablePerformanceMode: (0, smithy_client_1.expectBoolean)(output.enablePerformanceMode),
|
|
2875
2867
|
enablePullRequestPreview: (0, smithy_client_1.expectBoolean)(output.enablePullRequestPreview),
|
|
2876
|
-
environmentVariables: output.environmentVariables != null
|
|
2877
|
-
? deserializeAws_restJson1EnvironmentVariables(output.environmentVariables, context)
|
|
2878
|
-
: undefined,
|
|
2868
|
+
environmentVariables: output.environmentVariables != null ? de_EnvironmentVariables(output.environmentVariables, context) : undefined,
|
|
2879
2869
|
framework: (0, smithy_client_1.expectString)(output.framework),
|
|
2880
2870
|
pullRequestEnvironmentName: (0, smithy_client_1.expectString)(output.pullRequestEnvironmentName),
|
|
2881
2871
|
sourceBranch: (0, smithy_client_1.expectString)(output.sourceBranch),
|
|
2882
2872
|
stage: (0, smithy_client_1.expectString)(output.stage),
|
|
2883
|
-
tags: output.tags != null ?
|
|
2873
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
2884
2874
|
thumbnailUrl: (0, smithy_client_1.expectString)(output.thumbnailUrl),
|
|
2885
2875
|
totalNumberOfJobs: (0, smithy_client_1.expectString)(output.totalNumberOfJobs),
|
|
2886
2876
|
ttl: (0, smithy_client_1.expectString)(output.ttl),
|
|
2887
2877
|
updateTime: output.updateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateTime))) : undefined,
|
|
2888
2878
|
};
|
|
2889
2879
|
};
|
|
2890
|
-
const
|
|
2880
|
+
const de_Branches = (output, context) => {
|
|
2891
2881
|
const retVal = (output || [])
|
|
2892
2882
|
.filter((e) => e != null)
|
|
2893
2883
|
.map((entry) => {
|
|
2894
2884
|
if (entry === null) {
|
|
2895
2885
|
return null;
|
|
2896
2886
|
}
|
|
2897
|
-
return
|
|
2887
|
+
return de_Branch(entry, context);
|
|
2898
2888
|
});
|
|
2899
2889
|
return retVal;
|
|
2900
2890
|
};
|
|
2901
|
-
const
|
|
2891
|
+
const de_CustomDomains = (output, context) => {
|
|
2902
2892
|
const retVal = (output || [])
|
|
2903
2893
|
.filter((e) => e != null)
|
|
2904
2894
|
.map((entry) => {
|
|
@@ -2909,7 +2899,7 @@ const deserializeAws_restJson1CustomDomains = (output, context) => {
|
|
|
2909
2899
|
});
|
|
2910
2900
|
return retVal;
|
|
2911
2901
|
};
|
|
2912
|
-
const
|
|
2902
|
+
const de_CustomRule = (output, context) => {
|
|
2913
2903
|
return {
|
|
2914
2904
|
condition: (0, smithy_client_1.expectString)(output.condition),
|
|
2915
2905
|
source: (0, smithy_client_1.expectString)(output.source),
|
|
@@ -2917,21 +2907,21 @@ const deserializeAws_restJson1CustomRule = (output, context) => {
|
|
|
2917
2907
|
target: (0, smithy_client_1.expectString)(output.target),
|
|
2918
2908
|
};
|
|
2919
2909
|
};
|
|
2920
|
-
const
|
|
2910
|
+
const de_CustomRules = (output, context) => {
|
|
2921
2911
|
const retVal = (output || [])
|
|
2922
2912
|
.filter((e) => e != null)
|
|
2923
2913
|
.map((entry) => {
|
|
2924
2914
|
if (entry === null) {
|
|
2925
2915
|
return null;
|
|
2926
2916
|
}
|
|
2927
|
-
return
|
|
2917
|
+
return de_CustomRule(entry, context);
|
|
2928
2918
|
});
|
|
2929
2919
|
return retVal;
|
|
2930
2920
|
};
|
|
2931
|
-
const
|
|
2921
|
+
const de_DomainAssociation = (output, context) => {
|
|
2932
2922
|
return {
|
|
2933
2923
|
autoSubDomainCreationPatterns: output.autoSubDomainCreationPatterns != null
|
|
2934
|
-
?
|
|
2924
|
+
? de_AutoSubDomainCreationPatterns(output.autoSubDomainCreationPatterns, context)
|
|
2935
2925
|
: undefined,
|
|
2936
2926
|
autoSubDomainIAMRole: (0, smithy_client_1.expectString)(output.autoSubDomainIAMRole),
|
|
2937
2927
|
certificateVerificationDNSRecord: (0, smithy_client_1.expectString)(output.certificateVerificationDNSRecord),
|
|
@@ -2940,21 +2930,21 @@ const deserializeAws_restJson1DomainAssociation = (output, context) => {
|
|
|
2940
2930
|
domainStatus: (0, smithy_client_1.expectString)(output.domainStatus),
|
|
2941
2931
|
enableAutoSubDomain: (0, smithy_client_1.expectBoolean)(output.enableAutoSubDomain),
|
|
2942
2932
|
statusReason: (0, smithy_client_1.expectString)(output.statusReason),
|
|
2943
|
-
subDomains: output.subDomains != null ?
|
|
2933
|
+
subDomains: output.subDomains != null ? de_SubDomains(output.subDomains, context) : undefined,
|
|
2944
2934
|
};
|
|
2945
2935
|
};
|
|
2946
|
-
const
|
|
2936
|
+
const de_DomainAssociations = (output, context) => {
|
|
2947
2937
|
const retVal = (output || [])
|
|
2948
2938
|
.filter((e) => e != null)
|
|
2949
2939
|
.map((entry) => {
|
|
2950
2940
|
if (entry === null) {
|
|
2951
2941
|
return null;
|
|
2952
2942
|
}
|
|
2953
|
-
return
|
|
2943
|
+
return de_DomainAssociation(entry, context);
|
|
2954
2944
|
});
|
|
2955
2945
|
return retVal;
|
|
2956
2946
|
};
|
|
2957
|
-
const
|
|
2947
|
+
const de_EnvironmentVariables = (output, context) => {
|
|
2958
2948
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2959
2949
|
if (value === null) {
|
|
2960
2950
|
return acc;
|
|
@@ -2963,7 +2953,7 @@ const deserializeAws_restJson1EnvironmentVariables = (output, context) => {
|
|
|
2963
2953
|
return acc;
|
|
2964
2954
|
}, {});
|
|
2965
2955
|
};
|
|
2966
|
-
const
|
|
2956
|
+
const de_FileUploadUrls = (output, context) => {
|
|
2967
2957
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2968
2958
|
if (value === null) {
|
|
2969
2959
|
return acc;
|
|
@@ -2972,24 +2962,24 @@ const deserializeAws_restJson1FileUploadUrls = (output, context) => {
|
|
|
2972
2962
|
return acc;
|
|
2973
2963
|
}, {});
|
|
2974
2964
|
};
|
|
2975
|
-
const
|
|
2965
|
+
const de_Job = (output, context) => {
|
|
2976
2966
|
return {
|
|
2977
|
-
steps: output.steps != null ?
|
|
2978
|
-
summary: output.summary != null ?
|
|
2967
|
+
steps: output.steps != null ? de_Steps(output.steps, context) : undefined,
|
|
2968
|
+
summary: output.summary != null ? de_JobSummary(output.summary, context) : undefined,
|
|
2979
2969
|
};
|
|
2980
2970
|
};
|
|
2981
|
-
const
|
|
2971
|
+
const de_JobSummaries = (output, context) => {
|
|
2982
2972
|
const retVal = (output || [])
|
|
2983
2973
|
.filter((e) => e != null)
|
|
2984
2974
|
.map((entry) => {
|
|
2985
2975
|
if (entry === null) {
|
|
2986
2976
|
return null;
|
|
2987
2977
|
}
|
|
2988
|
-
return
|
|
2978
|
+
return de_JobSummary(entry, context);
|
|
2989
2979
|
});
|
|
2990
2980
|
return retVal;
|
|
2991
2981
|
};
|
|
2992
|
-
const
|
|
2982
|
+
const de_JobSummary = (output, context) => {
|
|
2993
2983
|
return {
|
|
2994
2984
|
commitId: (0, smithy_client_1.expectString)(output.commitId),
|
|
2995
2985
|
commitMessage: (0, smithy_client_1.expectString)(output.commitMessage),
|
|
@@ -3002,7 +2992,7 @@ const deserializeAws_restJson1JobSummary = (output, context) => {
|
|
|
3002
2992
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3003
2993
|
};
|
|
3004
2994
|
};
|
|
3005
|
-
const
|
|
2995
|
+
const de_ProductionBranch = (output, context) => {
|
|
3006
2996
|
return {
|
|
3007
2997
|
branchName: (0, smithy_client_1.expectString)(output.branchName),
|
|
3008
2998
|
lastDeployTime: output.lastDeployTime != null
|
|
@@ -3012,7 +3002,7 @@ const deserializeAws_restJson1ProductionBranch = (output, context) => {
|
|
|
3012
3002
|
thumbnailUrl: (0, smithy_client_1.expectString)(output.thumbnailUrl),
|
|
3013
3003
|
};
|
|
3014
3004
|
};
|
|
3015
|
-
const
|
|
3005
|
+
const de_Screenshots = (output, context) => {
|
|
3016
3006
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3017
3007
|
if (value === null) {
|
|
3018
3008
|
return acc;
|
|
@@ -3021,13 +3011,13 @@ const deserializeAws_restJson1Screenshots = (output, context) => {
|
|
|
3021
3011
|
return acc;
|
|
3022
3012
|
}, {});
|
|
3023
3013
|
};
|
|
3024
|
-
const
|
|
3014
|
+
const de_Step = (output, context) => {
|
|
3025
3015
|
return {
|
|
3026
3016
|
artifactsUrl: (0, smithy_client_1.expectString)(output.artifactsUrl),
|
|
3027
3017
|
context: (0, smithy_client_1.expectString)(output.context),
|
|
3028
3018
|
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
|
|
3029
3019
|
logUrl: (0, smithy_client_1.expectString)(output.logUrl),
|
|
3030
|
-
screenshots: output.screenshots != null ?
|
|
3020
|
+
screenshots: output.screenshots != null ? de_Screenshots(output.screenshots, context) : undefined,
|
|
3031
3021
|
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
3032
3022
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3033
3023
|
statusReason: (0, smithy_client_1.expectString)(output.statusReason),
|
|
@@ -3036,44 +3026,42 @@ const deserializeAws_restJson1Step = (output, context) => {
|
|
|
3036
3026
|
testConfigUrl: (0, smithy_client_1.expectString)(output.testConfigUrl),
|
|
3037
3027
|
};
|
|
3038
3028
|
};
|
|
3039
|
-
const
|
|
3029
|
+
const de_Steps = (output, context) => {
|
|
3040
3030
|
const retVal = (output || [])
|
|
3041
3031
|
.filter((e) => e != null)
|
|
3042
3032
|
.map((entry) => {
|
|
3043
3033
|
if (entry === null) {
|
|
3044
3034
|
return null;
|
|
3045
3035
|
}
|
|
3046
|
-
return
|
|
3036
|
+
return de_Step(entry, context);
|
|
3047
3037
|
});
|
|
3048
3038
|
return retVal;
|
|
3049
3039
|
};
|
|
3050
|
-
const
|
|
3040
|
+
const de_SubDomain = (output, context) => {
|
|
3051
3041
|
return {
|
|
3052
3042
|
dnsRecord: (0, smithy_client_1.expectString)(output.dnsRecord),
|
|
3053
|
-
subDomainSetting: output.subDomainSetting != null
|
|
3054
|
-
? deserializeAws_restJson1SubDomainSetting(output.subDomainSetting, context)
|
|
3055
|
-
: undefined,
|
|
3043
|
+
subDomainSetting: output.subDomainSetting != null ? de_SubDomainSetting(output.subDomainSetting, context) : undefined,
|
|
3056
3044
|
verified: (0, smithy_client_1.expectBoolean)(output.verified),
|
|
3057
3045
|
};
|
|
3058
3046
|
};
|
|
3059
|
-
const
|
|
3047
|
+
const de_SubDomains = (output, context) => {
|
|
3060
3048
|
const retVal = (output || [])
|
|
3061
3049
|
.filter((e) => e != null)
|
|
3062
3050
|
.map((entry) => {
|
|
3063
3051
|
if (entry === null) {
|
|
3064
3052
|
return null;
|
|
3065
3053
|
}
|
|
3066
|
-
return
|
|
3054
|
+
return de_SubDomain(entry, context);
|
|
3067
3055
|
});
|
|
3068
3056
|
return retVal;
|
|
3069
3057
|
};
|
|
3070
|
-
const
|
|
3058
|
+
const de_SubDomainSetting = (output, context) => {
|
|
3071
3059
|
return {
|
|
3072
3060
|
branchName: (0, smithy_client_1.expectString)(output.branchName),
|
|
3073
3061
|
prefix: (0, smithy_client_1.expectString)(output.prefix),
|
|
3074
3062
|
};
|
|
3075
3063
|
};
|
|
3076
|
-
const
|
|
3064
|
+
const de_TagMap = (output, context) => {
|
|
3077
3065
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3078
3066
|
if (value === null) {
|
|
3079
3067
|
return acc;
|
|
@@ -3082,7 +3070,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
3082
3070
|
return acc;
|
|
3083
3071
|
}, {});
|
|
3084
3072
|
};
|
|
3085
|
-
const
|
|
3073
|
+
const de_Webhook = (output, context) => {
|
|
3086
3074
|
return {
|
|
3087
3075
|
branchName: (0, smithy_client_1.expectString)(output.branchName),
|
|
3088
3076
|
createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime))) : undefined,
|
|
@@ -3093,14 +3081,14 @@ const deserializeAws_restJson1Webhook = (output, context) => {
|
|
|
3093
3081
|
webhookUrl: (0, smithy_client_1.expectString)(output.webhookUrl),
|
|
3094
3082
|
};
|
|
3095
3083
|
};
|
|
3096
|
-
const
|
|
3084
|
+
const de_Webhooks = (output, context) => {
|
|
3097
3085
|
const retVal = (output || [])
|
|
3098
3086
|
.filter((e) => e != null)
|
|
3099
3087
|
.map((entry) => {
|
|
3100
3088
|
if (entry === null) {
|
|
3101
3089
|
return null;
|
|
3102
3090
|
}
|
|
3103
|
-
return
|
|
3091
|
+
return de_Webhook(entry, context);
|
|
3104
3092
|
});
|
|
3105
3093
|
return retVal;
|
|
3106
3094
|
};
|