@aws-sdk/client-amplify 3.489.0 → 3.495.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/Amplify.js +1 -85
- package/dist-cjs/AmplifyClient.js +1 -43
- package/dist-cjs/commands/CreateAppCommand.js +1 -29
- package/dist-cjs/commands/CreateBackendEnvironmentCommand.js +1 -28
- package/dist-cjs/commands/CreateBranchCommand.js +1 -29
- package/dist-cjs/commands/CreateDeploymentCommand.js +1 -28
- package/dist-cjs/commands/CreateDomainAssociationCommand.js +1 -28
- package/dist-cjs/commands/CreateWebhookCommand.js +1 -28
- package/dist-cjs/commands/DeleteAppCommand.js +1 -29
- package/dist-cjs/commands/DeleteBackendEnvironmentCommand.js +1 -28
- package/dist-cjs/commands/DeleteBranchCommand.js +1 -29
- package/dist-cjs/commands/DeleteDomainAssociationCommand.js +1 -28
- package/dist-cjs/commands/DeleteJobCommand.js +1 -28
- package/dist-cjs/commands/DeleteWebhookCommand.js +1 -28
- package/dist-cjs/commands/GenerateAccessLogsCommand.js +1 -28
- package/dist-cjs/commands/GetAppCommand.js +1 -29
- package/dist-cjs/commands/GetArtifactUrlCommand.js +1 -28
- package/dist-cjs/commands/GetBackendEnvironmentCommand.js +1 -28
- package/dist-cjs/commands/GetBranchCommand.js +1 -29
- package/dist-cjs/commands/GetDomainAssociationCommand.js +1 -28
- package/dist-cjs/commands/GetJobCommand.js +1 -28
- package/dist-cjs/commands/GetWebhookCommand.js +1 -28
- package/dist-cjs/commands/ListAppsCommand.js +1 -29
- package/dist-cjs/commands/ListArtifactsCommand.js +1 -28
- package/dist-cjs/commands/ListBackendEnvironmentsCommand.js +1 -28
- package/dist-cjs/commands/ListBranchesCommand.js +1 -29
- package/dist-cjs/commands/ListDomainAssociationsCommand.js +1 -28
- package/dist-cjs/commands/ListJobsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListWebhooksCommand.js +1 -28
- package/dist-cjs/commands/StartDeploymentCommand.js +1 -28
- package/dist-cjs/commands/StartJobCommand.js +1 -28
- package/dist-cjs/commands/StopJobCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateAppCommand.js +1 -29
- package/dist-cjs/commands/UpdateBranchCommand.js +1 -29
- package/dist-cjs/commands/UpdateDomainAssociationCommand.js +1 -28
- package/dist-cjs/commands/UpdateWebhookCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -40
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3711 -11
- package/dist-cjs/models/AmplifyServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -244
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAppsPaginator.js +1 -7
- package/dist-cjs/pagination/ListBranchesPaginator.js +1 -7
- package/dist-cjs/pagination/ListDomainAssociationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListJobsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_restJson1.js +1 -2548
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,2548 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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
|
-
const core_1 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const AmplifyServiceException_1 = require("../models/AmplifyServiceException");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const se_CreateAppCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
|
-
const headers = {
|
|
12
|
-
"content-type": "application/json",
|
|
13
|
-
};
|
|
14
|
-
b.bp("/apps");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
-
accessToken: [],
|
|
18
|
-
autoBranchCreationConfig: (_) => (0, smithy_client_1._json)(_),
|
|
19
|
-
autoBranchCreationPatterns: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
-
basicAuthCredentials: [],
|
|
21
|
-
buildSpec: [],
|
|
22
|
-
customHeaders: [],
|
|
23
|
-
customRules: (_) => (0, smithy_client_1._json)(_),
|
|
24
|
-
description: [],
|
|
25
|
-
enableAutoBranchCreation: [],
|
|
26
|
-
enableBasicAuth: [],
|
|
27
|
-
enableBranchAutoBuild: [],
|
|
28
|
-
enableBranchAutoDeletion: [],
|
|
29
|
-
environmentVariables: (_) => (0, smithy_client_1._json)(_),
|
|
30
|
-
iamServiceRoleArn: [],
|
|
31
|
-
name: [],
|
|
32
|
-
oauthToken: [],
|
|
33
|
-
platform: [],
|
|
34
|
-
repository: [],
|
|
35
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
36
|
-
}));
|
|
37
|
-
b.m("POST").h(headers).b(body);
|
|
38
|
-
return b.build();
|
|
39
|
-
};
|
|
40
|
-
exports.se_CreateAppCommand = se_CreateAppCommand;
|
|
41
|
-
const se_CreateBackendEnvironmentCommand = async (input, context) => {
|
|
42
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
43
|
-
const headers = {
|
|
44
|
-
"content-type": "application/json",
|
|
45
|
-
};
|
|
46
|
-
b.bp("/apps/{appId}/backendenvironments");
|
|
47
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
48
|
-
let body;
|
|
49
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
50
|
-
deploymentArtifacts: [],
|
|
51
|
-
environmentName: [],
|
|
52
|
-
stackName: [],
|
|
53
|
-
}));
|
|
54
|
-
b.m("POST").h(headers).b(body);
|
|
55
|
-
return b.build();
|
|
56
|
-
};
|
|
57
|
-
exports.se_CreateBackendEnvironmentCommand = se_CreateBackendEnvironmentCommand;
|
|
58
|
-
const se_CreateBranchCommand = async (input, context) => {
|
|
59
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
60
|
-
const headers = {
|
|
61
|
-
"content-type": "application/json",
|
|
62
|
-
};
|
|
63
|
-
b.bp("/apps/{appId}/branches");
|
|
64
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
65
|
-
let body;
|
|
66
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
67
|
-
backend: (_) => (0, smithy_client_1._json)(_),
|
|
68
|
-
backendEnvironmentArn: [],
|
|
69
|
-
basicAuthCredentials: [],
|
|
70
|
-
branchName: [],
|
|
71
|
-
buildSpec: [],
|
|
72
|
-
description: [],
|
|
73
|
-
displayName: [],
|
|
74
|
-
enableAutoBuild: [],
|
|
75
|
-
enableBasicAuth: [],
|
|
76
|
-
enableNotification: [],
|
|
77
|
-
enablePerformanceMode: [],
|
|
78
|
-
enablePullRequestPreview: [],
|
|
79
|
-
environmentVariables: (_) => (0, smithy_client_1._json)(_),
|
|
80
|
-
framework: [],
|
|
81
|
-
pullRequestEnvironmentName: [],
|
|
82
|
-
stage: [],
|
|
83
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
84
|
-
ttl: [],
|
|
85
|
-
}));
|
|
86
|
-
b.m("POST").h(headers).b(body);
|
|
87
|
-
return b.build();
|
|
88
|
-
};
|
|
89
|
-
exports.se_CreateBranchCommand = se_CreateBranchCommand;
|
|
90
|
-
const se_CreateDeploymentCommand = async (input, context) => {
|
|
91
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
92
|
-
const headers = {
|
|
93
|
-
"content-type": "application/json",
|
|
94
|
-
};
|
|
95
|
-
b.bp("/apps/{appId}/branches/{branchName}/deployments");
|
|
96
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
97
|
-
b.p("branchName", () => input.branchName, "{branchName}", false);
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
100
|
-
fileMap: (_) => (0, smithy_client_1._json)(_),
|
|
101
|
-
}));
|
|
102
|
-
b.m("POST").h(headers).b(body);
|
|
103
|
-
return b.build();
|
|
104
|
-
};
|
|
105
|
-
exports.se_CreateDeploymentCommand = se_CreateDeploymentCommand;
|
|
106
|
-
const se_CreateDomainAssociationCommand = async (input, context) => {
|
|
107
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
108
|
-
const headers = {
|
|
109
|
-
"content-type": "application/json",
|
|
110
|
-
};
|
|
111
|
-
b.bp("/apps/{appId}/domains");
|
|
112
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
113
|
-
let body;
|
|
114
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
115
|
-
autoSubDomainCreationPatterns: (_) => (0, smithy_client_1._json)(_),
|
|
116
|
-
autoSubDomainIAMRole: [],
|
|
117
|
-
domainName: [],
|
|
118
|
-
enableAutoSubDomain: [],
|
|
119
|
-
subDomainSettings: (_) => (0, smithy_client_1._json)(_),
|
|
120
|
-
}));
|
|
121
|
-
b.m("POST").h(headers).b(body);
|
|
122
|
-
return b.build();
|
|
123
|
-
};
|
|
124
|
-
exports.se_CreateDomainAssociationCommand = se_CreateDomainAssociationCommand;
|
|
125
|
-
const se_CreateWebhookCommand = async (input, context) => {
|
|
126
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
127
|
-
const headers = {
|
|
128
|
-
"content-type": "application/json",
|
|
129
|
-
};
|
|
130
|
-
b.bp("/apps/{appId}/webhooks");
|
|
131
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
132
|
-
let body;
|
|
133
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
134
|
-
branchName: [],
|
|
135
|
-
description: [],
|
|
136
|
-
}));
|
|
137
|
-
b.m("POST").h(headers).b(body);
|
|
138
|
-
return b.build();
|
|
139
|
-
};
|
|
140
|
-
exports.se_CreateWebhookCommand = se_CreateWebhookCommand;
|
|
141
|
-
const se_DeleteAppCommand = async (input, context) => {
|
|
142
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
143
|
-
const headers = {};
|
|
144
|
-
b.bp("/apps/{appId}");
|
|
145
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
146
|
-
let body;
|
|
147
|
-
b.m("DELETE").h(headers).b(body);
|
|
148
|
-
return b.build();
|
|
149
|
-
};
|
|
150
|
-
exports.se_DeleteAppCommand = se_DeleteAppCommand;
|
|
151
|
-
const se_DeleteBackendEnvironmentCommand = async (input, context) => {
|
|
152
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
153
|
-
const headers = {};
|
|
154
|
-
b.bp("/apps/{appId}/backendenvironments/{environmentName}");
|
|
155
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
156
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
157
|
-
let body;
|
|
158
|
-
b.m("DELETE").h(headers).b(body);
|
|
159
|
-
return b.build();
|
|
160
|
-
};
|
|
161
|
-
exports.se_DeleteBackendEnvironmentCommand = se_DeleteBackendEnvironmentCommand;
|
|
162
|
-
const se_DeleteBranchCommand = async (input, context) => {
|
|
163
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
164
|
-
const headers = {};
|
|
165
|
-
b.bp("/apps/{appId}/branches/{branchName}");
|
|
166
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
167
|
-
b.p("branchName", () => input.branchName, "{branchName}", false);
|
|
168
|
-
let body;
|
|
169
|
-
b.m("DELETE").h(headers).b(body);
|
|
170
|
-
return b.build();
|
|
171
|
-
};
|
|
172
|
-
exports.se_DeleteBranchCommand = se_DeleteBranchCommand;
|
|
173
|
-
const se_DeleteDomainAssociationCommand = async (input, context) => {
|
|
174
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
175
|
-
const headers = {};
|
|
176
|
-
b.bp("/apps/{appId}/domains/{domainName}");
|
|
177
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
178
|
-
b.p("domainName", () => input.domainName, "{domainName}", false);
|
|
179
|
-
let body;
|
|
180
|
-
b.m("DELETE").h(headers).b(body);
|
|
181
|
-
return b.build();
|
|
182
|
-
};
|
|
183
|
-
exports.se_DeleteDomainAssociationCommand = se_DeleteDomainAssociationCommand;
|
|
184
|
-
const se_DeleteJobCommand = async (input, context) => {
|
|
185
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
186
|
-
const headers = {};
|
|
187
|
-
b.bp("/apps/{appId}/branches/{branchName}/jobs/{jobId}");
|
|
188
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
189
|
-
b.p("branchName", () => input.branchName, "{branchName}", false);
|
|
190
|
-
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
191
|
-
let body;
|
|
192
|
-
b.m("DELETE").h(headers).b(body);
|
|
193
|
-
return b.build();
|
|
194
|
-
};
|
|
195
|
-
exports.se_DeleteJobCommand = se_DeleteJobCommand;
|
|
196
|
-
const se_DeleteWebhookCommand = async (input, context) => {
|
|
197
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
198
|
-
const headers = {};
|
|
199
|
-
b.bp("/webhooks/{webhookId}");
|
|
200
|
-
b.p("webhookId", () => input.webhookId, "{webhookId}", false);
|
|
201
|
-
let body;
|
|
202
|
-
b.m("DELETE").h(headers).b(body);
|
|
203
|
-
return b.build();
|
|
204
|
-
};
|
|
205
|
-
exports.se_DeleteWebhookCommand = se_DeleteWebhookCommand;
|
|
206
|
-
const se_GenerateAccessLogsCommand = async (input, context) => {
|
|
207
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
208
|
-
const headers = {
|
|
209
|
-
"content-type": "application/json",
|
|
210
|
-
};
|
|
211
|
-
b.bp("/apps/{appId}/accesslogs");
|
|
212
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
213
|
-
let body;
|
|
214
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
215
|
-
domainName: [],
|
|
216
|
-
endTime: (_) => Math.round(_.getTime() / 1000),
|
|
217
|
-
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
218
|
-
}));
|
|
219
|
-
b.m("POST").h(headers).b(body);
|
|
220
|
-
return b.build();
|
|
221
|
-
};
|
|
222
|
-
exports.se_GenerateAccessLogsCommand = se_GenerateAccessLogsCommand;
|
|
223
|
-
const se_GetAppCommand = async (input, context) => {
|
|
224
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
225
|
-
const headers = {};
|
|
226
|
-
b.bp("/apps/{appId}");
|
|
227
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
228
|
-
let body;
|
|
229
|
-
b.m("GET").h(headers).b(body);
|
|
230
|
-
return b.build();
|
|
231
|
-
};
|
|
232
|
-
exports.se_GetAppCommand = se_GetAppCommand;
|
|
233
|
-
const se_GetArtifactUrlCommand = async (input, context) => {
|
|
234
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
235
|
-
const headers = {};
|
|
236
|
-
b.bp("/artifacts/{artifactId}");
|
|
237
|
-
b.p("artifactId", () => input.artifactId, "{artifactId}", false);
|
|
238
|
-
let body;
|
|
239
|
-
b.m("GET").h(headers).b(body);
|
|
240
|
-
return b.build();
|
|
241
|
-
};
|
|
242
|
-
exports.se_GetArtifactUrlCommand = se_GetArtifactUrlCommand;
|
|
243
|
-
const se_GetBackendEnvironmentCommand = async (input, context) => {
|
|
244
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
245
|
-
const headers = {};
|
|
246
|
-
b.bp("/apps/{appId}/backendenvironments/{environmentName}");
|
|
247
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
248
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
249
|
-
let body;
|
|
250
|
-
b.m("GET").h(headers).b(body);
|
|
251
|
-
return b.build();
|
|
252
|
-
};
|
|
253
|
-
exports.se_GetBackendEnvironmentCommand = se_GetBackendEnvironmentCommand;
|
|
254
|
-
const se_GetBranchCommand = async (input, context) => {
|
|
255
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
256
|
-
const headers = {};
|
|
257
|
-
b.bp("/apps/{appId}/branches/{branchName}");
|
|
258
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
259
|
-
b.p("branchName", () => input.branchName, "{branchName}", false);
|
|
260
|
-
let body;
|
|
261
|
-
b.m("GET").h(headers).b(body);
|
|
262
|
-
return b.build();
|
|
263
|
-
};
|
|
264
|
-
exports.se_GetBranchCommand = se_GetBranchCommand;
|
|
265
|
-
const se_GetDomainAssociationCommand = async (input, context) => {
|
|
266
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
267
|
-
const headers = {};
|
|
268
|
-
b.bp("/apps/{appId}/domains/{domainName}");
|
|
269
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
270
|
-
b.p("domainName", () => input.domainName, "{domainName}", false);
|
|
271
|
-
let body;
|
|
272
|
-
b.m("GET").h(headers).b(body);
|
|
273
|
-
return b.build();
|
|
274
|
-
};
|
|
275
|
-
exports.se_GetDomainAssociationCommand = se_GetDomainAssociationCommand;
|
|
276
|
-
const se_GetJobCommand = async (input, context) => {
|
|
277
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
278
|
-
const headers = {};
|
|
279
|
-
b.bp("/apps/{appId}/branches/{branchName}/jobs/{jobId}");
|
|
280
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
281
|
-
b.p("branchName", () => input.branchName, "{branchName}", false);
|
|
282
|
-
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
283
|
-
let body;
|
|
284
|
-
b.m("GET").h(headers).b(body);
|
|
285
|
-
return b.build();
|
|
286
|
-
};
|
|
287
|
-
exports.se_GetJobCommand = se_GetJobCommand;
|
|
288
|
-
const se_GetWebhookCommand = async (input, context) => {
|
|
289
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
290
|
-
const headers = {};
|
|
291
|
-
b.bp("/webhooks/{webhookId}");
|
|
292
|
-
b.p("webhookId", () => input.webhookId, "{webhookId}", false);
|
|
293
|
-
let body;
|
|
294
|
-
b.m("GET").h(headers).b(body);
|
|
295
|
-
return b.build();
|
|
296
|
-
};
|
|
297
|
-
exports.se_GetWebhookCommand = se_GetWebhookCommand;
|
|
298
|
-
const se_ListAppsCommand = async (input, context) => {
|
|
299
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
300
|
-
const headers = {};
|
|
301
|
-
b.bp("/apps");
|
|
302
|
-
const query = (0, smithy_client_1.map)({
|
|
303
|
-
[_nT]: [, input[_nT]],
|
|
304
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
305
|
-
});
|
|
306
|
-
let body;
|
|
307
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
308
|
-
return b.build();
|
|
309
|
-
};
|
|
310
|
-
exports.se_ListAppsCommand = se_ListAppsCommand;
|
|
311
|
-
const se_ListArtifactsCommand = async (input, context) => {
|
|
312
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
313
|
-
const headers = {};
|
|
314
|
-
b.bp("/apps/{appId}/branches/{branchName}/jobs/{jobId}/artifacts");
|
|
315
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
316
|
-
b.p("branchName", () => input.branchName, "{branchName}", false);
|
|
317
|
-
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
318
|
-
const query = (0, smithy_client_1.map)({
|
|
319
|
-
[_nT]: [, input[_nT]],
|
|
320
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
321
|
-
});
|
|
322
|
-
let body;
|
|
323
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
324
|
-
return b.build();
|
|
325
|
-
};
|
|
326
|
-
exports.se_ListArtifactsCommand = se_ListArtifactsCommand;
|
|
327
|
-
const se_ListBackendEnvironmentsCommand = async (input, context) => {
|
|
328
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
329
|
-
const headers = {};
|
|
330
|
-
b.bp("/apps/{appId}/backendenvironments");
|
|
331
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
332
|
-
const query = (0, smithy_client_1.map)({
|
|
333
|
-
[_eN]: [, input[_eN]],
|
|
334
|
-
[_nT]: [, input[_nT]],
|
|
335
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
336
|
-
});
|
|
337
|
-
let body;
|
|
338
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
339
|
-
return b.build();
|
|
340
|
-
};
|
|
341
|
-
exports.se_ListBackendEnvironmentsCommand = se_ListBackendEnvironmentsCommand;
|
|
342
|
-
const se_ListBranchesCommand = async (input, context) => {
|
|
343
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
344
|
-
const headers = {};
|
|
345
|
-
b.bp("/apps/{appId}/branches");
|
|
346
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
347
|
-
const query = (0, smithy_client_1.map)({
|
|
348
|
-
[_nT]: [, input[_nT]],
|
|
349
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
350
|
-
});
|
|
351
|
-
let body;
|
|
352
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
353
|
-
return b.build();
|
|
354
|
-
};
|
|
355
|
-
exports.se_ListBranchesCommand = se_ListBranchesCommand;
|
|
356
|
-
const se_ListDomainAssociationsCommand = async (input, context) => {
|
|
357
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
358
|
-
const headers = {};
|
|
359
|
-
b.bp("/apps/{appId}/domains");
|
|
360
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
361
|
-
const query = (0, smithy_client_1.map)({
|
|
362
|
-
[_nT]: [, input[_nT]],
|
|
363
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
364
|
-
});
|
|
365
|
-
let body;
|
|
366
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
367
|
-
return b.build();
|
|
368
|
-
};
|
|
369
|
-
exports.se_ListDomainAssociationsCommand = se_ListDomainAssociationsCommand;
|
|
370
|
-
const se_ListJobsCommand = async (input, context) => {
|
|
371
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
372
|
-
const headers = {};
|
|
373
|
-
b.bp("/apps/{appId}/branches/{branchName}/jobs");
|
|
374
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
375
|
-
b.p("branchName", () => input.branchName, "{branchName}", false);
|
|
376
|
-
const query = (0, smithy_client_1.map)({
|
|
377
|
-
[_nT]: [, input[_nT]],
|
|
378
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
379
|
-
});
|
|
380
|
-
let body;
|
|
381
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
382
|
-
return b.build();
|
|
383
|
-
};
|
|
384
|
-
exports.se_ListJobsCommand = se_ListJobsCommand;
|
|
385
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
386
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
387
|
-
const headers = {};
|
|
388
|
-
b.bp("/tags/{resourceArn}");
|
|
389
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
390
|
-
let body;
|
|
391
|
-
b.m("GET").h(headers).b(body);
|
|
392
|
-
return b.build();
|
|
393
|
-
};
|
|
394
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
395
|
-
const se_ListWebhooksCommand = async (input, context) => {
|
|
396
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
397
|
-
const headers = {};
|
|
398
|
-
b.bp("/apps/{appId}/webhooks");
|
|
399
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
400
|
-
const query = (0, smithy_client_1.map)({
|
|
401
|
-
[_nT]: [, input[_nT]],
|
|
402
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
403
|
-
});
|
|
404
|
-
let body;
|
|
405
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
406
|
-
return b.build();
|
|
407
|
-
};
|
|
408
|
-
exports.se_ListWebhooksCommand = se_ListWebhooksCommand;
|
|
409
|
-
const se_StartDeploymentCommand = async (input, context) => {
|
|
410
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
411
|
-
const headers = {
|
|
412
|
-
"content-type": "application/json",
|
|
413
|
-
};
|
|
414
|
-
b.bp("/apps/{appId}/branches/{branchName}/deployments/start");
|
|
415
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
416
|
-
b.p("branchName", () => input.branchName, "{branchName}", false);
|
|
417
|
-
let body;
|
|
418
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
419
|
-
jobId: [],
|
|
420
|
-
sourceUrl: [],
|
|
421
|
-
}));
|
|
422
|
-
b.m("POST").h(headers).b(body);
|
|
423
|
-
return b.build();
|
|
424
|
-
};
|
|
425
|
-
exports.se_StartDeploymentCommand = se_StartDeploymentCommand;
|
|
426
|
-
const se_StartJobCommand = async (input, context) => {
|
|
427
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
428
|
-
const headers = {
|
|
429
|
-
"content-type": "application/json",
|
|
430
|
-
};
|
|
431
|
-
b.bp("/apps/{appId}/branches/{branchName}/jobs");
|
|
432
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
433
|
-
b.p("branchName", () => input.branchName, "{branchName}", false);
|
|
434
|
-
let body;
|
|
435
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
436
|
-
commitId: [],
|
|
437
|
-
commitMessage: [],
|
|
438
|
-
commitTime: (_) => Math.round(_.getTime() / 1000),
|
|
439
|
-
jobId: [],
|
|
440
|
-
jobReason: [],
|
|
441
|
-
jobType: [],
|
|
442
|
-
}));
|
|
443
|
-
b.m("POST").h(headers).b(body);
|
|
444
|
-
return b.build();
|
|
445
|
-
};
|
|
446
|
-
exports.se_StartJobCommand = se_StartJobCommand;
|
|
447
|
-
const se_StopJobCommand = async (input, context) => {
|
|
448
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
449
|
-
const headers = {};
|
|
450
|
-
b.bp("/apps/{appId}/branches/{branchName}/jobs/{jobId}/stop");
|
|
451
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
452
|
-
b.p("branchName", () => input.branchName, "{branchName}", false);
|
|
453
|
-
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
454
|
-
let body;
|
|
455
|
-
b.m("DELETE").h(headers).b(body);
|
|
456
|
-
return b.build();
|
|
457
|
-
};
|
|
458
|
-
exports.se_StopJobCommand = se_StopJobCommand;
|
|
459
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
460
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
461
|
-
const headers = {
|
|
462
|
-
"content-type": "application/json",
|
|
463
|
-
};
|
|
464
|
-
b.bp("/tags/{resourceArn}");
|
|
465
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
466
|
-
let body;
|
|
467
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
468
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
469
|
-
}));
|
|
470
|
-
b.m("POST").h(headers).b(body);
|
|
471
|
-
return b.build();
|
|
472
|
-
};
|
|
473
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
474
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
475
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
476
|
-
const headers = {};
|
|
477
|
-
b.bp("/tags/{resourceArn}");
|
|
478
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
479
|
-
const query = (0, smithy_client_1.map)({
|
|
480
|
-
[_tK]: [
|
|
481
|
-
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
482
|
-
() => (input[_tK] || []).map((_entry) => _entry),
|
|
483
|
-
],
|
|
484
|
-
});
|
|
485
|
-
let body;
|
|
486
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
487
|
-
return b.build();
|
|
488
|
-
};
|
|
489
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
490
|
-
const se_UpdateAppCommand = async (input, context) => {
|
|
491
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
492
|
-
const headers = {
|
|
493
|
-
"content-type": "application/json",
|
|
494
|
-
};
|
|
495
|
-
b.bp("/apps/{appId}");
|
|
496
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
497
|
-
let body;
|
|
498
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
499
|
-
accessToken: [],
|
|
500
|
-
autoBranchCreationConfig: (_) => (0, smithy_client_1._json)(_),
|
|
501
|
-
autoBranchCreationPatterns: (_) => (0, smithy_client_1._json)(_),
|
|
502
|
-
basicAuthCredentials: [],
|
|
503
|
-
buildSpec: [],
|
|
504
|
-
customHeaders: [],
|
|
505
|
-
customRules: (_) => (0, smithy_client_1._json)(_),
|
|
506
|
-
description: [],
|
|
507
|
-
enableAutoBranchCreation: [],
|
|
508
|
-
enableBasicAuth: [],
|
|
509
|
-
enableBranchAutoBuild: [],
|
|
510
|
-
enableBranchAutoDeletion: [],
|
|
511
|
-
environmentVariables: (_) => (0, smithy_client_1._json)(_),
|
|
512
|
-
iamServiceRoleArn: [],
|
|
513
|
-
name: [],
|
|
514
|
-
oauthToken: [],
|
|
515
|
-
platform: [],
|
|
516
|
-
repository: [],
|
|
517
|
-
}));
|
|
518
|
-
b.m("POST").h(headers).b(body);
|
|
519
|
-
return b.build();
|
|
520
|
-
};
|
|
521
|
-
exports.se_UpdateAppCommand = se_UpdateAppCommand;
|
|
522
|
-
const se_UpdateBranchCommand = async (input, context) => {
|
|
523
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
524
|
-
const headers = {
|
|
525
|
-
"content-type": "application/json",
|
|
526
|
-
};
|
|
527
|
-
b.bp("/apps/{appId}/branches/{branchName}");
|
|
528
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
529
|
-
b.p("branchName", () => input.branchName, "{branchName}", false);
|
|
530
|
-
let body;
|
|
531
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
532
|
-
backend: (_) => (0, smithy_client_1._json)(_),
|
|
533
|
-
backendEnvironmentArn: [],
|
|
534
|
-
basicAuthCredentials: [],
|
|
535
|
-
buildSpec: [],
|
|
536
|
-
description: [],
|
|
537
|
-
displayName: [],
|
|
538
|
-
enableAutoBuild: [],
|
|
539
|
-
enableBasicAuth: [],
|
|
540
|
-
enableNotification: [],
|
|
541
|
-
enablePerformanceMode: [],
|
|
542
|
-
enablePullRequestPreview: [],
|
|
543
|
-
environmentVariables: (_) => (0, smithy_client_1._json)(_),
|
|
544
|
-
framework: [],
|
|
545
|
-
pullRequestEnvironmentName: [],
|
|
546
|
-
stage: [],
|
|
547
|
-
ttl: [],
|
|
548
|
-
}));
|
|
549
|
-
b.m("POST").h(headers).b(body);
|
|
550
|
-
return b.build();
|
|
551
|
-
};
|
|
552
|
-
exports.se_UpdateBranchCommand = se_UpdateBranchCommand;
|
|
553
|
-
const se_UpdateDomainAssociationCommand = async (input, context) => {
|
|
554
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
555
|
-
const headers = {
|
|
556
|
-
"content-type": "application/json",
|
|
557
|
-
};
|
|
558
|
-
b.bp("/apps/{appId}/domains/{domainName}");
|
|
559
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
560
|
-
b.p("domainName", () => input.domainName, "{domainName}", false);
|
|
561
|
-
let body;
|
|
562
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
563
|
-
autoSubDomainCreationPatterns: (_) => (0, smithy_client_1._json)(_),
|
|
564
|
-
autoSubDomainIAMRole: [],
|
|
565
|
-
enableAutoSubDomain: [],
|
|
566
|
-
subDomainSettings: (_) => (0, smithy_client_1._json)(_),
|
|
567
|
-
}));
|
|
568
|
-
b.m("POST").h(headers).b(body);
|
|
569
|
-
return b.build();
|
|
570
|
-
};
|
|
571
|
-
exports.se_UpdateDomainAssociationCommand = se_UpdateDomainAssociationCommand;
|
|
572
|
-
const se_UpdateWebhookCommand = async (input, context) => {
|
|
573
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
574
|
-
const headers = {
|
|
575
|
-
"content-type": "application/json",
|
|
576
|
-
};
|
|
577
|
-
b.bp("/webhooks/{webhookId}");
|
|
578
|
-
b.p("webhookId", () => input.webhookId, "{webhookId}", false);
|
|
579
|
-
let body;
|
|
580
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
581
|
-
branchName: [],
|
|
582
|
-
description: [],
|
|
583
|
-
}));
|
|
584
|
-
b.m("POST").h(headers).b(body);
|
|
585
|
-
return b.build();
|
|
586
|
-
};
|
|
587
|
-
exports.se_UpdateWebhookCommand = se_UpdateWebhookCommand;
|
|
588
|
-
const de_CreateAppCommand = async (output, context) => {
|
|
589
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
590
|
-
return de_CreateAppCommandError(output, context);
|
|
591
|
-
}
|
|
592
|
-
const contents = (0, smithy_client_1.map)({
|
|
593
|
-
$metadata: deserializeMetadata(output),
|
|
594
|
-
});
|
|
595
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
596
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
597
|
-
app: (_) => de_App(_, context),
|
|
598
|
-
});
|
|
599
|
-
Object.assign(contents, doc);
|
|
600
|
-
return contents;
|
|
601
|
-
};
|
|
602
|
-
exports.de_CreateAppCommand = de_CreateAppCommand;
|
|
603
|
-
const de_CreateAppCommandError = async (output, context) => {
|
|
604
|
-
const parsedOutput = {
|
|
605
|
-
...output,
|
|
606
|
-
body: await parseErrorBody(output.body, context),
|
|
607
|
-
};
|
|
608
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
609
|
-
switch (errorCode) {
|
|
610
|
-
case "BadRequestException":
|
|
611
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
612
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
613
|
-
case "DependentServiceFailureException":
|
|
614
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
615
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
616
|
-
case "InternalFailureException":
|
|
617
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
618
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
619
|
-
case "LimitExceededException":
|
|
620
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
621
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
622
|
-
case "UnauthorizedException":
|
|
623
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
624
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
625
|
-
default:
|
|
626
|
-
const parsedBody = parsedOutput.body;
|
|
627
|
-
return throwDefaultError({
|
|
628
|
-
output,
|
|
629
|
-
parsedBody,
|
|
630
|
-
errorCode,
|
|
631
|
-
});
|
|
632
|
-
}
|
|
633
|
-
};
|
|
634
|
-
const de_CreateBackendEnvironmentCommand = async (output, context) => {
|
|
635
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
636
|
-
return de_CreateBackendEnvironmentCommandError(output, context);
|
|
637
|
-
}
|
|
638
|
-
const contents = (0, smithy_client_1.map)({
|
|
639
|
-
$metadata: deserializeMetadata(output),
|
|
640
|
-
});
|
|
641
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
642
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
643
|
-
backendEnvironment: (_) => de_BackendEnvironment(_, context),
|
|
644
|
-
});
|
|
645
|
-
Object.assign(contents, doc);
|
|
646
|
-
return contents;
|
|
647
|
-
};
|
|
648
|
-
exports.de_CreateBackendEnvironmentCommand = de_CreateBackendEnvironmentCommand;
|
|
649
|
-
const de_CreateBackendEnvironmentCommandError = async (output, context) => {
|
|
650
|
-
const parsedOutput = {
|
|
651
|
-
...output,
|
|
652
|
-
body: await parseErrorBody(output.body, context),
|
|
653
|
-
};
|
|
654
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
655
|
-
switch (errorCode) {
|
|
656
|
-
case "BadRequestException":
|
|
657
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
658
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
659
|
-
case "InternalFailureException":
|
|
660
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
661
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
662
|
-
case "LimitExceededException":
|
|
663
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
664
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
665
|
-
case "NotFoundException":
|
|
666
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
667
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
668
|
-
case "UnauthorizedException":
|
|
669
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
670
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
671
|
-
default:
|
|
672
|
-
const parsedBody = parsedOutput.body;
|
|
673
|
-
return throwDefaultError({
|
|
674
|
-
output,
|
|
675
|
-
parsedBody,
|
|
676
|
-
errorCode,
|
|
677
|
-
});
|
|
678
|
-
}
|
|
679
|
-
};
|
|
680
|
-
const de_CreateBranchCommand = async (output, context) => {
|
|
681
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
682
|
-
return de_CreateBranchCommandError(output, context);
|
|
683
|
-
}
|
|
684
|
-
const contents = (0, smithy_client_1.map)({
|
|
685
|
-
$metadata: deserializeMetadata(output),
|
|
686
|
-
});
|
|
687
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
688
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
689
|
-
branch: (_) => de_Branch(_, context),
|
|
690
|
-
});
|
|
691
|
-
Object.assign(contents, doc);
|
|
692
|
-
return contents;
|
|
693
|
-
};
|
|
694
|
-
exports.de_CreateBranchCommand = de_CreateBranchCommand;
|
|
695
|
-
const de_CreateBranchCommandError = async (output, context) => {
|
|
696
|
-
const parsedOutput = {
|
|
697
|
-
...output,
|
|
698
|
-
body: await parseErrorBody(output.body, context),
|
|
699
|
-
};
|
|
700
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
|
-
switch (errorCode) {
|
|
702
|
-
case "BadRequestException":
|
|
703
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
704
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
705
|
-
case "DependentServiceFailureException":
|
|
706
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
707
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
708
|
-
case "InternalFailureException":
|
|
709
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
710
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
711
|
-
case "LimitExceededException":
|
|
712
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
713
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
714
|
-
case "NotFoundException":
|
|
715
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
716
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
717
|
-
case "UnauthorizedException":
|
|
718
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
719
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
720
|
-
default:
|
|
721
|
-
const parsedBody = parsedOutput.body;
|
|
722
|
-
return throwDefaultError({
|
|
723
|
-
output,
|
|
724
|
-
parsedBody,
|
|
725
|
-
errorCode,
|
|
726
|
-
});
|
|
727
|
-
}
|
|
728
|
-
};
|
|
729
|
-
const de_CreateDeploymentCommand = async (output, context) => {
|
|
730
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
731
|
-
return de_CreateDeploymentCommandError(output, context);
|
|
732
|
-
}
|
|
733
|
-
const contents = (0, smithy_client_1.map)({
|
|
734
|
-
$metadata: deserializeMetadata(output),
|
|
735
|
-
});
|
|
736
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
737
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
738
|
-
fileUploadUrls: smithy_client_1._json,
|
|
739
|
-
jobId: smithy_client_1.expectString,
|
|
740
|
-
zipUploadUrl: smithy_client_1.expectString,
|
|
741
|
-
});
|
|
742
|
-
Object.assign(contents, doc);
|
|
743
|
-
return contents;
|
|
744
|
-
};
|
|
745
|
-
exports.de_CreateDeploymentCommand = de_CreateDeploymentCommand;
|
|
746
|
-
const de_CreateDeploymentCommandError = async (output, context) => {
|
|
747
|
-
const parsedOutput = {
|
|
748
|
-
...output,
|
|
749
|
-
body: await parseErrorBody(output.body, context),
|
|
750
|
-
};
|
|
751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
752
|
-
switch (errorCode) {
|
|
753
|
-
case "BadRequestException":
|
|
754
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
755
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
756
|
-
case "InternalFailureException":
|
|
757
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
758
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
759
|
-
case "LimitExceededException":
|
|
760
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
761
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
762
|
-
case "UnauthorizedException":
|
|
763
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
764
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
765
|
-
default:
|
|
766
|
-
const parsedBody = parsedOutput.body;
|
|
767
|
-
return throwDefaultError({
|
|
768
|
-
output,
|
|
769
|
-
parsedBody,
|
|
770
|
-
errorCode,
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
};
|
|
774
|
-
const de_CreateDomainAssociationCommand = async (output, context) => {
|
|
775
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
776
|
-
return de_CreateDomainAssociationCommandError(output, context);
|
|
777
|
-
}
|
|
778
|
-
const contents = (0, smithy_client_1.map)({
|
|
779
|
-
$metadata: deserializeMetadata(output),
|
|
780
|
-
});
|
|
781
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
782
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
783
|
-
domainAssociation: smithy_client_1._json,
|
|
784
|
-
});
|
|
785
|
-
Object.assign(contents, doc);
|
|
786
|
-
return contents;
|
|
787
|
-
};
|
|
788
|
-
exports.de_CreateDomainAssociationCommand = de_CreateDomainAssociationCommand;
|
|
789
|
-
const de_CreateDomainAssociationCommandError = async (output, context) => {
|
|
790
|
-
const parsedOutput = {
|
|
791
|
-
...output,
|
|
792
|
-
body: await parseErrorBody(output.body, context),
|
|
793
|
-
};
|
|
794
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
795
|
-
switch (errorCode) {
|
|
796
|
-
case "BadRequestException":
|
|
797
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
798
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
799
|
-
case "DependentServiceFailureException":
|
|
800
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
801
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
802
|
-
case "InternalFailureException":
|
|
803
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
804
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
805
|
-
case "LimitExceededException":
|
|
806
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
807
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
808
|
-
case "NotFoundException":
|
|
809
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
810
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
811
|
-
case "UnauthorizedException":
|
|
812
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
813
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
814
|
-
default:
|
|
815
|
-
const parsedBody = parsedOutput.body;
|
|
816
|
-
return throwDefaultError({
|
|
817
|
-
output,
|
|
818
|
-
parsedBody,
|
|
819
|
-
errorCode,
|
|
820
|
-
});
|
|
821
|
-
}
|
|
822
|
-
};
|
|
823
|
-
const de_CreateWebhookCommand = async (output, context) => {
|
|
824
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
825
|
-
return de_CreateWebhookCommandError(output, context);
|
|
826
|
-
}
|
|
827
|
-
const contents = (0, smithy_client_1.map)({
|
|
828
|
-
$metadata: deserializeMetadata(output),
|
|
829
|
-
});
|
|
830
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
831
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
832
|
-
webhook: (_) => de_Webhook(_, context),
|
|
833
|
-
});
|
|
834
|
-
Object.assign(contents, doc);
|
|
835
|
-
return contents;
|
|
836
|
-
};
|
|
837
|
-
exports.de_CreateWebhookCommand = de_CreateWebhookCommand;
|
|
838
|
-
const de_CreateWebhookCommandError = async (output, context) => {
|
|
839
|
-
const parsedOutput = {
|
|
840
|
-
...output,
|
|
841
|
-
body: await parseErrorBody(output.body, context),
|
|
842
|
-
};
|
|
843
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
844
|
-
switch (errorCode) {
|
|
845
|
-
case "BadRequestException":
|
|
846
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
847
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
848
|
-
case "DependentServiceFailureException":
|
|
849
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
850
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
851
|
-
case "InternalFailureException":
|
|
852
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
853
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
854
|
-
case "LimitExceededException":
|
|
855
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
856
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
857
|
-
case "NotFoundException":
|
|
858
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
859
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
860
|
-
case "UnauthorizedException":
|
|
861
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
862
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
863
|
-
default:
|
|
864
|
-
const parsedBody = parsedOutput.body;
|
|
865
|
-
return throwDefaultError({
|
|
866
|
-
output,
|
|
867
|
-
parsedBody,
|
|
868
|
-
errorCode,
|
|
869
|
-
});
|
|
870
|
-
}
|
|
871
|
-
};
|
|
872
|
-
const de_DeleteAppCommand = async (output, context) => {
|
|
873
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
874
|
-
return de_DeleteAppCommandError(output, context);
|
|
875
|
-
}
|
|
876
|
-
const contents = (0, smithy_client_1.map)({
|
|
877
|
-
$metadata: deserializeMetadata(output),
|
|
878
|
-
});
|
|
879
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
880
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
881
|
-
app: (_) => de_App(_, context),
|
|
882
|
-
});
|
|
883
|
-
Object.assign(contents, doc);
|
|
884
|
-
return contents;
|
|
885
|
-
};
|
|
886
|
-
exports.de_DeleteAppCommand = de_DeleteAppCommand;
|
|
887
|
-
const de_DeleteAppCommandError = async (output, context) => {
|
|
888
|
-
const parsedOutput = {
|
|
889
|
-
...output,
|
|
890
|
-
body: await parseErrorBody(output.body, context),
|
|
891
|
-
};
|
|
892
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
893
|
-
switch (errorCode) {
|
|
894
|
-
case "BadRequestException":
|
|
895
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
896
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
897
|
-
case "DependentServiceFailureException":
|
|
898
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
899
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
900
|
-
case "InternalFailureException":
|
|
901
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
902
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
903
|
-
case "NotFoundException":
|
|
904
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
905
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
906
|
-
case "UnauthorizedException":
|
|
907
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
908
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
909
|
-
default:
|
|
910
|
-
const parsedBody = parsedOutput.body;
|
|
911
|
-
return throwDefaultError({
|
|
912
|
-
output,
|
|
913
|
-
parsedBody,
|
|
914
|
-
errorCode,
|
|
915
|
-
});
|
|
916
|
-
}
|
|
917
|
-
};
|
|
918
|
-
const de_DeleteBackendEnvironmentCommand = async (output, context) => {
|
|
919
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
920
|
-
return de_DeleteBackendEnvironmentCommandError(output, context);
|
|
921
|
-
}
|
|
922
|
-
const contents = (0, smithy_client_1.map)({
|
|
923
|
-
$metadata: deserializeMetadata(output),
|
|
924
|
-
});
|
|
925
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
926
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
927
|
-
backendEnvironment: (_) => de_BackendEnvironment(_, context),
|
|
928
|
-
});
|
|
929
|
-
Object.assign(contents, doc);
|
|
930
|
-
return contents;
|
|
931
|
-
};
|
|
932
|
-
exports.de_DeleteBackendEnvironmentCommand = de_DeleteBackendEnvironmentCommand;
|
|
933
|
-
const de_DeleteBackendEnvironmentCommandError = async (output, context) => {
|
|
934
|
-
const parsedOutput = {
|
|
935
|
-
...output,
|
|
936
|
-
body: await parseErrorBody(output.body, context),
|
|
937
|
-
};
|
|
938
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
|
-
switch (errorCode) {
|
|
940
|
-
case "BadRequestException":
|
|
941
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
942
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
943
|
-
case "DependentServiceFailureException":
|
|
944
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
945
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
946
|
-
case "InternalFailureException":
|
|
947
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
948
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
949
|
-
case "NotFoundException":
|
|
950
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
951
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
952
|
-
case "UnauthorizedException":
|
|
953
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
954
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
955
|
-
default:
|
|
956
|
-
const parsedBody = parsedOutput.body;
|
|
957
|
-
return throwDefaultError({
|
|
958
|
-
output,
|
|
959
|
-
parsedBody,
|
|
960
|
-
errorCode,
|
|
961
|
-
});
|
|
962
|
-
}
|
|
963
|
-
};
|
|
964
|
-
const de_DeleteBranchCommand = async (output, context) => {
|
|
965
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
966
|
-
return de_DeleteBranchCommandError(output, context);
|
|
967
|
-
}
|
|
968
|
-
const contents = (0, smithy_client_1.map)({
|
|
969
|
-
$metadata: deserializeMetadata(output),
|
|
970
|
-
});
|
|
971
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
972
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
973
|
-
branch: (_) => de_Branch(_, context),
|
|
974
|
-
});
|
|
975
|
-
Object.assign(contents, doc);
|
|
976
|
-
return contents;
|
|
977
|
-
};
|
|
978
|
-
exports.de_DeleteBranchCommand = de_DeleteBranchCommand;
|
|
979
|
-
const de_DeleteBranchCommandError = async (output, context) => {
|
|
980
|
-
const parsedOutput = {
|
|
981
|
-
...output,
|
|
982
|
-
body: await parseErrorBody(output.body, context),
|
|
983
|
-
};
|
|
984
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
985
|
-
switch (errorCode) {
|
|
986
|
-
case "BadRequestException":
|
|
987
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
988
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
989
|
-
case "DependentServiceFailureException":
|
|
990
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
991
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
992
|
-
case "InternalFailureException":
|
|
993
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
994
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
995
|
-
case "NotFoundException":
|
|
996
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
997
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
998
|
-
case "UnauthorizedException":
|
|
999
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1000
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1001
|
-
default:
|
|
1002
|
-
const parsedBody = parsedOutput.body;
|
|
1003
|
-
return throwDefaultError({
|
|
1004
|
-
output,
|
|
1005
|
-
parsedBody,
|
|
1006
|
-
errorCode,
|
|
1007
|
-
});
|
|
1008
|
-
}
|
|
1009
|
-
};
|
|
1010
|
-
const de_DeleteDomainAssociationCommand = async (output, context) => {
|
|
1011
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1012
|
-
return de_DeleteDomainAssociationCommandError(output, context);
|
|
1013
|
-
}
|
|
1014
|
-
const contents = (0, smithy_client_1.map)({
|
|
1015
|
-
$metadata: deserializeMetadata(output),
|
|
1016
|
-
});
|
|
1017
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1018
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1019
|
-
domainAssociation: smithy_client_1._json,
|
|
1020
|
-
});
|
|
1021
|
-
Object.assign(contents, doc);
|
|
1022
|
-
return contents;
|
|
1023
|
-
};
|
|
1024
|
-
exports.de_DeleteDomainAssociationCommand = de_DeleteDomainAssociationCommand;
|
|
1025
|
-
const de_DeleteDomainAssociationCommandError = async (output, context) => {
|
|
1026
|
-
const parsedOutput = {
|
|
1027
|
-
...output,
|
|
1028
|
-
body: await parseErrorBody(output.body, context),
|
|
1029
|
-
};
|
|
1030
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1031
|
-
switch (errorCode) {
|
|
1032
|
-
case "BadRequestException":
|
|
1033
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1034
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1035
|
-
case "DependentServiceFailureException":
|
|
1036
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
1037
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
1038
|
-
case "InternalFailureException":
|
|
1039
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1040
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "NotFoundException":
|
|
1042
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1043
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "UnauthorizedException":
|
|
1045
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1046
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1047
|
-
default:
|
|
1048
|
-
const parsedBody = parsedOutput.body;
|
|
1049
|
-
return throwDefaultError({
|
|
1050
|
-
output,
|
|
1051
|
-
parsedBody,
|
|
1052
|
-
errorCode,
|
|
1053
|
-
});
|
|
1054
|
-
}
|
|
1055
|
-
};
|
|
1056
|
-
const de_DeleteJobCommand = async (output, context) => {
|
|
1057
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1058
|
-
return de_DeleteJobCommandError(output, context);
|
|
1059
|
-
}
|
|
1060
|
-
const contents = (0, smithy_client_1.map)({
|
|
1061
|
-
$metadata: deserializeMetadata(output),
|
|
1062
|
-
});
|
|
1063
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1064
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1065
|
-
jobSummary: (_) => de_JobSummary(_, context),
|
|
1066
|
-
});
|
|
1067
|
-
Object.assign(contents, doc);
|
|
1068
|
-
return contents;
|
|
1069
|
-
};
|
|
1070
|
-
exports.de_DeleteJobCommand = de_DeleteJobCommand;
|
|
1071
|
-
const de_DeleteJobCommandError = async (output, context) => {
|
|
1072
|
-
const parsedOutput = {
|
|
1073
|
-
...output,
|
|
1074
|
-
body: await parseErrorBody(output.body, context),
|
|
1075
|
-
};
|
|
1076
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1077
|
-
switch (errorCode) {
|
|
1078
|
-
case "BadRequestException":
|
|
1079
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1080
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1081
|
-
case "InternalFailureException":
|
|
1082
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1083
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1084
|
-
case "LimitExceededException":
|
|
1085
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1086
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1087
|
-
case "NotFoundException":
|
|
1088
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1089
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "UnauthorizedException":
|
|
1091
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1092
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1093
|
-
default:
|
|
1094
|
-
const parsedBody = parsedOutput.body;
|
|
1095
|
-
return throwDefaultError({
|
|
1096
|
-
output,
|
|
1097
|
-
parsedBody,
|
|
1098
|
-
errorCode,
|
|
1099
|
-
});
|
|
1100
|
-
}
|
|
1101
|
-
};
|
|
1102
|
-
const de_DeleteWebhookCommand = async (output, context) => {
|
|
1103
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1104
|
-
return de_DeleteWebhookCommandError(output, context);
|
|
1105
|
-
}
|
|
1106
|
-
const contents = (0, smithy_client_1.map)({
|
|
1107
|
-
$metadata: deserializeMetadata(output),
|
|
1108
|
-
});
|
|
1109
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1110
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1111
|
-
webhook: (_) => de_Webhook(_, context),
|
|
1112
|
-
});
|
|
1113
|
-
Object.assign(contents, doc);
|
|
1114
|
-
return contents;
|
|
1115
|
-
};
|
|
1116
|
-
exports.de_DeleteWebhookCommand = de_DeleteWebhookCommand;
|
|
1117
|
-
const de_DeleteWebhookCommandError = async (output, context) => {
|
|
1118
|
-
const parsedOutput = {
|
|
1119
|
-
...output,
|
|
1120
|
-
body: await parseErrorBody(output.body, context),
|
|
1121
|
-
};
|
|
1122
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1123
|
-
switch (errorCode) {
|
|
1124
|
-
case "BadRequestException":
|
|
1125
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1126
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "InternalFailureException":
|
|
1128
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1129
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "LimitExceededException":
|
|
1131
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1132
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "NotFoundException":
|
|
1134
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1135
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1136
|
-
case "UnauthorizedException":
|
|
1137
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1138
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1139
|
-
default:
|
|
1140
|
-
const parsedBody = parsedOutput.body;
|
|
1141
|
-
return throwDefaultError({
|
|
1142
|
-
output,
|
|
1143
|
-
parsedBody,
|
|
1144
|
-
errorCode,
|
|
1145
|
-
});
|
|
1146
|
-
}
|
|
1147
|
-
};
|
|
1148
|
-
const de_GenerateAccessLogsCommand = async (output, context) => {
|
|
1149
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1150
|
-
return de_GenerateAccessLogsCommandError(output, context);
|
|
1151
|
-
}
|
|
1152
|
-
const contents = (0, smithy_client_1.map)({
|
|
1153
|
-
$metadata: deserializeMetadata(output),
|
|
1154
|
-
});
|
|
1155
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1156
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1157
|
-
logUrl: smithy_client_1.expectString,
|
|
1158
|
-
});
|
|
1159
|
-
Object.assign(contents, doc);
|
|
1160
|
-
return contents;
|
|
1161
|
-
};
|
|
1162
|
-
exports.de_GenerateAccessLogsCommand = de_GenerateAccessLogsCommand;
|
|
1163
|
-
const de_GenerateAccessLogsCommandError = async (output, context) => {
|
|
1164
|
-
const parsedOutput = {
|
|
1165
|
-
...output,
|
|
1166
|
-
body: await parseErrorBody(output.body, context),
|
|
1167
|
-
};
|
|
1168
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1169
|
-
switch (errorCode) {
|
|
1170
|
-
case "BadRequestException":
|
|
1171
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1172
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1173
|
-
case "InternalFailureException":
|
|
1174
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1175
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "NotFoundException":
|
|
1177
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1178
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "UnauthorizedException":
|
|
1180
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1181
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1182
|
-
default:
|
|
1183
|
-
const parsedBody = parsedOutput.body;
|
|
1184
|
-
return throwDefaultError({
|
|
1185
|
-
output,
|
|
1186
|
-
parsedBody,
|
|
1187
|
-
errorCode,
|
|
1188
|
-
});
|
|
1189
|
-
}
|
|
1190
|
-
};
|
|
1191
|
-
const de_GetAppCommand = async (output, context) => {
|
|
1192
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1193
|
-
return de_GetAppCommandError(output, context);
|
|
1194
|
-
}
|
|
1195
|
-
const contents = (0, smithy_client_1.map)({
|
|
1196
|
-
$metadata: deserializeMetadata(output),
|
|
1197
|
-
});
|
|
1198
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1199
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1200
|
-
app: (_) => de_App(_, context),
|
|
1201
|
-
});
|
|
1202
|
-
Object.assign(contents, doc);
|
|
1203
|
-
return contents;
|
|
1204
|
-
};
|
|
1205
|
-
exports.de_GetAppCommand = de_GetAppCommand;
|
|
1206
|
-
const de_GetAppCommandError = async (output, context) => {
|
|
1207
|
-
const parsedOutput = {
|
|
1208
|
-
...output,
|
|
1209
|
-
body: await parseErrorBody(output.body, context),
|
|
1210
|
-
};
|
|
1211
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1212
|
-
switch (errorCode) {
|
|
1213
|
-
case "BadRequestException":
|
|
1214
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1215
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "InternalFailureException":
|
|
1217
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1218
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1219
|
-
case "NotFoundException":
|
|
1220
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1221
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1222
|
-
case "UnauthorizedException":
|
|
1223
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1224
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1225
|
-
default:
|
|
1226
|
-
const parsedBody = parsedOutput.body;
|
|
1227
|
-
return throwDefaultError({
|
|
1228
|
-
output,
|
|
1229
|
-
parsedBody,
|
|
1230
|
-
errorCode,
|
|
1231
|
-
});
|
|
1232
|
-
}
|
|
1233
|
-
};
|
|
1234
|
-
const de_GetArtifactUrlCommand = async (output, context) => {
|
|
1235
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1236
|
-
return de_GetArtifactUrlCommandError(output, context);
|
|
1237
|
-
}
|
|
1238
|
-
const contents = (0, smithy_client_1.map)({
|
|
1239
|
-
$metadata: deserializeMetadata(output),
|
|
1240
|
-
});
|
|
1241
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1242
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1243
|
-
artifactId: smithy_client_1.expectString,
|
|
1244
|
-
artifactUrl: smithy_client_1.expectString,
|
|
1245
|
-
});
|
|
1246
|
-
Object.assign(contents, doc);
|
|
1247
|
-
return contents;
|
|
1248
|
-
};
|
|
1249
|
-
exports.de_GetArtifactUrlCommand = de_GetArtifactUrlCommand;
|
|
1250
|
-
const de_GetArtifactUrlCommandError = async (output, context) => {
|
|
1251
|
-
const parsedOutput = {
|
|
1252
|
-
...output,
|
|
1253
|
-
body: await parseErrorBody(output.body, context),
|
|
1254
|
-
};
|
|
1255
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1256
|
-
switch (errorCode) {
|
|
1257
|
-
case "BadRequestException":
|
|
1258
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1259
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1260
|
-
case "InternalFailureException":
|
|
1261
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1262
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1263
|
-
case "LimitExceededException":
|
|
1264
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1265
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "NotFoundException":
|
|
1267
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1268
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1269
|
-
case "UnauthorizedException":
|
|
1270
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1271
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1272
|
-
default:
|
|
1273
|
-
const parsedBody = parsedOutput.body;
|
|
1274
|
-
return throwDefaultError({
|
|
1275
|
-
output,
|
|
1276
|
-
parsedBody,
|
|
1277
|
-
errorCode,
|
|
1278
|
-
});
|
|
1279
|
-
}
|
|
1280
|
-
};
|
|
1281
|
-
const de_GetBackendEnvironmentCommand = async (output, context) => {
|
|
1282
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1283
|
-
return de_GetBackendEnvironmentCommandError(output, context);
|
|
1284
|
-
}
|
|
1285
|
-
const contents = (0, smithy_client_1.map)({
|
|
1286
|
-
$metadata: deserializeMetadata(output),
|
|
1287
|
-
});
|
|
1288
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1289
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1290
|
-
backendEnvironment: (_) => de_BackendEnvironment(_, context),
|
|
1291
|
-
});
|
|
1292
|
-
Object.assign(contents, doc);
|
|
1293
|
-
return contents;
|
|
1294
|
-
};
|
|
1295
|
-
exports.de_GetBackendEnvironmentCommand = de_GetBackendEnvironmentCommand;
|
|
1296
|
-
const de_GetBackendEnvironmentCommandError = async (output, context) => {
|
|
1297
|
-
const parsedOutput = {
|
|
1298
|
-
...output,
|
|
1299
|
-
body: await parseErrorBody(output.body, context),
|
|
1300
|
-
};
|
|
1301
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1302
|
-
switch (errorCode) {
|
|
1303
|
-
case "BadRequestException":
|
|
1304
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1305
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1306
|
-
case "InternalFailureException":
|
|
1307
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1308
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1309
|
-
case "NotFoundException":
|
|
1310
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1311
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1312
|
-
case "UnauthorizedException":
|
|
1313
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1314
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1315
|
-
default:
|
|
1316
|
-
const parsedBody = parsedOutput.body;
|
|
1317
|
-
return throwDefaultError({
|
|
1318
|
-
output,
|
|
1319
|
-
parsedBody,
|
|
1320
|
-
errorCode,
|
|
1321
|
-
});
|
|
1322
|
-
}
|
|
1323
|
-
};
|
|
1324
|
-
const de_GetBranchCommand = async (output, context) => {
|
|
1325
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1326
|
-
return de_GetBranchCommandError(output, context);
|
|
1327
|
-
}
|
|
1328
|
-
const contents = (0, smithy_client_1.map)({
|
|
1329
|
-
$metadata: deserializeMetadata(output),
|
|
1330
|
-
});
|
|
1331
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1332
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1333
|
-
branch: (_) => de_Branch(_, context),
|
|
1334
|
-
});
|
|
1335
|
-
Object.assign(contents, doc);
|
|
1336
|
-
return contents;
|
|
1337
|
-
};
|
|
1338
|
-
exports.de_GetBranchCommand = de_GetBranchCommand;
|
|
1339
|
-
const de_GetBranchCommandError = async (output, context) => {
|
|
1340
|
-
const parsedOutput = {
|
|
1341
|
-
...output,
|
|
1342
|
-
body: await parseErrorBody(output.body, context),
|
|
1343
|
-
};
|
|
1344
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1345
|
-
switch (errorCode) {
|
|
1346
|
-
case "BadRequestException":
|
|
1347
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1348
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1349
|
-
case "InternalFailureException":
|
|
1350
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1351
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1352
|
-
case "NotFoundException":
|
|
1353
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1354
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1355
|
-
case "UnauthorizedException":
|
|
1356
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1357
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1358
|
-
default:
|
|
1359
|
-
const parsedBody = parsedOutput.body;
|
|
1360
|
-
return throwDefaultError({
|
|
1361
|
-
output,
|
|
1362
|
-
parsedBody,
|
|
1363
|
-
errorCode,
|
|
1364
|
-
});
|
|
1365
|
-
}
|
|
1366
|
-
};
|
|
1367
|
-
const de_GetDomainAssociationCommand = async (output, context) => {
|
|
1368
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1369
|
-
return de_GetDomainAssociationCommandError(output, context);
|
|
1370
|
-
}
|
|
1371
|
-
const contents = (0, smithy_client_1.map)({
|
|
1372
|
-
$metadata: deserializeMetadata(output),
|
|
1373
|
-
});
|
|
1374
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1375
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1376
|
-
domainAssociation: smithy_client_1._json,
|
|
1377
|
-
});
|
|
1378
|
-
Object.assign(contents, doc);
|
|
1379
|
-
return contents;
|
|
1380
|
-
};
|
|
1381
|
-
exports.de_GetDomainAssociationCommand = de_GetDomainAssociationCommand;
|
|
1382
|
-
const de_GetDomainAssociationCommandError = async (output, context) => {
|
|
1383
|
-
const parsedOutput = {
|
|
1384
|
-
...output,
|
|
1385
|
-
body: await parseErrorBody(output.body, context),
|
|
1386
|
-
};
|
|
1387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1388
|
-
switch (errorCode) {
|
|
1389
|
-
case "BadRequestException":
|
|
1390
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1391
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "InternalFailureException":
|
|
1393
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1394
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "NotFoundException":
|
|
1396
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1397
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1398
|
-
case "UnauthorizedException":
|
|
1399
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1400
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1401
|
-
default:
|
|
1402
|
-
const parsedBody = parsedOutput.body;
|
|
1403
|
-
return throwDefaultError({
|
|
1404
|
-
output,
|
|
1405
|
-
parsedBody,
|
|
1406
|
-
errorCode,
|
|
1407
|
-
});
|
|
1408
|
-
}
|
|
1409
|
-
};
|
|
1410
|
-
const de_GetJobCommand = async (output, context) => {
|
|
1411
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1412
|
-
return de_GetJobCommandError(output, context);
|
|
1413
|
-
}
|
|
1414
|
-
const contents = (0, smithy_client_1.map)({
|
|
1415
|
-
$metadata: deserializeMetadata(output),
|
|
1416
|
-
});
|
|
1417
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1418
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1419
|
-
job: (_) => de_Job(_, context),
|
|
1420
|
-
});
|
|
1421
|
-
Object.assign(contents, doc);
|
|
1422
|
-
return contents;
|
|
1423
|
-
};
|
|
1424
|
-
exports.de_GetJobCommand = de_GetJobCommand;
|
|
1425
|
-
const de_GetJobCommandError = async (output, context) => {
|
|
1426
|
-
const parsedOutput = {
|
|
1427
|
-
...output,
|
|
1428
|
-
body: await parseErrorBody(output.body, context),
|
|
1429
|
-
};
|
|
1430
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1431
|
-
switch (errorCode) {
|
|
1432
|
-
case "BadRequestException":
|
|
1433
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1434
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1435
|
-
case "InternalFailureException":
|
|
1436
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1437
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1438
|
-
case "LimitExceededException":
|
|
1439
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1440
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1441
|
-
case "NotFoundException":
|
|
1442
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1443
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1444
|
-
case "UnauthorizedException":
|
|
1445
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1446
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1447
|
-
default:
|
|
1448
|
-
const parsedBody = parsedOutput.body;
|
|
1449
|
-
return throwDefaultError({
|
|
1450
|
-
output,
|
|
1451
|
-
parsedBody,
|
|
1452
|
-
errorCode,
|
|
1453
|
-
});
|
|
1454
|
-
}
|
|
1455
|
-
};
|
|
1456
|
-
const de_GetWebhookCommand = async (output, context) => {
|
|
1457
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1458
|
-
return de_GetWebhookCommandError(output, context);
|
|
1459
|
-
}
|
|
1460
|
-
const contents = (0, smithy_client_1.map)({
|
|
1461
|
-
$metadata: deserializeMetadata(output),
|
|
1462
|
-
});
|
|
1463
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1464
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1465
|
-
webhook: (_) => de_Webhook(_, context),
|
|
1466
|
-
});
|
|
1467
|
-
Object.assign(contents, doc);
|
|
1468
|
-
return contents;
|
|
1469
|
-
};
|
|
1470
|
-
exports.de_GetWebhookCommand = de_GetWebhookCommand;
|
|
1471
|
-
const de_GetWebhookCommandError = async (output, context) => {
|
|
1472
|
-
const parsedOutput = {
|
|
1473
|
-
...output,
|
|
1474
|
-
body: await parseErrorBody(output.body, context),
|
|
1475
|
-
};
|
|
1476
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1477
|
-
switch (errorCode) {
|
|
1478
|
-
case "BadRequestException":
|
|
1479
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1480
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "InternalFailureException":
|
|
1482
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1483
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "LimitExceededException":
|
|
1485
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1486
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1487
|
-
case "NotFoundException":
|
|
1488
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1489
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1490
|
-
case "UnauthorizedException":
|
|
1491
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1492
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1493
|
-
default:
|
|
1494
|
-
const parsedBody = parsedOutput.body;
|
|
1495
|
-
return throwDefaultError({
|
|
1496
|
-
output,
|
|
1497
|
-
parsedBody,
|
|
1498
|
-
errorCode,
|
|
1499
|
-
});
|
|
1500
|
-
}
|
|
1501
|
-
};
|
|
1502
|
-
const de_ListAppsCommand = async (output, context) => {
|
|
1503
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1504
|
-
return de_ListAppsCommandError(output, context);
|
|
1505
|
-
}
|
|
1506
|
-
const contents = (0, smithy_client_1.map)({
|
|
1507
|
-
$metadata: deserializeMetadata(output),
|
|
1508
|
-
});
|
|
1509
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1510
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1511
|
-
apps: (_) => de_Apps(_, context),
|
|
1512
|
-
nextToken: smithy_client_1.expectString,
|
|
1513
|
-
});
|
|
1514
|
-
Object.assign(contents, doc);
|
|
1515
|
-
return contents;
|
|
1516
|
-
};
|
|
1517
|
-
exports.de_ListAppsCommand = de_ListAppsCommand;
|
|
1518
|
-
const de_ListAppsCommandError = async (output, context) => {
|
|
1519
|
-
const parsedOutput = {
|
|
1520
|
-
...output,
|
|
1521
|
-
body: await parseErrorBody(output.body, context),
|
|
1522
|
-
};
|
|
1523
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1524
|
-
switch (errorCode) {
|
|
1525
|
-
case "BadRequestException":
|
|
1526
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1527
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1528
|
-
case "InternalFailureException":
|
|
1529
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1530
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1531
|
-
case "UnauthorizedException":
|
|
1532
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1533
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1534
|
-
default:
|
|
1535
|
-
const parsedBody = parsedOutput.body;
|
|
1536
|
-
return throwDefaultError({
|
|
1537
|
-
output,
|
|
1538
|
-
parsedBody,
|
|
1539
|
-
errorCode,
|
|
1540
|
-
});
|
|
1541
|
-
}
|
|
1542
|
-
};
|
|
1543
|
-
const de_ListArtifactsCommand = async (output, context) => {
|
|
1544
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1545
|
-
return de_ListArtifactsCommandError(output, context);
|
|
1546
|
-
}
|
|
1547
|
-
const contents = (0, smithy_client_1.map)({
|
|
1548
|
-
$metadata: deserializeMetadata(output),
|
|
1549
|
-
});
|
|
1550
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1551
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1552
|
-
artifacts: smithy_client_1._json,
|
|
1553
|
-
nextToken: smithy_client_1.expectString,
|
|
1554
|
-
});
|
|
1555
|
-
Object.assign(contents, doc);
|
|
1556
|
-
return contents;
|
|
1557
|
-
};
|
|
1558
|
-
exports.de_ListArtifactsCommand = de_ListArtifactsCommand;
|
|
1559
|
-
const de_ListArtifactsCommandError = async (output, context) => {
|
|
1560
|
-
const parsedOutput = {
|
|
1561
|
-
...output,
|
|
1562
|
-
body: await parseErrorBody(output.body, context),
|
|
1563
|
-
};
|
|
1564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1565
|
-
switch (errorCode) {
|
|
1566
|
-
case "BadRequestException":
|
|
1567
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1568
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1569
|
-
case "InternalFailureException":
|
|
1570
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1571
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1572
|
-
case "LimitExceededException":
|
|
1573
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1574
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1575
|
-
case "UnauthorizedException":
|
|
1576
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1577
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1578
|
-
default:
|
|
1579
|
-
const parsedBody = parsedOutput.body;
|
|
1580
|
-
return throwDefaultError({
|
|
1581
|
-
output,
|
|
1582
|
-
parsedBody,
|
|
1583
|
-
errorCode,
|
|
1584
|
-
});
|
|
1585
|
-
}
|
|
1586
|
-
};
|
|
1587
|
-
const de_ListBackendEnvironmentsCommand = async (output, context) => {
|
|
1588
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1589
|
-
return de_ListBackendEnvironmentsCommandError(output, context);
|
|
1590
|
-
}
|
|
1591
|
-
const contents = (0, smithy_client_1.map)({
|
|
1592
|
-
$metadata: deserializeMetadata(output),
|
|
1593
|
-
});
|
|
1594
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1595
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1596
|
-
backendEnvironments: (_) => de_BackendEnvironments(_, context),
|
|
1597
|
-
nextToken: smithy_client_1.expectString,
|
|
1598
|
-
});
|
|
1599
|
-
Object.assign(contents, doc);
|
|
1600
|
-
return contents;
|
|
1601
|
-
};
|
|
1602
|
-
exports.de_ListBackendEnvironmentsCommand = de_ListBackendEnvironmentsCommand;
|
|
1603
|
-
const de_ListBackendEnvironmentsCommandError = async (output, context) => {
|
|
1604
|
-
const parsedOutput = {
|
|
1605
|
-
...output,
|
|
1606
|
-
body: await parseErrorBody(output.body, context),
|
|
1607
|
-
};
|
|
1608
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1609
|
-
switch (errorCode) {
|
|
1610
|
-
case "BadRequestException":
|
|
1611
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1612
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1613
|
-
case "InternalFailureException":
|
|
1614
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1615
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1616
|
-
case "UnauthorizedException":
|
|
1617
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1618
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1619
|
-
default:
|
|
1620
|
-
const parsedBody = parsedOutput.body;
|
|
1621
|
-
return throwDefaultError({
|
|
1622
|
-
output,
|
|
1623
|
-
parsedBody,
|
|
1624
|
-
errorCode,
|
|
1625
|
-
});
|
|
1626
|
-
}
|
|
1627
|
-
};
|
|
1628
|
-
const de_ListBranchesCommand = async (output, context) => {
|
|
1629
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1630
|
-
return de_ListBranchesCommandError(output, context);
|
|
1631
|
-
}
|
|
1632
|
-
const contents = (0, smithy_client_1.map)({
|
|
1633
|
-
$metadata: deserializeMetadata(output),
|
|
1634
|
-
});
|
|
1635
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1636
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1637
|
-
branches: (_) => de_Branches(_, context),
|
|
1638
|
-
nextToken: smithy_client_1.expectString,
|
|
1639
|
-
});
|
|
1640
|
-
Object.assign(contents, doc);
|
|
1641
|
-
return contents;
|
|
1642
|
-
};
|
|
1643
|
-
exports.de_ListBranchesCommand = de_ListBranchesCommand;
|
|
1644
|
-
const de_ListBranchesCommandError = async (output, context) => {
|
|
1645
|
-
const parsedOutput = {
|
|
1646
|
-
...output,
|
|
1647
|
-
body: await parseErrorBody(output.body, context),
|
|
1648
|
-
};
|
|
1649
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1650
|
-
switch (errorCode) {
|
|
1651
|
-
case "BadRequestException":
|
|
1652
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1653
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1654
|
-
case "InternalFailureException":
|
|
1655
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1656
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1657
|
-
case "UnauthorizedException":
|
|
1658
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1659
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1660
|
-
default:
|
|
1661
|
-
const parsedBody = parsedOutput.body;
|
|
1662
|
-
return throwDefaultError({
|
|
1663
|
-
output,
|
|
1664
|
-
parsedBody,
|
|
1665
|
-
errorCode,
|
|
1666
|
-
});
|
|
1667
|
-
}
|
|
1668
|
-
};
|
|
1669
|
-
const de_ListDomainAssociationsCommand = async (output, context) => {
|
|
1670
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1671
|
-
return de_ListDomainAssociationsCommandError(output, context);
|
|
1672
|
-
}
|
|
1673
|
-
const contents = (0, smithy_client_1.map)({
|
|
1674
|
-
$metadata: deserializeMetadata(output),
|
|
1675
|
-
});
|
|
1676
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1677
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1678
|
-
domainAssociations: smithy_client_1._json,
|
|
1679
|
-
nextToken: smithy_client_1.expectString,
|
|
1680
|
-
});
|
|
1681
|
-
Object.assign(contents, doc);
|
|
1682
|
-
return contents;
|
|
1683
|
-
};
|
|
1684
|
-
exports.de_ListDomainAssociationsCommand = de_ListDomainAssociationsCommand;
|
|
1685
|
-
const de_ListDomainAssociationsCommandError = async (output, context) => {
|
|
1686
|
-
const parsedOutput = {
|
|
1687
|
-
...output,
|
|
1688
|
-
body: await parseErrorBody(output.body, context),
|
|
1689
|
-
};
|
|
1690
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1691
|
-
switch (errorCode) {
|
|
1692
|
-
case "BadRequestException":
|
|
1693
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1694
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1695
|
-
case "InternalFailureException":
|
|
1696
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1697
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1698
|
-
case "UnauthorizedException":
|
|
1699
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1700
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1701
|
-
default:
|
|
1702
|
-
const parsedBody = parsedOutput.body;
|
|
1703
|
-
return throwDefaultError({
|
|
1704
|
-
output,
|
|
1705
|
-
parsedBody,
|
|
1706
|
-
errorCode,
|
|
1707
|
-
});
|
|
1708
|
-
}
|
|
1709
|
-
};
|
|
1710
|
-
const de_ListJobsCommand = async (output, context) => {
|
|
1711
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1712
|
-
return de_ListJobsCommandError(output, context);
|
|
1713
|
-
}
|
|
1714
|
-
const contents = (0, smithy_client_1.map)({
|
|
1715
|
-
$metadata: deserializeMetadata(output),
|
|
1716
|
-
});
|
|
1717
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1718
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1719
|
-
jobSummaries: (_) => de_JobSummaries(_, context),
|
|
1720
|
-
nextToken: smithy_client_1.expectString,
|
|
1721
|
-
});
|
|
1722
|
-
Object.assign(contents, doc);
|
|
1723
|
-
return contents;
|
|
1724
|
-
};
|
|
1725
|
-
exports.de_ListJobsCommand = de_ListJobsCommand;
|
|
1726
|
-
const de_ListJobsCommandError = async (output, context) => {
|
|
1727
|
-
const parsedOutput = {
|
|
1728
|
-
...output,
|
|
1729
|
-
body: await parseErrorBody(output.body, context),
|
|
1730
|
-
};
|
|
1731
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1732
|
-
switch (errorCode) {
|
|
1733
|
-
case "BadRequestException":
|
|
1734
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1735
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1736
|
-
case "InternalFailureException":
|
|
1737
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1738
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1739
|
-
case "LimitExceededException":
|
|
1740
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1741
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1742
|
-
case "UnauthorizedException":
|
|
1743
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1744
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1745
|
-
default:
|
|
1746
|
-
const parsedBody = parsedOutput.body;
|
|
1747
|
-
return throwDefaultError({
|
|
1748
|
-
output,
|
|
1749
|
-
parsedBody,
|
|
1750
|
-
errorCode,
|
|
1751
|
-
});
|
|
1752
|
-
}
|
|
1753
|
-
};
|
|
1754
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1755
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1756
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1757
|
-
}
|
|
1758
|
-
const contents = (0, smithy_client_1.map)({
|
|
1759
|
-
$metadata: deserializeMetadata(output),
|
|
1760
|
-
});
|
|
1761
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1762
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1763
|
-
tags: smithy_client_1._json,
|
|
1764
|
-
});
|
|
1765
|
-
Object.assign(contents, doc);
|
|
1766
|
-
return contents;
|
|
1767
|
-
};
|
|
1768
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1769
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1770
|
-
const parsedOutput = {
|
|
1771
|
-
...output,
|
|
1772
|
-
body: await parseErrorBody(output.body, context),
|
|
1773
|
-
};
|
|
1774
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1775
|
-
switch (errorCode) {
|
|
1776
|
-
case "BadRequestException":
|
|
1777
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1778
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1779
|
-
case "InternalFailureException":
|
|
1780
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1781
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1782
|
-
case "ResourceNotFoundException":
|
|
1783
|
-
case "com.amazonaws.amplify#ResourceNotFoundException":
|
|
1784
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1785
|
-
default:
|
|
1786
|
-
const parsedBody = parsedOutput.body;
|
|
1787
|
-
return throwDefaultError({
|
|
1788
|
-
output,
|
|
1789
|
-
parsedBody,
|
|
1790
|
-
errorCode,
|
|
1791
|
-
});
|
|
1792
|
-
}
|
|
1793
|
-
};
|
|
1794
|
-
const de_ListWebhooksCommand = async (output, context) => {
|
|
1795
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1796
|
-
return de_ListWebhooksCommandError(output, context);
|
|
1797
|
-
}
|
|
1798
|
-
const contents = (0, smithy_client_1.map)({
|
|
1799
|
-
$metadata: deserializeMetadata(output),
|
|
1800
|
-
});
|
|
1801
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1802
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1803
|
-
nextToken: smithy_client_1.expectString,
|
|
1804
|
-
webhooks: (_) => de_Webhooks(_, context),
|
|
1805
|
-
});
|
|
1806
|
-
Object.assign(contents, doc);
|
|
1807
|
-
return contents;
|
|
1808
|
-
};
|
|
1809
|
-
exports.de_ListWebhooksCommand = de_ListWebhooksCommand;
|
|
1810
|
-
const de_ListWebhooksCommandError = async (output, context) => {
|
|
1811
|
-
const parsedOutput = {
|
|
1812
|
-
...output,
|
|
1813
|
-
body: await parseErrorBody(output.body, context),
|
|
1814
|
-
};
|
|
1815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
|
-
switch (errorCode) {
|
|
1817
|
-
case "BadRequestException":
|
|
1818
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1819
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1820
|
-
case "InternalFailureException":
|
|
1821
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1822
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1823
|
-
case "LimitExceededException":
|
|
1824
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1825
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1826
|
-
case "UnauthorizedException":
|
|
1827
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1828
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1829
|
-
default:
|
|
1830
|
-
const parsedBody = parsedOutput.body;
|
|
1831
|
-
return throwDefaultError({
|
|
1832
|
-
output,
|
|
1833
|
-
parsedBody,
|
|
1834
|
-
errorCode,
|
|
1835
|
-
});
|
|
1836
|
-
}
|
|
1837
|
-
};
|
|
1838
|
-
const de_StartDeploymentCommand = async (output, context) => {
|
|
1839
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1840
|
-
return de_StartDeploymentCommandError(output, context);
|
|
1841
|
-
}
|
|
1842
|
-
const contents = (0, smithy_client_1.map)({
|
|
1843
|
-
$metadata: deserializeMetadata(output),
|
|
1844
|
-
});
|
|
1845
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1846
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1847
|
-
jobSummary: (_) => de_JobSummary(_, context),
|
|
1848
|
-
});
|
|
1849
|
-
Object.assign(contents, doc);
|
|
1850
|
-
return contents;
|
|
1851
|
-
};
|
|
1852
|
-
exports.de_StartDeploymentCommand = de_StartDeploymentCommand;
|
|
1853
|
-
const de_StartDeploymentCommandError = async (output, context) => {
|
|
1854
|
-
const parsedOutput = {
|
|
1855
|
-
...output,
|
|
1856
|
-
body: await parseErrorBody(output.body, context),
|
|
1857
|
-
};
|
|
1858
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1859
|
-
switch (errorCode) {
|
|
1860
|
-
case "BadRequestException":
|
|
1861
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1862
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1863
|
-
case "InternalFailureException":
|
|
1864
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1865
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1866
|
-
case "LimitExceededException":
|
|
1867
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1868
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1869
|
-
case "NotFoundException":
|
|
1870
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1871
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1872
|
-
case "UnauthorizedException":
|
|
1873
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1874
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1875
|
-
default:
|
|
1876
|
-
const parsedBody = parsedOutput.body;
|
|
1877
|
-
return throwDefaultError({
|
|
1878
|
-
output,
|
|
1879
|
-
parsedBody,
|
|
1880
|
-
errorCode,
|
|
1881
|
-
});
|
|
1882
|
-
}
|
|
1883
|
-
};
|
|
1884
|
-
const de_StartJobCommand = async (output, context) => {
|
|
1885
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1886
|
-
return de_StartJobCommandError(output, context);
|
|
1887
|
-
}
|
|
1888
|
-
const contents = (0, smithy_client_1.map)({
|
|
1889
|
-
$metadata: deserializeMetadata(output),
|
|
1890
|
-
});
|
|
1891
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1892
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1893
|
-
jobSummary: (_) => de_JobSummary(_, context),
|
|
1894
|
-
});
|
|
1895
|
-
Object.assign(contents, doc);
|
|
1896
|
-
return contents;
|
|
1897
|
-
};
|
|
1898
|
-
exports.de_StartJobCommand = de_StartJobCommand;
|
|
1899
|
-
const de_StartJobCommandError = async (output, context) => {
|
|
1900
|
-
const parsedOutput = {
|
|
1901
|
-
...output,
|
|
1902
|
-
body: await parseErrorBody(output.body, context),
|
|
1903
|
-
};
|
|
1904
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1905
|
-
switch (errorCode) {
|
|
1906
|
-
case "BadRequestException":
|
|
1907
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1908
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1909
|
-
case "InternalFailureException":
|
|
1910
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1911
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1912
|
-
case "LimitExceededException":
|
|
1913
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1914
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1915
|
-
case "NotFoundException":
|
|
1916
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1917
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1918
|
-
case "UnauthorizedException":
|
|
1919
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1920
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1921
|
-
default:
|
|
1922
|
-
const parsedBody = parsedOutput.body;
|
|
1923
|
-
return throwDefaultError({
|
|
1924
|
-
output,
|
|
1925
|
-
parsedBody,
|
|
1926
|
-
errorCode,
|
|
1927
|
-
});
|
|
1928
|
-
}
|
|
1929
|
-
};
|
|
1930
|
-
const de_StopJobCommand = async (output, context) => {
|
|
1931
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1932
|
-
return de_StopJobCommandError(output, context);
|
|
1933
|
-
}
|
|
1934
|
-
const contents = (0, smithy_client_1.map)({
|
|
1935
|
-
$metadata: deserializeMetadata(output),
|
|
1936
|
-
});
|
|
1937
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1938
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1939
|
-
jobSummary: (_) => de_JobSummary(_, context),
|
|
1940
|
-
});
|
|
1941
|
-
Object.assign(contents, doc);
|
|
1942
|
-
return contents;
|
|
1943
|
-
};
|
|
1944
|
-
exports.de_StopJobCommand = de_StopJobCommand;
|
|
1945
|
-
const de_StopJobCommandError = async (output, context) => {
|
|
1946
|
-
const parsedOutput = {
|
|
1947
|
-
...output,
|
|
1948
|
-
body: await parseErrorBody(output.body, context),
|
|
1949
|
-
};
|
|
1950
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1951
|
-
switch (errorCode) {
|
|
1952
|
-
case "BadRequestException":
|
|
1953
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1954
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1955
|
-
case "InternalFailureException":
|
|
1956
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1957
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "LimitExceededException":
|
|
1959
|
-
case "com.amazonaws.amplify#LimitExceededException":
|
|
1960
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1961
|
-
case "NotFoundException":
|
|
1962
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
1963
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1964
|
-
case "UnauthorizedException":
|
|
1965
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
1966
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1967
|
-
default:
|
|
1968
|
-
const parsedBody = parsedOutput.body;
|
|
1969
|
-
return throwDefaultError({
|
|
1970
|
-
output,
|
|
1971
|
-
parsedBody,
|
|
1972
|
-
errorCode,
|
|
1973
|
-
});
|
|
1974
|
-
}
|
|
1975
|
-
};
|
|
1976
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1977
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1978
|
-
return de_TagResourceCommandError(output, context);
|
|
1979
|
-
}
|
|
1980
|
-
const contents = (0, smithy_client_1.map)({
|
|
1981
|
-
$metadata: deserializeMetadata(output),
|
|
1982
|
-
});
|
|
1983
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1984
|
-
return contents;
|
|
1985
|
-
};
|
|
1986
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1987
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1988
|
-
const parsedOutput = {
|
|
1989
|
-
...output,
|
|
1990
|
-
body: await parseErrorBody(output.body, context),
|
|
1991
|
-
};
|
|
1992
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1993
|
-
switch (errorCode) {
|
|
1994
|
-
case "BadRequestException":
|
|
1995
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
1996
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1997
|
-
case "InternalFailureException":
|
|
1998
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
1999
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2000
|
-
case "ResourceNotFoundException":
|
|
2001
|
-
case "com.amazonaws.amplify#ResourceNotFoundException":
|
|
2002
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2003
|
-
default:
|
|
2004
|
-
const parsedBody = parsedOutput.body;
|
|
2005
|
-
return throwDefaultError({
|
|
2006
|
-
output,
|
|
2007
|
-
parsedBody,
|
|
2008
|
-
errorCode,
|
|
2009
|
-
});
|
|
2010
|
-
}
|
|
2011
|
-
};
|
|
2012
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
2013
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2014
|
-
return de_UntagResourceCommandError(output, context);
|
|
2015
|
-
}
|
|
2016
|
-
const contents = (0, smithy_client_1.map)({
|
|
2017
|
-
$metadata: deserializeMetadata(output),
|
|
2018
|
-
});
|
|
2019
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2020
|
-
return contents;
|
|
2021
|
-
};
|
|
2022
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2023
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2024
|
-
const parsedOutput = {
|
|
2025
|
-
...output,
|
|
2026
|
-
body: await parseErrorBody(output.body, context),
|
|
2027
|
-
};
|
|
2028
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2029
|
-
switch (errorCode) {
|
|
2030
|
-
case "BadRequestException":
|
|
2031
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2032
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2033
|
-
case "InternalFailureException":
|
|
2034
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2035
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2036
|
-
case "ResourceNotFoundException":
|
|
2037
|
-
case "com.amazonaws.amplify#ResourceNotFoundException":
|
|
2038
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2039
|
-
default:
|
|
2040
|
-
const parsedBody = parsedOutput.body;
|
|
2041
|
-
return throwDefaultError({
|
|
2042
|
-
output,
|
|
2043
|
-
parsedBody,
|
|
2044
|
-
errorCode,
|
|
2045
|
-
});
|
|
2046
|
-
}
|
|
2047
|
-
};
|
|
2048
|
-
const de_UpdateAppCommand = async (output, context) => {
|
|
2049
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2050
|
-
return de_UpdateAppCommandError(output, context);
|
|
2051
|
-
}
|
|
2052
|
-
const contents = (0, smithy_client_1.map)({
|
|
2053
|
-
$metadata: deserializeMetadata(output),
|
|
2054
|
-
});
|
|
2055
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2056
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2057
|
-
app: (_) => de_App(_, context),
|
|
2058
|
-
});
|
|
2059
|
-
Object.assign(contents, doc);
|
|
2060
|
-
return contents;
|
|
2061
|
-
};
|
|
2062
|
-
exports.de_UpdateAppCommand = de_UpdateAppCommand;
|
|
2063
|
-
const de_UpdateAppCommandError = async (output, context) => {
|
|
2064
|
-
const parsedOutput = {
|
|
2065
|
-
...output,
|
|
2066
|
-
body: await parseErrorBody(output.body, context),
|
|
2067
|
-
};
|
|
2068
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2069
|
-
switch (errorCode) {
|
|
2070
|
-
case "BadRequestException":
|
|
2071
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2072
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2073
|
-
case "InternalFailureException":
|
|
2074
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2075
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2076
|
-
case "NotFoundException":
|
|
2077
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
2078
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2079
|
-
case "UnauthorizedException":
|
|
2080
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2081
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2082
|
-
default:
|
|
2083
|
-
const parsedBody = parsedOutput.body;
|
|
2084
|
-
return throwDefaultError({
|
|
2085
|
-
output,
|
|
2086
|
-
parsedBody,
|
|
2087
|
-
errorCode,
|
|
2088
|
-
});
|
|
2089
|
-
}
|
|
2090
|
-
};
|
|
2091
|
-
const de_UpdateBranchCommand = async (output, context) => {
|
|
2092
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2093
|
-
return de_UpdateBranchCommandError(output, context);
|
|
2094
|
-
}
|
|
2095
|
-
const contents = (0, smithy_client_1.map)({
|
|
2096
|
-
$metadata: deserializeMetadata(output),
|
|
2097
|
-
});
|
|
2098
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2099
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2100
|
-
branch: (_) => de_Branch(_, context),
|
|
2101
|
-
});
|
|
2102
|
-
Object.assign(contents, doc);
|
|
2103
|
-
return contents;
|
|
2104
|
-
};
|
|
2105
|
-
exports.de_UpdateBranchCommand = de_UpdateBranchCommand;
|
|
2106
|
-
const de_UpdateBranchCommandError = async (output, context) => {
|
|
2107
|
-
const parsedOutput = {
|
|
2108
|
-
...output,
|
|
2109
|
-
body: await parseErrorBody(output.body, context),
|
|
2110
|
-
};
|
|
2111
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2112
|
-
switch (errorCode) {
|
|
2113
|
-
case "BadRequestException":
|
|
2114
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2115
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2116
|
-
case "DependentServiceFailureException":
|
|
2117
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
2118
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
2119
|
-
case "InternalFailureException":
|
|
2120
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2121
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2122
|
-
case "NotFoundException":
|
|
2123
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
2124
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2125
|
-
case "UnauthorizedException":
|
|
2126
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2127
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2128
|
-
default:
|
|
2129
|
-
const parsedBody = parsedOutput.body;
|
|
2130
|
-
return throwDefaultError({
|
|
2131
|
-
output,
|
|
2132
|
-
parsedBody,
|
|
2133
|
-
errorCode,
|
|
2134
|
-
});
|
|
2135
|
-
}
|
|
2136
|
-
};
|
|
2137
|
-
const de_UpdateDomainAssociationCommand = async (output, context) => {
|
|
2138
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2139
|
-
return de_UpdateDomainAssociationCommandError(output, context);
|
|
2140
|
-
}
|
|
2141
|
-
const contents = (0, smithy_client_1.map)({
|
|
2142
|
-
$metadata: deserializeMetadata(output),
|
|
2143
|
-
});
|
|
2144
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2145
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2146
|
-
domainAssociation: smithy_client_1._json,
|
|
2147
|
-
});
|
|
2148
|
-
Object.assign(contents, doc);
|
|
2149
|
-
return contents;
|
|
2150
|
-
};
|
|
2151
|
-
exports.de_UpdateDomainAssociationCommand = de_UpdateDomainAssociationCommand;
|
|
2152
|
-
const de_UpdateDomainAssociationCommandError = async (output, context) => {
|
|
2153
|
-
const parsedOutput = {
|
|
2154
|
-
...output,
|
|
2155
|
-
body: await parseErrorBody(output.body, context),
|
|
2156
|
-
};
|
|
2157
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2158
|
-
switch (errorCode) {
|
|
2159
|
-
case "BadRequestException":
|
|
2160
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2161
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2162
|
-
case "DependentServiceFailureException":
|
|
2163
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
2164
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
2165
|
-
case "InternalFailureException":
|
|
2166
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2167
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2168
|
-
case "NotFoundException":
|
|
2169
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
2170
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2171
|
-
case "UnauthorizedException":
|
|
2172
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2173
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2174
|
-
default:
|
|
2175
|
-
const parsedBody = parsedOutput.body;
|
|
2176
|
-
return throwDefaultError({
|
|
2177
|
-
output,
|
|
2178
|
-
parsedBody,
|
|
2179
|
-
errorCode,
|
|
2180
|
-
});
|
|
2181
|
-
}
|
|
2182
|
-
};
|
|
2183
|
-
const de_UpdateWebhookCommand = async (output, context) => {
|
|
2184
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2185
|
-
return de_UpdateWebhookCommandError(output, context);
|
|
2186
|
-
}
|
|
2187
|
-
const contents = (0, smithy_client_1.map)({
|
|
2188
|
-
$metadata: deserializeMetadata(output),
|
|
2189
|
-
});
|
|
2190
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2191
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2192
|
-
webhook: (_) => de_Webhook(_, context),
|
|
2193
|
-
});
|
|
2194
|
-
Object.assign(contents, doc);
|
|
2195
|
-
return contents;
|
|
2196
|
-
};
|
|
2197
|
-
exports.de_UpdateWebhookCommand = de_UpdateWebhookCommand;
|
|
2198
|
-
const de_UpdateWebhookCommandError = async (output, context) => {
|
|
2199
|
-
const parsedOutput = {
|
|
2200
|
-
...output,
|
|
2201
|
-
body: await parseErrorBody(output.body, context),
|
|
2202
|
-
};
|
|
2203
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2204
|
-
switch (errorCode) {
|
|
2205
|
-
case "BadRequestException":
|
|
2206
|
-
case "com.amazonaws.amplify#BadRequestException":
|
|
2207
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2208
|
-
case "DependentServiceFailureException":
|
|
2209
|
-
case "com.amazonaws.amplify#DependentServiceFailureException":
|
|
2210
|
-
throw await de_DependentServiceFailureExceptionRes(parsedOutput, context);
|
|
2211
|
-
case "InternalFailureException":
|
|
2212
|
-
case "com.amazonaws.amplify#InternalFailureException":
|
|
2213
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2214
|
-
case "NotFoundException":
|
|
2215
|
-
case "com.amazonaws.amplify#NotFoundException":
|
|
2216
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2217
|
-
case "UnauthorizedException":
|
|
2218
|
-
case "com.amazonaws.amplify#UnauthorizedException":
|
|
2219
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2220
|
-
default:
|
|
2221
|
-
const parsedBody = parsedOutput.body;
|
|
2222
|
-
return throwDefaultError({
|
|
2223
|
-
output,
|
|
2224
|
-
parsedBody,
|
|
2225
|
-
errorCode,
|
|
2226
|
-
});
|
|
2227
|
-
}
|
|
2228
|
-
};
|
|
2229
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(AmplifyServiceException_1.AmplifyServiceException);
|
|
2230
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2231
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2232
|
-
const data = parsedOutput.body;
|
|
2233
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2234
|
-
message: smithy_client_1.expectString,
|
|
2235
|
-
});
|
|
2236
|
-
Object.assign(contents, doc);
|
|
2237
|
-
const exception = new models_0_1.BadRequestException({
|
|
2238
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2239
|
-
...contents,
|
|
2240
|
-
});
|
|
2241
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2242
|
-
};
|
|
2243
|
-
const de_DependentServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
2244
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2245
|
-
const data = parsedOutput.body;
|
|
2246
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2247
|
-
message: smithy_client_1.expectString,
|
|
2248
|
-
});
|
|
2249
|
-
Object.assign(contents, doc);
|
|
2250
|
-
const exception = new models_0_1.DependentServiceFailureException({
|
|
2251
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2252
|
-
...contents,
|
|
2253
|
-
});
|
|
2254
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2255
|
-
};
|
|
2256
|
-
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
2257
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2258
|
-
const data = parsedOutput.body;
|
|
2259
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2260
|
-
message: smithy_client_1.expectString,
|
|
2261
|
-
});
|
|
2262
|
-
Object.assign(contents, doc);
|
|
2263
|
-
const exception = new models_0_1.InternalFailureException({
|
|
2264
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2265
|
-
...contents,
|
|
2266
|
-
});
|
|
2267
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2268
|
-
};
|
|
2269
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2270
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2271
|
-
const data = parsedOutput.body;
|
|
2272
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2273
|
-
message: smithy_client_1.expectString,
|
|
2274
|
-
});
|
|
2275
|
-
Object.assign(contents, doc);
|
|
2276
|
-
const exception = new models_0_1.LimitExceededException({
|
|
2277
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2278
|
-
...contents,
|
|
2279
|
-
});
|
|
2280
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2281
|
-
};
|
|
2282
|
-
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2283
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2284
|
-
const data = parsedOutput.body;
|
|
2285
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2286
|
-
message: smithy_client_1.expectString,
|
|
2287
|
-
});
|
|
2288
|
-
Object.assign(contents, doc);
|
|
2289
|
-
const exception = new models_0_1.NotFoundException({
|
|
2290
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2291
|
-
...contents,
|
|
2292
|
-
});
|
|
2293
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2294
|
-
};
|
|
2295
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2296
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2297
|
-
const data = parsedOutput.body;
|
|
2298
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2299
|
-
code: smithy_client_1.expectString,
|
|
2300
|
-
message: smithy_client_1.expectString,
|
|
2301
|
-
});
|
|
2302
|
-
Object.assign(contents, doc);
|
|
2303
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
2304
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2305
|
-
...contents,
|
|
2306
|
-
});
|
|
2307
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2308
|
-
};
|
|
2309
|
-
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
2310
|
-
const contents = (0, smithy_client_1.map)({});
|
|
2311
|
-
const data = parsedOutput.body;
|
|
2312
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2313
|
-
message: smithy_client_1.expectString,
|
|
2314
|
-
});
|
|
2315
|
-
Object.assign(contents, doc);
|
|
2316
|
-
const exception = new models_0_1.UnauthorizedException({
|
|
2317
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2318
|
-
...contents,
|
|
2319
|
-
});
|
|
2320
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2321
|
-
};
|
|
2322
|
-
const de_App = (output, context) => {
|
|
2323
|
-
return (0, smithy_client_1.take)(output, {
|
|
2324
|
-
appArn: smithy_client_1.expectString,
|
|
2325
|
-
appId: smithy_client_1.expectString,
|
|
2326
|
-
autoBranchCreationConfig: smithy_client_1._json,
|
|
2327
|
-
autoBranchCreationPatterns: smithy_client_1._json,
|
|
2328
|
-
basicAuthCredentials: smithy_client_1.expectString,
|
|
2329
|
-
buildSpec: smithy_client_1.expectString,
|
|
2330
|
-
createTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2331
|
-
customHeaders: smithy_client_1.expectString,
|
|
2332
|
-
customRules: smithy_client_1._json,
|
|
2333
|
-
defaultDomain: smithy_client_1.expectString,
|
|
2334
|
-
description: smithy_client_1.expectString,
|
|
2335
|
-
enableAutoBranchCreation: smithy_client_1.expectBoolean,
|
|
2336
|
-
enableBasicAuth: smithy_client_1.expectBoolean,
|
|
2337
|
-
enableBranchAutoBuild: smithy_client_1.expectBoolean,
|
|
2338
|
-
enableBranchAutoDeletion: smithy_client_1.expectBoolean,
|
|
2339
|
-
environmentVariables: smithy_client_1._json,
|
|
2340
|
-
iamServiceRoleArn: smithy_client_1.expectString,
|
|
2341
|
-
name: smithy_client_1.expectString,
|
|
2342
|
-
platform: smithy_client_1.expectString,
|
|
2343
|
-
productionBranch: (_) => de_ProductionBranch(_, context),
|
|
2344
|
-
repository: smithy_client_1.expectString,
|
|
2345
|
-
repositoryCloneMethod: smithy_client_1.expectString,
|
|
2346
|
-
tags: smithy_client_1._json,
|
|
2347
|
-
updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2348
|
-
});
|
|
2349
|
-
};
|
|
2350
|
-
const de_Apps = (output, context) => {
|
|
2351
|
-
const retVal = (output || [])
|
|
2352
|
-
.filter((e) => e != null)
|
|
2353
|
-
.map((entry) => {
|
|
2354
|
-
return de_App(entry, context);
|
|
2355
|
-
});
|
|
2356
|
-
return retVal;
|
|
2357
|
-
};
|
|
2358
|
-
const de_BackendEnvironment = (output, context) => {
|
|
2359
|
-
return (0, smithy_client_1.take)(output, {
|
|
2360
|
-
backendEnvironmentArn: smithy_client_1.expectString,
|
|
2361
|
-
createTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2362
|
-
deploymentArtifacts: smithy_client_1.expectString,
|
|
2363
|
-
environmentName: smithy_client_1.expectString,
|
|
2364
|
-
stackName: smithy_client_1.expectString,
|
|
2365
|
-
updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2366
|
-
});
|
|
2367
|
-
};
|
|
2368
|
-
const de_BackendEnvironments = (output, context) => {
|
|
2369
|
-
const retVal = (output || [])
|
|
2370
|
-
.filter((e) => e != null)
|
|
2371
|
-
.map((entry) => {
|
|
2372
|
-
return de_BackendEnvironment(entry, context);
|
|
2373
|
-
});
|
|
2374
|
-
return retVal;
|
|
2375
|
-
};
|
|
2376
|
-
const de_Branch = (output, context) => {
|
|
2377
|
-
return (0, smithy_client_1.take)(output, {
|
|
2378
|
-
activeJobId: smithy_client_1.expectString,
|
|
2379
|
-
associatedResources: smithy_client_1._json,
|
|
2380
|
-
backend: smithy_client_1._json,
|
|
2381
|
-
backendEnvironmentArn: smithy_client_1.expectString,
|
|
2382
|
-
basicAuthCredentials: smithy_client_1.expectString,
|
|
2383
|
-
branchArn: smithy_client_1.expectString,
|
|
2384
|
-
branchName: smithy_client_1.expectString,
|
|
2385
|
-
buildSpec: smithy_client_1.expectString,
|
|
2386
|
-
createTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2387
|
-
customDomains: smithy_client_1._json,
|
|
2388
|
-
description: smithy_client_1.expectString,
|
|
2389
|
-
destinationBranch: smithy_client_1.expectString,
|
|
2390
|
-
displayName: smithy_client_1.expectString,
|
|
2391
|
-
enableAutoBuild: smithy_client_1.expectBoolean,
|
|
2392
|
-
enableBasicAuth: smithy_client_1.expectBoolean,
|
|
2393
|
-
enableNotification: smithy_client_1.expectBoolean,
|
|
2394
|
-
enablePerformanceMode: smithy_client_1.expectBoolean,
|
|
2395
|
-
enablePullRequestPreview: smithy_client_1.expectBoolean,
|
|
2396
|
-
environmentVariables: smithy_client_1._json,
|
|
2397
|
-
framework: smithy_client_1.expectString,
|
|
2398
|
-
pullRequestEnvironmentName: smithy_client_1.expectString,
|
|
2399
|
-
sourceBranch: smithy_client_1.expectString,
|
|
2400
|
-
stage: smithy_client_1.expectString,
|
|
2401
|
-
tags: smithy_client_1._json,
|
|
2402
|
-
thumbnailUrl: smithy_client_1.expectString,
|
|
2403
|
-
totalNumberOfJobs: smithy_client_1.expectString,
|
|
2404
|
-
ttl: smithy_client_1.expectString,
|
|
2405
|
-
updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2406
|
-
});
|
|
2407
|
-
};
|
|
2408
|
-
const de_Branches = (output, context) => {
|
|
2409
|
-
const retVal = (output || [])
|
|
2410
|
-
.filter((e) => e != null)
|
|
2411
|
-
.map((entry) => {
|
|
2412
|
-
return de_Branch(entry, context);
|
|
2413
|
-
});
|
|
2414
|
-
return retVal;
|
|
2415
|
-
};
|
|
2416
|
-
const de_Job = (output, context) => {
|
|
2417
|
-
return (0, smithy_client_1.take)(output, {
|
|
2418
|
-
steps: (_) => de_Steps(_, context),
|
|
2419
|
-
summary: (_) => de_JobSummary(_, context),
|
|
2420
|
-
});
|
|
2421
|
-
};
|
|
2422
|
-
const de_JobSummaries = (output, context) => {
|
|
2423
|
-
const retVal = (output || [])
|
|
2424
|
-
.filter((e) => e != null)
|
|
2425
|
-
.map((entry) => {
|
|
2426
|
-
return de_JobSummary(entry, context);
|
|
2427
|
-
});
|
|
2428
|
-
return retVal;
|
|
2429
|
-
};
|
|
2430
|
-
const de_JobSummary = (output, context) => {
|
|
2431
|
-
return (0, smithy_client_1.take)(output, {
|
|
2432
|
-
commitId: smithy_client_1.expectString,
|
|
2433
|
-
commitMessage: smithy_client_1.expectString,
|
|
2434
|
-
commitTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2435
|
-
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2436
|
-
jobArn: smithy_client_1.expectString,
|
|
2437
|
-
jobId: smithy_client_1.expectString,
|
|
2438
|
-
jobType: smithy_client_1.expectString,
|
|
2439
|
-
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2440
|
-
status: smithy_client_1.expectString,
|
|
2441
|
-
});
|
|
2442
|
-
};
|
|
2443
|
-
const de_ProductionBranch = (output, context) => {
|
|
2444
|
-
return (0, smithy_client_1.take)(output, {
|
|
2445
|
-
branchName: smithy_client_1.expectString,
|
|
2446
|
-
lastDeployTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2447
|
-
status: smithy_client_1.expectString,
|
|
2448
|
-
thumbnailUrl: smithy_client_1.expectString,
|
|
2449
|
-
});
|
|
2450
|
-
};
|
|
2451
|
-
const de_Step = (output, context) => {
|
|
2452
|
-
return (0, smithy_client_1.take)(output, {
|
|
2453
|
-
artifactsUrl: smithy_client_1.expectString,
|
|
2454
|
-
context: smithy_client_1.expectString,
|
|
2455
|
-
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2456
|
-
logUrl: smithy_client_1.expectString,
|
|
2457
|
-
screenshots: smithy_client_1._json,
|
|
2458
|
-
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2459
|
-
status: smithy_client_1.expectString,
|
|
2460
|
-
statusReason: smithy_client_1.expectString,
|
|
2461
|
-
stepName: smithy_client_1.expectString,
|
|
2462
|
-
testArtifactsUrl: smithy_client_1.expectString,
|
|
2463
|
-
testConfigUrl: smithy_client_1.expectString,
|
|
2464
|
-
});
|
|
2465
|
-
};
|
|
2466
|
-
const de_Steps = (output, context) => {
|
|
2467
|
-
const retVal = (output || [])
|
|
2468
|
-
.filter((e) => e != null)
|
|
2469
|
-
.map((entry) => {
|
|
2470
|
-
return de_Step(entry, context);
|
|
2471
|
-
});
|
|
2472
|
-
return retVal;
|
|
2473
|
-
};
|
|
2474
|
-
const de_Webhook = (output, context) => {
|
|
2475
|
-
return (0, smithy_client_1.take)(output, {
|
|
2476
|
-
branchName: smithy_client_1.expectString,
|
|
2477
|
-
createTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2478
|
-
description: smithy_client_1.expectString,
|
|
2479
|
-
updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2480
|
-
webhookArn: smithy_client_1.expectString,
|
|
2481
|
-
webhookId: smithy_client_1.expectString,
|
|
2482
|
-
webhookUrl: smithy_client_1.expectString,
|
|
2483
|
-
});
|
|
2484
|
-
};
|
|
2485
|
-
const de_Webhooks = (output, context) => {
|
|
2486
|
-
const retVal = (output || [])
|
|
2487
|
-
.filter((e) => e != null)
|
|
2488
|
-
.map((entry) => {
|
|
2489
|
-
return de_Webhook(entry, context);
|
|
2490
|
-
});
|
|
2491
|
-
return retVal;
|
|
2492
|
-
};
|
|
2493
|
-
const deserializeMetadata = (output) => ({
|
|
2494
|
-
httpStatusCode: output.statusCode,
|
|
2495
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2496
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2497
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2498
|
-
});
|
|
2499
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2500
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2501
|
-
value !== null &&
|
|
2502
|
-
value !== "" &&
|
|
2503
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2504
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2505
|
-
const _eN = "environmentName";
|
|
2506
|
-
const _mR = "maxResults";
|
|
2507
|
-
const _nT = "nextToken";
|
|
2508
|
-
const _tK = "tagKeys";
|
|
2509
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2510
|
-
if (encoded.length) {
|
|
2511
|
-
return JSON.parse(encoded);
|
|
2512
|
-
}
|
|
2513
|
-
return {};
|
|
2514
|
-
});
|
|
2515
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2516
|
-
const value = await parseBody(errorBody, context);
|
|
2517
|
-
value.message = value.message ?? value.Message;
|
|
2518
|
-
return value;
|
|
2519
|
-
};
|
|
2520
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2521
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2522
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2523
|
-
let cleanValue = rawValue;
|
|
2524
|
-
if (typeof cleanValue === "number") {
|
|
2525
|
-
cleanValue = cleanValue.toString();
|
|
2526
|
-
}
|
|
2527
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2528
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2529
|
-
}
|
|
2530
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2531
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2532
|
-
}
|
|
2533
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2534
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2535
|
-
}
|
|
2536
|
-
return cleanValue;
|
|
2537
|
-
};
|
|
2538
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2539
|
-
if (headerKey !== undefined) {
|
|
2540
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2541
|
-
}
|
|
2542
|
-
if (data.code !== undefined) {
|
|
2543
|
-
return sanitizeErrorCode(data.code);
|
|
2544
|
-
}
|
|
2545
|
-
if (data["__type"] !== undefined) {
|
|
2546
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2547
|
-
}
|
|
2548
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|