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