@aws-sdk/client-mediastore 3.306.0 → 3.309.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/commands/CreateContainerCommand.js +2 -2
- package/dist-cjs/commands/DeleteContainerCommand.js +2 -2
- package/dist-cjs/commands/DeleteContainerPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteCorsPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteMetricPolicyCommand.js +2 -2
- package/dist-cjs/commands/DescribeContainerCommand.js +2 -2
- package/dist-cjs/commands/GetContainerPolicyCommand.js +2 -2
- package/dist-cjs/commands/GetCorsPolicyCommand.js +2 -2
- package/dist-cjs/commands/GetLifecyclePolicyCommand.js +2 -2
- package/dist-cjs/commands/GetMetricPolicyCommand.js +2 -2
- package/dist-cjs/commands/ListContainersCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutContainerPolicyCommand.js +2 -2
- package/dist-cjs/commands/PutCorsPolicyCommand.js +2 -2
- package/dist-cjs/commands/PutLifecyclePolicyCommand.js +2 -2
- package/dist-cjs/commands/PutMetricPolicyCommand.js +2 -2
- package/dist-cjs/commands/StartAccessLoggingCommand.js +2 -2
- package/dist-cjs/commands/StopAccessLoggingCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +350 -360
- package/dist-es/commands/CreateContainerCommand.js +3 -3
- package/dist-es/commands/DeleteContainerCommand.js +3 -3
- package/dist-es/commands/DeleteContainerPolicyCommand.js +3 -3
- package/dist-es/commands/DeleteCorsPolicyCommand.js +3 -3
- package/dist-es/commands/DeleteLifecyclePolicyCommand.js +3 -3
- package/dist-es/commands/DeleteMetricPolicyCommand.js +3 -3
- package/dist-es/commands/DescribeContainerCommand.js +3 -3
- package/dist-es/commands/GetContainerPolicyCommand.js +3 -3
- package/dist-es/commands/GetCorsPolicyCommand.js +3 -3
- package/dist-es/commands/GetLifecyclePolicyCommand.js +3 -3
- package/dist-es/commands/GetMetricPolicyCommand.js +3 -3
- package/dist-es/commands/ListContainersCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutContainerPolicyCommand.js +3 -3
- package/dist-es/commands/PutCorsPolicyCommand.js +3 -3
- package/dist-es/commands/PutLifecyclePolicyCommand.js +3 -3
- package/dist-es/commands/PutMetricPolicyCommand.js +3 -3
- package/dist-es/commands/StartAccessLoggingCommand.js +3 -3
- package/dist-es/commands/StopAccessLoggingCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +307 -317
- package/dist-types/protocols/Aws_json1_1.d.ts +168 -42
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +42 -42
- package/package.json +6 -6
|
@@ -2,209 +2,209 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } 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
|
-
export const
|
|
5
|
+
export const se_CreateContainerCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.1",
|
|
8
8
|
"x-amz-target": "MediaStore_20170901.CreateContainer",
|
|
9
9
|
};
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify(se_CreateContainerInput(input, context));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
|
-
export const
|
|
14
|
+
export const se_DeleteContainerCommand = async (input, context) => {
|
|
15
15
|
const headers = {
|
|
16
16
|
"content-type": "application/x-amz-json-1.1",
|
|
17
17
|
"x-amz-target": "MediaStore_20170901.DeleteContainer",
|
|
18
18
|
};
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(se_DeleteContainerInput(input, context));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
|
-
export const
|
|
23
|
+
export const se_DeleteContainerPolicyCommand = async (input, context) => {
|
|
24
24
|
const headers = {
|
|
25
25
|
"content-type": "application/x-amz-json-1.1",
|
|
26
26
|
"x-amz-target": "MediaStore_20170901.DeleteContainerPolicy",
|
|
27
27
|
};
|
|
28
28
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
29
|
+
body = JSON.stringify(se_DeleteContainerPolicyInput(input, context));
|
|
30
30
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
31
|
};
|
|
32
|
-
export const
|
|
32
|
+
export const se_DeleteCorsPolicyCommand = async (input, context) => {
|
|
33
33
|
const headers = {
|
|
34
34
|
"content-type": "application/x-amz-json-1.1",
|
|
35
35
|
"x-amz-target": "MediaStore_20170901.DeleteCorsPolicy",
|
|
36
36
|
};
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(se_DeleteCorsPolicyInput(input, context));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
|
-
export const
|
|
41
|
+
export const se_DeleteLifecyclePolicyCommand = async (input, context) => {
|
|
42
42
|
const headers = {
|
|
43
43
|
"content-type": "application/x-amz-json-1.1",
|
|
44
44
|
"x-amz-target": "MediaStore_20170901.DeleteLifecyclePolicy",
|
|
45
45
|
};
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify(se_DeleteLifecyclePolicyInput(input, context));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
50
|
+
export const se_DeleteMetricPolicyCommand = async (input, context) => {
|
|
51
51
|
const headers = {
|
|
52
52
|
"content-type": "application/x-amz-json-1.1",
|
|
53
53
|
"x-amz-target": "MediaStore_20170901.DeleteMetricPolicy",
|
|
54
54
|
};
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(se_DeleteMetricPolicyInput(input, context));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
|
-
export const
|
|
59
|
+
export const se_DescribeContainerCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.1",
|
|
62
62
|
"x-amz-target": "MediaStore_20170901.DescribeContainer",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_DescribeContainerInput(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
export const
|
|
68
|
+
export const se_GetContainerPolicyCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.1",
|
|
71
71
|
"x-amz-target": "MediaStore_20170901.GetContainerPolicy",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_GetContainerPolicyInput(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
export const
|
|
77
|
+
export const se_GetCorsPolicyCommand = async (input, context) => {
|
|
78
78
|
const headers = {
|
|
79
79
|
"content-type": "application/x-amz-json-1.1",
|
|
80
80
|
"x-amz-target": "MediaStore_20170901.GetCorsPolicy",
|
|
81
81
|
};
|
|
82
82
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
83
|
+
body = JSON.stringify(se_GetCorsPolicyInput(input, context));
|
|
84
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
85
|
};
|
|
86
|
-
export const
|
|
86
|
+
export const se_GetLifecyclePolicyCommand = async (input, context) => {
|
|
87
87
|
const headers = {
|
|
88
88
|
"content-type": "application/x-amz-json-1.1",
|
|
89
89
|
"x-amz-target": "MediaStore_20170901.GetLifecyclePolicy",
|
|
90
90
|
};
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(se_GetLifecyclePolicyInput(input, context));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
|
-
export const
|
|
95
|
+
export const se_GetMetricPolicyCommand = async (input, context) => {
|
|
96
96
|
const headers = {
|
|
97
97
|
"content-type": "application/x-amz-json-1.1",
|
|
98
98
|
"x-amz-target": "MediaStore_20170901.GetMetricPolicy",
|
|
99
99
|
};
|
|
100
100
|
let body;
|
|
101
|
-
body = JSON.stringify(
|
|
101
|
+
body = JSON.stringify(se_GetMetricPolicyInput(input, context));
|
|
102
102
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
103
|
};
|
|
104
|
-
export const
|
|
104
|
+
export const se_ListContainersCommand = async (input, context) => {
|
|
105
105
|
const headers = {
|
|
106
106
|
"content-type": "application/x-amz-json-1.1",
|
|
107
107
|
"x-amz-target": "MediaStore_20170901.ListContainers",
|
|
108
108
|
};
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(se_ListContainersInput(input, context));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
|
-
export const
|
|
113
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
114
114
|
const headers = {
|
|
115
115
|
"content-type": "application/x-amz-json-1.1",
|
|
116
116
|
"x-amz-target": "MediaStore_20170901.ListTagsForResource",
|
|
117
117
|
};
|
|
118
118
|
let body;
|
|
119
|
-
body = JSON.stringify(
|
|
119
|
+
body = JSON.stringify(se_ListTagsForResourceInput(input, context));
|
|
120
120
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
121
|
};
|
|
122
|
-
export const
|
|
122
|
+
export const se_PutContainerPolicyCommand = async (input, context) => {
|
|
123
123
|
const headers = {
|
|
124
124
|
"content-type": "application/x-amz-json-1.1",
|
|
125
125
|
"x-amz-target": "MediaStore_20170901.PutContainerPolicy",
|
|
126
126
|
};
|
|
127
127
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(se_PutContainerPolicyInput(input, context));
|
|
129
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
130
|
};
|
|
131
|
-
export const
|
|
131
|
+
export const se_PutCorsPolicyCommand = async (input, context) => {
|
|
132
132
|
const headers = {
|
|
133
133
|
"content-type": "application/x-amz-json-1.1",
|
|
134
134
|
"x-amz-target": "MediaStore_20170901.PutCorsPolicy",
|
|
135
135
|
};
|
|
136
136
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
137
|
+
body = JSON.stringify(se_PutCorsPolicyInput(input, context));
|
|
138
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
139
|
};
|
|
140
|
-
export const
|
|
140
|
+
export const se_PutLifecyclePolicyCommand = async (input, context) => {
|
|
141
141
|
const headers = {
|
|
142
142
|
"content-type": "application/x-amz-json-1.1",
|
|
143
143
|
"x-amz-target": "MediaStore_20170901.PutLifecyclePolicy",
|
|
144
144
|
};
|
|
145
145
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify(se_PutLifecyclePolicyInput(input, context));
|
|
147
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
148
|
};
|
|
149
|
-
export const
|
|
149
|
+
export const se_PutMetricPolicyCommand = async (input, context) => {
|
|
150
150
|
const headers = {
|
|
151
151
|
"content-type": "application/x-amz-json-1.1",
|
|
152
152
|
"x-amz-target": "MediaStore_20170901.PutMetricPolicy",
|
|
153
153
|
};
|
|
154
154
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
155
|
+
body = JSON.stringify(se_PutMetricPolicyInput(input, context));
|
|
156
156
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
157
|
};
|
|
158
|
-
export const
|
|
158
|
+
export const se_StartAccessLoggingCommand = async (input, context) => {
|
|
159
159
|
const headers = {
|
|
160
160
|
"content-type": "application/x-amz-json-1.1",
|
|
161
161
|
"x-amz-target": "MediaStore_20170901.StartAccessLogging",
|
|
162
162
|
};
|
|
163
163
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(se_StartAccessLoggingInput(input, context));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
|
-
export const
|
|
167
|
+
export const se_StopAccessLoggingCommand = async (input, context) => {
|
|
168
168
|
const headers = {
|
|
169
169
|
"content-type": "application/x-amz-json-1.1",
|
|
170
170
|
"x-amz-target": "MediaStore_20170901.StopAccessLogging",
|
|
171
171
|
};
|
|
172
172
|
let body;
|
|
173
|
-
body = JSON.stringify(
|
|
173
|
+
body = JSON.stringify(se_StopAccessLoggingInput(input, context));
|
|
174
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
175
|
};
|
|
176
|
-
export const
|
|
176
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
177
177
|
const headers = {
|
|
178
178
|
"content-type": "application/x-amz-json-1.1",
|
|
179
179
|
"x-amz-target": "MediaStore_20170901.TagResource",
|
|
180
180
|
};
|
|
181
181
|
let body;
|
|
182
|
-
body = JSON.stringify(
|
|
182
|
+
body = JSON.stringify(se_TagResourceInput(input, context));
|
|
183
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
184
|
};
|
|
185
|
-
export const
|
|
185
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
186
186
|
const headers = {
|
|
187
187
|
"content-type": "application/x-amz-json-1.1",
|
|
188
188
|
"x-amz-target": "MediaStore_20170901.UntagResource",
|
|
189
189
|
};
|
|
190
190
|
let body;
|
|
191
|
-
body = JSON.stringify(
|
|
191
|
+
body = JSON.stringify(se_UntagResourceInput(input, context));
|
|
192
192
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
193
|
};
|
|
194
|
-
export const
|
|
194
|
+
export const de_CreateContainerCommand = async (output, context) => {
|
|
195
195
|
if (output.statusCode >= 300) {
|
|
196
|
-
return
|
|
196
|
+
return de_CreateContainerCommandError(output, context);
|
|
197
197
|
}
|
|
198
198
|
const data = await parseBody(output.body, context);
|
|
199
199
|
let contents = {};
|
|
200
|
-
contents =
|
|
200
|
+
contents = de_CreateContainerOutput(data, context);
|
|
201
201
|
const response = {
|
|
202
202
|
$metadata: deserializeMetadata(output),
|
|
203
203
|
...contents,
|
|
204
204
|
};
|
|
205
205
|
return Promise.resolve(response);
|
|
206
206
|
};
|
|
207
|
-
const
|
|
207
|
+
const de_CreateContainerCommandError = async (output, context) => {
|
|
208
208
|
const parsedOutput = {
|
|
209
209
|
...output,
|
|
210
210
|
body: await parseErrorBody(output.body, context),
|
|
@@ -213,13 +213,13 @@ const deserializeAws_json1_1CreateContainerCommandError = async (output, context
|
|
|
213
213
|
switch (errorCode) {
|
|
214
214
|
case "ContainerInUseException":
|
|
215
215
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
216
|
-
throw await
|
|
216
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
217
217
|
case "InternalServerError":
|
|
218
218
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
219
|
-
throw await
|
|
219
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
220
220
|
case "LimitExceededException":
|
|
221
221
|
case "com.amazonaws.mediastore#LimitExceededException":
|
|
222
|
-
throw await
|
|
222
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
223
223
|
default:
|
|
224
224
|
const parsedBody = parsedOutput.body;
|
|
225
225
|
throwDefaultError({
|
|
@@ -230,20 +230,20 @@ const deserializeAws_json1_1CreateContainerCommandError = async (output, context
|
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
|
-
export const
|
|
233
|
+
export const de_DeleteContainerCommand = async (output, context) => {
|
|
234
234
|
if (output.statusCode >= 300) {
|
|
235
|
-
return
|
|
235
|
+
return de_DeleteContainerCommandError(output, context);
|
|
236
236
|
}
|
|
237
237
|
const data = await parseBody(output.body, context);
|
|
238
238
|
let contents = {};
|
|
239
|
-
contents =
|
|
239
|
+
contents = de_DeleteContainerOutput(data, context);
|
|
240
240
|
const response = {
|
|
241
241
|
$metadata: deserializeMetadata(output),
|
|
242
242
|
...contents,
|
|
243
243
|
};
|
|
244
244
|
return Promise.resolve(response);
|
|
245
245
|
};
|
|
246
|
-
const
|
|
246
|
+
const de_DeleteContainerCommandError = async (output, context) => {
|
|
247
247
|
const parsedOutput = {
|
|
248
248
|
...output,
|
|
249
249
|
body: await parseErrorBody(output.body, context),
|
|
@@ -252,13 +252,13 @@ const deserializeAws_json1_1DeleteContainerCommandError = async (output, context
|
|
|
252
252
|
switch (errorCode) {
|
|
253
253
|
case "ContainerInUseException":
|
|
254
254
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
255
|
-
throw await
|
|
255
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
256
256
|
case "ContainerNotFoundException":
|
|
257
257
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
258
|
-
throw await
|
|
258
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
259
259
|
case "InternalServerError":
|
|
260
260
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
261
|
-
throw await
|
|
261
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
262
262
|
default:
|
|
263
263
|
const parsedBody = parsedOutput.body;
|
|
264
264
|
throwDefaultError({
|
|
@@ -269,20 +269,20 @@ const deserializeAws_json1_1DeleteContainerCommandError = async (output, context
|
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
|
-
export const
|
|
272
|
+
export const de_DeleteContainerPolicyCommand = async (output, context) => {
|
|
273
273
|
if (output.statusCode >= 300) {
|
|
274
|
-
return
|
|
274
|
+
return de_DeleteContainerPolicyCommandError(output, context);
|
|
275
275
|
}
|
|
276
276
|
const data = await parseBody(output.body, context);
|
|
277
277
|
let contents = {};
|
|
278
|
-
contents =
|
|
278
|
+
contents = de_DeleteContainerPolicyOutput(data, context);
|
|
279
279
|
const response = {
|
|
280
280
|
$metadata: deserializeMetadata(output),
|
|
281
281
|
...contents,
|
|
282
282
|
};
|
|
283
283
|
return Promise.resolve(response);
|
|
284
284
|
};
|
|
285
|
-
const
|
|
285
|
+
const de_DeleteContainerPolicyCommandError = async (output, context) => {
|
|
286
286
|
const parsedOutput = {
|
|
287
287
|
...output,
|
|
288
288
|
body: await parseErrorBody(output.body, context),
|
|
@@ -291,16 +291,16 @@ const deserializeAws_json1_1DeleteContainerPolicyCommandError = async (output, c
|
|
|
291
291
|
switch (errorCode) {
|
|
292
292
|
case "ContainerInUseException":
|
|
293
293
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
294
|
-
throw await
|
|
294
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
295
295
|
case "ContainerNotFoundException":
|
|
296
296
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
297
|
-
throw await
|
|
297
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
298
298
|
case "InternalServerError":
|
|
299
299
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
300
|
-
throw await
|
|
300
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
301
301
|
case "PolicyNotFoundException":
|
|
302
302
|
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
303
|
-
throw await
|
|
303
|
+
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
304
304
|
default:
|
|
305
305
|
const parsedBody = parsedOutput.body;
|
|
306
306
|
throwDefaultError({
|
|
@@ -311,20 +311,20 @@ const deserializeAws_json1_1DeleteContainerPolicyCommandError = async (output, c
|
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
|
-
export const
|
|
314
|
+
export const de_DeleteCorsPolicyCommand = async (output, context) => {
|
|
315
315
|
if (output.statusCode >= 300) {
|
|
316
|
-
return
|
|
316
|
+
return de_DeleteCorsPolicyCommandError(output, context);
|
|
317
317
|
}
|
|
318
318
|
const data = await parseBody(output.body, context);
|
|
319
319
|
let contents = {};
|
|
320
|
-
contents =
|
|
320
|
+
contents = de_DeleteCorsPolicyOutput(data, context);
|
|
321
321
|
const response = {
|
|
322
322
|
$metadata: deserializeMetadata(output),
|
|
323
323
|
...contents,
|
|
324
324
|
};
|
|
325
325
|
return Promise.resolve(response);
|
|
326
326
|
};
|
|
327
|
-
const
|
|
327
|
+
const de_DeleteCorsPolicyCommandError = async (output, context) => {
|
|
328
328
|
const parsedOutput = {
|
|
329
329
|
...output,
|
|
330
330
|
body: await parseErrorBody(output.body, context),
|
|
@@ -333,16 +333,16 @@ const deserializeAws_json1_1DeleteCorsPolicyCommandError = async (output, contex
|
|
|
333
333
|
switch (errorCode) {
|
|
334
334
|
case "ContainerInUseException":
|
|
335
335
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
336
|
-
throw await
|
|
336
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
337
337
|
case "ContainerNotFoundException":
|
|
338
338
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
339
|
-
throw await
|
|
339
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
340
340
|
case "CorsPolicyNotFoundException":
|
|
341
341
|
case "com.amazonaws.mediastore#CorsPolicyNotFoundException":
|
|
342
|
-
throw await
|
|
342
|
+
throw await de_CorsPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
343
343
|
case "InternalServerError":
|
|
344
344
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
345
|
-
throw await
|
|
345
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
346
346
|
default:
|
|
347
347
|
const parsedBody = parsedOutput.body;
|
|
348
348
|
throwDefaultError({
|
|
@@ -353,20 +353,20 @@ const deserializeAws_json1_1DeleteCorsPolicyCommandError = async (output, contex
|
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
355
|
};
|
|
356
|
-
export const
|
|
356
|
+
export const de_DeleteLifecyclePolicyCommand = async (output, context) => {
|
|
357
357
|
if (output.statusCode >= 300) {
|
|
358
|
-
return
|
|
358
|
+
return de_DeleteLifecyclePolicyCommandError(output, context);
|
|
359
359
|
}
|
|
360
360
|
const data = await parseBody(output.body, context);
|
|
361
361
|
let contents = {};
|
|
362
|
-
contents =
|
|
362
|
+
contents = de_DeleteLifecyclePolicyOutput(data, context);
|
|
363
363
|
const response = {
|
|
364
364
|
$metadata: deserializeMetadata(output),
|
|
365
365
|
...contents,
|
|
366
366
|
};
|
|
367
367
|
return Promise.resolve(response);
|
|
368
368
|
};
|
|
369
|
-
const
|
|
369
|
+
const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
|
|
370
370
|
const parsedOutput = {
|
|
371
371
|
...output,
|
|
372
372
|
body: await parseErrorBody(output.body, context),
|
|
@@ -375,16 +375,16 @@ const deserializeAws_json1_1DeleteLifecyclePolicyCommandError = async (output, c
|
|
|
375
375
|
switch (errorCode) {
|
|
376
376
|
case "ContainerInUseException":
|
|
377
377
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
378
|
-
throw await
|
|
378
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
379
379
|
case "ContainerNotFoundException":
|
|
380
380
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
381
|
-
throw await
|
|
381
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
382
382
|
case "InternalServerError":
|
|
383
383
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
384
|
-
throw await
|
|
384
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
385
385
|
case "PolicyNotFoundException":
|
|
386
386
|
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
387
|
-
throw await
|
|
387
|
+
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
388
388
|
default:
|
|
389
389
|
const parsedBody = parsedOutput.body;
|
|
390
390
|
throwDefaultError({
|
|
@@ -395,20 +395,20 @@ const deserializeAws_json1_1DeleteLifecyclePolicyCommandError = async (output, c
|
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
397
|
};
|
|
398
|
-
export const
|
|
398
|
+
export const de_DeleteMetricPolicyCommand = async (output, context) => {
|
|
399
399
|
if (output.statusCode >= 300) {
|
|
400
|
-
return
|
|
400
|
+
return de_DeleteMetricPolicyCommandError(output, context);
|
|
401
401
|
}
|
|
402
402
|
const data = await parseBody(output.body, context);
|
|
403
403
|
let contents = {};
|
|
404
|
-
contents =
|
|
404
|
+
contents = de_DeleteMetricPolicyOutput(data, context);
|
|
405
405
|
const response = {
|
|
406
406
|
$metadata: deserializeMetadata(output),
|
|
407
407
|
...contents,
|
|
408
408
|
};
|
|
409
409
|
return Promise.resolve(response);
|
|
410
410
|
};
|
|
411
|
-
const
|
|
411
|
+
const de_DeleteMetricPolicyCommandError = async (output, context) => {
|
|
412
412
|
const parsedOutput = {
|
|
413
413
|
...output,
|
|
414
414
|
body: await parseErrorBody(output.body, context),
|
|
@@ -417,16 +417,16 @@ const deserializeAws_json1_1DeleteMetricPolicyCommandError = async (output, cont
|
|
|
417
417
|
switch (errorCode) {
|
|
418
418
|
case "ContainerInUseException":
|
|
419
419
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
420
|
-
throw await
|
|
420
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
421
421
|
case "ContainerNotFoundException":
|
|
422
422
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
423
|
-
throw await
|
|
423
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
424
424
|
case "InternalServerError":
|
|
425
425
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
426
|
-
throw await
|
|
426
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
427
427
|
case "PolicyNotFoundException":
|
|
428
428
|
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
429
|
-
throw await
|
|
429
|
+
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
430
430
|
default:
|
|
431
431
|
const parsedBody = parsedOutput.body;
|
|
432
432
|
throwDefaultError({
|
|
@@ -437,20 +437,20 @@ const deserializeAws_json1_1DeleteMetricPolicyCommandError = async (output, cont
|
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
};
|
|
440
|
-
export const
|
|
440
|
+
export const de_DescribeContainerCommand = async (output, context) => {
|
|
441
441
|
if (output.statusCode >= 300) {
|
|
442
|
-
return
|
|
442
|
+
return de_DescribeContainerCommandError(output, context);
|
|
443
443
|
}
|
|
444
444
|
const data = await parseBody(output.body, context);
|
|
445
445
|
let contents = {};
|
|
446
|
-
contents =
|
|
446
|
+
contents = de_DescribeContainerOutput(data, context);
|
|
447
447
|
const response = {
|
|
448
448
|
$metadata: deserializeMetadata(output),
|
|
449
449
|
...contents,
|
|
450
450
|
};
|
|
451
451
|
return Promise.resolve(response);
|
|
452
452
|
};
|
|
453
|
-
const
|
|
453
|
+
const de_DescribeContainerCommandError = async (output, context) => {
|
|
454
454
|
const parsedOutput = {
|
|
455
455
|
...output,
|
|
456
456
|
body: await parseErrorBody(output.body, context),
|
|
@@ -459,10 +459,10 @@ const deserializeAws_json1_1DescribeContainerCommandError = async (output, conte
|
|
|
459
459
|
switch (errorCode) {
|
|
460
460
|
case "ContainerNotFoundException":
|
|
461
461
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
462
|
-
throw await
|
|
462
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
463
463
|
case "InternalServerError":
|
|
464
464
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
465
|
-
throw await
|
|
465
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
466
466
|
default:
|
|
467
467
|
const parsedBody = parsedOutput.body;
|
|
468
468
|
throwDefaultError({
|
|
@@ -473,20 +473,20 @@ const deserializeAws_json1_1DescribeContainerCommandError = async (output, conte
|
|
|
473
473
|
});
|
|
474
474
|
}
|
|
475
475
|
};
|
|
476
|
-
export const
|
|
476
|
+
export const de_GetContainerPolicyCommand = async (output, context) => {
|
|
477
477
|
if (output.statusCode >= 300) {
|
|
478
|
-
return
|
|
478
|
+
return de_GetContainerPolicyCommandError(output, context);
|
|
479
479
|
}
|
|
480
480
|
const data = await parseBody(output.body, context);
|
|
481
481
|
let contents = {};
|
|
482
|
-
contents =
|
|
482
|
+
contents = de_GetContainerPolicyOutput(data, context);
|
|
483
483
|
const response = {
|
|
484
484
|
$metadata: deserializeMetadata(output),
|
|
485
485
|
...contents,
|
|
486
486
|
};
|
|
487
487
|
return Promise.resolve(response);
|
|
488
488
|
};
|
|
489
|
-
const
|
|
489
|
+
const de_GetContainerPolicyCommandError = async (output, context) => {
|
|
490
490
|
const parsedOutput = {
|
|
491
491
|
...output,
|
|
492
492
|
body: await parseErrorBody(output.body, context),
|
|
@@ -495,16 +495,16 @@ const deserializeAws_json1_1GetContainerPolicyCommandError = async (output, cont
|
|
|
495
495
|
switch (errorCode) {
|
|
496
496
|
case "ContainerInUseException":
|
|
497
497
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
498
|
-
throw await
|
|
498
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
499
499
|
case "ContainerNotFoundException":
|
|
500
500
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
501
|
-
throw await
|
|
501
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
502
502
|
case "InternalServerError":
|
|
503
503
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
504
|
-
throw await
|
|
504
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
505
505
|
case "PolicyNotFoundException":
|
|
506
506
|
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
507
|
-
throw await
|
|
507
|
+
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
508
508
|
default:
|
|
509
509
|
const parsedBody = parsedOutput.body;
|
|
510
510
|
throwDefaultError({
|
|
@@ -515,20 +515,20 @@ const deserializeAws_json1_1GetContainerPolicyCommandError = async (output, cont
|
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
|
-
export const
|
|
518
|
+
export const de_GetCorsPolicyCommand = async (output, context) => {
|
|
519
519
|
if (output.statusCode >= 300) {
|
|
520
|
-
return
|
|
520
|
+
return de_GetCorsPolicyCommandError(output, context);
|
|
521
521
|
}
|
|
522
522
|
const data = await parseBody(output.body, context);
|
|
523
523
|
let contents = {};
|
|
524
|
-
contents =
|
|
524
|
+
contents = de_GetCorsPolicyOutput(data, context);
|
|
525
525
|
const response = {
|
|
526
526
|
$metadata: deserializeMetadata(output),
|
|
527
527
|
...contents,
|
|
528
528
|
};
|
|
529
529
|
return Promise.resolve(response);
|
|
530
530
|
};
|
|
531
|
-
const
|
|
531
|
+
const de_GetCorsPolicyCommandError = async (output, context) => {
|
|
532
532
|
const parsedOutput = {
|
|
533
533
|
...output,
|
|
534
534
|
body: await parseErrorBody(output.body, context),
|
|
@@ -537,16 +537,16 @@ const deserializeAws_json1_1GetCorsPolicyCommandError = async (output, context)
|
|
|
537
537
|
switch (errorCode) {
|
|
538
538
|
case "ContainerInUseException":
|
|
539
539
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
540
|
-
throw await
|
|
540
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
541
541
|
case "ContainerNotFoundException":
|
|
542
542
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
543
|
-
throw await
|
|
543
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
544
544
|
case "CorsPolicyNotFoundException":
|
|
545
545
|
case "com.amazonaws.mediastore#CorsPolicyNotFoundException":
|
|
546
|
-
throw await
|
|
546
|
+
throw await de_CorsPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
547
547
|
case "InternalServerError":
|
|
548
548
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
549
|
-
throw await
|
|
549
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
550
550
|
default:
|
|
551
551
|
const parsedBody = parsedOutput.body;
|
|
552
552
|
throwDefaultError({
|
|
@@ -557,20 +557,20 @@ const deserializeAws_json1_1GetCorsPolicyCommandError = async (output, context)
|
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
559
|
};
|
|
560
|
-
export const
|
|
560
|
+
export const de_GetLifecyclePolicyCommand = async (output, context) => {
|
|
561
561
|
if (output.statusCode >= 300) {
|
|
562
|
-
return
|
|
562
|
+
return de_GetLifecyclePolicyCommandError(output, context);
|
|
563
563
|
}
|
|
564
564
|
const data = await parseBody(output.body, context);
|
|
565
565
|
let contents = {};
|
|
566
|
-
contents =
|
|
566
|
+
contents = de_GetLifecyclePolicyOutput(data, context);
|
|
567
567
|
const response = {
|
|
568
568
|
$metadata: deserializeMetadata(output),
|
|
569
569
|
...contents,
|
|
570
570
|
};
|
|
571
571
|
return Promise.resolve(response);
|
|
572
572
|
};
|
|
573
|
-
const
|
|
573
|
+
const de_GetLifecyclePolicyCommandError = async (output, context) => {
|
|
574
574
|
const parsedOutput = {
|
|
575
575
|
...output,
|
|
576
576
|
body: await parseErrorBody(output.body, context),
|
|
@@ -579,16 +579,16 @@ const deserializeAws_json1_1GetLifecyclePolicyCommandError = async (output, cont
|
|
|
579
579
|
switch (errorCode) {
|
|
580
580
|
case "ContainerInUseException":
|
|
581
581
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
582
|
-
throw await
|
|
582
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
583
583
|
case "ContainerNotFoundException":
|
|
584
584
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
585
|
-
throw await
|
|
585
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
586
586
|
case "InternalServerError":
|
|
587
587
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
588
|
-
throw await
|
|
588
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
589
589
|
case "PolicyNotFoundException":
|
|
590
590
|
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
591
|
-
throw await
|
|
591
|
+
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
592
592
|
default:
|
|
593
593
|
const parsedBody = parsedOutput.body;
|
|
594
594
|
throwDefaultError({
|
|
@@ -599,20 +599,20 @@ const deserializeAws_json1_1GetLifecyclePolicyCommandError = async (output, cont
|
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
601
|
};
|
|
602
|
-
export const
|
|
602
|
+
export const de_GetMetricPolicyCommand = async (output, context) => {
|
|
603
603
|
if (output.statusCode >= 300) {
|
|
604
|
-
return
|
|
604
|
+
return de_GetMetricPolicyCommandError(output, context);
|
|
605
605
|
}
|
|
606
606
|
const data = await parseBody(output.body, context);
|
|
607
607
|
let contents = {};
|
|
608
|
-
contents =
|
|
608
|
+
contents = de_GetMetricPolicyOutput(data, context);
|
|
609
609
|
const response = {
|
|
610
610
|
$metadata: deserializeMetadata(output),
|
|
611
611
|
...contents,
|
|
612
612
|
};
|
|
613
613
|
return Promise.resolve(response);
|
|
614
614
|
};
|
|
615
|
-
const
|
|
615
|
+
const de_GetMetricPolicyCommandError = async (output, context) => {
|
|
616
616
|
const parsedOutput = {
|
|
617
617
|
...output,
|
|
618
618
|
body: await parseErrorBody(output.body, context),
|
|
@@ -621,16 +621,16 @@ const deserializeAws_json1_1GetMetricPolicyCommandError = async (output, context
|
|
|
621
621
|
switch (errorCode) {
|
|
622
622
|
case "ContainerInUseException":
|
|
623
623
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
624
|
-
throw await
|
|
624
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
625
625
|
case "ContainerNotFoundException":
|
|
626
626
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
627
|
-
throw await
|
|
627
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
628
628
|
case "InternalServerError":
|
|
629
629
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
630
|
-
throw await
|
|
630
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
631
631
|
case "PolicyNotFoundException":
|
|
632
632
|
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
633
|
-
throw await
|
|
633
|
+
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
634
634
|
default:
|
|
635
635
|
const parsedBody = parsedOutput.body;
|
|
636
636
|
throwDefaultError({
|
|
@@ -641,20 +641,20 @@ const deserializeAws_json1_1GetMetricPolicyCommandError = async (output, context
|
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
643
|
};
|
|
644
|
-
export const
|
|
644
|
+
export const de_ListContainersCommand = async (output, context) => {
|
|
645
645
|
if (output.statusCode >= 300) {
|
|
646
|
-
return
|
|
646
|
+
return de_ListContainersCommandError(output, context);
|
|
647
647
|
}
|
|
648
648
|
const data = await parseBody(output.body, context);
|
|
649
649
|
let contents = {};
|
|
650
|
-
contents =
|
|
650
|
+
contents = de_ListContainersOutput(data, context);
|
|
651
651
|
const response = {
|
|
652
652
|
$metadata: deserializeMetadata(output),
|
|
653
653
|
...contents,
|
|
654
654
|
};
|
|
655
655
|
return Promise.resolve(response);
|
|
656
656
|
};
|
|
657
|
-
const
|
|
657
|
+
const de_ListContainersCommandError = async (output, context) => {
|
|
658
658
|
const parsedOutput = {
|
|
659
659
|
...output,
|
|
660
660
|
body: await parseErrorBody(output.body, context),
|
|
@@ -663,7 +663,7 @@ const deserializeAws_json1_1ListContainersCommandError = async (output, context)
|
|
|
663
663
|
switch (errorCode) {
|
|
664
664
|
case "InternalServerError":
|
|
665
665
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
666
|
-
throw await
|
|
666
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
667
667
|
default:
|
|
668
668
|
const parsedBody = parsedOutput.body;
|
|
669
669
|
throwDefaultError({
|
|
@@ -674,20 +674,20 @@ const deserializeAws_json1_1ListContainersCommandError = async (output, context)
|
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
676
|
};
|
|
677
|
-
export const
|
|
677
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
678
678
|
if (output.statusCode >= 300) {
|
|
679
|
-
return
|
|
679
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
680
680
|
}
|
|
681
681
|
const data = await parseBody(output.body, context);
|
|
682
682
|
let contents = {};
|
|
683
|
-
contents =
|
|
683
|
+
contents = de_ListTagsForResourceOutput(data, context);
|
|
684
684
|
const response = {
|
|
685
685
|
$metadata: deserializeMetadata(output),
|
|
686
686
|
...contents,
|
|
687
687
|
};
|
|
688
688
|
return Promise.resolve(response);
|
|
689
689
|
};
|
|
690
|
-
const
|
|
690
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
691
691
|
const parsedOutput = {
|
|
692
692
|
...output,
|
|
693
693
|
body: await parseErrorBody(output.body, context),
|
|
@@ -696,13 +696,13 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
696
696
|
switch (errorCode) {
|
|
697
697
|
case "ContainerInUseException":
|
|
698
698
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
699
|
-
throw await
|
|
699
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
700
700
|
case "ContainerNotFoundException":
|
|
701
701
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
702
|
-
throw await
|
|
702
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
703
703
|
case "InternalServerError":
|
|
704
704
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
705
|
-
throw await
|
|
705
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
706
706
|
default:
|
|
707
707
|
const parsedBody = parsedOutput.body;
|
|
708
708
|
throwDefaultError({
|
|
@@ -713,20 +713,20 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
713
713
|
});
|
|
714
714
|
}
|
|
715
715
|
};
|
|
716
|
-
export const
|
|
716
|
+
export const de_PutContainerPolicyCommand = async (output, context) => {
|
|
717
717
|
if (output.statusCode >= 300) {
|
|
718
|
-
return
|
|
718
|
+
return de_PutContainerPolicyCommandError(output, context);
|
|
719
719
|
}
|
|
720
720
|
const data = await parseBody(output.body, context);
|
|
721
721
|
let contents = {};
|
|
722
|
-
contents =
|
|
722
|
+
contents = de_PutContainerPolicyOutput(data, context);
|
|
723
723
|
const response = {
|
|
724
724
|
$metadata: deserializeMetadata(output),
|
|
725
725
|
...contents,
|
|
726
726
|
};
|
|
727
727
|
return Promise.resolve(response);
|
|
728
728
|
};
|
|
729
|
-
const
|
|
729
|
+
const de_PutContainerPolicyCommandError = async (output, context) => {
|
|
730
730
|
const parsedOutput = {
|
|
731
731
|
...output,
|
|
732
732
|
body: await parseErrorBody(output.body, context),
|
|
@@ -735,13 +735,13 @@ const deserializeAws_json1_1PutContainerPolicyCommandError = async (output, cont
|
|
|
735
735
|
switch (errorCode) {
|
|
736
736
|
case "ContainerInUseException":
|
|
737
737
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
738
|
-
throw await
|
|
738
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
739
739
|
case "ContainerNotFoundException":
|
|
740
740
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
741
|
-
throw await
|
|
741
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
742
742
|
case "InternalServerError":
|
|
743
743
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
744
|
-
throw await
|
|
744
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
745
745
|
default:
|
|
746
746
|
const parsedBody = parsedOutput.body;
|
|
747
747
|
throwDefaultError({
|
|
@@ -752,20 +752,20 @@ const deserializeAws_json1_1PutContainerPolicyCommandError = async (output, cont
|
|
|
752
752
|
});
|
|
753
753
|
}
|
|
754
754
|
};
|
|
755
|
-
export const
|
|
755
|
+
export const de_PutCorsPolicyCommand = async (output, context) => {
|
|
756
756
|
if (output.statusCode >= 300) {
|
|
757
|
-
return
|
|
757
|
+
return de_PutCorsPolicyCommandError(output, context);
|
|
758
758
|
}
|
|
759
759
|
const data = await parseBody(output.body, context);
|
|
760
760
|
let contents = {};
|
|
761
|
-
contents =
|
|
761
|
+
contents = de_PutCorsPolicyOutput(data, context);
|
|
762
762
|
const response = {
|
|
763
763
|
$metadata: deserializeMetadata(output),
|
|
764
764
|
...contents,
|
|
765
765
|
};
|
|
766
766
|
return Promise.resolve(response);
|
|
767
767
|
};
|
|
768
|
-
const
|
|
768
|
+
const de_PutCorsPolicyCommandError = async (output, context) => {
|
|
769
769
|
const parsedOutput = {
|
|
770
770
|
...output,
|
|
771
771
|
body: await parseErrorBody(output.body, context),
|
|
@@ -774,13 +774,13 @@ const deserializeAws_json1_1PutCorsPolicyCommandError = async (output, context)
|
|
|
774
774
|
switch (errorCode) {
|
|
775
775
|
case "ContainerInUseException":
|
|
776
776
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
777
|
-
throw await
|
|
777
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
778
778
|
case "ContainerNotFoundException":
|
|
779
779
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
780
|
-
throw await
|
|
780
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
781
781
|
case "InternalServerError":
|
|
782
782
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
783
|
-
throw await
|
|
783
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
784
784
|
default:
|
|
785
785
|
const parsedBody = parsedOutput.body;
|
|
786
786
|
throwDefaultError({
|
|
@@ -791,20 +791,20 @@ const deserializeAws_json1_1PutCorsPolicyCommandError = async (output, context)
|
|
|
791
791
|
});
|
|
792
792
|
}
|
|
793
793
|
};
|
|
794
|
-
export const
|
|
794
|
+
export const de_PutLifecyclePolicyCommand = async (output, context) => {
|
|
795
795
|
if (output.statusCode >= 300) {
|
|
796
|
-
return
|
|
796
|
+
return de_PutLifecyclePolicyCommandError(output, context);
|
|
797
797
|
}
|
|
798
798
|
const data = await parseBody(output.body, context);
|
|
799
799
|
let contents = {};
|
|
800
|
-
contents =
|
|
800
|
+
contents = de_PutLifecyclePolicyOutput(data, context);
|
|
801
801
|
const response = {
|
|
802
802
|
$metadata: deserializeMetadata(output),
|
|
803
803
|
...contents,
|
|
804
804
|
};
|
|
805
805
|
return Promise.resolve(response);
|
|
806
806
|
};
|
|
807
|
-
const
|
|
807
|
+
const de_PutLifecyclePolicyCommandError = async (output, context) => {
|
|
808
808
|
const parsedOutput = {
|
|
809
809
|
...output,
|
|
810
810
|
body: await parseErrorBody(output.body, context),
|
|
@@ -813,13 +813,13 @@ const deserializeAws_json1_1PutLifecyclePolicyCommandError = async (output, cont
|
|
|
813
813
|
switch (errorCode) {
|
|
814
814
|
case "ContainerInUseException":
|
|
815
815
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
816
|
-
throw await
|
|
816
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
817
817
|
case "ContainerNotFoundException":
|
|
818
818
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
819
|
-
throw await
|
|
819
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
820
820
|
case "InternalServerError":
|
|
821
821
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
822
|
-
throw await
|
|
822
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
823
823
|
default:
|
|
824
824
|
const parsedBody = parsedOutput.body;
|
|
825
825
|
throwDefaultError({
|
|
@@ -830,20 +830,20 @@ const deserializeAws_json1_1PutLifecyclePolicyCommandError = async (output, cont
|
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
832
|
};
|
|
833
|
-
export const
|
|
833
|
+
export const de_PutMetricPolicyCommand = async (output, context) => {
|
|
834
834
|
if (output.statusCode >= 300) {
|
|
835
|
-
return
|
|
835
|
+
return de_PutMetricPolicyCommandError(output, context);
|
|
836
836
|
}
|
|
837
837
|
const data = await parseBody(output.body, context);
|
|
838
838
|
let contents = {};
|
|
839
|
-
contents =
|
|
839
|
+
contents = de_PutMetricPolicyOutput(data, context);
|
|
840
840
|
const response = {
|
|
841
841
|
$metadata: deserializeMetadata(output),
|
|
842
842
|
...contents,
|
|
843
843
|
};
|
|
844
844
|
return Promise.resolve(response);
|
|
845
845
|
};
|
|
846
|
-
const
|
|
846
|
+
const de_PutMetricPolicyCommandError = async (output, context) => {
|
|
847
847
|
const parsedOutput = {
|
|
848
848
|
...output,
|
|
849
849
|
body: await parseErrorBody(output.body, context),
|
|
@@ -852,13 +852,13 @@ const deserializeAws_json1_1PutMetricPolicyCommandError = async (output, context
|
|
|
852
852
|
switch (errorCode) {
|
|
853
853
|
case "ContainerInUseException":
|
|
854
854
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
855
|
-
throw await
|
|
855
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
856
856
|
case "ContainerNotFoundException":
|
|
857
857
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
858
|
-
throw await
|
|
858
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
859
859
|
case "InternalServerError":
|
|
860
860
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
861
|
-
throw await
|
|
861
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
862
862
|
default:
|
|
863
863
|
const parsedBody = parsedOutput.body;
|
|
864
864
|
throwDefaultError({
|
|
@@ -869,20 +869,20 @@ const deserializeAws_json1_1PutMetricPolicyCommandError = async (output, context
|
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
871
|
};
|
|
872
|
-
export const
|
|
872
|
+
export const de_StartAccessLoggingCommand = async (output, context) => {
|
|
873
873
|
if (output.statusCode >= 300) {
|
|
874
|
-
return
|
|
874
|
+
return de_StartAccessLoggingCommandError(output, context);
|
|
875
875
|
}
|
|
876
876
|
const data = await parseBody(output.body, context);
|
|
877
877
|
let contents = {};
|
|
878
|
-
contents =
|
|
878
|
+
contents = de_StartAccessLoggingOutput(data, context);
|
|
879
879
|
const response = {
|
|
880
880
|
$metadata: deserializeMetadata(output),
|
|
881
881
|
...contents,
|
|
882
882
|
};
|
|
883
883
|
return Promise.resolve(response);
|
|
884
884
|
};
|
|
885
|
-
const
|
|
885
|
+
const de_StartAccessLoggingCommandError = async (output, context) => {
|
|
886
886
|
const parsedOutput = {
|
|
887
887
|
...output,
|
|
888
888
|
body: await parseErrorBody(output.body, context),
|
|
@@ -891,13 +891,13 @@ const deserializeAws_json1_1StartAccessLoggingCommandError = async (output, cont
|
|
|
891
891
|
switch (errorCode) {
|
|
892
892
|
case "ContainerInUseException":
|
|
893
893
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
894
|
-
throw await
|
|
894
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
895
895
|
case "ContainerNotFoundException":
|
|
896
896
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
897
|
-
throw await
|
|
897
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
898
898
|
case "InternalServerError":
|
|
899
899
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
900
|
-
throw await
|
|
900
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
901
901
|
default:
|
|
902
902
|
const parsedBody = parsedOutput.body;
|
|
903
903
|
throwDefaultError({
|
|
@@ -908,20 +908,20 @@ const deserializeAws_json1_1StartAccessLoggingCommandError = async (output, cont
|
|
|
908
908
|
});
|
|
909
909
|
}
|
|
910
910
|
};
|
|
911
|
-
export const
|
|
911
|
+
export const de_StopAccessLoggingCommand = async (output, context) => {
|
|
912
912
|
if (output.statusCode >= 300) {
|
|
913
|
-
return
|
|
913
|
+
return de_StopAccessLoggingCommandError(output, context);
|
|
914
914
|
}
|
|
915
915
|
const data = await parseBody(output.body, context);
|
|
916
916
|
let contents = {};
|
|
917
|
-
contents =
|
|
917
|
+
contents = de_StopAccessLoggingOutput(data, context);
|
|
918
918
|
const response = {
|
|
919
919
|
$metadata: deserializeMetadata(output),
|
|
920
920
|
...contents,
|
|
921
921
|
};
|
|
922
922
|
return Promise.resolve(response);
|
|
923
923
|
};
|
|
924
|
-
const
|
|
924
|
+
const de_StopAccessLoggingCommandError = async (output, context) => {
|
|
925
925
|
const parsedOutput = {
|
|
926
926
|
...output,
|
|
927
927
|
body: await parseErrorBody(output.body, context),
|
|
@@ -930,13 +930,13 @@ const deserializeAws_json1_1StopAccessLoggingCommandError = async (output, conte
|
|
|
930
930
|
switch (errorCode) {
|
|
931
931
|
case "ContainerInUseException":
|
|
932
932
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
933
|
-
throw await
|
|
933
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
934
934
|
case "ContainerNotFoundException":
|
|
935
935
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
936
|
-
throw await
|
|
936
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
937
937
|
case "InternalServerError":
|
|
938
938
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
939
|
-
throw await
|
|
939
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
940
940
|
default:
|
|
941
941
|
const parsedBody = parsedOutput.body;
|
|
942
942
|
throwDefaultError({
|
|
@@ -947,20 +947,20 @@ const deserializeAws_json1_1StopAccessLoggingCommandError = async (output, conte
|
|
|
947
947
|
});
|
|
948
948
|
}
|
|
949
949
|
};
|
|
950
|
-
export const
|
|
950
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
951
951
|
if (output.statusCode >= 300) {
|
|
952
|
-
return
|
|
952
|
+
return de_TagResourceCommandError(output, context);
|
|
953
953
|
}
|
|
954
954
|
const data = await parseBody(output.body, context);
|
|
955
955
|
let contents = {};
|
|
956
|
-
contents =
|
|
956
|
+
contents = de_TagResourceOutput(data, context);
|
|
957
957
|
const response = {
|
|
958
958
|
$metadata: deserializeMetadata(output),
|
|
959
959
|
...contents,
|
|
960
960
|
};
|
|
961
961
|
return Promise.resolve(response);
|
|
962
962
|
};
|
|
963
|
-
const
|
|
963
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
964
964
|
const parsedOutput = {
|
|
965
965
|
...output,
|
|
966
966
|
body: await parseErrorBody(output.body, context),
|
|
@@ -969,13 +969,13 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
969
969
|
switch (errorCode) {
|
|
970
970
|
case "ContainerInUseException":
|
|
971
971
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
972
|
-
throw await
|
|
972
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
973
973
|
case "ContainerNotFoundException":
|
|
974
974
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
975
|
-
throw await
|
|
975
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
976
976
|
case "InternalServerError":
|
|
977
977
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
978
|
-
throw await
|
|
978
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
979
979
|
default:
|
|
980
980
|
const parsedBody = parsedOutput.body;
|
|
981
981
|
throwDefaultError({
|
|
@@ -986,20 +986,20 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
986
986
|
});
|
|
987
987
|
}
|
|
988
988
|
};
|
|
989
|
-
export const
|
|
989
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
990
990
|
if (output.statusCode >= 300) {
|
|
991
|
-
return
|
|
991
|
+
return de_UntagResourceCommandError(output, context);
|
|
992
992
|
}
|
|
993
993
|
const data = await parseBody(output.body, context);
|
|
994
994
|
let contents = {};
|
|
995
|
-
contents =
|
|
995
|
+
contents = de_UntagResourceOutput(data, context);
|
|
996
996
|
const response = {
|
|
997
997
|
$metadata: deserializeMetadata(output),
|
|
998
998
|
...contents,
|
|
999
999
|
};
|
|
1000
1000
|
return Promise.resolve(response);
|
|
1001
1001
|
};
|
|
1002
|
-
const
|
|
1002
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1003
1003
|
const parsedOutput = {
|
|
1004
1004
|
...output,
|
|
1005
1005
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1008,13 +1008,13 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1008
1008
|
switch (errorCode) {
|
|
1009
1009
|
case "ContainerInUseException":
|
|
1010
1010
|
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
1011
|
-
throw await
|
|
1011
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
1012
1012
|
case "ContainerNotFoundException":
|
|
1013
1013
|
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
1014
|
-
throw await
|
|
1014
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
1015
1015
|
case "InternalServerError":
|
|
1016
1016
|
case "com.amazonaws.mediastore#InternalServerError":
|
|
1017
|
-
throw await
|
|
1017
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1018
1018
|
default:
|
|
1019
1019
|
const parsedBody = parsedOutput.body;
|
|
1020
1020
|
throwDefaultError({
|
|
@@ -1025,267 +1025,259 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1025
1025
|
});
|
|
1026
1026
|
}
|
|
1027
1027
|
};
|
|
1028
|
-
const
|
|
1028
|
+
const de_ContainerInUseExceptionRes = async (parsedOutput, context) => {
|
|
1029
1029
|
const body = parsedOutput.body;
|
|
1030
|
-
const deserialized =
|
|
1030
|
+
const deserialized = de_ContainerInUseException(body, context);
|
|
1031
1031
|
const exception = new ContainerInUseException({
|
|
1032
1032
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1033
1033
|
...deserialized,
|
|
1034
1034
|
});
|
|
1035
1035
|
return __decorateServiceException(exception, body);
|
|
1036
1036
|
};
|
|
1037
|
-
const
|
|
1037
|
+
const de_ContainerNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1038
1038
|
const body = parsedOutput.body;
|
|
1039
|
-
const deserialized =
|
|
1039
|
+
const deserialized = de_ContainerNotFoundException(body, context);
|
|
1040
1040
|
const exception = new ContainerNotFoundException({
|
|
1041
1041
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1042
1042
|
...deserialized,
|
|
1043
1043
|
});
|
|
1044
1044
|
return __decorateServiceException(exception, body);
|
|
1045
1045
|
};
|
|
1046
|
-
const
|
|
1046
|
+
const de_CorsPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1047
1047
|
const body = parsedOutput.body;
|
|
1048
|
-
const deserialized =
|
|
1048
|
+
const deserialized = de_CorsPolicyNotFoundException(body, context);
|
|
1049
1049
|
const exception = new CorsPolicyNotFoundException({
|
|
1050
1050
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1051
1051
|
...deserialized,
|
|
1052
1052
|
});
|
|
1053
1053
|
return __decorateServiceException(exception, body);
|
|
1054
1054
|
};
|
|
1055
|
-
const
|
|
1055
|
+
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
1056
1056
|
const body = parsedOutput.body;
|
|
1057
|
-
const deserialized =
|
|
1057
|
+
const deserialized = de_InternalServerError(body, context);
|
|
1058
1058
|
const exception = new InternalServerError({
|
|
1059
1059
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1060
1060
|
...deserialized,
|
|
1061
1061
|
});
|
|
1062
1062
|
return __decorateServiceException(exception, body);
|
|
1063
1063
|
};
|
|
1064
|
-
const
|
|
1064
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1065
1065
|
const body = parsedOutput.body;
|
|
1066
|
-
const deserialized =
|
|
1066
|
+
const deserialized = de_LimitExceededException(body, context);
|
|
1067
1067
|
const exception = new LimitExceededException({
|
|
1068
1068
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1069
1069
|
...deserialized,
|
|
1070
1070
|
});
|
|
1071
1071
|
return __decorateServiceException(exception, body);
|
|
1072
1072
|
};
|
|
1073
|
-
const
|
|
1073
|
+
const de_PolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1074
1074
|
const body = parsedOutput.body;
|
|
1075
|
-
const deserialized =
|
|
1075
|
+
const deserialized = de_PolicyNotFoundException(body, context);
|
|
1076
1076
|
const exception = new PolicyNotFoundException({
|
|
1077
1077
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1078
1078
|
...deserialized,
|
|
1079
1079
|
});
|
|
1080
1080
|
return __decorateServiceException(exception, body);
|
|
1081
1081
|
};
|
|
1082
|
-
const
|
|
1082
|
+
const se_AllowedHeaders = (input, context) => {
|
|
1083
1083
|
return input
|
|
1084
1084
|
.filter((e) => e != null)
|
|
1085
1085
|
.map((entry) => {
|
|
1086
1086
|
return entry;
|
|
1087
1087
|
});
|
|
1088
1088
|
};
|
|
1089
|
-
const
|
|
1089
|
+
const se_AllowedMethods = (input, context) => {
|
|
1090
1090
|
return input
|
|
1091
1091
|
.filter((e) => e != null)
|
|
1092
1092
|
.map((entry) => {
|
|
1093
1093
|
return entry;
|
|
1094
1094
|
});
|
|
1095
1095
|
};
|
|
1096
|
-
const
|
|
1096
|
+
const se_AllowedOrigins = (input, context) => {
|
|
1097
1097
|
return input
|
|
1098
1098
|
.filter((e) => e != null)
|
|
1099
1099
|
.map((entry) => {
|
|
1100
1100
|
return entry;
|
|
1101
1101
|
});
|
|
1102
1102
|
};
|
|
1103
|
-
const
|
|
1103
|
+
const se_CorsPolicy = (input, context) => {
|
|
1104
1104
|
return input
|
|
1105
1105
|
.filter((e) => e != null)
|
|
1106
1106
|
.map((entry) => {
|
|
1107
|
-
return
|
|
1107
|
+
return se_CorsRule(entry, context);
|
|
1108
1108
|
});
|
|
1109
1109
|
};
|
|
1110
|
-
const
|
|
1110
|
+
const se_CorsRule = (input, context) => {
|
|
1111
1111
|
return {
|
|
1112
|
-
...(input.AllowedHeaders != null && {
|
|
1113
|
-
|
|
1114
|
-
}),
|
|
1115
|
-
...(input.
|
|
1116
|
-
AllowedMethods: serializeAws_json1_1AllowedMethods(input.AllowedMethods, context),
|
|
1117
|
-
}),
|
|
1118
|
-
...(input.AllowedOrigins != null && {
|
|
1119
|
-
AllowedOrigins: serializeAws_json1_1AllowedOrigins(input.AllowedOrigins, context),
|
|
1120
|
-
}),
|
|
1121
|
-
...(input.ExposeHeaders != null && {
|
|
1122
|
-
ExposeHeaders: serializeAws_json1_1ExposeHeaders(input.ExposeHeaders, context),
|
|
1123
|
-
}),
|
|
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) }),
|
|
1124
1116
|
...(input.MaxAgeSeconds != null && { MaxAgeSeconds: input.MaxAgeSeconds }),
|
|
1125
1117
|
};
|
|
1126
1118
|
};
|
|
1127
|
-
const
|
|
1119
|
+
const se_CreateContainerInput = (input, context) => {
|
|
1128
1120
|
return {
|
|
1129
1121
|
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1130
|
-
...(input.Tags != null && { Tags:
|
|
1122
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1131
1123
|
};
|
|
1132
1124
|
};
|
|
1133
|
-
const
|
|
1125
|
+
const se_DeleteContainerInput = (input, context) => {
|
|
1134
1126
|
return {
|
|
1135
1127
|
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1136
1128
|
};
|
|
1137
1129
|
};
|
|
1138
|
-
const
|
|
1130
|
+
const se_DeleteContainerPolicyInput = (input, context) => {
|
|
1139
1131
|
return {
|
|
1140
1132
|
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1141
1133
|
};
|
|
1142
1134
|
};
|
|
1143
|
-
const
|
|
1135
|
+
const se_DeleteCorsPolicyInput = (input, context) => {
|
|
1144
1136
|
return {
|
|
1145
1137
|
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1146
1138
|
};
|
|
1147
1139
|
};
|
|
1148
|
-
const
|
|
1140
|
+
const se_DeleteLifecyclePolicyInput = (input, context) => {
|
|
1149
1141
|
return {
|
|
1150
1142
|
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1151
1143
|
};
|
|
1152
1144
|
};
|
|
1153
|
-
const
|
|
1145
|
+
const se_DeleteMetricPolicyInput = (input, context) => {
|
|
1154
1146
|
return {
|
|
1155
1147
|
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1156
1148
|
};
|
|
1157
1149
|
};
|
|
1158
|
-
const
|
|
1150
|
+
const se_DescribeContainerInput = (input, context) => {
|
|
1159
1151
|
return {
|
|
1160
1152
|
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1161
1153
|
};
|
|
1162
1154
|
};
|
|
1163
|
-
const
|
|
1155
|
+
const se_ExposeHeaders = (input, context) => {
|
|
1164
1156
|
return input
|
|
1165
1157
|
.filter((e) => e != null)
|
|
1166
1158
|
.map((entry) => {
|
|
1167
1159
|
return entry;
|
|
1168
1160
|
});
|
|
1169
1161
|
};
|
|
1170
|
-
const
|
|
1162
|
+
const se_GetContainerPolicyInput = (input, context) => {
|
|
1171
1163
|
return {
|
|
1172
1164
|
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1173
1165
|
};
|
|
1174
1166
|
};
|
|
1175
|
-
const
|
|
1167
|
+
const se_GetCorsPolicyInput = (input, context) => {
|
|
1176
1168
|
return {
|
|
1177
1169
|
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1178
1170
|
};
|
|
1179
1171
|
};
|
|
1180
|
-
const
|
|
1172
|
+
const se_GetLifecyclePolicyInput = (input, context) => {
|
|
1181
1173
|
return {
|
|
1182
1174
|
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1183
1175
|
};
|
|
1184
1176
|
};
|
|
1185
|
-
const
|
|
1177
|
+
const se_GetMetricPolicyInput = (input, context) => {
|
|
1186
1178
|
return {
|
|
1187
1179
|
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1188
1180
|
};
|
|
1189
1181
|
};
|
|
1190
|
-
const
|
|
1182
|
+
const se_ListContainersInput = (input, context) => {
|
|
1191
1183
|
return {
|
|
1192
1184
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1193
1185
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1194
1186
|
};
|
|
1195
1187
|
};
|
|
1196
|
-
const
|
|
1188
|
+
const se_ListTagsForResourceInput = (input, context) => {
|
|
1197
1189
|
return {
|
|
1198
1190
|
...(input.Resource != null && { Resource: input.Resource }),
|
|
1199
1191
|
};
|
|
1200
1192
|
};
|
|
1201
|
-
const
|
|
1193
|
+
const se_MetricPolicy = (input, context) => {
|
|
1202
1194
|
return {
|
|
1203
1195
|
...(input.ContainerLevelMetrics != null && { ContainerLevelMetrics: input.ContainerLevelMetrics }),
|
|
1204
1196
|
...(input.MetricPolicyRules != null && {
|
|
1205
|
-
MetricPolicyRules:
|
|
1197
|
+
MetricPolicyRules: se_MetricPolicyRules(input.MetricPolicyRules, context),
|
|
1206
1198
|
}),
|
|
1207
1199
|
};
|
|
1208
1200
|
};
|
|
1209
|
-
const
|
|
1201
|
+
const se_MetricPolicyRule = (input, context) => {
|
|
1210
1202
|
return {
|
|
1211
1203
|
...(input.ObjectGroup != null && { ObjectGroup: input.ObjectGroup }),
|
|
1212
1204
|
...(input.ObjectGroupName != null && { ObjectGroupName: input.ObjectGroupName }),
|
|
1213
1205
|
};
|
|
1214
1206
|
};
|
|
1215
|
-
const
|
|
1207
|
+
const se_MetricPolicyRules = (input, context) => {
|
|
1216
1208
|
return input
|
|
1217
1209
|
.filter((e) => e != null)
|
|
1218
1210
|
.map((entry) => {
|
|
1219
|
-
return
|
|
1211
|
+
return se_MetricPolicyRule(entry, context);
|
|
1220
1212
|
});
|
|
1221
1213
|
};
|
|
1222
|
-
const
|
|
1214
|
+
const se_PutContainerPolicyInput = (input, context) => {
|
|
1223
1215
|
return {
|
|
1224
1216
|
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1225
1217
|
...(input.Policy != null && { Policy: input.Policy }),
|
|
1226
1218
|
};
|
|
1227
1219
|
};
|
|
1228
|
-
const
|
|
1220
|
+
const se_PutCorsPolicyInput = (input, context) => {
|
|
1229
1221
|
return {
|
|
1230
1222
|
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1231
|
-
...(input.CorsPolicy != null && { CorsPolicy:
|
|
1223
|
+
...(input.CorsPolicy != null && { CorsPolicy: se_CorsPolicy(input.CorsPolicy, context) }),
|
|
1232
1224
|
};
|
|
1233
1225
|
};
|
|
1234
|
-
const
|
|
1226
|
+
const se_PutLifecyclePolicyInput = (input, context) => {
|
|
1235
1227
|
return {
|
|
1236
1228
|
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1237
1229
|
...(input.LifecyclePolicy != null && { LifecyclePolicy: input.LifecyclePolicy }),
|
|
1238
1230
|
};
|
|
1239
1231
|
};
|
|
1240
|
-
const
|
|
1232
|
+
const se_PutMetricPolicyInput = (input, context) => {
|
|
1241
1233
|
return {
|
|
1242
1234
|
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1243
|
-
...(input.MetricPolicy != null && { MetricPolicy:
|
|
1235
|
+
...(input.MetricPolicy != null && { MetricPolicy: se_MetricPolicy(input.MetricPolicy, context) }),
|
|
1244
1236
|
};
|
|
1245
1237
|
};
|
|
1246
|
-
const
|
|
1238
|
+
const se_StartAccessLoggingInput = (input, context) => {
|
|
1247
1239
|
return {
|
|
1248
1240
|
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1249
1241
|
};
|
|
1250
1242
|
};
|
|
1251
|
-
const
|
|
1243
|
+
const se_StopAccessLoggingInput = (input, context) => {
|
|
1252
1244
|
return {
|
|
1253
1245
|
...(input.ContainerName != null && { ContainerName: input.ContainerName }),
|
|
1254
1246
|
};
|
|
1255
1247
|
};
|
|
1256
|
-
const
|
|
1248
|
+
const se_Tag = (input, context) => {
|
|
1257
1249
|
return {
|
|
1258
1250
|
...(input.Key != null && { Key: input.Key }),
|
|
1259
1251
|
...(input.Value != null && { Value: input.Value }),
|
|
1260
1252
|
};
|
|
1261
1253
|
};
|
|
1262
|
-
const
|
|
1254
|
+
const se_TagKeyList = (input, context) => {
|
|
1263
1255
|
return input
|
|
1264
1256
|
.filter((e) => e != null)
|
|
1265
1257
|
.map((entry) => {
|
|
1266
1258
|
return entry;
|
|
1267
1259
|
});
|
|
1268
1260
|
};
|
|
1269
|
-
const
|
|
1261
|
+
const se_TagList = (input, context) => {
|
|
1270
1262
|
return input
|
|
1271
1263
|
.filter((e) => e != null)
|
|
1272
1264
|
.map((entry) => {
|
|
1273
|
-
return
|
|
1265
|
+
return se_Tag(entry, context);
|
|
1274
1266
|
});
|
|
1275
1267
|
};
|
|
1276
|
-
const
|
|
1268
|
+
const se_TagResourceInput = (input, context) => {
|
|
1277
1269
|
return {
|
|
1278
1270
|
...(input.Resource != null && { Resource: input.Resource }),
|
|
1279
|
-
...(input.Tags != null && { Tags:
|
|
1271
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1280
1272
|
};
|
|
1281
1273
|
};
|
|
1282
|
-
const
|
|
1274
|
+
const se_UntagResourceInput = (input, context) => {
|
|
1283
1275
|
return {
|
|
1284
1276
|
...(input.Resource != null && { Resource: input.Resource }),
|
|
1285
|
-
...(input.TagKeys != null && { TagKeys:
|
|
1277
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
1286
1278
|
};
|
|
1287
1279
|
};
|
|
1288
|
-
const
|
|
1280
|
+
const de_AllowedHeaders = (output, context) => {
|
|
1289
1281
|
const retVal = (output || [])
|
|
1290
1282
|
.filter((e) => e != null)
|
|
1291
1283
|
.map((entry) => {
|
|
@@ -1296,7 +1288,7 @@ const deserializeAws_json1_1AllowedHeaders = (output, context) => {
|
|
|
1296
1288
|
});
|
|
1297
1289
|
return retVal;
|
|
1298
1290
|
};
|
|
1299
|
-
const
|
|
1291
|
+
const de_AllowedMethods = (output, context) => {
|
|
1300
1292
|
const retVal = (output || [])
|
|
1301
1293
|
.filter((e) => e != null)
|
|
1302
1294
|
.map((entry) => {
|
|
@@ -1307,7 +1299,7 @@ const deserializeAws_json1_1AllowedMethods = (output, context) => {
|
|
|
1307
1299
|
});
|
|
1308
1300
|
return retVal;
|
|
1309
1301
|
};
|
|
1310
|
-
const
|
|
1302
|
+
const de_AllowedOrigins = (output, context) => {
|
|
1311
1303
|
const retVal = (output || [])
|
|
1312
1304
|
.filter((e) => e != null)
|
|
1313
1305
|
.map((entry) => {
|
|
@@ -1318,7 +1310,7 @@ const deserializeAws_json1_1AllowedOrigins = (output, context) => {
|
|
|
1318
1310
|
});
|
|
1319
1311
|
return retVal;
|
|
1320
1312
|
};
|
|
1321
|
-
const
|
|
1313
|
+
const de_Container = (output, context) => {
|
|
1322
1314
|
return {
|
|
1323
1315
|
ARN: __expectString(output.ARN),
|
|
1324
1316
|
AccessLoggingEnabled: __expectBoolean(output.AccessLoggingEnabled),
|
|
@@ -1330,78 +1322,78 @@ const deserializeAws_json1_1Container = (output, context) => {
|
|
|
1330
1322
|
Status: __expectString(output.Status),
|
|
1331
1323
|
};
|
|
1332
1324
|
};
|
|
1333
|
-
const
|
|
1325
|
+
const de_ContainerInUseException = (output, context) => {
|
|
1334
1326
|
return {
|
|
1335
1327
|
Message: __expectString(output.Message),
|
|
1336
1328
|
};
|
|
1337
1329
|
};
|
|
1338
|
-
const
|
|
1330
|
+
const de_ContainerList = (output, context) => {
|
|
1339
1331
|
const retVal = (output || [])
|
|
1340
1332
|
.filter((e) => e != null)
|
|
1341
1333
|
.map((entry) => {
|
|
1342
1334
|
if (entry === null) {
|
|
1343
1335
|
return null;
|
|
1344
1336
|
}
|
|
1345
|
-
return
|
|
1337
|
+
return de_Container(entry, context);
|
|
1346
1338
|
});
|
|
1347
1339
|
return retVal;
|
|
1348
1340
|
};
|
|
1349
|
-
const
|
|
1341
|
+
const de_ContainerNotFoundException = (output, context) => {
|
|
1350
1342
|
return {
|
|
1351
1343
|
Message: __expectString(output.Message),
|
|
1352
1344
|
};
|
|
1353
1345
|
};
|
|
1354
|
-
const
|
|
1346
|
+
const de_CorsPolicy = (output, context) => {
|
|
1355
1347
|
const retVal = (output || [])
|
|
1356
1348
|
.filter((e) => e != null)
|
|
1357
1349
|
.map((entry) => {
|
|
1358
1350
|
if (entry === null) {
|
|
1359
1351
|
return null;
|
|
1360
1352
|
}
|
|
1361
|
-
return
|
|
1353
|
+
return de_CorsRule(entry, context);
|
|
1362
1354
|
});
|
|
1363
1355
|
return retVal;
|
|
1364
1356
|
};
|
|
1365
|
-
const
|
|
1357
|
+
const de_CorsPolicyNotFoundException = (output, context) => {
|
|
1366
1358
|
return {
|
|
1367
1359
|
Message: __expectString(output.Message),
|
|
1368
1360
|
};
|
|
1369
1361
|
};
|
|
1370
|
-
const
|
|
1362
|
+
const de_CorsRule = (output, context) => {
|
|
1371
1363
|
return {
|
|
1372
|
-
AllowedHeaders: output.AllowedHeaders != null ?
|
|
1373
|
-
AllowedMethods: output.AllowedMethods != null ?
|
|
1374
|
-
AllowedOrigins: output.AllowedOrigins != null ?
|
|
1375
|
-
ExposeHeaders: output.ExposeHeaders != null ?
|
|
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,
|
|
1376
1368
|
MaxAgeSeconds: __expectInt32(output.MaxAgeSeconds),
|
|
1377
1369
|
};
|
|
1378
1370
|
};
|
|
1379
|
-
const
|
|
1371
|
+
const de_CreateContainerOutput = (output, context) => {
|
|
1380
1372
|
return {
|
|
1381
|
-
Container: output.Container != null ?
|
|
1373
|
+
Container: output.Container != null ? de_Container(output.Container, context) : undefined,
|
|
1382
1374
|
};
|
|
1383
1375
|
};
|
|
1384
|
-
const
|
|
1376
|
+
const de_DeleteContainerOutput = (output, context) => {
|
|
1385
1377
|
return {};
|
|
1386
1378
|
};
|
|
1387
|
-
const
|
|
1379
|
+
const de_DeleteContainerPolicyOutput = (output, context) => {
|
|
1388
1380
|
return {};
|
|
1389
1381
|
};
|
|
1390
|
-
const
|
|
1382
|
+
const de_DeleteCorsPolicyOutput = (output, context) => {
|
|
1391
1383
|
return {};
|
|
1392
1384
|
};
|
|
1393
|
-
const
|
|
1385
|
+
const de_DeleteLifecyclePolicyOutput = (output, context) => {
|
|
1394
1386
|
return {};
|
|
1395
1387
|
};
|
|
1396
|
-
const
|
|
1388
|
+
const de_DeleteMetricPolicyOutput = (output, context) => {
|
|
1397
1389
|
return {};
|
|
1398
1390
|
};
|
|
1399
|
-
const
|
|
1391
|
+
const de_DescribeContainerOutput = (output, context) => {
|
|
1400
1392
|
return {
|
|
1401
|
-
Container: output.Container != null ?
|
|
1393
|
+
Container: output.Container != null ? de_Container(output.Container, context) : undefined,
|
|
1402
1394
|
};
|
|
1403
1395
|
};
|
|
1404
|
-
const
|
|
1396
|
+
const de_ExposeHeaders = (output, context) => {
|
|
1405
1397
|
const retVal = (output || [])
|
|
1406
1398
|
.filter((e) => e != null)
|
|
1407
1399
|
.map((entry) => {
|
|
@@ -1412,116 +1404,114 @@ const deserializeAws_json1_1ExposeHeaders = (output, context) => {
|
|
|
1412
1404
|
});
|
|
1413
1405
|
return retVal;
|
|
1414
1406
|
};
|
|
1415
|
-
const
|
|
1407
|
+
const de_GetContainerPolicyOutput = (output, context) => {
|
|
1416
1408
|
return {
|
|
1417
1409
|
Policy: __expectString(output.Policy),
|
|
1418
1410
|
};
|
|
1419
1411
|
};
|
|
1420
|
-
const
|
|
1412
|
+
const de_GetCorsPolicyOutput = (output, context) => {
|
|
1421
1413
|
return {
|
|
1422
|
-
CorsPolicy: output.CorsPolicy != null ?
|
|
1414
|
+
CorsPolicy: output.CorsPolicy != null ? de_CorsPolicy(output.CorsPolicy, context) : undefined,
|
|
1423
1415
|
};
|
|
1424
1416
|
};
|
|
1425
|
-
const
|
|
1417
|
+
const de_GetLifecyclePolicyOutput = (output, context) => {
|
|
1426
1418
|
return {
|
|
1427
1419
|
LifecyclePolicy: __expectString(output.LifecyclePolicy),
|
|
1428
1420
|
};
|
|
1429
1421
|
};
|
|
1430
|
-
const
|
|
1422
|
+
const de_GetMetricPolicyOutput = (output, context) => {
|
|
1431
1423
|
return {
|
|
1432
|
-
MetricPolicy: output.MetricPolicy != null ?
|
|
1424
|
+
MetricPolicy: output.MetricPolicy != null ? de_MetricPolicy(output.MetricPolicy, context) : undefined,
|
|
1433
1425
|
};
|
|
1434
1426
|
};
|
|
1435
|
-
const
|
|
1427
|
+
const de_InternalServerError = (output, context) => {
|
|
1436
1428
|
return {
|
|
1437
1429
|
Message: __expectString(output.Message),
|
|
1438
1430
|
};
|
|
1439
1431
|
};
|
|
1440
|
-
const
|
|
1432
|
+
const de_LimitExceededException = (output, context) => {
|
|
1441
1433
|
return {
|
|
1442
1434
|
Message: __expectString(output.Message),
|
|
1443
1435
|
};
|
|
1444
1436
|
};
|
|
1445
|
-
const
|
|
1437
|
+
const de_ListContainersOutput = (output, context) => {
|
|
1446
1438
|
return {
|
|
1447
|
-
Containers: output.Containers != null ?
|
|
1439
|
+
Containers: output.Containers != null ? de_ContainerList(output.Containers, context) : undefined,
|
|
1448
1440
|
NextToken: __expectString(output.NextToken),
|
|
1449
1441
|
};
|
|
1450
1442
|
};
|
|
1451
|
-
const
|
|
1443
|
+
const de_ListTagsForResourceOutput = (output, context) => {
|
|
1452
1444
|
return {
|
|
1453
|
-
Tags: output.Tags != null ?
|
|
1445
|
+
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
1454
1446
|
};
|
|
1455
1447
|
};
|
|
1456
|
-
const
|
|
1448
|
+
const de_MetricPolicy = (output, context) => {
|
|
1457
1449
|
return {
|
|
1458
1450
|
ContainerLevelMetrics: __expectString(output.ContainerLevelMetrics),
|
|
1459
|
-
MetricPolicyRules: output.MetricPolicyRules != null
|
|
1460
|
-
? deserializeAws_json1_1MetricPolicyRules(output.MetricPolicyRules, context)
|
|
1461
|
-
: undefined,
|
|
1451
|
+
MetricPolicyRules: output.MetricPolicyRules != null ? de_MetricPolicyRules(output.MetricPolicyRules, context) : undefined,
|
|
1462
1452
|
};
|
|
1463
1453
|
};
|
|
1464
|
-
const
|
|
1454
|
+
const de_MetricPolicyRule = (output, context) => {
|
|
1465
1455
|
return {
|
|
1466
1456
|
ObjectGroup: __expectString(output.ObjectGroup),
|
|
1467
1457
|
ObjectGroupName: __expectString(output.ObjectGroupName),
|
|
1468
1458
|
};
|
|
1469
1459
|
};
|
|
1470
|
-
const
|
|
1460
|
+
const de_MetricPolicyRules = (output, context) => {
|
|
1471
1461
|
const retVal = (output || [])
|
|
1472
1462
|
.filter((e) => e != null)
|
|
1473
1463
|
.map((entry) => {
|
|
1474
1464
|
if (entry === null) {
|
|
1475
1465
|
return null;
|
|
1476
1466
|
}
|
|
1477
|
-
return
|
|
1467
|
+
return de_MetricPolicyRule(entry, context);
|
|
1478
1468
|
});
|
|
1479
1469
|
return retVal;
|
|
1480
1470
|
};
|
|
1481
|
-
const
|
|
1471
|
+
const de_PolicyNotFoundException = (output, context) => {
|
|
1482
1472
|
return {
|
|
1483
1473
|
Message: __expectString(output.Message),
|
|
1484
1474
|
};
|
|
1485
1475
|
};
|
|
1486
|
-
const
|
|
1476
|
+
const de_PutContainerPolicyOutput = (output, context) => {
|
|
1487
1477
|
return {};
|
|
1488
1478
|
};
|
|
1489
|
-
const
|
|
1479
|
+
const de_PutCorsPolicyOutput = (output, context) => {
|
|
1490
1480
|
return {};
|
|
1491
1481
|
};
|
|
1492
|
-
const
|
|
1482
|
+
const de_PutLifecyclePolicyOutput = (output, context) => {
|
|
1493
1483
|
return {};
|
|
1494
1484
|
};
|
|
1495
|
-
const
|
|
1485
|
+
const de_PutMetricPolicyOutput = (output, context) => {
|
|
1496
1486
|
return {};
|
|
1497
1487
|
};
|
|
1498
|
-
const
|
|
1488
|
+
const de_StartAccessLoggingOutput = (output, context) => {
|
|
1499
1489
|
return {};
|
|
1500
1490
|
};
|
|
1501
|
-
const
|
|
1491
|
+
const de_StopAccessLoggingOutput = (output, context) => {
|
|
1502
1492
|
return {};
|
|
1503
1493
|
};
|
|
1504
|
-
const
|
|
1494
|
+
const de_Tag = (output, context) => {
|
|
1505
1495
|
return {
|
|
1506
1496
|
Key: __expectString(output.Key),
|
|
1507
1497
|
Value: __expectString(output.Value),
|
|
1508
1498
|
};
|
|
1509
1499
|
};
|
|
1510
|
-
const
|
|
1500
|
+
const de_TagList = (output, context) => {
|
|
1511
1501
|
const retVal = (output || [])
|
|
1512
1502
|
.filter((e) => e != null)
|
|
1513
1503
|
.map((entry) => {
|
|
1514
1504
|
if (entry === null) {
|
|
1515
1505
|
return null;
|
|
1516
1506
|
}
|
|
1517
|
-
return
|
|
1507
|
+
return de_Tag(entry, context);
|
|
1518
1508
|
});
|
|
1519
1509
|
return retVal;
|
|
1520
1510
|
};
|
|
1521
|
-
const
|
|
1511
|
+
const de_TagResourceOutput = (output, context) => {
|
|
1522
1512
|
return {};
|
|
1523
1513
|
};
|
|
1524
|
-
const
|
|
1514
|
+
const de_UntagResourceOutput = (output, context) => {
|
|
1525
1515
|
return {};
|
|
1526
1516
|
};
|
|
1527
1517
|
const deserializeMetadata = (output) => ({
|