@aws-sdk/client-mediaconvert 3.476.0 → 3.477.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 +160 -346
- package/dist-es/protocols/Aws_restJson1.js +161 -347
- package/package.json +5 -4
|
@@ -1,50 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { MediaConvertServiceException as __BaseException } from "../models/MediaConvertServiceException";
|
|
5
5
|
import { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, NotFoundException, TooManyRequestsException, } from "../models/models_1";
|
|
6
6
|
export const se_AssociateCertificateCommand = async (input, context) => {
|
|
7
|
-
const
|
|
7
|
+
const b = rb(input, context);
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
b.bp("/2017-08-29/certificates");
|
|
12
12
|
let body;
|
|
13
13
|
body = JSON.stringify(take(input, {
|
|
14
14
|
arn: [, , `Arn`],
|
|
15
15
|
}));
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
hostname,
|
|
19
|
-
port,
|
|
20
|
-
method: "POST",
|
|
21
|
-
headers,
|
|
22
|
-
path: resolvedPath,
|
|
23
|
-
body,
|
|
24
|
-
});
|
|
16
|
+
b.m("POST").h(headers).b(body);
|
|
17
|
+
return b.build();
|
|
25
18
|
};
|
|
26
19
|
export const se_CancelJobCommand = async (input, context) => {
|
|
27
|
-
const
|
|
20
|
+
const b = rb(input, context);
|
|
28
21
|
const headers = {};
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
b.bp("/2017-08-29/jobs/{Id}");
|
|
23
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
31
24
|
let body;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
hostname,
|
|
35
|
-
port,
|
|
36
|
-
method: "DELETE",
|
|
37
|
-
headers,
|
|
38
|
-
path: resolvedPath,
|
|
39
|
-
body,
|
|
40
|
-
});
|
|
25
|
+
b.m("DELETE").h(headers).b(body);
|
|
26
|
+
return b.build();
|
|
41
27
|
};
|
|
42
28
|
export const se_CreateJobCommand = async (input, context) => {
|
|
43
|
-
const
|
|
29
|
+
const b = rb(input, context);
|
|
44
30
|
const headers = {
|
|
45
31
|
"content-type": "application/json",
|
|
46
32
|
};
|
|
47
|
-
|
|
33
|
+
b.bp("/2017-08-29/jobs");
|
|
48
34
|
let body;
|
|
49
35
|
body = JSON.stringify(take(input, {
|
|
50
36
|
accelerationSettings: [, (_) => se_AccelerationSettings(_, context), `AccelerationSettings`],
|
|
@@ -61,22 +47,15 @@ export const se_CreateJobCommand = async (input, context) => {
|
|
|
61
47
|
tags: [, (_) => _json(_), `Tags`],
|
|
62
48
|
userMetadata: [, (_) => _json(_), `UserMetadata`],
|
|
63
49
|
}));
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
hostname,
|
|
67
|
-
port,
|
|
68
|
-
method: "POST",
|
|
69
|
-
headers,
|
|
70
|
-
path: resolvedPath,
|
|
71
|
-
body,
|
|
72
|
-
});
|
|
50
|
+
b.m("POST").h(headers).b(body);
|
|
51
|
+
return b.build();
|
|
73
52
|
};
|
|
74
53
|
export const se_CreateJobTemplateCommand = async (input, context) => {
|
|
75
|
-
const
|
|
54
|
+
const b = rb(input, context);
|
|
76
55
|
const headers = {
|
|
77
56
|
"content-type": "application/json",
|
|
78
57
|
};
|
|
79
|
-
|
|
58
|
+
b.bp("/2017-08-29/jobTemplates");
|
|
80
59
|
let body;
|
|
81
60
|
body = JSON.stringify(take(input, {
|
|
82
61
|
accelerationSettings: [, (_) => se_AccelerationSettings(_, context), `AccelerationSettings`],
|
|
@@ -90,22 +69,15 @@ export const se_CreateJobTemplateCommand = async (input, context) => {
|
|
|
90
69
|
statusUpdateInterval: [, , `StatusUpdateInterval`],
|
|
91
70
|
tags: [, (_) => _json(_), `Tags`],
|
|
92
71
|
}));
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
hostname,
|
|
96
|
-
port,
|
|
97
|
-
method: "POST",
|
|
98
|
-
headers,
|
|
99
|
-
path: resolvedPath,
|
|
100
|
-
body,
|
|
101
|
-
});
|
|
72
|
+
b.m("POST").h(headers).b(body);
|
|
73
|
+
return b.build();
|
|
102
74
|
};
|
|
103
75
|
export const se_CreatePresetCommand = async (input, context) => {
|
|
104
|
-
const
|
|
76
|
+
const b = rb(input, context);
|
|
105
77
|
const headers = {
|
|
106
78
|
"content-type": "application/json",
|
|
107
79
|
};
|
|
108
|
-
|
|
80
|
+
b.bp("/2017-08-29/presets");
|
|
109
81
|
let body;
|
|
110
82
|
body = JSON.stringify(take(input, {
|
|
111
83
|
category: [, , `Category`],
|
|
@@ -114,22 +86,15 @@ export const se_CreatePresetCommand = async (input, context) => {
|
|
|
114
86
|
settings: [, (_) => se_PresetSettings(_, context), `Settings`],
|
|
115
87
|
tags: [, (_) => _json(_), `Tags`],
|
|
116
88
|
}));
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
hostname,
|
|
120
|
-
port,
|
|
121
|
-
method: "POST",
|
|
122
|
-
headers,
|
|
123
|
-
path: resolvedPath,
|
|
124
|
-
body,
|
|
125
|
-
});
|
|
89
|
+
b.m("POST").h(headers).b(body);
|
|
90
|
+
return b.build();
|
|
126
91
|
};
|
|
127
92
|
export const se_CreateQueueCommand = async (input, context) => {
|
|
128
|
-
const
|
|
93
|
+
const b = rb(input, context);
|
|
129
94
|
const headers = {
|
|
130
95
|
"content-type": "application/json",
|
|
131
96
|
};
|
|
132
|
-
|
|
97
|
+
b.bp("/2017-08-29/queues");
|
|
133
98
|
let body;
|
|
134
99
|
body = JSON.stringify(take(input, {
|
|
135
100
|
description: [, , `Description`],
|
|
@@ -139,378 +104,234 @@ export const se_CreateQueueCommand = async (input, context) => {
|
|
|
139
104
|
status: [, , `Status`],
|
|
140
105
|
tags: [, (_) => _json(_), `Tags`],
|
|
141
106
|
}));
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
hostname,
|
|
145
|
-
port,
|
|
146
|
-
method: "POST",
|
|
147
|
-
headers,
|
|
148
|
-
path: resolvedPath,
|
|
149
|
-
body,
|
|
150
|
-
});
|
|
107
|
+
b.m("POST").h(headers).b(body);
|
|
108
|
+
return b.build();
|
|
151
109
|
};
|
|
152
110
|
export const se_DeleteJobTemplateCommand = async (input, context) => {
|
|
153
|
-
const
|
|
111
|
+
const b = rb(input, context);
|
|
154
112
|
const headers = {};
|
|
155
|
-
|
|
156
|
-
|
|
113
|
+
b.bp("/2017-08-29/jobTemplates/{Name}");
|
|
114
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
157
115
|
let body;
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
hostname,
|
|
161
|
-
port,
|
|
162
|
-
method: "DELETE",
|
|
163
|
-
headers,
|
|
164
|
-
path: resolvedPath,
|
|
165
|
-
body,
|
|
166
|
-
});
|
|
116
|
+
b.m("DELETE").h(headers).b(body);
|
|
117
|
+
return b.build();
|
|
167
118
|
};
|
|
168
119
|
export const se_DeletePolicyCommand = async (input, context) => {
|
|
169
|
-
const
|
|
120
|
+
const b = rb(input, context);
|
|
170
121
|
const headers = {
|
|
171
122
|
"content-type": "application/json",
|
|
172
123
|
};
|
|
173
|
-
|
|
124
|
+
b.bp("/2017-08-29/policy");
|
|
174
125
|
let body;
|
|
175
126
|
body = "";
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
hostname,
|
|
179
|
-
port,
|
|
180
|
-
method: "DELETE",
|
|
181
|
-
headers,
|
|
182
|
-
path: resolvedPath,
|
|
183
|
-
body,
|
|
184
|
-
});
|
|
127
|
+
b.m("DELETE").h(headers).b(body);
|
|
128
|
+
return b.build();
|
|
185
129
|
};
|
|
186
130
|
export const se_DeletePresetCommand = async (input, context) => {
|
|
187
|
-
const
|
|
131
|
+
const b = rb(input, context);
|
|
188
132
|
const headers = {};
|
|
189
|
-
|
|
190
|
-
|
|
133
|
+
b.bp("/2017-08-29/presets/{Name}");
|
|
134
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
191
135
|
let body;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
hostname,
|
|
195
|
-
port,
|
|
196
|
-
method: "DELETE",
|
|
197
|
-
headers,
|
|
198
|
-
path: resolvedPath,
|
|
199
|
-
body,
|
|
200
|
-
});
|
|
136
|
+
b.m("DELETE").h(headers).b(body);
|
|
137
|
+
return b.build();
|
|
201
138
|
};
|
|
202
139
|
export const se_DeleteQueueCommand = async (input, context) => {
|
|
203
|
-
const
|
|
140
|
+
const b = rb(input, context);
|
|
204
141
|
const headers = {};
|
|
205
|
-
|
|
206
|
-
|
|
142
|
+
b.bp("/2017-08-29/queues/{Name}");
|
|
143
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
207
144
|
let body;
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
hostname,
|
|
211
|
-
port,
|
|
212
|
-
method: "DELETE",
|
|
213
|
-
headers,
|
|
214
|
-
path: resolvedPath,
|
|
215
|
-
body,
|
|
216
|
-
});
|
|
145
|
+
b.m("DELETE").h(headers).b(body);
|
|
146
|
+
return b.build();
|
|
217
147
|
};
|
|
218
148
|
export const se_DescribeEndpointsCommand = async (input, context) => {
|
|
219
|
-
const
|
|
149
|
+
const b = rb(input, context);
|
|
220
150
|
const headers = {
|
|
221
151
|
"content-type": "application/json",
|
|
222
152
|
};
|
|
223
|
-
|
|
153
|
+
b.bp("/2017-08-29/endpoints");
|
|
224
154
|
let body;
|
|
225
155
|
body = JSON.stringify(take(input, {
|
|
226
156
|
maxResults: [, , `MaxResults`],
|
|
227
157
|
mode: [, , `Mode`],
|
|
228
158
|
nextToken: [, , `NextToken`],
|
|
229
159
|
}));
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
hostname,
|
|
233
|
-
port,
|
|
234
|
-
method: "POST",
|
|
235
|
-
headers,
|
|
236
|
-
path: resolvedPath,
|
|
237
|
-
body,
|
|
238
|
-
});
|
|
160
|
+
b.m("POST").h(headers).b(body);
|
|
161
|
+
return b.build();
|
|
239
162
|
};
|
|
240
163
|
export const se_DisassociateCertificateCommand = async (input, context) => {
|
|
241
|
-
const
|
|
164
|
+
const b = rb(input, context);
|
|
242
165
|
const headers = {};
|
|
243
|
-
|
|
244
|
-
|
|
166
|
+
b.bp("/2017-08-29/certificates/{Arn}");
|
|
167
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
245
168
|
let body;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
hostname,
|
|
249
|
-
port,
|
|
250
|
-
method: "DELETE",
|
|
251
|
-
headers,
|
|
252
|
-
path: resolvedPath,
|
|
253
|
-
body,
|
|
254
|
-
});
|
|
169
|
+
b.m("DELETE").h(headers).b(body);
|
|
170
|
+
return b.build();
|
|
255
171
|
};
|
|
256
172
|
export const se_GetJobCommand = async (input, context) => {
|
|
257
|
-
const
|
|
173
|
+
const b = rb(input, context);
|
|
258
174
|
const headers = {};
|
|
259
|
-
|
|
260
|
-
|
|
175
|
+
b.bp("/2017-08-29/jobs/{Id}");
|
|
176
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
261
177
|
let body;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
hostname,
|
|
265
|
-
port,
|
|
266
|
-
method: "GET",
|
|
267
|
-
headers,
|
|
268
|
-
path: resolvedPath,
|
|
269
|
-
body,
|
|
270
|
-
});
|
|
178
|
+
b.m("GET").h(headers).b(body);
|
|
179
|
+
return b.build();
|
|
271
180
|
};
|
|
272
181
|
export const se_GetJobTemplateCommand = async (input, context) => {
|
|
273
|
-
const
|
|
182
|
+
const b = rb(input, context);
|
|
274
183
|
const headers = {};
|
|
275
|
-
|
|
276
|
-
|
|
184
|
+
b.bp("/2017-08-29/jobTemplates/{Name}");
|
|
185
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
277
186
|
let body;
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
hostname,
|
|
281
|
-
port,
|
|
282
|
-
method: "GET",
|
|
283
|
-
headers,
|
|
284
|
-
path: resolvedPath,
|
|
285
|
-
body,
|
|
286
|
-
});
|
|
187
|
+
b.m("GET").h(headers).b(body);
|
|
188
|
+
return b.build();
|
|
287
189
|
};
|
|
288
190
|
export const se_GetPolicyCommand = async (input, context) => {
|
|
289
|
-
const
|
|
191
|
+
const b = rb(input, context);
|
|
290
192
|
const headers = {
|
|
291
193
|
"content-type": "application/json",
|
|
292
194
|
};
|
|
293
|
-
|
|
195
|
+
b.bp("/2017-08-29/policy");
|
|
294
196
|
let body;
|
|
295
197
|
body = "";
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
hostname,
|
|
299
|
-
port,
|
|
300
|
-
method: "GET",
|
|
301
|
-
headers,
|
|
302
|
-
path: resolvedPath,
|
|
303
|
-
body,
|
|
304
|
-
});
|
|
198
|
+
b.m("GET").h(headers).b(body);
|
|
199
|
+
return b.build();
|
|
305
200
|
};
|
|
306
201
|
export const se_GetPresetCommand = async (input, context) => {
|
|
307
|
-
const
|
|
202
|
+
const b = rb(input, context);
|
|
308
203
|
const headers = {};
|
|
309
|
-
|
|
310
|
-
|
|
204
|
+
b.bp("/2017-08-29/presets/{Name}");
|
|
205
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
311
206
|
let body;
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
hostname,
|
|
315
|
-
port,
|
|
316
|
-
method: "GET",
|
|
317
|
-
headers,
|
|
318
|
-
path: resolvedPath,
|
|
319
|
-
body,
|
|
320
|
-
});
|
|
207
|
+
b.m("GET").h(headers).b(body);
|
|
208
|
+
return b.build();
|
|
321
209
|
};
|
|
322
210
|
export const se_GetQueueCommand = async (input, context) => {
|
|
323
|
-
const
|
|
211
|
+
const b = rb(input, context);
|
|
324
212
|
const headers = {};
|
|
325
|
-
|
|
326
|
-
|
|
213
|
+
b.bp("/2017-08-29/queues/{Name}");
|
|
214
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
327
215
|
let body;
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
hostname,
|
|
331
|
-
port,
|
|
332
|
-
method: "GET",
|
|
333
|
-
headers,
|
|
334
|
-
path: resolvedPath,
|
|
335
|
-
body,
|
|
336
|
-
});
|
|
216
|
+
b.m("GET").h(headers).b(body);
|
|
217
|
+
return b.build();
|
|
337
218
|
};
|
|
338
219
|
export const se_ListJobsCommand = async (input, context) => {
|
|
339
|
-
const
|
|
220
|
+
const b = rb(input, context);
|
|
340
221
|
const headers = {};
|
|
341
|
-
|
|
222
|
+
b.bp("/2017-08-29/jobs");
|
|
342
223
|
const query = map({
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
224
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
225
|
+
[_nT]: [, input[_NT]],
|
|
226
|
+
[_o]: [, input[_O]],
|
|
227
|
+
[_q]: [, input[_Q]],
|
|
228
|
+
[_s]: [, input[_S]],
|
|
348
229
|
});
|
|
349
230
|
let body;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
hostname,
|
|
353
|
-
port,
|
|
354
|
-
method: "GET",
|
|
355
|
-
headers,
|
|
356
|
-
path: resolvedPath,
|
|
357
|
-
query,
|
|
358
|
-
body,
|
|
359
|
-
});
|
|
231
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
232
|
+
return b.build();
|
|
360
233
|
};
|
|
361
234
|
export const se_ListJobTemplatesCommand = async (input, context) => {
|
|
362
|
-
const
|
|
235
|
+
const b = rb(input, context);
|
|
363
236
|
const headers = {};
|
|
364
|
-
|
|
237
|
+
b.bp("/2017-08-29/jobTemplates");
|
|
365
238
|
const query = map({
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
239
|
+
[_c]: [, input[_C]],
|
|
240
|
+
[_lB]: [, input[_LB]],
|
|
241
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
242
|
+
[_nT]: [, input[_NT]],
|
|
243
|
+
[_o]: [, input[_O]],
|
|
371
244
|
});
|
|
372
245
|
let body;
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
hostname,
|
|
376
|
-
port,
|
|
377
|
-
method: "GET",
|
|
378
|
-
headers,
|
|
379
|
-
path: resolvedPath,
|
|
380
|
-
query,
|
|
381
|
-
body,
|
|
382
|
-
});
|
|
246
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
247
|
+
return b.build();
|
|
383
248
|
};
|
|
384
249
|
export const se_ListPresetsCommand = async (input, context) => {
|
|
385
|
-
const
|
|
250
|
+
const b = rb(input, context);
|
|
386
251
|
const headers = {};
|
|
387
|
-
|
|
252
|
+
b.bp("/2017-08-29/presets");
|
|
388
253
|
const query = map({
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
254
|
+
[_c]: [, input[_C]],
|
|
255
|
+
[_lB]: [, input[_LB]],
|
|
256
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
257
|
+
[_nT]: [, input[_NT]],
|
|
258
|
+
[_o]: [, input[_O]],
|
|
394
259
|
});
|
|
395
260
|
let body;
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
hostname,
|
|
399
|
-
port,
|
|
400
|
-
method: "GET",
|
|
401
|
-
headers,
|
|
402
|
-
path: resolvedPath,
|
|
403
|
-
query,
|
|
404
|
-
body,
|
|
405
|
-
});
|
|
261
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
262
|
+
return b.build();
|
|
406
263
|
};
|
|
407
264
|
export const se_ListQueuesCommand = async (input, context) => {
|
|
408
|
-
const
|
|
265
|
+
const b = rb(input, context);
|
|
409
266
|
const headers = {};
|
|
410
|
-
|
|
267
|
+
b.bp("/2017-08-29/queues");
|
|
411
268
|
const query = map({
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
269
|
+
[_lB]: [, input[_LB]],
|
|
270
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
271
|
+
[_nT]: [, input[_NT]],
|
|
272
|
+
[_o]: [, input[_O]],
|
|
416
273
|
});
|
|
417
274
|
let body;
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
hostname,
|
|
421
|
-
port,
|
|
422
|
-
method: "GET",
|
|
423
|
-
headers,
|
|
424
|
-
path: resolvedPath,
|
|
425
|
-
query,
|
|
426
|
-
body,
|
|
427
|
-
});
|
|
275
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
276
|
+
return b.build();
|
|
428
277
|
};
|
|
429
278
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
430
|
-
const
|
|
279
|
+
const b = rb(input, context);
|
|
431
280
|
const headers = {};
|
|
432
|
-
|
|
433
|
-
|
|
281
|
+
b.bp("/2017-08-29/tags/{Arn}");
|
|
282
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
434
283
|
let body;
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
hostname,
|
|
438
|
-
port,
|
|
439
|
-
method: "GET",
|
|
440
|
-
headers,
|
|
441
|
-
path: resolvedPath,
|
|
442
|
-
body,
|
|
443
|
-
});
|
|
284
|
+
b.m("GET").h(headers).b(body);
|
|
285
|
+
return b.build();
|
|
444
286
|
};
|
|
445
287
|
export const se_PutPolicyCommand = async (input, context) => {
|
|
446
|
-
const
|
|
288
|
+
const b = rb(input, context);
|
|
447
289
|
const headers = {
|
|
448
290
|
"content-type": "application/json",
|
|
449
291
|
};
|
|
450
|
-
|
|
292
|
+
b.bp("/2017-08-29/policy");
|
|
451
293
|
let body;
|
|
452
294
|
body = JSON.stringify(take(input, {
|
|
453
295
|
policy: [, (_) => se_Policy(_, context), `Policy`],
|
|
454
296
|
}));
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
hostname,
|
|
458
|
-
port,
|
|
459
|
-
method: "PUT",
|
|
460
|
-
headers,
|
|
461
|
-
path: resolvedPath,
|
|
462
|
-
body,
|
|
463
|
-
});
|
|
297
|
+
b.m("PUT").h(headers).b(body);
|
|
298
|
+
return b.build();
|
|
464
299
|
};
|
|
465
300
|
export const se_TagResourceCommand = async (input, context) => {
|
|
466
|
-
const
|
|
301
|
+
const b = rb(input, context);
|
|
467
302
|
const headers = {
|
|
468
303
|
"content-type": "application/json",
|
|
469
304
|
};
|
|
470
|
-
|
|
305
|
+
b.bp("/2017-08-29/tags");
|
|
471
306
|
let body;
|
|
472
307
|
body = JSON.stringify(take(input, {
|
|
473
308
|
arn: [, , `Arn`],
|
|
474
309
|
tags: [, (_) => _json(_), `Tags`],
|
|
475
310
|
}));
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
hostname,
|
|
479
|
-
port,
|
|
480
|
-
method: "POST",
|
|
481
|
-
headers,
|
|
482
|
-
path: resolvedPath,
|
|
483
|
-
body,
|
|
484
|
-
});
|
|
311
|
+
b.m("POST").h(headers).b(body);
|
|
312
|
+
return b.build();
|
|
485
313
|
};
|
|
486
314
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
487
|
-
const
|
|
315
|
+
const b = rb(input, context);
|
|
488
316
|
const headers = {
|
|
489
317
|
"content-type": "application/json",
|
|
490
318
|
};
|
|
491
|
-
|
|
492
|
-
|
|
319
|
+
b.bp("/2017-08-29/tags/{Arn}");
|
|
320
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
493
321
|
let body;
|
|
494
322
|
body = JSON.stringify(take(input, {
|
|
495
323
|
tagKeys: [, (_) => _json(_), `TagKeys`],
|
|
496
324
|
}));
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
hostname,
|
|
500
|
-
port,
|
|
501
|
-
method: "PUT",
|
|
502
|
-
headers,
|
|
503
|
-
path: resolvedPath,
|
|
504
|
-
body,
|
|
505
|
-
});
|
|
325
|
+
b.m("PUT").h(headers).b(body);
|
|
326
|
+
return b.build();
|
|
506
327
|
};
|
|
507
328
|
export const se_UpdateJobTemplateCommand = async (input, context) => {
|
|
508
|
-
const
|
|
329
|
+
const b = rb(input, context);
|
|
509
330
|
const headers = {
|
|
510
331
|
"content-type": "application/json",
|
|
511
332
|
};
|
|
512
|
-
|
|
513
|
-
|
|
333
|
+
b.bp("/2017-08-29/jobTemplates/{Name}");
|
|
334
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
514
335
|
let body;
|
|
515
336
|
body = JSON.stringify(take(input, {
|
|
516
337
|
accelerationSettings: [, (_) => se_AccelerationSettings(_, context), `AccelerationSettings`],
|
|
@@ -522,61 +343,40 @@ export const se_UpdateJobTemplateCommand = async (input, context) => {
|
|
|
522
343
|
settings: [, (_) => se_JobTemplateSettings(_, context), `Settings`],
|
|
523
344
|
statusUpdateInterval: [, , `StatusUpdateInterval`],
|
|
524
345
|
}));
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
hostname,
|
|
528
|
-
port,
|
|
529
|
-
method: "PUT",
|
|
530
|
-
headers,
|
|
531
|
-
path: resolvedPath,
|
|
532
|
-
body,
|
|
533
|
-
});
|
|
346
|
+
b.m("PUT").h(headers).b(body);
|
|
347
|
+
return b.build();
|
|
534
348
|
};
|
|
535
349
|
export const se_UpdatePresetCommand = async (input, context) => {
|
|
536
|
-
const
|
|
350
|
+
const b = rb(input, context);
|
|
537
351
|
const headers = {
|
|
538
352
|
"content-type": "application/json",
|
|
539
353
|
};
|
|
540
|
-
|
|
541
|
-
|
|
354
|
+
b.bp("/2017-08-29/presets/{Name}");
|
|
355
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
542
356
|
let body;
|
|
543
357
|
body = JSON.stringify(take(input, {
|
|
544
358
|
category: [, , `Category`],
|
|
545
359
|
description: [, , `Description`],
|
|
546
360
|
settings: [, (_) => se_PresetSettings(_, context), `Settings`],
|
|
547
361
|
}));
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
hostname,
|
|
551
|
-
port,
|
|
552
|
-
method: "PUT",
|
|
553
|
-
headers,
|
|
554
|
-
path: resolvedPath,
|
|
555
|
-
body,
|
|
556
|
-
});
|
|
362
|
+
b.m("PUT").h(headers).b(body);
|
|
363
|
+
return b.build();
|
|
557
364
|
};
|
|
558
365
|
export const se_UpdateQueueCommand = async (input, context) => {
|
|
559
|
-
const
|
|
366
|
+
const b = rb(input, context);
|
|
560
367
|
const headers = {
|
|
561
368
|
"content-type": "application/json",
|
|
562
369
|
};
|
|
563
|
-
|
|
564
|
-
|
|
370
|
+
b.bp("/2017-08-29/queues/{Name}");
|
|
371
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
565
372
|
let body;
|
|
566
373
|
body = JSON.stringify(take(input, {
|
|
567
374
|
description: [, , `Description`],
|
|
568
375
|
reservationPlanSettings: [, (_) => se_ReservationPlanSettings(_, context), `ReservationPlanSettings`],
|
|
569
376
|
status: [, , `Status`],
|
|
570
377
|
}));
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
hostname,
|
|
574
|
-
port,
|
|
575
|
-
method: "PUT",
|
|
576
|
-
headers,
|
|
577
|
-
path: resolvedPath,
|
|
578
|
-
body,
|
|
579
|
-
});
|
|
378
|
+
b.m("PUT").h(headers).b(body);
|
|
379
|
+
return b.build();
|
|
580
380
|
};
|
|
581
381
|
export const de_AssociateCertificateCommand = async (output, context) => {
|
|
582
382
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -6175,6 +5975,20 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
6175
5975
|
value !== "" &&
|
|
6176
5976
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
6177
5977
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
5978
|
+
const _C = "Category";
|
|
5979
|
+
const _LB = "ListBy";
|
|
5980
|
+
const _MR = "MaxResults";
|
|
5981
|
+
const _NT = "NextToken";
|
|
5982
|
+
const _O = "Order";
|
|
5983
|
+
const _Q = "Queue";
|
|
5984
|
+
const _S = "Status";
|
|
5985
|
+
const _c = "category";
|
|
5986
|
+
const _lB = "listBy";
|
|
5987
|
+
const _mR = "maxResults";
|
|
5988
|
+
const _nT = "nextToken";
|
|
5989
|
+
const _o = "order";
|
|
5990
|
+
const _q = "queue";
|
|
5991
|
+
const _s = "status";
|
|
6178
5992
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
6179
5993
|
if (encoded.length) {
|
|
6180
5994
|
return JSON.parse(encoded);
|