@aws-sdk/client-mediastore 3.310.0 → 3.315.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_json1_1.js +131 -609
- package/dist-es/protocols/Aws_json1_1.js +132 -610
- package/package.json +6 -6
|
@@ -1,194 +1,131 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { MediaStoreServiceException as __BaseException } from "../models/MediaStoreServiceException";
|
|
4
4
|
import { ContainerInUseException, ContainerNotFoundException, CorsPolicyNotFoundException, InternalServerError, LimitExceededException, PolicyNotFoundException, } from "../models/models_0";
|
|
5
5
|
export const se_CreateContainerCommand = async (input, context) => {
|
|
6
|
-
const headers =
|
|
7
|
-
"content-type": "application/x-amz-json-1.1",
|
|
8
|
-
"x-amz-target": "MediaStore_20170901.CreateContainer",
|
|
9
|
-
};
|
|
6
|
+
const headers = sharedHeaders("CreateContainer");
|
|
10
7
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
12
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
10
|
};
|
|
14
11
|
export const se_DeleteContainerCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.1",
|
|
17
|
-
"x-amz-target": "MediaStore_20170901.DeleteContainer",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("DeleteContainer");
|
|
19
13
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_DeleteContainerPolicyCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "MediaStore_20170901.DeleteContainerPolicy",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("DeleteContainerPolicy");
|
|
28
19
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_DeleteCorsPolicyCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "MediaStore_20170901.DeleteCorsPolicy",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("DeleteCorsPolicy");
|
|
37
25
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
28
|
};
|
|
41
29
|
export const se_DeleteLifecyclePolicyCommand = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "MediaStore_20170901.DeleteLifecyclePolicy",
|
|
45
|
-
};
|
|
30
|
+
const headers = sharedHeaders("DeleteLifecyclePolicy");
|
|
46
31
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
48
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
34
|
};
|
|
50
35
|
export const se_DeleteMetricPolicyCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "MediaStore_20170901.DeleteMetricPolicy",
|
|
54
|
-
};
|
|
36
|
+
const headers = sharedHeaders("DeleteMetricPolicy");
|
|
55
37
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
57
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
40
|
};
|
|
59
41
|
export const se_DescribeContainerCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "MediaStore_20170901.DescribeContainer",
|
|
63
|
-
};
|
|
42
|
+
const headers = sharedHeaders("DescribeContainer");
|
|
64
43
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
66
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
46
|
};
|
|
68
47
|
export const se_GetContainerPolicyCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "MediaStore_20170901.GetContainerPolicy",
|
|
72
|
-
};
|
|
48
|
+
const headers = sharedHeaders("GetContainerPolicy");
|
|
73
49
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
75
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
52
|
};
|
|
77
53
|
export const se_GetCorsPolicyCommand = async (input, context) => {
|
|
78
|
-
const headers =
|
|
79
|
-
"content-type": "application/x-amz-json-1.1",
|
|
80
|
-
"x-amz-target": "MediaStore_20170901.GetCorsPolicy",
|
|
81
|
-
};
|
|
54
|
+
const headers = sharedHeaders("GetCorsPolicy");
|
|
82
55
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
84
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
58
|
};
|
|
86
59
|
export const se_GetLifecyclePolicyCommand = async (input, context) => {
|
|
87
|
-
const headers =
|
|
88
|
-
"content-type": "application/x-amz-json-1.1",
|
|
89
|
-
"x-amz-target": "MediaStore_20170901.GetLifecyclePolicy",
|
|
90
|
-
};
|
|
60
|
+
const headers = sharedHeaders("GetLifecyclePolicy");
|
|
91
61
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
93
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
64
|
};
|
|
95
65
|
export const se_GetMetricPolicyCommand = async (input, context) => {
|
|
96
|
-
const headers =
|
|
97
|
-
"content-type": "application/x-amz-json-1.1",
|
|
98
|
-
"x-amz-target": "MediaStore_20170901.GetMetricPolicy",
|
|
99
|
-
};
|
|
66
|
+
const headers = sharedHeaders("GetMetricPolicy");
|
|
100
67
|
let body;
|
|
101
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
102
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
70
|
};
|
|
104
71
|
export const se_ListContainersCommand = async (input, context) => {
|
|
105
|
-
const headers =
|
|
106
|
-
"content-type": "application/x-amz-json-1.1",
|
|
107
|
-
"x-amz-target": "MediaStore_20170901.ListContainers",
|
|
108
|
-
};
|
|
72
|
+
const headers = sharedHeaders("ListContainers");
|
|
109
73
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
111
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
76
|
};
|
|
113
77
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
114
|
-
const headers =
|
|
115
|
-
"content-type": "application/x-amz-json-1.1",
|
|
116
|
-
"x-amz-target": "MediaStore_20170901.ListTagsForResource",
|
|
117
|
-
};
|
|
78
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
118
79
|
let body;
|
|
119
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
120
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
82
|
};
|
|
122
83
|
export const se_PutContainerPolicyCommand = async (input, context) => {
|
|
123
|
-
const headers =
|
|
124
|
-
"content-type": "application/x-amz-json-1.1",
|
|
125
|
-
"x-amz-target": "MediaStore_20170901.PutContainerPolicy",
|
|
126
|
-
};
|
|
84
|
+
const headers = sharedHeaders("PutContainerPolicy");
|
|
127
85
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
129
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
88
|
};
|
|
131
89
|
export const se_PutCorsPolicyCommand = async (input, context) => {
|
|
132
|
-
const headers =
|
|
133
|
-
"content-type": "application/x-amz-json-1.1",
|
|
134
|
-
"x-amz-target": "MediaStore_20170901.PutCorsPolicy",
|
|
135
|
-
};
|
|
90
|
+
const headers = sharedHeaders("PutCorsPolicy");
|
|
136
91
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(_json(input));
|
|
138
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
94
|
};
|
|
140
95
|
export const se_PutLifecyclePolicyCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.1",
|
|
143
|
-
"x-amz-target": "MediaStore_20170901.PutLifecyclePolicy",
|
|
144
|
-
};
|
|
96
|
+
const headers = sharedHeaders("PutLifecyclePolicy");
|
|
145
97
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
98
|
+
body = JSON.stringify(_json(input));
|
|
147
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
100
|
};
|
|
149
101
|
export const se_PutMetricPolicyCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "MediaStore_20170901.PutMetricPolicy",
|
|
153
|
-
};
|
|
102
|
+
const headers = sharedHeaders("PutMetricPolicy");
|
|
154
103
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(_json(input));
|
|
156
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
106
|
};
|
|
158
107
|
export const se_StartAccessLoggingCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "MediaStore_20170901.StartAccessLogging",
|
|
162
|
-
};
|
|
108
|
+
const headers = sharedHeaders("StartAccessLogging");
|
|
163
109
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(_json(input));
|
|
165
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
112
|
};
|
|
167
113
|
export const se_StopAccessLoggingCommand = async (input, context) => {
|
|
168
|
-
const headers =
|
|
169
|
-
"content-type": "application/x-amz-json-1.1",
|
|
170
|
-
"x-amz-target": "MediaStore_20170901.StopAccessLogging",
|
|
171
|
-
};
|
|
114
|
+
const headers = sharedHeaders("StopAccessLogging");
|
|
172
115
|
let body;
|
|
173
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify(_json(input));
|
|
174
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
118
|
};
|
|
176
119
|
export const se_TagResourceCommand = async (input, context) => {
|
|
177
|
-
const headers =
|
|
178
|
-
"content-type": "application/x-amz-json-1.1",
|
|
179
|
-
"x-amz-target": "MediaStore_20170901.TagResource",
|
|
180
|
-
};
|
|
120
|
+
const headers = sharedHeaders("TagResource");
|
|
181
121
|
let body;
|
|
182
|
-
body = JSON.stringify(
|
|
122
|
+
body = JSON.stringify(_json(input));
|
|
183
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
124
|
};
|
|
185
125
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
186
|
-
const headers =
|
|
187
|
-
"content-type": "application/x-amz-json-1.1",
|
|
188
|
-
"x-amz-target": "MediaStore_20170901.UntagResource",
|
|
189
|
-
};
|
|
126
|
+
const headers = sharedHeaders("UntagResource");
|
|
190
127
|
let body;
|
|
191
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(_json(input));
|
|
192
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
130
|
};
|
|
194
131
|
export const de_CreateContainerCommand = async (output, context) => {
|
|
@@ -202,7 +139,7 @@ export const de_CreateContainerCommand = async (output, context) => {
|
|
|
202
139
|
$metadata: deserializeMetadata(output),
|
|
203
140
|
...contents,
|
|
204
141
|
};
|
|
205
|
-
return
|
|
142
|
+
return response;
|
|
206
143
|
};
|
|
207
144
|
const de_CreateContainerCommandError = async (output, context) => {
|
|
208
145
|
const parsedOutput = {
|
|
@@ -222,10 +159,9 @@ const de_CreateContainerCommandError = async (output, context) => {
|
|
|
222
159
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
223
160
|
default:
|
|
224
161
|
const parsedBody = parsedOutput.body;
|
|
225
|
-
throwDefaultError({
|
|
162
|
+
return throwDefaultError({
|
|
226
163
|
output,
|
|
227
164
|
parsedBody,
|
|
228
|
-
exceptionCtor: __BaseException,
|
|
229
165
|
errorCode,
|
|
230
166
|
});
|
|
231
167
|
}
|
|
@@ -236,12 +172,12 @@ export const de_DeleteContainerCommand = async (output, context) => {
|
|
|
236
172
|
}
|
|
237
173
|
const data = await parseBody(output.body, context);
|
|
238
174
|
let contents = {};
|
|
239
|
-
contents =
|
|
175
|
+
contents = _json(data);
|
|
240
176
|
const response = {
|
|
241
177
|
$metadata: deserializeMetadata(output),
|
|
242
178
|
...contents,
|
|
243
179
|
};
|
|
244
|
-
return
|
|
180
|
+
return response;
|
|
245
181
|
};
|
|
246
182
|
const de_DeleteContainerCommandError = async (output, context) => {
|
|
247
183
|
const parsedOutput = {
|
|
@@ -261,10 +197,9 @@ const de_DeleteContainerCommandError = async (output, context) => {
|
|
|
261
197
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
262
198
|
default:
|
|
263
199
|
const parsedBody = parsedOutput.body;
|
|
264
|
-
throwDefaultError({
|
|
200
|
+
return throwDefaultError({
|
|
265
201
|
output,
|
|
266
202
|
parsedBody,
|
|
267
|
-
exceptionCtor: __BaseException,
|
|
268
203
|
errorCode,
|
|
269
204
|
});
|
|
270
205
|
}
|
|
@@ -275,12 +210,12 @@ export const de_DeleteContainerPolicyCommand = async (output, context) => {
|
|
|
275
210
|
}
|
|
276
211
|
const data = await parseBody(output.body, context);
|
|
277
212
|
let contents = {};
|
|
278
|
-
contents =
|
|
213
|
+
contents = _json(data);
|
|
279
214
|
const response = {
|
|
280
215
|
$metadata: deserializeMetadata(output),
|
|
281
216
|
...contents,
|
|
282
217
|
};
|
|
283
|
-
return
|
|
218
|
+
return response;
|
|
284
219
|
};
|
|
285
220
|
const de_DeleteContainerPolicyCommandError = async (output, context) => {
|
|
286
221
|
const parsedOutput = {
|
|
@@ -303,10 +238,9 @@ const de_DeleteContainerPolicyCommandError = async (output, context) => {
|
|
|
303
238
|
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
304
239
|
default:
|
|
305
240
|
const parsedBody = parsedOutput.body;
|
|
306
|
-
throwDefaultError({
|
|
241
|
+
return throwDefaultError({
|
|
307
242
|
output,
|
|
308
243
|
parsedBody,
|
|
309
|
-
exceptionCtor: __BaseException,
|
|
310
244
|
errorCode,
|
|
311
245
|
});
|
|
312
246
|
}
|
|
@@ -317,12 +251,12 @@ export const de_DeleteCorsPolicyCommand = async (output, context) => {
|
|
|
317
251
|
}
|
|
318
252
|
const data = await parseBody(output.body, context);
|
|
319
253
|
let contents = {};
|
|
320
|
-
contents =
|
|
254
|
+
contents = _json(data);
|
|
321
255
|
const response = {
|
|
322
256
|
$metadata: deserializeMetadata(output),
|
|
323
257
|
...contents,
|
|
324
258
|
};
|
|
325
|
-
return
|
|
259
|
+
return response;
|
|
326
260
|
};
|
|
327
261
|
const de_DeleteCorsPolicyCommandError = async (output, context) => {
|
|
328
262
|
const parsedOutput = {
|
|
@@ -345,10 +279,9 @@ const de_DeleteCorsPolicyCommandError = async (output, context) => {
|
|
|
345
279
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
346
280
|
default:
|
|
347
281
|
const parsedBody = parsedOutput.body;
|
|
348
|
-
throwDefaultError({
|
|
282
|
+
return throwDefaultError({
|
|
349
283
|
output,
|
|
350
284
|
parsedBody,
|
|
351
|
-
exceptionCtor: __BaseException,
|
|
352
285
|
errorCode,
|
|
353
286
|
});
|
|
354
287
|
}
|
|
@@ -359,12 +292,12 @@ export const de_DeleteLifecyclePolicyCommand = async (output, context) => {
|
|
|
359
292
|
}
|
|
360
293
|
const data = await parseBody(output.body, context);
|
|
361
294
|
let contents = {};
|
|
362
|
-
contents =
|
|
295
|
+
contents = _json(data);
|
|
363
296
|
const response = {
|
|
364
297
|
$metadata: deserializeMetadata(output),
|
|
365
298
|
...contents,
|
|
366
299
|
};
|
|
367
|
-
return
|
|
300
|
+
return response;
|
|
368
301
|
};
|
|
369
302
|
const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
|
|
370
303
|
const parsedOutput = {
|
|
@@ -387,10 +320,9 @@ const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
|
|
|
387
320
|
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
388
321
|
default:
|
|
389
322
|
const parsedBody = parsedOutput.body;
|
|
390
|
-
throwDefaultError({
|
|
323
|
+
return throwDefaultError({
|
|
391
324
|
output,
|
|
392
325
|
parsedBody,
|
|
393
|
-
exceptionCtor: __BaseException,
|
|
394
326
|
errorCode,
|
|
395
327
|
});
|
|
396
328
|
}
|
|
@@ -401,12 +333,12 @@ export const de_DeleteMetricPolicyCommand = async (output, context) => {
|
|
|
401
333
|
}
|
|
402
334
|
const data = await parseBody(output.body, context);
|
|
403
335
|
let contents = {};
|
|
404
|
-
contents =
|
|
336
|
+
contents = _json(data);
|
|
405
337
|
const response = {
|
|
406
338
|
$metadata: deserializeMetadata(output),
|
|
407
339
|
...contents,
|
|
408
340
|
};
|
|
409
|
-
return
|
|
341
|
+
return response;
|
|
410
342
|
};
|
|
411
343
|
const de_DeleteMetricPolicyCommandError = async (output, context) => {
|
|
412
344
|
const parsedOutput = {
|
|
@@ -429,10 +361,9 @@ const de_DeleteMetricPolicyCommandError = async (output, context) => {
|
|
|
429
361
|
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
430
362
|
default:
|
|
431
363
|
const parsedBody = parsedOutput.body;
|
|
432
|
-
throwDefaultError({
|
|
364
|
+
return throwDefaultError({
|
|
433
365
|
output,
|
|
434
366
|
parsedBody,
|
|
435
|
-
exceptionCtor: __BaseException,
|
|
436
367
|
errorCode,
|
|
437
368
|
});
|
|
438
369
|
}
|
|
@@ -448,7 +379,7 @@ export const de_DescribeContainerCommand = async (output, context) => {
|
|
|
448
379
|
$metadata: deserializeMetadata(output),
|
|
449
380
|
...contents,
|
|
450
381
|
};
|
|
451
|
-
return
|
|
382
|
+
return response;
|
|
452
383
|
};
|
|
453
384
|
const de_DescribeContainerCommandError = async (output, context) => {
|
|
454
385
|
const parsedOutput = {
|
|
@@ -465,10 +396,9 @@ const de_DescribeContainerCommandError = async (output, context) => {
|
|
|
465
396
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
466
397
|
default:
|
|
467
398
|
const parsedBody = parsedOutput.body;
|
|
468
|
-
throwDefaultError({
|
|
399
|
+
return throwDefaultError({
|
|
469
400
|
output,
|
|
470
401
|
parsedBody,
|
|
471
|
-
exceptionCtor: __BaseException,
|
|
472
402
|
errorCode,
|
|
473
403
|
});
|
|
474
404
|
}
|
|
@@ -479,12 +409,12 @@ export const de_GetContainerPolicyCommand = async (output, context) => {
|
|
|
479
409
|
}
|
|
480
410
|
const data = await parseBody(output.body, context);
|
|
481
411
|
let contents = {};
|
|
482
|
-
contents =
|
|
412
|
+
contents = _json(data);
|
|
483
413
|
const response = {
|
|
484
414
|
$metadata: deserializeMetadata(output),
|
|
485
415
|
...contents,
|
|
486
416
|
};
|
|
487
|
-
return
|
|
417
|
+
return response;
|
|
488
418
|
};
|
|
489
419
|
const de_GetContainerPolicyCommandError = async (output, context) => {
|
|
490
420
|
const parsedOutput = {
|
|
@@ -507,10 +437,9 @@ const de_GetContainerPolicyCommandError = async (output, context) => {
|
|
|
507
437
|
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
508
438
|
default:
|
|
509
439
|
const parsedBody = parsedOutput.body;
|
|
510
|
-
throwDefaultError({
|
|
440
|
+
return throwDefaultError({
|
|
511
441
|
output,
|
|
512
442
|
parsedBody,
|
|
513
|
-
exceptionCtor: __BaseException,
|
|
514
443
|
errorCode,
|
|
515
444
|
});
|
|
516
445
|
}
|
|
@@ -521,12 +450,12 @@ export const de_GetCorsPolicyCommand = async (output, context) => {
|
|
|
521
450
|
}
|
|
522
451
|
const data = await parseBody(output.body, context);
|
|
523
452
|
let contents = {};
|
|
524
|
-
contents =
|
|
453
|
+
contents = _json(data);
|
|
525
454
|
const response = {
|
|
526
455
|
$metadata: deserializeMetadata(output),
|
|
527
456
|
...contents,
|
|
528
457
|
};
|
|
529
|
-
return
|
|
458
|
+
return response;
|
|
530
459
|
};
|
|
531
460
|
const de_GetCorsPolicyCommandError = async (output, context) => {
|
|
532
461
|
const parsedOutput = {
|
|
@@ -549,10 +478,9 @@ const de_GetCorsPolicyCommandError = async (output, context) => {
|
|
|
549
478
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
550
479
|
default:
|
|
551
480
|
const parsedBody = parsedOutput.body;
|
|
552
|
-
throwDefaultError({
|
|
481
|
+
return throwDefaultError({
|
|
553
482
|
output,
|
|
554
483
|
parsedBody,
|
|
555
|
-
exceptionCtor: __BaseException,
|
|
556
484
|
errorCode,
|
|
557
485
|
});
|
|
558
486
|
}
|
|
@@ -563,12 +491,12 @@ export const de_GetLifecyclePolicyCommand = async (output, context) => {
|
|
|
563
491
|
}
|
|
564
492
|
const data = await parseBody(output.body, context);
|
|
565
493
|
let contents = {};
|
|
566
|
-
contents =
|
|
494
|
+
contents = _json(data);
|
|
567
495
|
const response = {
|
|
568
496
|
$metadata: deserializeMetadata(output),
|
|
569
497
|
...contents,
|
|
570
498
|
};
|
|
571
|
-
return
|
|
499
|
+
return response;
|
|
572
500
|
};
|
|
573
501
|
const de_GetLifecyclePolicyCommandError = async (output, context) => {
|
|
574
502
|
const parsedOutput = {
|
|
@@ -591,10 +519,9 @@ const de_GetLifecyclePolicyCommandError = async (output, context) => {
|
|
|
591
519
|
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
592
520
|
default:
|
|
593
521
|
const parsedBody = parsedOutput.body;
|
|
594
|
-
throwDefaultError({
|
|
522
|
+
return throwDefaultError({
|
|
595
523
|
output,
|
|
596
524
|
parsedBody,
|
|
597
|
-
exceptionCtor: __BaseException,
|
|
598
525
|
errorCode,
|
|
599
526
|
});
|
|
600
527
|
}
|
|
@@ -605,12 +532,12 @@ export const de_GetMetricPolicyCommand = async (output, context) => {
|
|
|
605
532
|
}
|
|
606
533
|
const data = await parseBody(output.body, context);
|
|
607
534
|
let contents = {};
|
|
608
|
-
contents =
|
|
535
|
+
contents = _json(data);
|
|
609
536
|
const response = {
|
|
610
537
|
$metadata: deserializeMetadata(output),
|
|
611
538
|
...contents,
|
|
612
539
|
};
|
|
613
|
-
return
|
|
540
|
+
return response;
|
|
614
541
|
};
|
|
615
542
|
const de_GetMetricPolicyCommandError = async (output, context) => {
|
|
616
543
|
const parsedOutput = {
|
|
@@ -633,10 +560,9 @@ const de_GetMetricPolicyCommandError = async (output, context) => {
|
|
|
633
560
|
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
634
561
|
default:
|
|
635
562
|
const parsedBody = parsedOutput.body;
|
|
636
|
-
throwDefaultError({
|
|
563
|
+
return throwDefaultError({
|
|
637
564
|
output,
|
|
638
565
|
parsedBody,
|
|
639
|
-
exceptionCtor: __BaseException,
|
|
640
566
|
errorCode,
|
|
641
567
|
});
|
|
642
568
|
}
|
|
@@ -652,7 +578,7 @@ export const de_ListContainersCommand = async (output, context) => {
|
|
|
652
578
|
$metadata: deserializeMetadata(output),
|
|
653
579
|
...contents,
|
|
654
580
|
};
|
|
655
|
-
return
|
|
581
|
+
return response;
|
|
656
582
|
};
|
|
657
583
|
const de_ListContainersCommandError = async (output, context) => {
|
|
658
584
|
const parsedOutput = {
|
|
@@ -666,10 +592,9 @@ const de_ListContainersCommandError = async (output, context) => {
|
|
|
666
592
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
667
593
|
default:
|
|
668
594
|
const parsedBody = parsedOutput.body;
|
|
669
|
-
throwDefaultError({
|
|
595
|
+
return throwDefaultError({
|
|
670
596
|
output,
|
|
671
597
|
parsedBody,
|
|
672
|
-
exceptionCtor: __BaseException,
|
|
673
598
|
errorCode,
|
|
674
599
|
});
|
|
675
600
|
}
|
|
@@ -680,12 +605,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
680
605
|
}
|
|
681
606
|
const data = await parseBody(output.body, context);
|
|
682
607
|
let contents = {};
|
|
683
|
-
contents =
|
|
608
|
+
contents = _json(data);
|
|
684
609
|
const response = {
|
|
685
610
|
$metadata: deserializeMetadata(output),
|
|
686
611
|
...contents,
|
|
687
612
|
};
|
|
688
|
-
return
|
|
613
|
+
return response;
|
|
689
614
|
};
|
|
690
615
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
691
616
|
const parsedOutput = {
|
|
@@ -705,10 +630,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
705
630
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
706
631
|
default:
|
|
707
632
|
const parsedBody = parsedOutput.body;
|
|
708
|
-
throwDefaultError({
|
|
633
|
+
return throwDefaultError({
|
|
709
634
|
output,
|
|
710
635
|
parsedBody,
|
|
711
|
-
exceptionCtor: __BaseException,
|
|
712
636
|
errorCode,
|
|
713
637
|
});
|
|
714
638
|
}
|
|
@@ -719,12 +643,12 @@ export const de_PutContainerPolicyCommand = async (output, context) => {
|
|
|
719
643
|
}
|
|
720
644
|
const data = await parseBody(output.body, context);
|
|
721
645
|
let contents = {};
|
|
722
|
-
contents =
|
|
646
|
+
contents = _json(data);
|
|
723
647
|
const response = {
|
|
724
648
|
$metadata: deserializeMetadata(output),
|
|
725
649
|
...contents,
|
|
726
650
|
};
|
|
727
|
-
return
|
|
651
|
+
return response;
|
|
728
652
|
};
|
|
729
653
|
const de_PutContainerPolicyCommandError = async (output, context) => {
|
|
730
654
|
const parsedOutput = {
|
|
@@ -744,10 +668,9 @@ const de_PutContainerPolicyCommandError = async (output, context) => {
|
|
|
744
668
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
745
669
|
default:
|
|
746
670
|
const parsedBody = parsedOutput.body;
|
|
747
|
-
throwDefaultError({
|
|
671
|
+
return throwDefaultError({
|
|
748
672
|
output,
|
|
749
673
|
parsedBody,
|
|
750
|
-
exceptionCtor: __BaseException,
|
|
751
674
|
errorCode,
|
|
752
675
|
});
|
|
753
676
|
}
|
|
@@ -758,12 +681,12 @@ export const de_PutCorsPolicyCommand = async (output, context) => {
|
|
|
758
681
|
}
|
|
759
682
|
const data = await parseBody(output.body, context);
|
|
760
683
|
let contents = {};
|
|
761
|
-
contents =
|
|
684
|
+
contents = _json(data);
|
|
762
685
|
const response = {
|
|
763
686
|
$metadata: deserializeMetadata(output),
|
|
764
687
|
...contents,
|
|
765
688
|
};
|
|
766
|
-
return
|
|
689
|
+
return response;
|
|
767
690
|
};
|
|
768
691
|
const de_PutCorsPolicyCommandError = async (output, context) => {
|
|
769
692
|
const parsedOutput = {
|
|
@@ -783,10 +706,9 @@ const de_PutCorsPolicyCommandError = async (output, context) => {
|
|
|
783
706
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
784
707
|
default:
|
|
785
708
|
const parsedBody = parsedOutput.body;
|
|
786
|
-
throwDefaultError({
|
|
709
|
+
return throwDefaultError({
|
|
787
710
|
output,
|
|
788
711
|
parsedBody,
|
|
789
|
-
exceptionCtor: __BaseException,
|
|
790
712
|
errorCode,
|
|
791
713
|
});
|
|
792
714
|
}
|
|
@@ -797,12 +719,12 @@ export const de_PutLifecyclePolicyCommand = async (output, context) => {
|
|
|
797
719
|
}
|
|
798
720
|
const data = await parseBody(output.body, context);
|
|
799
721
|
let contents = {};
|
|
800
|
-
contents =
|
|
722
|
+
contents = _json(data);
|
|
801
723
|
const response = {
|
|
802
724
|
$metadata: deserializeMetadata(output),
|
|
803
725
|
...contents,
|
|
804
726
|
};
|
|
805
|
-
return
|
|
727
|
+
return response;
|
|
806
728
|
};
|
|
807
729
|
const de_PutLifecyclePolicyCommandError = async (output, context) => {
|
|
808
730
|
const parsedOutput = {
|
|
@@ -822,10 +744,9 @@ const de_PutLifecyclePolicyCommandError = async (output, context) => {
|
|
|
822
744
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
823
745
|
default:
|
|
824
746
|
const parsedBody = parsedOutput.body;
|
|
825
|
-
throwDefaultError({
|
|
747
|
+
return throwDefaultError({
|
|
826
748
|
output,
|
|
827
749
|
parsedBody,
|
|
828
|
-
exceptionCtor: __BaseException,
|
|
829
750
|
errorCode,
|
|
830
751
|
});
|
|
831
752
|
}
|
|
@@ -836,12 +757,12 @@ export const de_PutMetricPolicyCommand = async (output, context) => {
|
|
|
836
757
|
}
|
|
837
758
|
const data = await parseBody(output.body, context);
|
|
838
759
|
let contents = {};
|
|
839
|
-
contents =
|
|
760
|
+
contents = _json(data);
|
|
840
761
|
const response = {
|
|
841
762
|
$metadata: deserializeMetadata(output),
|
|
842
763
|
...contents,
|
|
843
764
|
};
|
|
844
|
-
return
|
|
765
|
+
return response;
|
|
845
766
|
};
|
|
846
767
|
const de_PutMetricPolicyCommandError = async (output, context) => {
|
|
847
768
|
const parsedOutput = {
|
|
@@ -861,10 +782,9 @@ const de_PutMetricPolicyCommandError = async (output, context) => {
|
|
|
861
782
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
862
783
|
default:
|
|
863
784
|
const parsedBody = parsedOutput.body;
|
|
864
|
-
throwDefaultError({
|
|
785
|
+
return throwDefaultError({
|
|
865
786
|
output,
|
|
866
787
|
parsedBody,
|
|
867
|
-
exceptionCtor: __BaseException,
|
|
868
788
|
errorCode,
|
|
869
789
|
});
|
|
870
790
|
}
|
|
@@ -875,12 +795,12 @@ export const de_StartAccessLoggingCommand = async (output, context) => {
|
|
|
875
795
|
}
|
|
876
796
|
const data = await parseBody(output.body, context);
|
|
877
797
|
let contents = {};
|
|
878
|
-
contents =
|
|
798
|
+
contents = _json(data);
|
|
879
799
|
const response = {
|
|
880
800
|
$metadata: deserializeMetadata(output),
|
|
881
801
|
...contents,
|
|
882
802
|
};
|
|
883
|
-
return
|
|
803
|
+
return response;
|
|
884
804
|
};
|
|
885
805
|
const de_StartAccessLoggingCommandError = async (output, context) => {
|
|
886
806
|
const parsedOutput = {
|
|
@@ -900,10 +820,9 @@ const de_StartAccessLoggingCommandError = async (output, context) => {
|
|
|
900
820
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
901
821
|
default:
|
|
902
822
|
const parsedBody = parsedOutput.body;
|
|
903
|
-
throwDefaultError({
|
|
823
|
+
return throwDefaultError({
|
|
904
824
|
output,
|
|
905
825
|
parsedBody,
|
|
906
|
-
exceptionCtor: __BaseException,
|
|
907
826
|
errorCode,
|
|
908
827
|
});
|
|
909
828
|
}
|
|
@@ -914,12 +833,12 @@ export const de_StopAccessLoggingCommand = async (output, context) => {
|
|
|
914
833
|
}
|
|
915
834
|
const data = await parseBody(output.body, context);
|
|
916
835
|
let contents = {};
|
|
917
|
-
contents =
|
|
836
|
+
contents = _json(data);
|
|
918
837
|
const response = {
|
|
919
838
|
$metadata: deserializeMetadata(output),
|
|
920
839
|
...contents,
|
|
921
840
|
};
|
|
922
|
-
return
|
|
841
|
+
return response;
|
|
923
842
|
};
|
|
924
843
|
const de_StopAccessLoggingCommandError = async (output, context) => {
|
|
925
844
|
const parsedOutput = {
|
|
@@ -939,10 +858,9 @@ const de_StopAccessLoggingCommandError = async (output, context) => {
|
|
|
939
858
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
940
859
|
default:
|
|
941
860
|
const parsedBody = parsedOutput.body;
|
|
942
|
-
throwDefaultError({
|
|
861
|
+
return throwDefaultError({
|
|
943
862
|
output,
|
|
944
863
|
parsedBody,
|
|
945
|
-
exceptionCtor: __BaseException,
|
|
946
864
|
errorCode,
|
|
947
865
|
});
|
|
948
866
|
}
|
|
@@ -953,12 +871,12 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
953
871
|
}
|
|
954
872
|
const data = await parseBody(output.body, context);
|
|
955
873
|
let contents = {};
|
|
956
|
-
contents =
|
|
874
|
+
contents = _json(data);
|
|
957
875
|
const response = {
|
|
958
876
|
$metadata: deserializeMetadata(output),
|
|
959
877
|
...contents,
|
|
960
878
|
};
|
|
961
|
-
return
|
|
879
|
+
return response;
|
|
962
880
|
};
|
|
963
881
|
const de_TagResourceCommandError = async (output, context) => {
|
|
964
882
|
const parsedOutput = {
|
|
@@ -978,10 +896,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
978
896
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
979
897
|
default:
|
|
980
898
|
const parsedBody = parsedOutput.body;
|
|
981
|
-
throwDefaultError({
|
|
899
|
+
return throwDefaultError({
|
|
982
900
|
output,
|
|
983
901
|
parsedBody,
|
|
984
|
-
exceptionCtor: __BaseException,
|
|
985
902
|
errorCode,
|
|
986
903
|
});
|
|
987
904
|
}
|
|
@@ -992,12 +909,12 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
992
909
|
}
|
|
993
910
|
const data = await parseBody(output.body, context);
|
|
994
911
|
let contents = {};
|
|
995
|
-
contents =
|
|
912
|
+
contents = _json(data);
|
|
996
913
|
const response = {
|
|
997
914
|
$metadata: deserializeMetadata(output),
|
|
998
915
|
...contents,
|
|
999
916
|
};
|
|
1000
|
-
return
|
|
917
|
+
return response;
|
|
1001
918
|
};
|
|
1002
919
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
1003
920
|
const parsedOutput = {
|
|
@@ -1017,17 +934,16 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1017
934
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1018
935
|
default:
|
|
1019
936
|
const parsedBody = parsedOutput.body;
|
|
1020
|
-
throwDefaultError({
|
|
937
|
+
return throwDefaultError({
|
|
1021
938
|
output,
|
|
1022
939
|
parsedBody,
|
|
1023
|
-
exceptionCtor: __BaseException,
|
|
1024
940
|
errorCode,
|
|
1025
941
|
});
|
|
1026
942
|
}
|
|
1027
943
|
};
|
|
1028
944
|
const de_ContainerInUseExceptionRes = async (parsedOutput, context) => {
|
|
1029
945
|
const body = parsedOutput.body;
|
|
1030
|
-
const deserialized =
|
|
946
|
+
const deserialized = _json(body);
|
|
1031
947
|
const exception = new ContainerInUseException({
|
|
1032
948
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1033
949
|
...deserialized,
|
|
@@ -1036,7 +952,7 @@ const de_ContainerInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
1036
952
|
};
|
|
1037
953
|
const de_ContainerNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1038
954
|
const body = parsedOutput.body;
|
|
1039
|
-
const deserialized =
|
|
955
|
+
const deserialized = _json(body);
|
|
1040
956
|
const exception = new ContainerNotFoundException({
|
|
1041
957
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1042
958
|
...deserialized,
|
|
@@ -1045,7 +961,7 @@ const de_ContainerNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1045
961
|
};
|
|
1046
962
|
const de_CorsPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1047
963
|
const body = parsedOutput.body;
|
|
1048
|
-
const deserialized =
|
|
964
|
+
const deserialized = _json(body);
|
|
1049
965
|
const exception = new CorsPolicyNotFoundException({
|
|
1050
966
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1051
967
|
...deserialized,
|
|
@@ -1054,7 +970,7 @@ const de_CorsPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1054
970
|
};
|
|
1055
971
|
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
1056
972
|
const body = parsedOutput.body;
|
|
1057
|
-
const deserialized =
|
|
973
|
+
const deserialized = _json(body);
|
|
1058
974
|
const exception = new InternalServerError({
|
|
1059
975
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1060
976
|
...deserialized,
|
|
@@ -1063,7 +979,7 @@ const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
|
1063
979
|
};
|
|
1064
980
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1065
981
|
const body = parsedOutput.body;
|
|
1066
|
-
const deserialized =
|
|
982
|
+
const deserialized = _json(body);
|
|
1067
983
|
const exception = new LimitExceededException({
|
|
1068
984
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1069
985
|
...deserialized,
|
|
@@ -1072,447 +988,46 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1072
988
|
};
|
|
1073
989
|
const de_PolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1074
990
|
const body = parsedOutput.body;
|
|
1075
|
-
const deserialized =
|
|
991
|
+
const deserialized = _json(body);
|
|
1076
992
|
const exception = new PolicyNotFoundException({
|
|
1077
993
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1078
994
|
...deserialized,
|
|
1079
995
|
});
|
|
1080
996
|
return __decorateServiceException(exception, body);
|
|
1081
997
|
};
|
|
1082
|
-
const se_AllowedHeaders = (input, context) => {
|
|
1083
|
-
return input
|
|
1084
|
-
.filter((e) => e != null)
|
|
1085
|
-
.map((entry) => {
|
|
1086
|
-
return entry;
|
|
1087
|
-
});
|
|
1088
|
-
};
|
|
1089
|
-
const se_AllowedMethods = (input, context) => {
|
|
1090
|
-
return input
|
|
1091
|
-
.filter((e) => e != null)
|
|
1092
|
-
.map((entry) => {
|
|
1093
|
-
return entry;
|
|
1094
|
-
});
|
|
1095
|
-
};
|
|
1096
|
-
const se_AllowedOrigins = (input, context) => {
|
|
1097
|
-
return input
|
|
1098
|
-
.filter((e) => e != null)
|
|
1099
|
-
.map((entry) => {
|
|
1100
|
-
return entry;
|
|
1101
|
-
});
|
|
1102
|
-
};
|
|
1103
|
-
const se_CorsPolicy = (input, context) => {
|
|
1104
|
-
return input
|
|
1105
|
-
.filter((e) => e != null)
|
|
1106
|
-
.map((entry) => {
|
|
1107
|
-
return se_CorsRule(entry, context);
|
|
1108
|
-
});
|
|
1109
|
-
};
|
|
1110
|
-
const se_CorsRule = (input, context) => {
|
|
1111
|
-
return {
|
|
1112
|
-
...(input.AllowedHeaders != null && { AllowedHeaders: se_AllowedHeaders(input.AllowedHeaders, context) }),
|
|
1113
|
-
...(input.AllowedMethods != null && { AllowedMethods: se_AllowedMethods(input.AllowedMethods, context) }),
|
|
1114
|
-
...(input.AllowedOrigins != null && { AllowedOrigins: se_AllowedOrigins(input.AllowedOrigins, context) }),
|
|
1115
|
-
...(input.ExposeHeaders != null && { ExposeHeaders: se_ExposeHeaders(input.ExposeHeaders, context) }),
|
|
1116
|
-
...(input.MaxAgeSeconds != null && { MaxAgeSeconds: input.MaxAgeSeconds }),
|
|
1117
|
-
};
|
|
1118
|
-
};
|
|
1119
|
-
const se_CreateContainerInput = (input, context) => {
|
|
1120
|
-
return {
|
|
1121
|
-
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1122
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1123
|
-
};
|
|
1124
|
-
};
|
|
1125
|
-
const se_DeleteContainerInput = (input, context) => {
|
|
1126
|
-
return {
|
|
1127
|
-
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1128
|
-
};
|
|
1129
|
-
};
|
|
1130
|
-
const se_DeleteContainerPolicyInput = (input, context) => {
|
|
1131
|
-
return {
|
|
1132
|
-
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1133
|
-
};
|
|
1134
|
-
};
|
|
1135
|
-
const se_DeleteCorsPolicyInput = (input, context) => {
|
|
1136
|
-
return {
|
|
1137
|
-
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1138
|
-
};
|
|
1139
|
-
};
|
|
1140
|
-
const se_DeleteLifecyclePolicyInput = (input, context) => {
|
|
1141
|
-
return {
|
|
1142
|
-
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1143
|
-
};
|
|
1144
|
-
};
|
|
1145
|
-
const se_DeleteMetricPolicyInput = (input, context) => {
|
|
1146
|
-
return {
|
|
1147
|
-
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1148
|
-
};
|
|
1149
|
-
};
|
|
1150
|
-
const se_DescribeContainerInput = (input, context) => {
|
|
1151
|
-
return {
|
|
1152
|
-
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1153
|
-
};
|
|
1154
|
-
};
|
|
1155
|
-
const se_ExposeHeaders = (input, context) => {
|
|
1156
|
-
return input
|
|
1157
|
-
.filter((e) => e != null)
|
|
1158
|
-
.map((entry) => {
|
|
1159
|
-
return entry;
|
|
1160
|
-
});
|
|
1161
|
-
};
|
|
1162
|
-
const se_GetContainerPolicyInput = (input, context) => {
|
|
1163
|
-
return {
|
|
1164
|
-
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1165
|
-
};
|
|
1166
|
-
};
|
|
1167
|
-
const se_GetCorsPolicyInput = (input, context) => {
|
|
1168
|
-
return {
|
|
1169
|
-
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1170
|
-
};
|
|
1171
|
-
};
|
|
1172
|
-
const se_GetLifecyclePolicyInput = (input, context) => {
|
|
1173
|
-
return {
|
|
1174
|
-
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1175
|
-
};
|
|
1176
|
-
};
|
|
1177
|
-
const se_GetMetricPolicyInput = (input, context) => {
|
|
1178
|
-
return {
|
|
1179
|
-
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1180
|
-
};
|
|
1181
|
-
};
|
|
1182
|
-
const se_ListContainersInput = (input, context) => {
|
|
1183
|
-
return {
|
|
1184
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1185
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1186
|
-
};
|
|
1187
|
-
};
|
|
1188
|
-
const se_ListTagsForResourceInput = (input, context) => {
|
|
1189
|
-
return {
|
|
1190
|
-
...(input.Resource != null && { Resource: input.Resource }),
|
|
1191
|
-
};
|
|
1192
|
-
};
|
|
1193
|
-
const se_MetricPolicy = (input, context) => {
|
|
1194
|
-
return {
|
|
1195
|
-
...(input.ContainerLevelMetrics != null && { ContainerLevelMetrics: input.ContainerLevelMetrics }),
|
|
1196
|
-
...(input.MetricPolicyRules != null && {
|
|
1197
|
-
MetricPolicyRules: se_MetricPolicyRules(input.MetricPolicyRules, context),
|
|
1198
|
-
}),
|
|
1199
|
-
};
|
|
1200
|
-
};
|
|
1201
|
-
const se_MetricPolicyRule = (input, context) => {
|
|
1202
|
-
return {
|
|
1203
|
-
...(input.ObjectGroup != null && { ObjectGroup: input.ObjectGroup }),
|
|
1204
|
-
...(input.ObjectGroupName != null && { ObjectGroupName: input.ObjectGroupName }),
|
|
1205
|
-
};
|
|
1206
|
-
};
|
|
1207
|
-
const se_MetricPolicyRules = (input, context) => {
|
|
1208
|
-
return input
|
|
1209
|
-
.filter((e) => e != null)
|
|
1210
|
-
.map((entry) => {
|
|
1211
|
-
return se_MetricPolicyRule(entry, context);
|
|
1212
|
-
});
|
|
1213
|
-
};
|
|
1214
|
-
const se_PutContainerPolicyInput = (input, context) => {
|
|
1215
|
-
return {
|
|
1216
|
-
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1217
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
1218
|
-
};
|
|
1219
|
-
};
|
|
1220
|
-
const se_PutCorsPolicyInput = (input, context) => {
|
|
1221
|
-
return {
|
|
1222
|
-
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1223
|
-
...(input.CorsPolicy != null && { CorsPolicy: se_CorsPolicy(input.CorsPolicy, context) }),
|
|
1224
|
-
};
|
|
1225
|
-
};
|
|
1226
|
-
const se_PutLifecyclePolicyInput = (input, context) => {
|
|
1227
|
-
return {
|
|
1228
|
-
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1229
|
-
...(input.LifecyclePolicy != null && { LifecyclePolicy: input.LifecyclePolicy }),
|
|
1230
|
-
};
|
|
1231
|
-
};
|
|
1232
|
-
const se_PutMetricPolicyInput = (input, context) => {
|
|
1233
|
-
return {
|
|
1234
|
-
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1235
|
-
...(input.MetricPolicy != null && { MetricPolicy: se_MetricPolicy(input.MetricPolicy, context) }),
|
|
1236
|
-
};
|
|
1237
|
-
};
|
|
1238
|
-
const se_StartAccessLoggingInput = (input, context) => {
|
|
1239
|
-
return {
|
|
1240
|
-
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1241
|
-
};
|
|
1242
|
-
};
|
|
1243
|
-
const se_StopAccessLoggingInput = (input, context) => {
|
|
1244
|
-
return {
|
|
1245
|
-
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1246
|
-
};
|
|
1247
|
-
};
|
|
1248
|
-
const se_Tag = (input, context) => {
|
|
1249
|
-
return {
|
|
1250
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1251
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1252
|
-
};
|
|
1253
|
-
};
|
|
1254
|
-
const se_TagKeyList = (input, context) => {
|
|
1255
|
-
return input
|
|
1256
|
-
.filter((e) => e != null)
|
|
1257
|
-
.map((entry) => {
|
|
1258
|
-
return entry;
|
|
1259
|
-
});
|
|
1260
|
-
};
|
|
1261
|
-
const se_TagList = (input, context) => {
|
|
1262
|
-
return input
|
|
1263
|
-
.filter((e) => e != null)
|
|
1264
|
-
.map((entry) => {
|
|
1265
|
-
return se_Tag(entry, context);
|
|
1266
|
-
});
|
|
1267
|
-
};
|
|
1268
|
-
const se_TagResourceInput = (input, context) => {
|
|
1269
|
-
return {
|
|
1270
|
-
...(input.Resource != null && { Resource: input.Resource }),
|
|
1271
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1272
|
-
};
|
|
1273
|
-
};
|
|
1274
|
-
const se_UntagResourceInput = (input, context) => {
|
|
1275
|
-
return {
|
|
1276
|
-
...(input.Resource != null && { Resource: input.Resource }),
|
|
1277
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
1278
|
-
};
|
|
1279
|
-
};
|
|
1280
|
-
const de_AllowedHeaders = (output, context) => {
|
|
1281
|
-
const retVal = (output || [])
|
|
1282
|
-
.filter((e) => e != null)
|
|
1283
|
-
.map((entry) => {
|
|
1284
|
-
if (entry === null) {
|
|
1285
|
-
return null;
|
|
1286
|
-
}
|
|
1287
|
-
return __expectString(entry);
|
|
1288
|
-
});
|
|
1289
|
-
return retVal;
|
|
1290
|
-
};
|
|
1291
|
-
const de_AllowedMethods = (output, context) => {
|
|
1292
|
-
const retVal = (output || [])
|
|
1293
|
-
.filter((e) => e != null)
|
|
1294
|
-
.map((entry) => {
|
|
1295
|
-
if (entry === null) {
|
|
1296
|
-
return null;
|
|
1297
|
-
}
|
|
1298
|
-
return __expectString(entry);
|
|
1299
|
-
});
|
|
1300
|
-
return retVal;
|
|
1301
|
-
};
|
|
1302
|
-
const de_AllowedOrigins = (output, context) => {
|
|
1303
|
-
const retVal = (output || [])
|
|
1304
|
-
.filter((e) => e != null)
|
|
1305
|
-
.map((entry) => {
|
|
1306
|
-
if (entry === null) {
|
|
1307
|
-
return null;
|
|
1308
|
-
}
|
|
1309
|
-
return __expectString(entry);
|
|
1310
|
-
});
|
|
1311
|
-
return retVal;
|
|
1312
|
-
};
|
|
1313
998
|
const de_Container = (output, context) => {
|
|
1314
|
-
return {
|
|
1315
|
-
ARN: __expectString
|
|
1316
|
-
AccessLoggingEnabled: __expectBoolean
|
|
1317
|
-
CreationTime:
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
Status: __expectString(output.Status),
|
|
1323
|
-
};
|
|
1324
|
-
};
|
|
1325
|
-
const de_ContainerInUseException = (output, context) => {
|
|
1326
|
-
return {
|
|
1327
|
-
Message: __expectString(output.Message),
|
|
1328
|
-
};
|
|
999
|
+
return take(output, {
|
|
1000
|
+
ARN: __expectString,
|
|
1001
|
+
AccessLoggingEnabled: __expectBoolean,
|
|
1002
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1003
|
+
Endpoint: __expectString,
|
|
1004
|
+
Name: __expectString,
|
|
1005
|
+
Status: __expectString,
|
|
1006
|
+
});
|
|
1329
1007
|
};
|
|
1330
1008
|
const de_ContainerList = (output, context) => {
|
|
1331
1009
|
const retVal = (output || [])
|
|
1332
1010
|
.filter((e) => e != null)
|
|
1333
1011
|
.map((entry) => {
|
|
1334
|
-
if (entry === null) {
|
|
1335
|
-
return null;
|
|
1336
|
-
}
|
|
1337
1012
|
return de_Container(entry, context);
|
|
1338
1013
|
});
|
|
1339
1014
|
return retVal;
|
|
1340
1015
|
};
|
|
1341
|
-
const de_ContainerNotFoundException = (output, context) => {
|
|
1342
|
-
return {
|
|
1343
|
-
Message: __expectString(output.Message),
|
|
1344
|
-
};
|
|
1345
|
-
};
|
|
1346
|
-
const de_CorsPolicy = (output, context) => {
|
|
1347
|
-
const retVal = (output || [])
|
|
1348
|
-
.filter((e) => e != null)
|
|
1349
|
-
.map((entry) => {
|
|
1350
|
-
if (entry === null) {
|
|
1351
|
-
return null;
|
|
1352
|
-
}
|
|
1353
|
-
return de_CorsRule(entry, context);
|
|
1354
|
-
});
|
|
1355
|
-
return retVal;
|
|
1356
|
-
};
|
|
1357
|
-
const de_CorsPolicyNotFoundException = (output, context) => {
|
|
1358
|
-
return {
|
|
1359
|
-
Message: __expectString(output.Message),
|
|
1360
|
-
};
|
|
1361
|
-
};
|
|
1362
|
-
const de_CorsRule = (output, context) => {
|
|
1363
|
-
return {
|
|
1364
|
-
AllowedHeaders: output.AllowedHeaders != null ? de_AllowedHeaders(output.AllowedHeaders, context) : undefined,
|
|
1365
|
-
AllowedMethods: output.AllowedMethods != null ? de_AllowedMethods(output.AllowedMethods, context) : undefined,
|
|
1366
|
-
AllowedOrigins: output.AllowedOrigins != null ? de_AllowedOrigins(output.AllowedOrigins, context) : undefined,
|
|
1367
|
-
ExposeHeaders: output.ExposeHeaders != null ? de_ExposeHeaders(output.ExposeHeaders, context) : undefined,
|
|
1368
|
-
MaxAgeSeconds: __expectInt32(output.MaxAgeSeconds),
|
|
1369
|
-
};
|
|
1370
|
-
};
|
|
1371
1016
|
const de_CreateContainerOutput = (output, context) => {
|
|
1372
|
-
return {
|
|
1373
|
-
Container:
|
|
1374
|
-
};
|
|
1375
|
-
};
|
|
1376
|
-
const de_DeleteContainerOutput = (output, context) => {
|
|
1377
|
-
return {};
|
|
1378
|
-
};
|
|
1379
|
-
const de_DeleteContainerPolicyOutput = (output, context) => {
|
|
1380
|
-
return {};
|
|
1381
|
-
};
|
|
1382
|
-
const de_DeleteCorsPolicyOutput = (output, context) => {
|
|
1383
|
-
return {};
|
|
1384
|
-
};
|
|
1385
|
-
const de_DeleteLifecyclePolicyOutput = (output, context) => {
|
|
1386
|
-
return {};
|
|
1387
|
-
};
|
|
1388
|
-
const de_DeleteMetricPolicyOutput = (output, context) => {
|
|
1389
|
-
return {};
|
|
1017
|
+
return take(output, {
|
|
1018
|
+
Container: (_) => de_Container(_, context),
|
|
1019
|
+
});
|
|
1390
1020
|
};
|
|
1391
1021
|
const de_DescribeContainerOutput = (output, context) => {
|
|
1392
|
-
return {
|
|
1393
|
-
Container:
|
|
1394
|
-
};
|
|
1395
|
-
};
|
|
1396
|
-
const de_ExposeHeaders = (output, context) => {
|
|
1397
|
-
const retVal = (output || [])
|
|
1398
|
-
.filter((e) => e != null)
|
|
1399
|
-
.map((entry) => {
|
|
1400
|
-
if (entry === null) {
|
|
1401
|
-
return null;
|
|
1402
|
-
}
|
|
1403
|
-
return __expectString(entry);
|
|
1022
|
+
return take(output, {
|
|
1023
|
+
Container: (_) => de_Container(_, context),
|
|
1404
1024
|
});
|
|
1405
|
-
return retVal;
|
|
1406
|
-
};
|
|
1407
|
-
const de_GetContainerPolicyOutput = (output, context) => {
|
|
1408
|
-
return {
|
|
1409
|
-
Policy: __expectString(output.Policy),
|
|
1410
|
-
};
|
|
1411
|
-
};
|
|
1412
|
-
const de_GetCorsPolicyOutput = (output, context) => {
|
|
1413
|
-
return {
|
|
1414
|
-
CorsPolicy: output.CorsPolicy != null ? de_CorsPolicy(output.CorsPolicy, context) : undefined,
|
|
1415
|
-
};
|
|
1416
|
-
};
|
|
1417
|
-
const de_GetLifecyclePolicyOutput = (output, context) => {
|
|
1418
|
-
return {
|
|
1419
|
-
LifecyclePolicy: __expectString(output.LifecyclePolicy),
|
|
1420
|
-
};
|
|
1421
|
-
};
|
|
1422
|
-
const de_GetMetricPolicyOutput = (output, context) => {
|
|
1423
|
-
return {
|
|
1424
|
-
MetricPolicy: output.MetricPolicy != null ? de_MetricPolicy(output.MetricPolicy, context) : undefined,
|
|
1425
|
-
};
|
|
1426
|
-
};
|
|
1427
|
-
const de_InternalServerError = (output, context) => {
|
|
1428
|
-
return {
|
|
1429
|
-
Message: __expectString(output.Message),
|
|
1430
|
-
};
|
|
1431
|
-
};
|
|
1432
|
-
const de_LimitExceededException = (output, context) => {
|
|
1433
|
-
return {
|
|
1434
|
-
Message: __expectString(output.Message),
|
|
1435
|
-
};
|
|
1436
1025
|
};
|
|
1437
1026
|
const de_ListContainersOutput = (output, context) => {
|
|
1438
|
-
return {
|
|
1439
|
-
Containers:
|
|
1440
|
-
NextToken: __expectString
|
|
1441
|
-
};
|
|
1442
|
-
};
|
|
1443
|
-
const de_ListTagsForResourceOutput = (output, context) => {
|
|
1444
|
-
return {
|
|
1445
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
1446
|
-
};
|
|
1447
|
-
};
|
|
1448
|
-
const de_MetricPolicy = (output, context) => {
|
|
1449
|
-
return {
|
|
1450
|
-
ContainerLevelMetrics: __expectString(output.ContainerLevelMetrics),
|
|
1451
|
-
MetricPolicyRules: output.MetricPolicyRules != null ? de_MetricPolicyRules(output.MetricPolicyRules, context) : undefined,
|
|
1452
|
-
};
|
|
1453
|
-
};
|
|
1454
|
-
const de_MetricPolicyRule = (output, context) => {
|
|
1455
|
-
return {
|
|
1456
|
-
ObjectGroup: __expectString(output.ObjectGroup),
|
|
1457
|
-
ObjectGroupName: __expectString(output.ObjectGroupName),
|
|
1458
|
-
};
|
|
1459
|
-
};
|
|
1460
|
-
const de_MetricPolicyRules = (output, context) => {
|
|
1461
|
-
const retVal = (output || [])
|
|
1462
|
-
.filter((e) => e != null)
|
|
1463
|
-
.map((entry) => {
|
|
1464
|
-
if (entry === null) {
|
|
1465
|
-
return null;
|
|
1466
|
-
}
|
|
1467
|
-
return de_MetricPolicyRule(entry, context);
|
|
1027
|
+
return take(output, {
|
|
1028
|
+
Containers: (_) => de_ContainerList(_, context),
|
|
1029
|
+
NextToken: __expectString,
|
|
1468
1030
|
});
|
|
1469
|
-
return retVal;
|
|
1470
|
-
};
|
|
1471
|
-
const de_PolicyNotFoundException = (output, context) => {
|
|
1472
|
-
return {
|
|
1473
|
-
Message: __expectString(output.Message),
|
|
1474
|
-
};
|
|
1475
|
-
};
|
|
1476
|
-
const de_PutContainerPolicyOutput = (output, context) => {
|
|
1477
|
-
return {};
|
|
1478
|
-
};
|
|
1479
|
-
const de_PutCorsPolicyOutput = (output, context) => {
|
|
1480
|
-
return {};
|
|
1481
|
-
};
|
|
1482
|
-
const de_PutLifecyclePolicyOutput = (output, context) => {
|
|
1483
|
-
return {};
|
|
1484
|
-
};
|
|
1485
|
-
const de_PutMetricPolicyOutput = (output, context) => {
|
|
1486
|
-
return {};
|
|
1487
|
-
};
|
|
1488
|
-
const de_StartAccessLoggingOutput = (output, context) => {
|
|
1489
|
-
return {};
|
|
1490
|
-
};
|
|
1491
|
-
const de_StopAccessLoggingOutput = (output, context) => {
|
|
1492
|
-
return {};
|
|
1493
|
-
};
|
|
1494
|
-
const de_Tag = (output, context) => {
|
|
1495
|
-
return {
|
|
1496
|
-
Key: __expectString(output.Key),
|
|
1497
|
-
Value: __expectString(output.Value),
|
|
1498
|
-
};
|
|
1499
|
-
};
|
|
1500
|
-
const de_TagList = (output, context) => {
|
|
1501
|
-
const retVal = (output || [])
|
|
1502
|
-
.filter((e) => e != null)
|
|
1503
|
-
.map((entry) => {
|
|
1504
|
-
if (entry === null) {
|
|
1505
|
-
return null;
|
|
1506
|
-
}
|
|
1507
|
-
return de_Tag(entry, context);
|
|
1508
|
-
});
|
|
1509
|
-
return retVal;
|
|
1510
|
-
};
|
|
1511
|
-
const de_TagResourceOutput = (output, context) => {
|
|
1512
|
-
return {};
|
|
1513
|
-
};
|
|
1514
|
-
const de_UntagResourceOutput = (output, context) => {
|
|
1515
|
-
return {};
|
|
1516
1031
|
};
|
|
1517
1032
|
const deserializeMetadata = (output) => ({
|
|
1518
1033
|
httpStatusCode: output.statusCode,
|
|
@@ -1527,6 +1042,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1527
1042
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1528
1043
|
};
|
|
1529
1044
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1045
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1530
1046
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1531
1047
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1532
1048
|
const contents = {
|
|
@@ -1545,6 +1061,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
1545
1061
|
}
|
|
1546
1062
|
return new __HttpRequest(contents);
|
|
1547
1063
|
};
|
|
1064
|
+
function sharedHeaders(operation) {
|
|
1065
|
+
return {
|
|
1066
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1067
|
+
"x-amz-target": `MediaStore_20170901.${operation}`,
|
|
1068
|
+
};
|
|
1069
|
+
}
|
|
1548
1070
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1549
1071
|
if (encoded.length) {
|
|
1550
1072
|
return JSON.parse(encoded);
|