@aws-sdk/client-mediapackage 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 +114 -240
- package/dist-es/protocols/Aws_restJson1.js +115 -241
- package/package.json +5 -4
|
@@ -1,62 +1,48 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_UpdateOriginEndpointCommand = exports.de_UpdateChannelCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RotateIngestEndpointCredentialsCommand = exports.de_RotateChannelCredentialsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListOriginEndpointsCommand = exports.de_ListHarvestJobsCommand = exports.de_ListChannelsCommand = exports.de_DescribeOriginEndpointCommand = exports.de_DescribeHarvestJobCommand = exports.de_DescribeChannelCommand = exports.de_DeleteOriginEndpointCommand = exports.de_DeleteChannelCommand = exports.de_CreateOriginEndpointCommand = exports.de_CreateHarvestJobCommand = exports.de_CreateChannelCommand = exports.de_ConfigureLogsCommand = exports.se_UpdateOriginEndpointCommand = exports.se_UpdateChannelCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RotateIngestEndpointCredentialsCommand = exports.se_RotateChannelCredentialsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListOriginEndpointsCommand = exports.se_ListHarvestJobsCommand = exports.se_ListChannelsCommand = exports.se_DescribeOriginEndpointCommand = exports.se_DescribeHarvestJobCommand = exports.se_DescribeChannelCommand = exports.se_DeleteOriginEndpointCommand = exports.se_DeleteChannelCommand = exports.se_CreateOriginEndpointCommand = exports.se_CreateHarvestJobCommand = exports.se_CreateChannelCommand = exports.se_ConfigureLogsCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const MediaPackageServiceException_1 = require("../models/MediaPackageServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_ConfigureLogsCommand = async (input, context) => {
|
|
9
|
-
const
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
12
12
|
};
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
b.bp("/channels/{Id}/configure_logs");
|
|
14
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
17
|
egressAccessLogs: [, (_) => se_EgressAccessLogs(_, context), `EgressAccessLogs`],
|
|
18
18
|
ingressAccessLogs: [, (_) => se_IngressAccessLogs(_, context), `IngressAccessLogs`],
|
|
19
19
|
}));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
hostname,
|
|
23
|
-
port,
|
|
24
|
-
method: "PUT",
|
|
25
|
-
headers,
|
|
26
|
-
path: resolvedPath,
|
|
27
|
-
body,
|
|
28
|
-
});
|
|
20
|
+
b.m("PUT").h(headers).b(body);
|
|
21
|
+
return b.build();
|
|
29
22
|
};
|
|
30
23
|
exports.se_ConfigureLogsCommand = se_ConfigureLogsCommand;
|
|
31
24
|
const se_CreateChannelCommand = async (input, context) => {
|
|
32
|
-
const
|
|
25
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
33
26
|
const headers = {
|
|
34
27
|
"content-type": "application/json",
|
|
35
28
|
};
|
|
36
|
-
|
|
29
|
+
b.bp("/channels");
|
|
37
30
|
let body;
|
|
38
31
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
39
32
|
description: [, , `Description`],
|
|
40
33
|
id: [, , `Id`],
|
|
41
34
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
42
35
|
}));
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
hostname,
|
|
46
|
-
port,
|
|
47
|
-
method: "POST",
|
|
48
|
-
headers,
|
|
49
|
-
path: resolvedPath,
|
|
50
|
-
body,
|
|
51
|
-
});
|
|
36
|
+
b.m("POST").h(headers).b(body);
|
|
37
|
+
return b.build();
|
|
52
38
|
};
|
|
53
39
|
exports.se_CreateChannelCommand = se_CreateChannelCommand;
|
|
54
40
|
const se_CreateHarvestJobCommand = async (input, context) => {
|
|
55
|
-
const
|
|
41
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
56
42
|
const headers = {
|
|
57
43
|
"content-type": "application/json",
|
|
58
44
|
};
|
|
59
|
-
|
|
45
|
+
b.bp("/harvest_jobs");
|
|
60
46
|
let body;
|
|
61
47
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
62
48
|
endTime: [, , `EndTime`],
|
|
@@ -65,23 +51,16 @@ const se_CreateHarvestJobCommand = async (input, context) => {
|
|
|
65
51
|
s3Destination: [, (_) => se_S3Destination(_, context), `S3Destination`],
|
|
66
52
|
startTime: [, , `StartTime`],
|
|
67
53
|
}));
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
hostname,
|
|
71
|
-
port,
|
|
72
|
-
method: "POST",
|
|
73
|
-
headers,
|
|
74
|
-
path: resolvedPath,
|
|
75
|
-
body,
|
|
76
|
-
});
|
|
54
|
+
b.m("POST").h(headers).b(body);
|
|
55
|
+
return b.build();
|
|
77
56
|
};
|
|
78
57
|
exports.se_CreateHarvestJobCommand = se_CreateHarvestJobCommand;
|
|
79
58
|
const se_CreateOriginEndpointCommand = async (input, context) => {
|
|
80
|
-
const
|
|
59
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
81
60
|
const headers = {
|
|
82
61
|
"content-type": "application/json",
|
|
83
62
|
};
|
|
84
|
-
|
|
63
|
+
b.bp("/origin_endpoints");
|
|
85
64
|
let body;
|
|
86
65
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
87
66
|
authorization: [, (_) => se_Authorization(_, context), `Authorization`],
|
|
@@ -99,296 +78,186 @@ const se_CreateOriginEndpointCommand = async (input, context) => {
|
|
|
99
78
|
timeDelaySeconds: [, , `TimeDelaySeconds`],
|
|
100
79
|
whitelist: [, (_) => (0, smithy_client_1._json)(_), `Whitelist`],
|
|
101
80
|
}));
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
hostname,
|
|
105
|
-
port,
|
|
106
|
-
method: "POST",
|
|
107
|
-
headers,
|
|
108
|
-
path: resolvedPath,
|
|
109
|
-
body,
|
|
110
|
-
});
|
|
81
|
+
b.m("POST").h(headers).b(body);
|
|
82
|
+
return b.build();
|
|
111
83
|
};
|
|
112
84
|
exports.se_CreateOriginEndpointCommand = se_CreateOriginEndpointCommand;
|
|
113
85
|
const se_DeleteChannelCommand = async (input, context) => {
|
|
114
|
-
const
|
|
86
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
115
87
|
const headers = {};
|
|
116
|
-
|
|
117
|
-
|
|
88
|
+
b.bp("/channels/{Id}");
|
|
89
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
118
90
|
let body;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
hostname,
|
|
122
|
-
port,
|
|
123
|
-
method: "DELETE",
|
|
124
|
-
headers,
|
|
125
|
-
path: resolvedPath,
|
|
126
|
-
body,
|
|
127
|
-
});
|
|
91
|
+
b.m("DELETE").h(headers).b(body);
|
|
92
|
+
return b.build();
|
|
128
93
|
};
|
|
129
94
|
exports.se_DeleteChannelCommand = se_DeleteChannelCommand;
|
|
130
95
|
const se_DeleteOriginEndpointCommand = async (input, context) => {
|
|
131
|
-
const
|
|
96
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
132
97
|
const headers = {};
|
|
133
|
-
|
|
134
|
-
|
|
98
|
+
b.bp("/origin_endpoints/{Id}");
|
|
99
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
135
100
|
let body;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
hostname,
|
|
139
|
-
port,
|
|
140
|
-
method: "DELETE",
|
|
141
|
-
headers,
|
|
142
|
-
path: resolvedPath,
|
|
143
|
-
body,
|
|
144
|
-
});
|
|
101
|
+
b.m("DELETE").h(headers).b(body);
|
|
102
|
+
return b.build();
|
|
145
103
|
};
|
|
146
104
|
exports.se_DeleteOriginEndpointCommand = se_DeleteOriginEndpointCommand;
|
|
147
105
|
const se_DescribeChannelCommand = async (input, context) => {
|
|
148
|
-
const
|
|
106
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
149
107
|
const headers = {};
|
|
150
|
-
|
|
151
|
-
|
|
108
|
+
b.bp("/channels/{Id}");
|
|
109
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
152
110
|
let body;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
hostname,
|
|
156
|
-
port,
|
|
157
|
-
method: "GET",
|
|
158
|
-
headers,
|
|
159
|
-
path: resolvedPath,
|
|
160
|
-
body,
|
|
161
|
-
});
|
|
111
|
+
b.m("GET").h(headers).b(body);
|
|
112
|
+
return b.build();
|
|
162
113
|
};
|
|
163
114
|
exports.se_DescribeChannelCommand = se_DescribeChannelCommand;
|
|
164
115
|
const se_DescribeHarvestJobCommand = async (input, context) => {
|
|
165
|
-
const
|
|
116
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
166
117
|
const headers = {};
|
|
167
|
-
|
|
168
|
-
|
|
118
|
+
b.bp("/harvest_jobs/{Id}");
|
|
119
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
169
120
|
let body;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
hostname,
|
|
173
|
-
port,
|
|
174
|
-
method: "GET",
|
|
175
|
-
headers,
|
|
176
|
-
path: resolvedPath,
|
|
177
|
-
body,
|
|
178
|
-
});
|
|
121
|
+
b.m("GET").h(headers).b(body);
|
|
122
|
+
return b.build();
|
|
179
123
|
};
|
|
180
124
|
exports.se_DescribeHarvestJobCommand = se_DescribeHarvestJobCommand;
|
|
181
125
|
const se_DescribeOriginEndpointCommand = async (input, context) => {
|
|
182
|
-
const
|
|
126
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
183
127
|
const headers = {};
|
|
184
|
-
|
|
185
|
-
|
|
128
|
+
b.bp("/origin_endpoints/{Id}");
|
|
129
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
186
130
|
let body;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
hostname,
|
|
190
|
-
port,
|
|
191
|
-
method: "GET",
|
|
192
|
-
headers,
|
|
193
|
-
path: resolvedPath,
|
|
194
|
-
body,
|
|
195
|
-
});
|
|
131
|
+
b.m("GET").h(headers).b(body);
|
|
132
|
+
return b.build();
|
|
196
133
|
};
|
|
197
134
|
exports.se_DescribeOriginEndpointCommand = se_DescribeOriginEndpointCommand;
|
|
198
135
|
const se_ListChannelsCommand = async (input, context) => {
|
|
199
|
-
const
|
|
136
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
200
137
|
const headers = {};
|
|
201
|
-
|
|
138
|
+
b.bp("/channels");
|
|
202
139
|
const query = (0, smithy_client_1.map)({
|
|
203
|
-
|
|
204
|
-
|
|
140
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
141
|
+
[_nT]: [, input[_NT]],
|
|
205
142
|
});
|
|
206
143
|
let body;
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
hostname,
|
|
210
|
-
port,
|
|
211
|
-
method: "GET",
|
|
212
|
-
headers,
|
|
213
|
-
path: resolvedPath,
|
|
214
|
-
query,
|
|
215
|
-
body,
|
|
216
|
-
});
|
|
144
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
145
|
+
return b.build();
|
|
217
146
|
};
|
|
218
147
|
exports.se_ListChannelsCommand = se_ListChannelsCommand;
|
|
219
148
|
const se_ListHarvestJobsCommand = async (input, context) => {
|
|
220
|
-
const
|
|
149
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
221
150
|
const headers = {};
|
|
222
|
-
|
|
151
|
+
b.bp("/harvest_jobs");
|
|
223
152
|
const query = (0, smithy_client_1.map)({
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
153
|
+
[_iCI]: [, input[_ICI]],
|
|
154
|
+
[_iS]: [, input[_IS]],
|
|
155
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
156
|
+
[_nT]: [, input[_NT]],
|
|
228
157
|
});
|
|
229
158
|
let body;
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
hostname,
|
|
233
|
-
port,
|
|
234
|
-
method: "GET",
|
|
235
|
-
headers,
|
|
236
|
-
path: resolvedPath,
|
|
237
|
-
query,
|
|
238
|
-
body,
|
|
239
|
-
});
|
|
159
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
160
|
+
return b.build();
|
|
240
161
|
};
|
|
241
162
|
exports.se_ListHarvestJobsCommand = se_ListHarvestJobsCommand;
|
|
242
163
|
const se_ListOriginEndpointsCommand = async (input, context) => {
|
|
243
|
-
const
|
|
164
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
244
165
|
const headers = {};
|
|
245
|
-
|
|
166
|
+
b.bp("/origin_endpoints");
|
|
246
167
|
const query = (0, smithy_client_1.map)({
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
168
|
+
[_cI]: [, input[_CI]],
|
|
169
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
170
|
+
[_nT]: [, input[_NT]],
|
|
250
171
|
});
|
|
251
172
|
let body;
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
hostname,
|
|
255
|
-
port,
|
|
256
|
-
method: "GET",
|
|
257
|
-
headers,
|
|
258
|
-
path: resolvedPath,
|
|
259
|
-
query,
|
|
260
|
-
body,
|
|
261
|
-
});
|
|
173
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
174
|
+
return b.build();
|
|
262
175
|
};
|
|
263
176
|
exports.se_ListOriginEndpointsCommand = se_ListOriginEndpointsCommand;
|
|
264
177
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
265
|
-
const
|
|
178
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
266
179
|
const headers = {};
|
|
267
|
-
|
|
268
|
-
|
|
180
|
+
b.bp("/tags/{ResourceArn}");
|
|
181
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
269
182
|
let body;
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
hostname,
|
|
273
|
-
port,
|
|
274
|
-
method: "GET",
|
|
275
|
-
headers,
|
|
276
|
-
path: resolvedPath,
|
|
277
|
-
body,
|
|
278
|
-
});
|
|
183
|
+
b.m("GET").h(headers).b(body);
|
|
184
|
+
return b.build();
|
|
279
185
|
};
|
|
280
186
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
281
187
|
const se_RotateChannelCredentialsCommand = async (input, context) => {
|
|
282
|
-
const
|
|
188
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
283
189
|
const headers = {};
|
|
284
|
-
|
|
285
|
-
|
|
190
|
+
b.bp("/channels/{Id}/credentials");
|
|
191
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
286
192
|
let body;
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
hostname,
|
|
290
|
-
port,
|
|
291
|
-
method: "PUT",
|
|
292
|
-
headers,
|
|
293
|
-
path: resolvedPath,
|
|
294
|
-
body,
|
|
295
|
-
});
|
|
193
|
+
b.m("PUT").h(headers).b(body);
|
|
194
|
+
return b.build();
|
|
296
195
|
};
|
|
297
196
|
exports.se_RotateChannelCredentialsCommand = se_RotateChannelCredentialsCommand;
|
|
298
197
|
const se_RotateIngestEndpointCredentialsCommand = async (input, context) => {
|
|
299
|
-
const
|
|
198
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
300
199
|
const headers = {};
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IngestEndpointId", () => input.IngestEndpointId, "{IngestEndpointId}", false);
|
|
200
|
+
b.bp("/channels/{Id}/ingest_endpoints/{IngestEndpointId}/credentials");
|
|
201
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
202
|
+
b.p("IngestEndpointId", () => input.IngestEndpointId, "{IngestEndpointId}", false);
|
|
305
203
|
let body;
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
hostname,
|
|
309
|
-
port,
|
|
310
|
-
method: "PUT",
|
|
311
|
-
headers,
|
|
312
|
-
path: resolvedPath,
|
|
313
|
-
body,
|
|
314
|
-
});
|
|
204
|
+
b.m("PUT").h(headers).b(body);
|
|
205
|
+
return b.build();
|
|
315
206
|
};
|
|
316
207
|
exports.se_RotateIngestEndpointCredentialsCommand = se_RotateIngestEndpointCredentialsCommand;
|
|
317
208
|
const se_TagResourceCommand = async (input, context) => {
|
|
318
|
-
const
|
|
209
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
319
210
|
const headers = {
|
|
320
211
|
"content-type": "application/json",
|
|
321
212
|
};
|
|
322
|
-
|
|
323
|
-
|
|
213
|
+
b.bp("/tags/{ResourceArn}");
|
|
214
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
324
215
|
let body;
|
|
325
216
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
326
217
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
327
218
|
}));
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
hostname,
|
|
331
|
-
port,
|
|
332
|
-
method: "POST",
|
|
333
|
-
headers,
|
|
334
|
-
path: resolvedPath,
|
|
335
|
-
body,
|
|
336
|
-
});
|
|
219
|
+
b.m("POST").h(headers).b(body);
|
|
220
|
+
return b.build();
|
|
337
221
|
};
|
|
338
222
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
339
223
|
const se_UntagResourceCommand = async (input, context) => {
|
|
340
|
-
const
|
|
224
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
341
225
|
const headers = {};
|
|
342
|
-
|
|
343
|
-
|
|
226
|
+
b.bp("/tags/{ResourceArn}");
|
|
227
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
344
228
|
const query = (0, smithy_client_1.map)({
|
|
345
|
-
|
|
229
|
+
[_tK]: [
|
|
346
230
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
347
|
-
() => (input
|
|
231
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
348
232
|
],
|
|
349
233
|
});
|
|
350
234
|
let body;
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
hostname,
|
|
354
|
-
port,
|
|
355
|
-
method: "DELETE",
|
|
356
|
-
headers,
|
|
357
|
-
path: resolvedPath,
|
|
358
|
-
query,
|
|
359
|
-
body,
|
|
360
|
-
});
|
|
235
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
236
|
+
return b.build();
|
|
361
237
|
};
|
|
362
238
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
363
239
|
const se_UpdateChannelCommand = async (input, context) => {
|
|
364
|
-
const
|
|
240
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
365
241
|
const headers = {
|
|
366
242
|
"content-type": "application/json",
|
|
367
243
|
};
|
|
368
|
-
|
|
369
|
-
|
|
244
|
+
b.bp("/channels/{Id}");
|
|
245
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
370
246
|
let body;
|
|
371
247
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
372
248
|
description: [, , `Description`],
|
|
373
249
|
}));
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
hostname,
|
|
377
|
-
port,
|
|
378
|
-
method: "PUT",
|
|
379
|
-
headers,
|
|
380
|
-
path: resolvedPath,
|
|
381
|
-
body,
|
|
382
|
-
});
|
|
250
|
+
b.m("PUT").h(headers).b(body);
|
|
251
|
+
return b.build();
|
|
383
252
|
};
|
|
384
253
|
exports.se_UpdateChannelCommand = se_UpdateChannelCommand;
|
|
385
254
|
const se_UpdateOriginEndpointCommand = async (input, context) => {
|
|
386
|
-
const
|
|
255
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
387
256
|
const headers = {
|
|
388
257
|
"content-type": "application/json",
|
|
389
258
|
};
|
|
390
|
-
|
|
391
|
-
|
|
259
|
+
b.bp("/origin_endpoints/{Id}");
|
|
260
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
392
261
|
let body;
|
|
393
262
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
394
263
|
authorization: [, (_) => se_Authorization(_, context), `Authorization`],
|
|
@@ -403,15 +272,8 @@ const se_UpdateOriginEndpointCommand = async (input, context) => {
|
|
|
403
272
|
timeDelaySeconds: [, , `TimeDelaySeconds`],
|
|
404
273
|
whitelist: [, (_) => (0, smithy_client_1._json)(_), `Whitelist`],
|
|
405
274
|
}));
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
hostname,
|
|
409
|
-
port,
|
|
410
|
-
method: "PUT",
|
|
411
|
-
headers,
|
|
412
|
-
path: resolvedPath,
|
|
413
|
-
body,
|
|
414
|
-
});
|
|
275
|
+
b.m("PUT").h(headers).b(body);
|
|
276
|
+
return b.build();
|
|
415
277
|
};
|
|
416
278
|
exports.se_UpdateOriginEndpointCommand = se_UpdateOriginEndpointCommand;
|
|
417
279
|
const de_ConfigureLogsCommand = async (output, context) => {
|
|
@@ -1861,6 +1723,18 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1861
1723
|
value !== "" &&
|
|
1862
1724
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1863
1725
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1726
|
+
const _CI = "ChannelId";
|
|
1727
|
+
const _ICI = "IncludeChannelId";
|
|
1728
|
+
const _IS = "IncludeStatus";
|
|
1729
|
+
const _MR = "MaxResults";
|
|
1730
|
+
const _NT = "NextToken";
|
|
1731
|
+
const _TK = "TagKeys";
|
|
1732
|
+
const _cI = "channelId";
|
|
1733
|
+
const _iCI = "includeChannelId";
|
|
1734
|
+
const _iS = "includeStatus";
|
|
1735
|
+
const _mR = "maxResults";
|
|
1736
|
+
const _nT = "nextToken";
|
|
1737
|
+
const _tK = "tagKeys";
|
|
1864
1738
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1865
1739
|
if (encoded.length) {
|
|
1866
1740
|
return JSON.parse(encoded);
|
|
@@ -1,57 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { MediaPackageServiceException as __BaseException } from "../models/MediaPackageServiceException";
|
|
4
4
|
import { ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, UnprocessableEntityException, } from "../models/models_0";
|
|
5
5
|
export const se_ConfigureLogsCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
b.bp("/channels/{Id}/configure_logs");
|
|
11
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
12
12
|
let body;
|
|
13
13
|
body = JSON.stringify(take(input, {
|
|
14
14
|
egressAccessLogs: [, (_) => se_EgressAccessLogs(_, context), `EgressAccessLogs`],
|
|
15
15
|
ingressAccessLogs: [, (_) => se_IngressAccessLogs(_, context), `IngressAccessLogs`],
|
|
16
16
|
}));
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
hostname,
|
|
20
|
-
port,
|
|
21
|
-
method: "PUT",
|
|
22
|
-
headers,
|
|
23
|
-
path: resolvedPath,
|
|
24
|
-
body,
|
|
25
|
-
});
|
|
17
|
+
b.m("PUT").h(headers).b(body);
|
|
18
|
+
return b.build();
|
|
26
19
|
};
|
|
27
20
|
export const se_CreateChannelCommand = async (input, context) => {
|
|
28
|
-
const
|
|
21
|
+
const b = rb(input, context);
|
|
29
22
|
const headers = {
|
|
30
23
|
"content-type": "application/json",
|
|
31
24
|
};
|
|
32
|
-
|
|
25
|
+
b.bp("/channels");
|
|
33
26
|
let body;
|
|
34
27
|
body = JSON.stringify(take(input, {
|
|
35
28
|
description: [, , `Description`],
|
|
36
29
|
id: [, , `Id`],
|
|
37
30
|
tags: [, (_) => _json(_), `Tags`],
|
|
38
31
|
}));
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
hostname,
|
|
42
|
-
port,
|
|
43
|
-
method: "POST",
|
|
44
|
-
headers,
|
|
45
|
-
path: resolvedPath,
|
|
46
|
-
body,
|
|
47
|
-
});
|
|
32
|
+
b.m("POST").h(headers).b(body);
|
|
33
|
+
return b.build();
|
|
48
34
|
};
|
|
49
35
|
export const se_CreateHarvestJobCommand = async (input, context) => {
|
|
50
|
-
const
|
|
36
|
+
const b = rb(input, context);
|
|
51
37
|
const headers = {
|
|
52
38
|
"content-type": "application/json",
|
|
53
39
|
};
|
|
54
|
-
|
|
40
|
+
b.bp("/harvest_jobs");
|
|
55
41
|
let body;
|
|
56
42
|
body = JSON.stringify(take(input, {
|
|
57
43
|
endTime: [, , `EndTime`],
|
|
@@ -60,22 +46,15 @@ export const se_CreateHarvestJobCommand = async (input, context) => {
|
|
|
60
46
|
s3Destination: [, (_) => se_S3Destination(_, context), `S3Destination`],
|
|
61
47
|
startTime: [, , `StartTime`],
|
|
62
48
|
}));
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
hostname,
|
|
66
|
-
port,
|
|
67
|
-
method: "POST",
|
|
68
|
-
headers,
|
|
69
|
-
path: resolvedPath,
|
|
70
|
-
body,
|
|
71
|
-
});
|
|
49
|
+
b.m("POST").h(headers).b(body);
|
|
50
|
+
return b.build();
|
|
72
51
|
};
|
|
73
52
|
export const se_CreateOriginEndpointCommand = async (input, context) => {
|
|
74
|
-
const
|
|
53
|
+
const b = rb(input, context);
|
|
75
54
|
const headers = {
|
|
76
55
|
"content-type": "application/json",
|
|
77
56
|
};
|
|
78
|
-
|
|
57
|
+
b.bp("/origin_endpoints");
|
|
79
58
|
let body;
|
|
80
59
|
body = JSON.stringify(take(input, {
|
|
81
60
|
authorization: [, (_) => se_Authorization(_, context), `Authorization`],
|
|
@@ -93,281 +72,171 @@ export const se_CreateOriginEndpointCommand = async (input, context) => {
|
|
|
93
72
|
timeDelaySeconds: [, , `TimeDelaySeconds`],
|
|
94
73
|
whitelist: [, (_) => _json(_), `Whitelist`],
|
|
95
74
|
}));
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
hostname,
|
|
99
|
-
port,
|
|
100
|
-
method: "POST",
|
|
101
|
-
headers,
|
|
102
|
-
path: resolvedPath,
|
|
103
|
-
body,
|
|
104
|
-
});
|
|
75
|
+
b.m("POST").h(headers).b(body);
|
|
76
|
+
return b.build();
|
|
105
77
|
};
|
|
106
78
|
export const se_DeleteChannelCommand = async (input, context) => {
|
|
107
|
-
const
|
|
79
|
+
const b = rb(input, context);
|
|
108
80
|
const headers = {};
|
|
109
|
-
|
|
110
|
-
|
|
81
|
+
b.bp("/channels/{Id}");
|
|
82
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
111
83
|
let body;
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
hostname,
|
|
115
|
-
port,
|
|
116
|
-
method: "DELETE",
|
|
117
|
-
headers,
|
|
118
|
-
path: resolvedPath,
|
|
119
|
-
body,
|
|
120
|
-
});
|
|
84
|
+
b.m("DELETE").h(headers).b(body);
|
|
85
|
+
return b.build();
|
|
121
86
|
};
|
|
122
87
|
export const se_DeleteOriginEndpointCommand = async (input, context) => {
|
|
123
|
-
const
|
|
88
|
+
const b = rb(input, context);
|
|
124
89
|
const headers = {};
|
|
125
|
-
|
|
126
|
-
|
|
90
|
+
b.bp("/origin_endpoints/{Id}");
|
|
91
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
127
92
|
let body;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
hostname,
|
|
131
|
-
port,
|
|
132
|
-
method: "DELETE",
|
|
133
|
-
headers,
|
|
134
|
-
path: resolvedPath,
|
|
135
|
-
body,
|
|
136
|
-
});
|
|
93
|
+
b.m("DELETE").h(headers).b(body);
|
|
94
|
+
return b.build();
|
|
137
95
|
};
|
|
138
96
|
export const se_DescribeChannelCommand = async (input, context) => {
|
|
139
|
-
const
|
|
97
|
+
const b = rb(input, context);
|
|
140
98
|
const headers = {};
|
|
141
|
-
|
|
142
|
-
|
|
99
|
+
b.bp("/channels/{Id}");
|
|
100
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
143
101
|
let body;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
hostname,
|
|
147
|
-
port,
|
|
148
|
-
method: "GET",
|
|
149
|
-
headers,
|
|
150
|
-
path: resolvedPath,
|
|
151
|
-
body,
|
|
152
|
-
});
|
|
102
|
+
b.m("GET").h(headers).b(body);
|
|
103
|
+
return b.build();
|
|
153
104
|
};
|
|
154
105
|
export const se_DescribeHarvestJobCommand = async (input, context) => {
|
|
155
|
-
const
|
|
106
|
+
const b = rb(input, context);
|
|
156
107
|
const headers = {};
|
|
157
|
-
|
|
158
|
-
|
|
108
|
+
b.bp("/harvest_jobs/{Id}");
|
|
109
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
159
110
|
let body;
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
hostname,
|
|
163
|
-
port,
|
|
164
|
-
method: "GET",
|
|
165
|
-
headers,
|
|
166
|
-
path: resolvedPath,
|
|
167
|
-
body,
|
|
168
|
-
});
|
|
111
|
+
b.m("GET").h(headers).b(body);
|
|
112
|
+
return b.build();
|
|
169
113
|
};
|
|
170
114
|
export const se_DescribeOriginEndpointCommand = async (input, context) => {
|
|
171
|
-
const
|
|
115
|
+
const b = rb(input, context);
|
|
172
116
|
const headers = {};
|
|
173
|
-
|
|
174
|
-
|
|
117
|
+
b.bp("/origin_endpoints/{Id}");
|
|
118
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
175
119
|
let body;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
hostname,
|
|
179
|
-
port,
|
|
180
|
-
method: "GET",
|
|
181
|
-
headers,
|
|
182
|
-
path: resolvedPath,
|
|
183
|
-
body,
|
|
184
|
-
});
|
|
120
|
+
b.m("GET").h(headers).b(body);
|
|
121
|
+
return b.build();
|
|
185
122
|
};
|
|
186
123
|
export const se_ListChannelsCommand = async (input, context) => {
|
|
187
|
-
const
|
|
124
|
+
const b = rb(input, context);
|
|
188
125
|
const headers = {};
|
|
189
|
-
|
|
126
|
+
b.bp("/channels");
|
|
190
127
|
const query = map({
|
|
191
|
-
|
|
192
|
-
|
|
128
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
129
|
+
[_nT]: [, input[_NT]],
|
|
193
130
|
});
|
|
194
131
|
let body;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
hostname,
|
|
198
|
-
port,
|
|
199
|
-
method: "GET",
|
|
200
|
-
headers,
|
|
201
|
-
path: resolvedPath,
|
|
202
|
-
query,
|
|
203
|
-
body,
|
|
204
|
-
});
|
|
132
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
133
|
+
return b.build();
|
|
205
134
|
};
|
|
206
135
|
export const se_ListHarvestJobsCommand = async (input, context) => {
|
|
207
|
-
const
|
|
136
|
+
const b = rb(input, context);
|
|
208
137
|
const headers = {};
|
|
209
|
-
|
|
138
|
+
b.bp("/harvest_jobs");
|
|
210
139
|
const query = map({
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
140
|
+
[_iCI]: [, input[_ICI]],
|
|
141
|
+
[_iS]: [, input[_IS]],
|
|
142
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
143
|
+
[_nT]: [, input[_NT]],
|
|
215
144
|
});
|
|
216
145
|
let body;
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
hostname,
|
|
220
|
-
port,
|
|
221
|
-
method: "GET",
|
|
222
|
-
headers,
|
|
223
|
-
path: resolvedPath,
|
|
224
|
-
query,
|
|
225
|
-
body,
|
|
226
|
-
});
|
|
146
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
147
|
+
return b.build();
|
|
227
148
|
};
|
|
228
149
|
export const se_ListOriginEndpointsCommand = async (input, context) => {
|
|
229
|
-
const
|
|
150
|
+
const b = rb(input, context);
|
|
230
151
|
const headers = {};
|
|
231
|
-
|
|
152
|
+
b.bp("/origin_endpoints");
|
|
232
153
|
const query = map({
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
154
|
+
[_cI]: [, input[_CI]],
|
|
155
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
156
|
+
[_nT]: [, input[_NT]],
|
|
236
157
|
});
|
|
237
158
|
let body;
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
hostname,
|
|
241
|
-
port,
|
|
242
|
-
method: "GET",
|
|
243
|
-
headers,
|
|
244
|
-
path: resolvedPath,
|
|
245
|
-
query,
|
|
246
|
-
body,
|
|
247
|
-
});
|
|
159
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
160
|
+
return b.build();
|
|
248
161
|
};
|
|
249
162
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
250
|
-
const
|
|
163
|
+
const b = rb(input, context);
|
|
251
164
|
const headers = {};
|
|
252
|
-
|
|
253
|
-
|
|
165
|
+
b.bp("/tags/{ResourceArn}");
|
|
166
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
254
167
|
let body;
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
hostname,
|
|
258
|
-
port,
|
|
259
|
-
method: "GET",
|
|
260
|
-
headers,
|
|
261
|
-
path: resolvedPath,
|
|
262
|
-
body,
|
|
263
|
-
});
|
|
168
|
+
b.m("GET").h(headers).b(body);
|
|
169
|
+
return b.build();
|
|
264
170
|
};
|
|
265
171
|
export const se_RotateChannelCredentialsCommand = async (input, context) => {
|
|
266
|
-
const
|
|
172
|
+
const b = rb(input, context);
|
|
267
173
|
const headers = {};
|
|
268
|
-
|
|
269
|
-
|
|
174
|
+
b.bp("/channels/{Id}/credentials");
|
|
175
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
270
176
|
let body;
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
hostname,
|
|
274
|
-
port,
|
|
275
|
-
method: "PUT",
|
|
276
|
-
headers,
|
|
277
|
-
path: resolvedPath,
|
|
278
|
-
body,
|
|
279
|
-
});
|
|
177
|
+
b.m("PUT").h(headers).b(body);
|
|
178
|
+
return b.build();
|
|
280
179
|
};
|
|
281
180
|
export const se_RotateIngestEndpointCredentialsCommand = async (input, context) => {
|
|
282
|
-
const
|
|
181
|
+
const b = rb(input, context);
|
|
283
182
|
const headers = {};
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "IngestEndpointId", () => input.IngestEndpointId, "{IngestEndpointId}", false);
|
|
183
|
+
b.bp("/channels/{Id}/ingest_endpoints/{IngestEndpointId}/credentials");
|
|
184
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
185
|
+
b.p("IngestEndpointId", () => input.IngestEndpointId, "{IngestEndpointId}", false);
|
|
288
186
|
let body;
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
hostname,
|
|
292
|
-
port,
|
|
293
|
-
method: "PUT",
|
|
294
|
-
headers,
|
|
295
|
-
path: resolvedPath,
|
|
296
|
-
body,
|
|
297
|
-
});
|
|
187
|
+
b.m("PUT").h(headers).b(body);
|
|
188
|
+
return b.build();
|
|
298
189
|
};
|
|
299
190
|
export const se_TagResourceCommand = async (input, context) => {
|
|
300
|
-
const
|
|
191
|
+
const b = rb(input, context);
|
|
301
192
|
const headers = {
|
|
302
193
|
"content-type": "application/json",
|
|
303
194
|
};
|
|
304
|
-
|
|
305
|
-
|
|
195
|
+
b.bp("/tags/{ResourceArn}");
|
|
196
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
306
197
|
let body;
|
|
307
198
|
body = JSON.stringify(take(input, {
|
|
308
199
|
tags: [, (_) => _json(_), `Tags`],
|
|
309
200
|
}));
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
hostname,
|
|
313
|
-
port,
|
|
314
|
-
method: "POST",
|
|
315
|
-
headers,
|
|
316
|
-
path: resolvedPath,
|
|
317
|
-
body,
|
|
318
|
-
});
|
|
201
|
+
b.m("POST").h(headers).b(body);
|
|
202
|
+
return b.build();
|
|
319
203
|
};
|
|
320
204
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
321
|
-
const
|
|
205
|
+
const b = rb(input, context);
|
|
322
206
|
const headers = {};
|
|
323
|
-
|
|
324
|
-
|
|
207
|
+
b.bp("/tags/{ResourceArn}");
|
|
208
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
325
209
|
const query = map({
|
|
326
|
-
|
|
210
|
+
[_tK]: [
|
|
327
211
|
__expectNonNull(input.TagKeys, `TagKeys`) != null,
|
|
328
|
-
() => (input
|
|
212
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
329
213
|
],
|
|
330
214
|
});
|
|
331
215
|
let body;
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
hostname,
|
|
335
|
-
port,
|
|
336
|
-
method: "DELETE",
|
|
337
|
-
headers,
|
|
338
|
-
path: resolvedPath,
|
|
339
|
-
query,
|
|
340
|
-
body,
|
|
341
|
-
});
|
|
216
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
217
|
+
return b.build();
|
|
342
218
|
};
|
|
343
219
|
export const se_UpdateChannelCommand = async (input, context) => {
|
|
344
|
-
const
|
|
220
|
+
const b = rb(input, context);
|
|
345
221
|
const headers = {
|
|
346
222
|
"content-type": "application/json",
|
|
347
223
|
};
|
|
348
|
-
|
|
349
|
-
|
|
224
|
+
b.bp("/channels/{Id}");
|
|
225
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
350
226
|
let body;
|
|
351
227
|
body = JSON.stringify(take(input, {
|
|
352
228
|
description: [, , `Description`],
|
|
353
229
|
}));
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
hostname,
|
|
357
|
-
port,
|
|
358
|
-
method: "PUT",
|
|
359
|
-
headers,
|
|
360
|
-
path: resolvedPath,
|
|
361
|
-
body,
|
|
362
|
-
});
|
|
230
|
+
b.m("PUT").h(headers).b(body);
|
|
231
|
+
return b.build();
|
|
363
232
|
};
|
|
364
233
|
export const se_UpdateOriginEndpointCommand = async (input, context) => {
|
|
365
|
-
const
|
|
234
|
+
const b = rb(input, context);
|
|
366
235
|
const headers = {
|
|
367
236
|
"content-type": "application/json",
|
|
368
237
|
};
|
|
369
|
-
|
|
370
|
-
|
|
238
|
+
b.bp("/origin_endpoints/{Id}");
|
|
239
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
371
240
|
let body;
|
|
372
241
|
body = JSON.stringify(take(input, {
|
|
373
242
|
authorization: [, (_) => se_Authorization(_, context), `Authorization`],
|
|
@@ -382,15 +251,8 @@ export const se_UpdateOriginEndpointCommand = async (input, context) => {
|
|
|
382
251
|
timeDelaySeconds: [, , `TimeDelaySeconds`],
|
|
383
252
|
whitelist: [, (_) => _json(_), `Whitelist`],
|
|
384
253
|
}));
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
hostname,
|
|
388
|
-
port,
|
|
389
|
-
method: "PUT",
|
|
390
|
-
headers,
|
|
391
|
-
path: resolvedPath,
|
|
392
|
-
body,
|
|
393
|
-
});
|
|
254
|
+
b.m("PUT").h(headers).b(body);
|
|
255
|
+
return b.build();
|
|
394
256
|
};
|
|
395
257
|
export const de_ConfigureLogsCommand = async (output, context) => {
|
|
396
258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1820,6 +1682,18 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1820
1682
|
value !== "" &&
|
|
1821
1683
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1822
1684
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1685
|
+
const _CI = "ChannelId";
|
|
1686
|
+
const _ICI = "IncludeChannelId";
|
|
1687
|
+
const _IS = "IncludeStatus";
|
|
1688
|
+
const _MR = "MaxResults";
|
|
1689
|
+
const _NT = "NextToken";
|
|
1690
|
+
const _TK = "TagKeys";
|
|
1691
|
+
const _cI = "channelId";
|
|
1692
|
+
const _iCI = "includeChannelId";
|
|
1693
|
+
const _iS = "includeStatus";
|
|
1694
|
+
const _mR = "maxResults";
|
|
1695
|
+
const _nT = "nextToken";
|
|
1696
|
+
const _tK = "tagKeys";
|
|
1823
1697
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1824
1698
|
if (encoded.length) {
|
|
1825
1699
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mediapackage",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mediapackage Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.477.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.477.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.477.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|