@aws-sdk/client-amplifybackend 3.476.0 → 3.478.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/protocols/Aws_restJson1.js +176 -412
- package/dist-es/protocols/Aws_restJson1.js +177 -413
- package/package.json +7 -6
|
@@ -2,40 +2,32 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_GetBackendStorageCommand = exports.de_GetBackendJobCommand = exports.de_GetBackendAuthCommand = exports.de_GetBackendAPIModelsCommand = exports.de_GetBackendAPICommand = exports.de_GetBackendCommand = exports.de_GenerateBackendAPIModelsCommand = exports.de_DeleteTokenCommand = exports.de_DeleteBackendStorageCommand = exports.de_DeleteBackendAuthCommand = exports.de_DeleteBackendAPICommand = exports.de_DeleteBackendCommand = exports.de_CreateTokenCommand = exports.de_CreateBackendStorageCommand = exports.de_CreateBackendConfigCommand = exports.de_CreateBackendAuthCommand = exports.de_CreateBackendAPICommand = exports.de_CreateBackendCommand = exports.de_CloneBackendCommand = exports.se_UpdateBackendStorageCommand = exports.se_UpdateBackendJobCommand = exports.se_UpdateBackendConfigCommand = exports.se_UpdateBackendAuthCommand = exports.se_UpdateBackendAPICommand = exports.se_RemoveBackendConfigCommand = exports.se_RemoveAllBackendsCommand = exports.se_ListS3BucketsCommand = exports.se_ListBackendJobsCommand = exports.se_ImportBackendStorageCommand = exports.se_ImportBackendAuthCommand = exports.se_GetTokenCommand = exports.se_GetBackendStorageCommand = exports.se_GetBackendJobCommand = exports.se_GetBackendAuthCommand = exports.se_GetBackendAPIModelsCommand = exports.se_GetBackendAPICommand = exports.se_GetBackendCommand = exports.se_GenerateBackendAPIModelsCommand = exports.se_DeleteTokenCommand = exports.se_DeleteBackendStorageCommand = exports.se_DeleteBackendAuthCommand = exports.se_DeleteBackendAPICommand = exports.se_DeleteBackendCommand = exports.se_CreateTokenCommand = exports.se_CreateBackendStorageCommand = exports.se_CreateBackendConfigCommand = exports.se_CreateBackendAuthCommand = exports.se_CreateBackendAPICommand = exports.se_CreateBackendCommand = exports.se_CloneBackendCommand = void 0;
|
|
4
4
|
exports.de_UpdateBackendStorageCommand = exports.de_UpdateBackendJobCommand = exports.de_UpdateBackendConfigCommand = exports.de_UpdateBackendAuthCommand = exports.de_UpdateBackendAPICommand = exports.de_RemoveBackendConfigCommand = exports.de_RemoveAllBackendsCommand = exports.de_ListS3BucketsCommand = exports.de_ListBackendJobsCommand = exports.de_ImportBackendStorageCommand = exports.de_ImportBackendAuthCommand = exports.de_GetTokenCommand = void 0;
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const AmplifyBackendServiceException_1 = require("../models/AmplifyBackendServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const se_CloneBackendCommand = async (input, context) => {
|
|
10
|
-
const
|
|
10
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
14
|
+
b.bp("/backend/{AppId}/environments/{BackendEnvironmentName}/clone");
|
|
15
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
16
|
+
b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
18
17
|
let body;
|
|
19
18
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
20
19
|
targetEnvironmentName: [, , `TargetEnvironmentName`],
|
|
21
20
|
}));
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
hostname,
|
|
25
|
-
port,
|
|
26
|
-
method: "POST",
|
|
27
|
-
headers,
|
|
28
|
-
path: resolvedPath,
|
|
29
|
-
body,
|
|
30
|
-
});
|
|
21
|
+
b.m("POST").h(headers).b(body);
|
|
22
|
+
return b.build();
|
|
31
23
|
};
|
|
32
24
|
exports.se_CloneBackendCommand = se_CloneBackendCommand;
|
|
33
25
|
const se_CreateBackendCommand = async (input, context) => {
|
|
34
|
-
const
|
|
26
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
35
27
|
const headers = {
|
|
36
28
|
"content-type": "application/json",
|
|
37
29
|
};
|
|
38
|
-
|
|
30
|
+
b.bp("/backend");
|
|
39
31
|
let body;
|
|
40
32
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
33
|
appId: [, , `AppId`],
|
|
@@ -44,430 +36,285 @@ const se_CreateBackendCommand = async (input, context) => {
|
|
|
44
36
|
resourceConfig: [, (_) => (0, smithy_client_1._json)(_), `ResourceConfig`],
|
|
45
37
|
resourceName: [, , `ResourceName`],
|
|
46
38
|
}));
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
hostname,
|
|
50
|
-
port,
|
|
51
|
-
method: "POST",
|
|
52
|
-
headers,
|
|
53
|
-
path: resolvedPath,
|
|
54
|
-
body,
|
|
55
|
-
});
|
|
39
|
+
b.m("POST").h(headers).b(body);
|
|
40
|
+
return b.build();
|
|
56
41
|
};
|
|
57
42
|
exports.se_CreateBackendCommand = se_CreateBackendCommand;
|
|
58
43
|
const se_CreateBackendAPICommand = async (input, context) => {
|
|
59
|
-
const
|
|
44
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
60
45
|
const headers = {
|
|
61
46
|
"content-type": "application/json",
|
|
62
47
|
};
|
|
63
|
-
|
|
64
|
-
|
|
48
|
+
b.bp("/backend/{AppId}/api");
|
|
49
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
65
50
|
let body;
|
|
66
51
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
67
52
|
backendEnvironmentName: [, , `BackendEnvironmentName`],
|
|
68
53
|
resourceConfig: [, (_) => se_BackendAPIResourceConfig(_, context), `ResourceConfig`],
|
|
69
54
|
resourceName: [, , `ResourceName`],
|
|
70
55
|
}));
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
hostname,
|
|
74
|
-
port,
|
|
75
|
-
method: "POST",
|
|
76
|
-
headers,
|
|
77
|
-
path: resolvedPath,
|
|
78
|
-
body,
|
|
79
|
-
});
|
|
56
|
+
b.m("POST").h(headers).b(body);
|
|
57
|
+
return b.build();
|
|
80
58
|
};
|
|
81
59
|
exports.se_CreateBackendAPICommand = se_CreateBackendAPICommand;
|
|
82
60
|
const se_CreateBackendAuthCommand = async (input, context) => {
|
|
83
|
-
const
|
|
61
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
84
62
|
const headers = {
|
|
85
63
|
"content-type": "application/json",
|
|
86
64
|
};
|
|
87
|
-
|
|
88
|
-
|
|
65
|
+
b.bp("/backend/{AppId}/auth");
|
|
66
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
89
67
|
let body;
|
|
90
68
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
91
69
|
backendEnvironmentName: [, , `BackendEnvironmentName`],
|
|
92
70
|
resourceConfig: [, (_) => se_CreateBackendAuthResourceConfig(_, context), `ResourceConfig`],
|
|
93
71
|
resourceName: [, , `ResourceName`],
|
|
94
72
|
}));
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
hostname,
|
|
98
|
-
port,
|
|
99
|
-
method: "POST",
|
|
100
|
-
headers,
|
|
101
|
-
path: resolvedPath,
|
|
102
|
-
body,
|
|
103
|
-
});
|
|
73
|
+
b.m("POST").h(headers).b(body);
|
|
74
|
+
return b.build();
|
|
104
75
|
};
|
|
105
76
|
exports.se_CreateBackendAuthCommand = se_CreateBackendAuthCommand;
|
|
106
77
|
const se_CreateBackendConfigCommand = async (input, context) => {
|
|
107
|
-
const
|
|
78
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
108
79
|
const headers = {
|
|
109
80
|
"content-type": "application/json",
|
|
110
81
|
};
|
|
111
|
-
|
|
112
|
-
|
|
82
|
+
b.bp("/backend/{AppId}/config");
|
|
83
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
113
84
|
let body;
|
|
114
85
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
115
86
|
backendManagerAppId: [, , `BackendManagerAppId`],
|
|
116
87
|
}));
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
hostname,
|
|
120
|
-
port,
|
|
121
|
-
method: "POST",
|
|
122
|
-
headers,
|
|
123
|
-
path: resolvedPath,
|
|
124
|
-
body,
|
|
125
|
-
});
|
|
88
|
+
b.m("POST").h(headers).b(body);
|
|
89
|
+
return b.build();
|
|
126
90
|
};
|
|
127
91
|
exports.se_CreateBackendConfigCommand = se_CreateBackendConfigCommand;
|
|
128
92
|
const se_CreateBackendStorageCommand = async (input, context) => {
|
|
129
|
-
const
|
|
93
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
130
94
|
const headers = {
|
|
131
95
|
"content-type": "application/json",
|
|
132
96
|
};
|
|
133
|
-
|
|
134
|
-
|
|
97
|
+
b.bp("/backend/{AppId}/storage");
|
|
98
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
135
99
|
let body;
|
|
136
100
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
137
101
|
backendEnvironmentName: [, , `BackendEnvironmentName`],
|
|
138
102
|
resourceConfig: [, (_) => se_CreateBackendStorageResourceConfig(_, context), `ResourceConfig`],
|
|
139
103
|
resourceName: [, , `ResourceName`],
|
|
140
104
|
}));
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
hostname,
|
|
144
|
-
port,
|
|
145
|
-
method: "POST",
|
|
146
|
-
headers,
|
|
147
|
-
path: resolvedPath,
|
|
148
|
-
body,
|
|
149
|
-
});
|
|
105
|
+
b.m("POST").h(headers).b(body);
|
|
106
|
+
return b.build();
|
|
150
107
|
};
|
|
151
108
|
exports.se_CreateBackendStorageCommand = se_CreateBackendStorageCommand;
|
|
152
109
|
const se_CreateTokenCommand = async (input, context) => {
|
|
153
|
-
const
|
|
110
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
154
111
|
const headers = {};
|
|
155
|
-
|
|
156
|
-
|
|
112
|
+
b.bp("/backend/{AppId}/challenge");
|
|
113
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
157
114
|
let body;
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
hostname,
|
|
161
|
-
port,
|
|
162
|
-
method: "POST",
|
|
163
|
-
headers,
|
|
164
|
-
path: resolvedPath,
|
|
165
|
-
body,
|
|
166
|
-
});
|
|
115
|
+
b.m("POST").h(headers).b(body);
|
|
116
|
+
return b.build();
|
|
167
117
|
};
|
|
168
118
|
exports.se_CreateTokenCommand = se_CreateTokenCommand;
|
|
169
119
|
const se_DeleteBackendCommand = async (input, context) => {
|
|
170
|
-
const
|
|
120
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
171
121
|
const headers = {};
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
122
|
+
b.bp("/backend/{AppId}/environments/{BackendEnvironmentName}/remove");
|
|
123
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
124
|
+
b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
176
125
|
let body;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
hostname,
|
|
180
|
-
port,
|
|
181
|
-
method: "POST",
|
|
182
|
-
headers,
|
|
183
|
-
path: resolvedPath,
|
|
184
|
-
body,
|
|
185
|
-
});
|
|
126
|
+
b.m("POST").h(headers).b(body);
|
|
127
|
+
return b.build();
|
|
186
128
|
};
|
|
187
129
|
exports.se_DeleteBackendCommand = se_DeleteBackendCommand;
|
|
188
130
|
const se_DeleteBackendAPICommand = async (input, context) => {
|
|
189
|
-
const
|
|
131
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
190
132
|
const headers = {
|
|
191
133
|
"content-type": "application/json",
|
|
192
134
|
};
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
135
|
+
b.bp("/backend/{AppId}/api/{BackendEnvironmentName}/remove");
|
|
136
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
137
|
+
b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
197
138
|
let body;
|
|
198
139
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
199
140
|
resourceConfig: [, (_) => se_BackendAPIResourceConfig(_, context), `ResourceConfig`],
|
|
200
141
|
resourceName: [, , `ResourceName`],
|
|
201
142
|
}));
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
hostname,
|
|
205
|
-
port,
|
|
206
|
-
method: "POST",
|
|
207
|
-
headers,
|
|
208
|
-
path: resolvedPath,
|
|
209
|
-
body,
|
|
210
|
-
});
|
|
143
|
+
b.m("POST").h(headers).b(body);
|
|
144
|
+
return b.build();
|
|
211
145
|
};
|
|
212
146
|
exports.se_DeleteBackendAPICommand = se_DeleteBackendAPICommand;
|
|
213
147
|
const se_DeleteBackendAuthCommand = async (input, context) => {
|
|
214
|
-
const
|
|
148
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
215
149
|
const headers = {
|
|
216
150
|
"content-type": "application/json",
|
|
217
151
|
};
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
152
|
+
b.bp("/backend/{AppId}/auth/{BackendEnvironmentName}/remove");
|
|
153
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
154
|
+
b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
222
155
|
let body;
|
|
223
156
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
224
157
|
resourceName: [, , `ResourceName`],
|
|
225
158
|
}));
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
hostname,
|
|
229
|
-
port,
|
|
230
|
-
method: "POST",
|
|
231
|
-
headers,
|
|
232
|
-
path: resolvedPath,
|
|
233
|
-
body,
|
|
234
|
-
});
|
|
159
|
+
b.m("POST").h(headers).b(body);
|
|
160
|
+
return b.build();
|
|
235
161
|
};
|
|
236
162
|
exports.se_DeleteBackendAuthCommand = se_DeleteBackendAuthCommand;
|
|
237
163
|
const se_DeleteBackendStorageCommand = async (input, context) => {
|
|
238
|
-
const
|
|
164
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
239
165
|
const headers = {
|
|
240
166
|
"content-type": "application/json",
|
|
241
167
|
};
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
168
|
+
b.bp("/backend/{AppId}/storage/{BackendEnvironmentName}/remove");
|
|
169
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
170
|
+
b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
246
171
|
let body;
|
|
247
172
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
248
173
|
resourceName: [, , `ResourceName`],
|
|
249
174
|
serviceName: [, , `ServiceName`],
|
|
250
175
|
}));
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
hostname,
|
|
254
|
-
port,
|
|
255
|
-
method: "POST",
|
|
256
|
-
headers,
|
|
257
|
-
path: resolvedPath,
|
|
258
|
-
body,
|
|
259
|
-
});
|
|
176
|
+
b.m("POST").h(headers).b(body);
|
|
177
|
+
return b.build();
|
|
260
178
|
};
|
|
261
179
|
exports.se_DeleteBackendStorageCommand = se_DeleteBackendStorageCommand;
|
|
262
180
|
const se_DeleteTokenCommand = async (input, context) => {
|
|
263
|
-
const
|
|
181
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
264
182
|
const headers = {};
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SessionId", () => input.SessionId, "{SessionId}", false);
|
|
183
|
+
b.bp("/backend/{AppId}/challenge/{SessionId}/remove");
|
|
184
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
185
|
+
b.p("SessionId", () => input.SessionId, "{SessionId}", false);
|
|
269
186
|
let body;
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
hostname,
|
|
273
|
-
port,
|
|
274
|
-
method: "POST",
|
|
275
|
-
headers,
|
|
276
|
-
path: resolvedPath,
|
|
277
|
-
body,
|
|
278
|
-
});
|
|
187
|
+
b.m("POST").h(headers).b(body);
|
|
188
|
+
return b.build();
|
|
279
189
|
};
|
|
280
190
|
exports.se_DeleteTokenCommand = se_DeleteTokenCommand;
|
|
281
191
|
const se_GenerateBackendAPIModelsCommand = async (input, context) => {
|
|
282
|
-
const
|
|
192
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
283
193
|
const headers = {
|
|
284
194
|
"content-type": "application/json",
|
|
285
195
|
};
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
196
|
+
b.bp("/backend/{AppId}/api/{BackendEnvironmentName}/generateModels");
|
|
197
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
198
|
+
b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
290
199
|
let body;
|
|
291
200
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
292
201
|
resourceName: [, , `ResourceName`],
|
|
293
202
|
}));
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
hostname,
|
|
297
|
-
port,
|
|
298
|
-
method: "POST",
|
|
299
|
-
headers,
|
|
300
|
-
path: resolvedPath,
|
|
301
|
-
body,
|
|
302
|
-
});
|
|
203
|
+
b.m("POST").h(headers).b(body);
|
|
204
|
+
return b.build();
|
|
303
205
|
};
|
|
304
206
|
exports.se_GenerateBackendAPIModelsCommand = se_GenerateBackendAPIModelsCommand;
|
|
305
207
|
const se_GetBackendCommand = async (input, context) => {
|
|
306
|
-
const
|
|
208
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
307
209
|
const headers = {
|
|
308
210
|
"content-type": "application/json",
|
|
309
211
|
};
|
|
310
|
-
|
|
311
|
-
|
|
212
|
+
b.bp("/backend/{AppId}/details");
|
|
213
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
312
214
|
let body;
|
|
313
215
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
314
216
|
backendEnvironmentName: [, , `BackendEnvironmentName`],
|
|
315
217
|
}));
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
hostname,
|
|
319
|
-
port,
|
|
320
|
-
method: "POST",
|
|
321
|
-
headers,
|
|
322
|
-
path: resolvedPath,
|
|
323
|
-
body,
|
|
324
|
-
});
|
|
218
|
+
b.m("POST").h(headers).b(body);
|
|
219
|
+
return b.build();
|
|
325
220
|
};
|
|
326
221
|
exports.se_GetBackendCommand = se_GetBackendCommand;
|
|
327
222
|
const se_GetBackendAPICommand = async (input, context) => {
|
|
328
|
-
const
|
|
223
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
329
224
|
const headers = {
|
|
330
225
|
"content-type": "application/json",
|
|
331
226
|
};
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
227
|
+
b.bp("/backend/{AppId}/api/{BackendEnvironmentName}/details");
|
|
228
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
229
|
+
b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
336
230
|
let body;
|
|
337
231
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
338
232
|
resourceConfig: [, (_) => se_BackendAPIResourceConfig(_, context), `ResourceConfig`],
|
|
339
233
|
resourceName: [, , `ResourceName`],
|
|
340
234
|
}));
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
hostname,
|
|
344
|
-
port,
|
|
345
|
-
method: "POST",
|
|
346
|
-
headers,
|
|
347
|
-
path: resolvedPath,
|
|
348
|
-
body,
|
|
349
|
-
});
|
|
235
|
+
b.m("POST").h(headers).b(body);
|
|
236
|
+
return b.build();
|
|
350
237
|
};
|
|
351
238
|
exports.se_GetBackendAPICommand = se_GetBackendAPICommand;
|
|
352
239
|
const se_GetBackendAPIModelsCommand = async (input, context) => {
|
|
353
|
-
const
|
|
240
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
354
241
|
const headers = {
|
|
355
242
|
"content-type": "application/json",
|
|
356
243
|
};
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
244
|
+
b.bp("/backend/{AppId}/api/{BackendEnvironmentName}/getModels");
|
|
245
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
246
|
+
b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
361
247
|
let body;
|
|
362
248
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
363
249
|
resourceName: [, , `ResourceName`],
|
|
364
250
|
}));
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
hostname,
|
|
368
|
-
port,
|
|
369
|
-
method: "POST",
|
|
370
|
-
headers,
|
|
371
|
-
path: resolvedPath,
|
|
372
|
-
body,
|
|
373
|
-
});
|
|
251
|
+
b.m("POST").h(headers).b(body);
|
|
252
|
+
return b.build();
|
|
374
253
|
};
|
|
375
254
|
exports.se_GetBackendAPIModelsCommand = se_GetBackendAPIModelsCommand;
|
|
376
255
|
const se_GetBackendAuthCommand = async (input, context) => {
|
|
377
|
-
const
|
|
256
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
378
257
|
const headers = {
|
|
379
258
|
"content-type": "application/json",
|
|
380
259
|
};
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
260
|
+
b.bp("/backend/{AppId}/auth/{BackendEnvironmentName}/details");
|
|
261
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
262
|
+
b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
385
263
|
let body;
|
|
386
264
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
387
265
|
resourceName: [, , `ResourceName`],
|
|
388
266
|
}));
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
hostname,
|
|
392
|
-
port,
|
|
393
|
-
method: "POST",
|
|
394
|
-
headers,
|
|
395
|
-
path: resolvedPath,
|
|
396
|
-
body,
|
|
397
|
-
});
|
|
267
|
+
b.m("POST").h(headers).b(body);
|
|
268
|
+
return b.build();
|
|
398
269
|
};
|
|
399
270
|
exports.se_GetBackendAuthCommand = se_GetBackendAuthCommand;
|
|
400
271
|
const se_GetBackendJobCommand = async (input, context) => {
|
|
401
|
-
const
|
|
272
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
402
273
|
const headers = {};
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
|
|
274
|
+
b.bp("/backend/{AppId}/job/{BackendEnvironmentName}/{JobId}");
|
|
275
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
276
|
+
b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
277
|
+
b.p("JobId", () => input.JobId, "{JobId}", false);
|
|
408
278
|
let body;
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
hostname,
|
|
412
|
-
port,
|
|
413
|
-
method: "GET",
|
|
414
|
-
headers,
|
|
415
|
-
path: resolvedPath,
|
|
416
|
-
body,
|
|
417
|
-
});
|
|
279
|
+
b.m("GET").h(headers).b(body);
|
|
280
|
+
return b.build();
|
|
418
281
|
};
|
|
419
282
|
exports.se_GetBackendJobCommand = se_GetBackendJobCommand;
|
|
420
283
|
const se_GetBackendStorageCommand = async (input, context) => {
|
|
421
|
-
const
|
|
284
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
422
285
|
const headers = {
|
|
423
286
|
"content-type": "application/json",
|
|
424
287
|
};
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
288
|
+
b.bp("/backend/{AppId}/storage/{BackendEnvironmentName}/details");
|
|
289
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
290
|
+
b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
429
291
|
let body;
|
|
430
292
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
431
293
|
resourceName: [, , `ResourceName`],
|
|
432
294
|
}));
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
hostname,
|
|
436
|
-
port,
|
|
437
|
-
method: "POST",
|
|
438
|
-
headers,
|
|
439
|
-
path: resolvedPath,
|
|
440
|
-
body,
|
|
441
|
-
});
|
|
295
|
+
b.m("POST").h(headers).b(body);
|
|
296
|
+
return b.build();
|
|
442
297
|
};
|
|
443
298
|
exports.se_GetBackendStorageCommand = se_GetBackendStorageCommand;
|
|
444
299
|
const se_GetTokenCommand = async (input, context) => {
|
|
445
|
-
const
|
|
300
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
446
301
|
const headers = {};
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
302
|
+
b.bp("/backend/{AppId}/challenge/{SessionId}");
|
|
303
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
304
|
+
b.p("SessionId", () => input.SessionId, "{SessionId}", false);
|
|
450
305
|
let body;
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
hostname,
|
|
454
|
-
port,
|
|
455
|
-
method: "GET",
|
|
456
|
-
headers,
|
|
457
|
-
path: resolvedPath,
|
|
458
|
-
body,
|
|
459
|
-
});
|
|
306
|
+
b.m("GET").h(headers).b(body);
|
|
307
|
+
return b.build();
|
|
460
308
|
};
|
|
461
309
|
exports.se_GetTokenCommand = se_GetTokenCommand;
|
|
462
310
|
const se_ImportBackendAuthCommand = async (input, context) => {
|
|
463
|
-
const
|
|
311
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
464
312
|
const headers = {
|
|
465
313
|
"content-type": "application/json",
|
|
466
314
|
};
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
315
|
+
b.bp("/backend/{AppId}/auth/{BackendEnvironmentName}/import");
|
|
316
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
317
|
+
b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
471
318
|
let body;
|
|
472
319
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
473
320
|
identityPoolId: [, , `IdentityPoolId`],
|
|
@@ -475,51 +322,35 @@ const se_ImportBackendAuthCommand = async (input, context) => {
|
|
|
475
322
|
userPoolId: [, , `UserPoolId`],
|
|
476
323
|
webClientId: [, , `WebClientId`],
|
|
477
324
|
}));
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
hostname,
|
|
481
|
-
port,
|
|
482
|
-
method: "POST",
|
|
483
|
-
headers,
|
|
484
|
-
path: resolvedPath,
|
|
485
|
-
body,
|
|
486
|
-
});
|
|
325
|
+
b.m("POST").h(headers).b(body);
|
|
326
|
+
return b.build();
|
|
487
327
|
};
|
|
488
328
|
exports.se_ImportBackendAuthCommand = se_ImportBackendAuthCommand;
|
|
489
329
|
const se_ImportBackendStorageCommand = async (input, context) => {
|
|
490
|
-
const
|
|
330
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
491
331
|
const headers = {
|
|
492
332
|
"content-type": "application/json",
|
|
493
333
|
};
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
334
|
+
b.bp("/backend/{AppId}/storage/{BackendEnvironmentName}/import");
|
|
335
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
336
|
+
b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
498
337
|
let body;
|
|
499
338
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
500
339
|
bucketName: [, , `BucketName`],
|
|
501
340
|
serviceName: [, , `ServiceName`],
|
|
502
341
|
}));
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
hostname,
|
|
506
|
-
port,
|
|
507
|
-
method: "POST",
|
|
508
|
-
headers,
|
|
509
|
-
path: resolvedPath,
|
|
510
|
-
body,
|
|
511
|
-
});
|
|
342
|
+
b.m("POST").h(headers).b(body);
|
|
343
|
+
return b.build();
|
|
512
344
|
};
|
|
513
345
|
exports.se_ImportBackendStorageCommand = se_ImportBackendStorageCommand;
|
|
514
346
|
const se_ListBackendJobsCommand = async (input, context) => {
|
|
515
|
-
const
|
|
347
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
516
348
|
const headers = {
|
|
517
349
|
"content-type": "application/json",
|
|
518
350
|
};
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
351
|
+
b.bp("/backend/{AppId}/job/{BackendEnvironmentName}");
|
|
352
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
353
|
+
b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
523
354
|
let body;
|
|
524
355
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
525
356
|
jobId: [, , `JobId`],
|
|
@@ -528,198 +359,131 @@ const se_ListBackendJobsCommand = async (input, context) => {
|
|
|
528
359
|
operation: [, , `Operation`],
|
|
529
360
|
status: [, , `Status`],
|
|
530
361
|
}));
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
hostname,
|
|
534
|
-
port,
|
|
535
|
-
method: "POST",
|
|
536
|
-
headers,
|
|
537
|
-
path: resolvedPath,
|
|
538
|
-
body,
|
|
539
|
-
});
|
|
362
|
+
b.m("POST").h(headers).b(body);
|
|
363
|
+
return b.build();
|
|
540
364
|
};
|
|
541
365
|
exports.se_ListBackendJobsCommand = se_ListBackendJobsCommand;
|
|
542
366
|
const se_ListS3BucketsCommand = async (input, context) => {
|
|
543
|
-
const
|
|
367
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
544
368
|
const headers = {
|
|
545
369
|
"content-type": "application/json",
|
|
546
370
|
};
|
|
547
|
-
|
|
371
|
+
b.bp("/s3Buckets");
|
|
548
372
|
let body;
|
|
549
373
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
550
374
|
nextToken: [, , `NextToken`],
|
|
551
375
|
}));
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
hostname,
|
|
555
|
-
port,
|
|
556
|
-
method: "POST",
|
|
557
|
-
headers,
|
|
558
|
-
path: resolvedPath,
|
|
559
|
-
body,
|
|
560
|
-
});
|
|
376
|
+
b.m("POST").h(headers).b(body);
|
|
377
|
+
return b.build();
|
|
561
378
|
};
|
|
562
379
|
exports.se_ListS3BucketsCommand = se_ListS3BucketsCommand;
|
|
563
380
|
const se_RemoveAllBackendsCommand = async (input, context) => {
|
|
564
|
-
const
|
|
381
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
565
382
|
const headers = {
|
|
566
383
|
"content-type": "application/json",
|
|
567
384
|
};
|
|
568
|
-
|
|
569
|
-
|
|
385
|
+
b.bp("/backend/{AppId}/remove");
|
|
386
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
570
387
|
let body;
|
|
571
388
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
572
389
|
cleanAmplifyApp: [, , `CleanAmplifyApp`],
|
|
573
390
|
}));
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
hostname,
|
|
577
|
-
port,
|
|
578
|
-
method: "POST",
|
|
579
|
-
headers,
|
|
580
|
-
path: resolvedPath,
|
|
581
|
-
body,
|
|
582
|
-
});
|
|
391
|
+
b.m("POST").h(headers).b(body);
|
|
392
|
+
return b.build();
|
|
583
393
|
};
|
|
584
394
|
exports.se_RemoveAllBackendsCommand = se_RemoveAllBackendsCommand;
|
|
585
395
|
const se_RemoveBackendConfigCommand = async (input, context) => {
|
|
586
|
-
const
|
|
396
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
587
397
|
const headers = {};
|
|
588
|
-
|
|
589
|
-
|
|
398
|
+
b.bp("/backend/{AppId}/config/remove");
|
|
399
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
590
400
|
let body;
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
hostname,
|
|
594
|
-
port,
|
|
595
|
-
method: "POST",
|
|
596
|
-
headers,
|
|
597
|
-
path: resolvedPath,
|
|
598
|
-
body,
|
|
599
|
-
});
|
|
401
|
+
b.m("POST").h(headers).b(body);
|
|
402
|
+
return b.build();
|
|
600
403
|
};
|
|
601
404
|
exports.se_RemoveBackendConfigCommand = se_RemoveBackendConfigCommand;
|
|
602
405
|
const se_UpdateBackendAPICommand = async (input, context) => {
|
|
603
|
-
const
|
|
406
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
604
407
|
const headers = {
|
|
605
408
|
"content-type": "application/json",
|
|
606
409
|
};
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
410
|
+
b.bp("/backend/{AppId}/api/{BackendEnvironmentName}");
|
|
411
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
412
|
+
b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
611
413
|
let body;
|
|
612
414
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
613
415
|
resourceConfig: [, (_) => se_BackendAPIResourceConfig(_, context), `ResourceConfig`],
|
|
614
416
|
resourceName: [, , `ResourceName`],
|
|
615
417
|
}));
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
hostname,
|
|
619
|
-
port,
|
|
620
|
-
method: "POST",
|
|
621
|
-
headers,
|
|
622
|
-
path: resolvedPath,
|
|
623
|
-
body,
|
|
624
|
-
});
|
|
418
|
+
b.m("POST").h(headers).b(body);
|
|
419
|
+
return b.build();
|
|
625
420
|
};
|
|
626
421
|
exports.se_UpdateBackendAPICommand = se_UpdateBackendAPICommand;
|
|
627
422
|
const se_UpdateBackendAuthCommand = async (input, context) => {
|
|
628
|
-
const
|
|
423
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
629
424
|
const headers = {
|
|
630
425
|
"content-type": "application/json",
|
|
631
426
|
};
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
427
|
+
b.bp("/backend/{AppId}/auth/{BackendEnvironmentName}");
|
|
428
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
429
|
+
b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
636
430
|
let body;
|
|
637
431
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
638
432
|
resourceConfig: [, (_) => se_UpdateBackendAuthResourceConfig(_, context), `ResourceConfig`],
|
|
639
433
|
resourceName: [, , `ResourceName`],
|
|
640
434
|
}));
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
hostname,
|
|
644
|
-
port,
|
|
645
|
-
method: "POST",
|
|
646
|
-
headers,
|
|
647
|
-
path: resolvedPath,
|
|
648
|
-
body,
|
|
649
|
-
});
|
|
435
|
+
b.m("POST").h(headers).b(body);
|
|
436
|
+
return b.build();
|
|
650
437
|
};
|
|
651
438
|
exports.se_UpdateBackendAuthCommand = se_UpdateBackendAuthCommand;
|
|
652
439
|
const se_UpdateBackendConfigCommand = async (input, context) => {
|
|
653
|
-
const
|
|
440
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
654
441
|
const headers = {
|
|
655
442
|
"content-type": "application/json",
|
|
656
443
|
};
|
|
657
|
-
|
|
658
|
-
|
|
444
|
+
b.bp("/backend/{AppId}/config/update");
|
|
445
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
659
446
|
let body;
|
|
660
447
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
661
448
|
loginAuthConfig: [, (_) => se_LoginAuthConfigReqObj(_, context), `LoginAuthConfig`],
|
|
662
449
|
}));
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
hostname,
|
|
666
|
-
port,
|
|
667
|
-
method: "POST",
|
|
668
|
-
headers,
|
|
669
|
-
path: resolvedPath,
|
|
670
|
-
body,
|
|
671
|
-
});
|
|
450
|
+
b.m("POST").h(headers).b(body);
|
|
451
|
+
return b.build();
|
|
672
452
|
};
|
|
673
453
|
exports.se_UpdateBackendConfigCommand = se_UpdateBackendConfigCommand;
|
|
674
454
|
const se_UpdateBackendJobCommand = async (input, context) => {
|
|
675
|
-
const
|
|
455
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
676
456
|
const headers = {
|
|
677
457
|
"content-type": "application/json",
|
|
678
458
|
};
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
|
|
459
|
+
b.bp("/backend/{AppId}/job/{BackendEnvironmentName}/{JobId}");
|
|
460
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
461
|
+
b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
462
|
+
b.p("JobId", () => input.JobId, "{JobId}", false);
|
|
684
463
|
let body;
|
|
685
464
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
686
465
|
operation: [, , `Operation`],
|
|
687
466
|
status: [, , `Status`],
|
|
688
467
|
}));
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
hostname,
|
|
692
|
-
port,
|
|
693
|
-
method: "POST",
|
|
694
|
-
headers,
|
|
695
|
-
path: resolvedPath,
|
|
696
|
-
body,
|
|
697
|
-
});
|
|
468
|
+
b.m("POST").h(headers).b(body);
|
|
469
|
+
return b.build();
|
|
698
470
|
};
|
|
699
471
|
exports.se_UpdateBackendJobCommand = se_UpdateBackendJobCommand;
|
|
700
472
|
const se_UpdateBackendStorageCommand = async (input, context) => {
|
|
701
|
-
const
|
|
473
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
702
474
|
const headers = {
|
|
703
475
|
"content-type": "application/json",
|
|
704
476
|
};
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
477
|
+
b.bp("/backend/{AppId}/storage/{BackendEnvironmentName}");
|
|
478
|
+
b.p("AppId", () => input.AppId, "{AppId}", false);
|
|
479
|
+
b.p("BackendEnvironmentName", () => input.BackendEnvironmentName, "{BackendEnvironmentName}", false);
|
|
709
480
|
let body;
|
|
710
481
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
711
482
|
resourceConfig: [, (_) => se_UpdateBackendStorageResourceConfig(_, context), `ResourceConfig`],
|
|
712
483
|
resourceName: [, , `ResourceName`],
|
|
713
484
|
}));
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
hostname,
|
|
717
|
-
port,
|
|
718
|
-
method: "POST",
|
|
719
|
-
headers,
|
|
720
|
-
path: resolvedPath,
|
|
721
|
-
body,
|
|
722
|
-
});
|
|
485
|
+
b.m("POST").h(headers).b(body);
|
|
486
|
+
return b.build();
|
|
723
487
|
};
|
|
724
488
|
exports.se_UpdateBackendStorageCommand = se_UpdateBackendStorageCommand;
|
|
725
489
|
const de_CloneBackendCommand = async (output, context) => {
|