@aws-sdk/client-opensearchserverless 3.310.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_0.js +270 -1086
- package/dist-es/protocols/Aws_json1_0.js +271 -1087
- package/package.json +6 -6
|
@@ -8,310 +8,217 @@ const uuid_1 = require("uuid");
|
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const OpenSearchServerlessServiceException_1 = require("../models/OpenSearchServerlessServiceException");
|
|
10
10
|
const se_BatchGetCollectionCommand = async (input, context) => {
|
|
11
|
-
const headers =
|
|
12
|
-
"content-type": "application/x-amz-json-1.0",
|
|
13
|
-
"x-amz-target": "OpenSearchServerless.BatchGetCollection",
|
|
14
|
-
};
|
|
11
|
+
const headers = sharedHeaders("BatchGetCollection");
|
|
15
12
|
let body;
|
|
16
|
-
body = JSON.stringify(
|
|
13
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
17
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
15
|
};
|
|
19
16
|
exports.se_BatchGetCollectionCommand = se_BatchGetCollectionCommand;
|
|
20
17
|
const se_BatchGetVpcEndpointCommand = async (input, context) => {
|
|
21
|
-
const headers =
|
|
22
|
-
"content-type": "application/x-amz-json-1.0",
|
|
23
|
-
"x-amz-target": "OpenSearchServerless.BatchGetVpcEndpoint",
|
|
24
|
-
};
|
|
18
|
+
const headers = sharedHeaders("BatchGetVpcEndpoint");
|
|
25
19
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
22
|
};
|
|
29
23
|
exports.se_BatchGetVpcEndpointCommand = se_BatchGetVpcEndpointCommand;
|
|
30
24
|
const se_CreateAccessPolicyCommand = async (input, context) => {
|
|
31
|
-
const headers =
|
|
32
|
-
"content-type": "application/x-amz-json-1.0",
|
|
33
|
-
"x-amz-target": "OpenSearchServerless.CreateAccessPolicy",
|
|
34
|
-
};
|
|
25
|
+
const headers = sharedHeaders("CreateAccessPolicy");
|
|
35
26
|
let body;
|
|
36
27
|
body = JSON.stringify(se_CreateAccessPolicyRequest(input, context));
|
|
37
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
38
29
|
};
|
|
39
30
|
exports.se_CreateAccessPolicyCommand = se_CreateAccessPolicyCommand;
|
|
40
31
|
const se_CreateCollectionCommand = async (input, context) => {
|
|
41
|
-
const headers =
|
|
42
|
-
"content-type": "application/x-amz-json-1.0",
|
|
43
|
-
"x-amz-target": "OpenSearchServerless.CreateCollection",
|
|
44
|
-
};
|
|
32
|
+
const headers = sharedHeaders("CreateCollection");
|
|
45
33
|
let body;
|
|
46
34
|
body = JSON.stringify(se_CreateCollectionRequest(input, context));
|
|
47
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
36
|
};
|
|
49
37
|
exports.se_CreateCollectionCommand = se_CreateCollectionCommand;
|
|
50
38
|
const se_CreateSecurityConfigCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.0",
|
|
53
|
-
"x-amz-target": "OpenSearchServerless.CreateSecurityConfig",
|
|
54
|
-
};
|
|
39
|
+
const headers = sharedHeaders("CreateSecurityConfig");
|
|
55
40
|
let body;
|
|
56
41
|
body = JSON.stringify(se_CreateSecurityConfigRequest(input, context));
|
|
57
42
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
43
|
};
|
|
59
44
|
exports.se_CreateSecurityConfigCommand = se_CreateSecurityConfigCommand;
|
|
60
45
|
const se_CreateSecurityPolicyCommand = async (input, context) => {
|
|
61
|
-
const headers =
|
|
62
|
-
"content-type": "application/x-amz-json-1.0",
|
|
63
|
-
"x-amz-target": "OpenSearchServerless.CreateSecurityPolicy",
|
|
64
|
-
};
|
|
46
|
+
const headers = sharedHeaders("CreateSecurityPolicy");
|
|
65
47
|
let body;
|
|
66
48
|
body = JSON.stringify(se_CreateSecurityPolicyRequest(input, context));
|
|
67
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
50
|
};
|
|
69
51
|
exports.se_CreateSecurityPolicyCommand = se_CreateSecurityPolicyCommand;
|
|
70
52
|
const se_CreateVpcEndpointCommand = async (input, context) => {
|
|
71
|
-
const headers =
|
|
72
|
-
"content-type": "application/x-amz-json-1.0",
|
|
73
|
-
"x-amz-target": "OpenSearchServerless.CreateVpcEndpoint",
|
|
74
|
-
};
|
|
53
|
+
const headers = sharedHeaders("CreateVpcEndpoint");
|
|
75
54
|
let body;
|
|
76
55
|
body = JSON.stringify(se_CreateVpcEndpointRequest(input, context));
|
|
77
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
57
|
};
|
|
79
58
|
exports.se_CreateVpcEndpointCommand = se_CreateVpcEndpointCommand;
|
|
80
59
|
const se_DeleteAccessPolicyCommand = async (input, context) => {
|
|
81
|
-
const headers =
|
|
82
|
-
"content-type": "application/x-amz-json-1.0",
|
|
83
|
-
"x-amz-target": "OpenSearchServerless.DeleteAccessPolicy",
|
|
84
|
-
};
|
|
60
|
+
const headers = sharedHeaders("DeleteAccessPolicy");
|
|
85
61
|
let body;
|
|
86
62
|
body = JSON.stringify(se_DeleteAccessPolicyRequest(input, context));
|
|
87
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
64
|
};
|
|
89
65
|
exports.se_DeleteAccessPolicyCommand = se_DeleteAccessPolicyCommand;
|
|
90
66
|
const se_DeleteCollectionCommand = async (input, context) => {
|
|
91
|
-
const headers =
|
|
92
|
-
"content-type": "application/x-amz-json-1.0",
|
|
93
|
-
"x-amz-target": "OpenSearchServerless.DeleteCollection",
|
|
94
|
-
};
|
|
67
|
+
const headers = sharedHeaders("DeleteCollection");
|
|
95
68
|
let body;
|
|
96
69
|
body = JSON.stringify(se_DeleteCollectionRequest(input, context));
|
|
97
70
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
71
|
};
|
|
99
72
|
exports.se_DeleteCollectionCommand = se_DeleteCollectionCommand;
|
|
100
73
|
const se_DeleteSecurityConfigCommand = async (input, context) => {
|
|
101
|
-
const headers =
|
|
102
|
-
"content-type": "application/x-amz-json-1.0",
|
|
103
|
-
"x-amz-target": "OpenSearchServerless.DeleteSecurityConfig",
|
|
104
|
-
};
|
|
74
|
+
const headers = sharedHeaders("DeleteSecurityConfig");
|
|
105
75
|
let body;
|
|
106
76
|
body = JSON.stringify(se_DeleteSecurityConfigRequest(input, context));
|
|
107
77
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
78
|
};
|
|
109
79
|
exports.se_DeleteSecurityConfigCommand = se_DeleteSecurityConfigCommand;
|
|
110
80
|
const se_DeleteSecurityPolicyCommand = async (input, context) => {
|
|
111
|
-
const headers =
|
|
112
|
-
"content-type": "application/x-amz-json-1.0",
|
|
113
|
-
"x-amz-target": "OpenSearchServerless.DeleteSecurityPolicy",
|
|
114
|
-
};
|
|
81
|
+
const headers = sharedHeaders("DeleteSecurityPolicy");
|
|
115
82
|
let body;
|
|
116
83
|
body = JSON.stringify(se_DeleteSecurityPolicyRequest(input, context));
|
|
117
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
85
|
};
|
|
119
86
|
exports.se_DeleteSecurityPolicyCommand = se_DeleteSecurityPolicyCommand;
|
|
120
87
|
const se_DeleteVpcEndpointCommand = async (input, context) => {
|
|
121
|
-
const headers =
|
|
122
|
-
"content-type": "application/x-amz-json-1.0",
|
|
123
|
-
"x-amz-target": "OpenSearchServerless.DeleteVpcEndpoint",
|
|
124
|
-
};
|
|
88
|
+
const headers = sharedHeaders("DeleteVpcEndpoint");
|
|
125
89
|
let body;
|
|
126
90
|
body = JSON.stringify(se_DeleteVpcEndpointRequest(input, context));
|
|
127
91
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
92
|
};
|
|
129
93
|
exports.se_DeleteVpcEndpointCommand = se_DeleteVpcEndpointCommand;
|
|
130
94
|
const se_GetAccessPolicyCommand = async (input, context) => {
|
|
131
|
-
const headers =
|
|
132
|
-
"content-type": "application/x-amz-json-1.0",
|
|
133
|
-
"x-amz-target": "OpenSearchServerless.GetAccessPolicy",
|
|
134
|
-
};
|
|
95
|
+
const headers = sharedHeaders("GetAccessPolicy");
|
|
135
96
|
let body;
|
|
136
|
-
body = JSON.stringify(
|
|
97
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
137
98
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
99
|
};
|
|
139
100
|
exports.se_GetAccessPolicyCommand = se_GetAccessPolicyCommand;
|
|
140
101
|
const se_GetAccountSettingsCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.0",
|
|
143
|
-
"x-amz-target": "OpenSearchServerless.GetAccountSettings",
|
|
144
|
-
};
|
|
102
|
+
const headers = sharedHeaders("GetAccountSettings");
|
|
145
103
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
147
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
106
|
};
|
|
149
107
|
exports.se_GetAccountSettingsCommand = se_GetAccountSettingsCommand;
|
|
150
108
|
const se_GetPoliciesStatsCommand = async (input, context) => {
|
|
151
|
-
const headers =
|
|
152
|
-
"content-type": "application/x-amz-json-1.0",
|
|
153
|
-
"x-amz-target": "OpenSearchServerless.GetPoliciesStats",
|
|
154
|
-
};
|
|
109
|
+
const headers = sharedHeaders("GetPoliciesStats");
|
|
155
110
|
let body;
|
|
156
|
-
body = JSON.stringify(
|
|
111
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
157
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
113
|
};
|
|
159
114
|
exports.se_GetPoliciesStatsCommand = se_GetPoliciesStatsCommand;
|
|
160
115
|
const se_GetSecurityConfigCommand = async (input, context) => {
|
|
161
|
-
const headers =
|
|
162
|
-
"content-type": "application/x-amz-json-1.0",
|
|
163
|
-
"x-amz-target": "OpenSearchServerless.GetSecurityConfig",
|
|
164
|
-
};
|
|
116
|
+
const headers = sharedHeaders("GetSecurityConfig");
|
|
165
117
|
let body;
|
|
166
|
-
body = JSON.stringify(
|
|
118
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
167
119
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
120
|
};
|
|
169
121
|
exports.se_GetSecurityConfigCommand = se_GetSecurityConfigCommand;
|
|
170
122
|
const se_GetSecurityPolicyCommand = async (input, context) => {
|
|
171
|
-
const headers =
|
|
172
|
-
"content-type": "application/x-amz-json-1.0",
|
|
173
|
-
"x-amz-target": "OpenSearchServerless.GetSecurityPolicy",
|
|
174
|
-
};
|
|
123
|
+
const headers = sharedHeaders("GetSecurityPolicy");
|
|
175
124
|
let body;
|
|
176
|
-
body = JSON.stringify(
|
|
125
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
177
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
178
127
|
};
|
|
179
128
|
exports.se_GetSecurityPolicyCommand = se_GetSecurityPolicyCommand;
|
|
180
129
|
const se_ListAccessPoliciesCommand = async (input, context) => {
|
|
181
|
-
const headers =
|
|
182
|
-
"content-type": "application/x-amz-json-1.0",
|
|
183
|
-
"x-amz-target": "OpenSearchServerless.ListAccessPolicies",
|
|
184
|
-
};
|
|
130
|
+
const headers = sharedHeaders("ListAccessPolicies");
|
|
185
131
|
let body;
|
|
186
|
-
body = JSON.stringify(
|
|
132
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
187
133
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
188
134
|
};
|
|
189
135
|
exports.se_ListAccessPoliciesCommand = se_ListAccessPoliciesCommand;
|
|
190
136
|
const se_ListCollectionsCommand = async (input, context) => {
|
|
191
|
-
const headers =
|
|
192
|
-
"content-type": "application/x-amz-json-1.0",
|
|
193
|
-
"x-amz-target": "OpenSearchServerless.ListCollections",
|
|
194
|
-
};
|
|
137
|
+
const headers = sharedHeaders("ListCollections");
|
|
195
138
|
let body;
|
|
196
|
-
body = JSON.stringify(
|
|
139
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
197
140
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
141
|
};
|
|
199
142
|
exports.se_ListCollectionsCommand = se_ListCollectionsCommand;
|
|
200
143
|
const se_ListSecurityConfigsCommand = async (input, context) => {
|
|
201
|
-
const headers =
|
|
202
|
-
"content-type": "application/x-amz-json-1.0",
|
|
203
|
-
"x-amz-target": "OpenSearchServerless.ListSecurityConfigs",
|
|
204
|
-
};
|
|
144
|
+
const headers = sharedHeaders("ListSecurityConfigs");
|
|
205
145
|
let body;
|
|
206
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
207
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
208
148
|
};
|
|
209
149
|
exports.se_ListSecurityConfigsCommand = se_ListSecurityConfigsCommand;
|
|
210
150
|
const se_ListSecurityPoliciesCommand = async (input, context) => {
|
|
211
|
-
const headers =
|
|
212
|
-
"content-type": "application/x-amz-json-1.0",
|
|
213
|
-
"x-amz-target": "OpenSearchServerless.ListSecurityPolicies",
|
|
214
|
-
};
|
|
151
|
+
const headers = sharedHeaders("ListSecurityPolicies");
|
|
215
152
|
let body;
|
|
216
|
-
body = JSON.stringify(
|
|
153
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
217
154
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
155
|
};
|
|
219
156
|
exports.se_ListSecurityPoliciesCommand = se_ListSecurityPoliciesCommand;
|
|
220
157
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
221
|
-
const headers =
|
|
222
|
-
"content-type": "application/x-amz-json-1.0",
|
|
223
|
-
"x-amz-target": "OpenSearchServerless.ListTagsForResource",
|
|
224
|
-
};
|
|
158
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
225
159
|
let body;
|
|
226
|
-
body = JSON.stringify(
|
|
160
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
227
161
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
162
|
};
|
|
229
163
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
230
164
|
const se_ListVpcEndpointsCommand = async (input, context) => {
|
|
231
|
-
const headers =
|
|
232
|
-
"content-type": "application/x-amz-json-1.0",
|
|
233
|
-
"x-amz-target": "OpenSearchServerless.ListVpcEndpoints",
|
|
234
|
-
};
|
|
165
|
+
const headers = sharedHeaders("ListVpcEndpoints");
|
|
235
166
|
let body;
|
|
236
|
-
body = JSON.stringify(
|
|
167
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
237
168
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
169
|
};
|
|
239
170
|
exports.se_ListVpcEndpointsCommand = se_ListVpcEndpointsCommand;
|
|
240
171
|
const se_TagResourceCommand = async (input, context) => {
|
|
241
|
-
const headers =
|
|
242
|
-
"content-type": "application/x-amz-json-1.0",
|
|
243
|
-
"x-amz-target": "OpenSearchServerless.TagResource",
|
|
244
|
-
};
|
|
172
|
+
const headers = sharedHeaders("TagResource");
|
|
245
173
|
let body;
|
|
246
|
-
body = JSON.stringify(
|
|
174
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
247
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
176
|
};
|
|
249
177
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
250
178
|
const se_UntagResourceCommand = async (input, context) => {
|
|
251
|
-
const headers =
|
|
252
|
-
"content-type": "application/x-amz-json-1.0",
|
|
253
|
-
"x-amz-target": "OpenSearchServerless.UntagResource",
|
|
254
|
-
};
|
|
179
|
+
const headers = sharedHeaders("UntagResource");
|
|
255
180
|
let body;
|
|
256
|
-
body = JSON.stringify(
|
|
181
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
257
182
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
258
183
|
};
|
|
259
184
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
260
185
|
const se_UpdateAccessPolicyCommand = async (input, context) => {
|
|
261
|
-
const headers =
|
|
262
|
-
"content-type": "application/x-amz-json-1.0",
|
|
263
|
-
"x-amz-target": "OpenSearchServerless.UpdateAccessPolicy",
|
|
264
|
-
};
|
|
186
|
+
const headers = sharedHeaders("UpdateAccessPolicy");
|
|
265
187
|
let body;
|
|
266
188
|
body = JSON.stringify(se_UpdateAccessPolicyRequest(input, context));
|
|
267
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
190
|
};
|
|
269
191
|
exports.se_UpdateAccessPolicyCommand = se_UpdateAccessPolicyCommand;
|
|
270
192
|
const se_UpdateAccountSettingsCommand = async (input, context) => {
|
|
271
|
-
const headers =
|
|
272
|
-
"content-type": "application/x-amz-json-1.0",
|
|
273
|
-
"x-amz-target": "OpenSearchServerless.UpdateAccountSettings",
|
|
274
|
-
};
|
|
193
|
+
const headers = sharedHeaders("UpdateAccountSettings");
|
|
275
194
|
let body;
|
|
276
|
-
body = JSON.stringify(
|
|
195
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
277
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
278
197
|
};
|
|
279
198
|
exports.se_UpdateAccountSettingsCommand = se_UpdateAccountSettingsCommand;
|
|
280
199
|
const se_UpdateCollectionCommand = async (input, context) => {
|
|
281
|
-
const headers =
|
|
282
|
-
"content-type": "application/x-amz-json-1.0",
|
|
283
|
-
"x-amz-target": "OpenSearchServerless.UpdateCollection",
|
|
284
|
-
};
|
|
200
|
+
const headers = sharedHeaders("UpdateCollection");
|
|
285
201
|
let body;
|
|
286
202
|
body = JSON.stringify(se_UpdateCollectionRequest(input, context));
|
|
287
203
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
204
|
};
|
|
289
205
|
exports.se_UpdateCollectionCommand = se_UpdateCollectionCommand;
|
|
290
206
|
const se_UpdateSecurityConfigCommand = async (input, context) => {
|
|
291
|
-
const headers =
|
|
292
|
-
"content-type": "application/x-amz-json-1.0",
|
|
293
|
-
"x-amz-target": "OpenSearchServerless.UpdateSecurityConfig",
|
|
294
|
-
};
|
|
207
|
+
const headers = sharedHeaders("UpdateSecurityConfig");
|
|
295
208
|
let body;
|
|
296
209
|
body = JSON.stringify(se_UpdateSecurityConfigRequest(input, context));
|
|
297
210
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
298
211
|
};
|
|
299
212
|
exports.se_UpdateSecurityConfigCommand = se_UpdateSecurityConfigCommand;
|
|
300
213
|
const se_UpdateSecurityPolicyCommand = async (input, context) => {
|
|
301
|
-
const headers =
|
|
302
|
-
"content-type": "application/x-amz-json-1.0",
|
|
303
|
-
"x-amz-target": "OpenSearchServerless.UpdateSecurityPolicy",
|
|
304
|
-
};
|
|
214
|
+
const headers = sharedHeaders("UpdateSecurityPolicy");
|
|
305
215
|
let body;
|
|
306
216
|
body = JSON.stringify(se_UpdateSecurityPolicyRequest(input, context));
|
|
307
217
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
308
218
|
};
|
|
309
219
|
exports.se_UpdateSecurityPolicyCommand = se_UpdateSecurityPolicyCommand;
|
|
310
220
|
const se_UpdateVpcEndpointCommand = async (input, context) => {
|
|
311
|
-
const headers =
|
|
312
|
-
"content-type": "application/x-amz-json-1.0",
|
|
313
|
-
"x-amz-target": "OpenSearchServerless.UpdateVpcEndpoint",
|
|
314
|
-
};
|
|
221
|
+
const headers = sharedHeaders("UpdateVpcEndpoint");
|
|
315
222
|
let body;
|
|
316
223
|
body = JSON.stringify(se_UpdateVpcEndpointRequest(input, context));
|
|
317
224
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -323,12 +230,12 @@ const de_BatchGetCollectionCommand = async (output, context) => {
|
|
|
323
230
|
}
|
|
324
231
|
const data = await parseBody(output.body, context);
|
|
325
232
|
let contents = {};
|
|
326
|
-
contents =
|
|
233
|
+
contents = (0, smithy_client_1._json)(data);
|
|
327
234
|
const response = {
|
|
328
235
|
$metadata: deserializeMetadata(output),
|
|
329
236
|
...contents,
|
|
330
237
|
};
|
|
331
|
-
return
|
|
238
|
+
return response;
|
|
332
239
|
};
|
|
333
240
|
exports.de_BatchGetCollectionCommand = de_BatchGetCollectionCommand;
|
|
334
241
|
const de_BatchGetCollectionCommandError = async (output, context) => {
|
|
@@ -346,10 +253,9 @@ const de_BatchGetCollectionCommandError = async (output, context) => {
|
|
|
346
253
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
347
254
|
default:
|
|
348
255
|
const parsedBody = parsedOutput.body;
|
|
349
|
-
|
|
256
|
+
return throwDefaultError({
|
|
350
257
|
output,
|
|
351
258
|
parsedBody,
|
|
352
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
353
259
|
errorCode,
|
|
354
260
|
});
|
|
355
261
|
}
|
|
@@ -360,12 +266,12 @@ const de_BatchGetVpcEndpointCommand = async (output, context) => {
|
|
|
360
266
|
}
|
|
361
267
|
const data = await parseBody(output.body, context);
|
|
362
268
|
let contents = {};
|
|
363
|
-
contents =
|
|
269
|
+
contents = (0, smithy_client_1._json)(data);
|
|
364
270
|
const response = {
|
|
365
271
|
$metadata: deserializeMetadata(output),
|
|
366
272
|
...contents,
|
|
367
273
|
};
|
|
368
|
-
return
|
|
274
|
+
return response;
|
|
369
275
|
};
|
|
370
276
|
exports.de_BatchGetVpcEndpointCommand = de_BatchGetVpcEndpointCommand;
|
|
371
277
|
const de_BatchGetVpcEndpointCommandError = async (output, context) => {
|
|
@@ -383,10 +289,9 @@ const de_BatchGetVpcEndpointCommandError = async (output, context) => {
|
|
|
383
289
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
384
290
|
default:
|
|
385
291
|
const parsedBody = parsedOutput.body;
|
|
386
|
-
|
|
292
|
+
return throwDefaultError({
|
|
387
293
|
output,
|
|
388
294
|
parsedBody,
|
|
389
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
390
295
|
errorCode,
|
|
391
296
|
});
|
|
392
297
|
}
|
|
@@ -402,7 +307,7 @@ const de_CreateAccessPolicyCommand = async (output, context) => {
|
|
|
402
307
|
$metadata: deserializeMetadata(output),
|
|
403
308
|
...contents,
|
|
404
309
|
};
|
|
405
|
-
return
|
|
310
|
+
return response;
|
|
406
311
|
};
|
|
407
312
|
exports.de_CreateAccessPolicyCommand = de_CreateAccessPolicyCommand;
|
|
408
313
|
const de_CreateAccessPolicyCommandError = async (output, context) => {
|
|
@@ -426,10 +331,9 @@ const de_CreateAccessPolicyCommandError = async (output, context) => {
|
|
|
426
331
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
427
332
|
default:
|
|
428
333
|
const parsedBody = parsedOutput.body;
|
|
429
|
-
|
|
334
|
+
return throwDefaultError({
|
|
430
335
|
output,
|
|
431
336
|
parsedBody,
|
|
432
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
433
337
|
errorCode,
|
|
434
338
|
});
|
|
435
339
|
}
|
|
@@ -440,12 +344,12 @@ const de_CreateCollectionCommand = async (output, context) => {
|
|
|
440
344
|
}
|
|
441
345
|
const data = await parseBody(output.body, context);
|
|
442
346
|
let contents = {};
|
|
443
|
-
contents =
|
|
347
|
+
contents = (0, smithy_client_1._json)(data);
|
|
444
348
|
const response = {
|
|
445
349
|
$metadata: deserializeMetadata(output),
|
|
446
350
|
...contents,
|
|
447
351
|
};
|
|
448
|
-
return
|
|
352
|
+
return response;
|
|
449
353
|
};
|
|
450
354
|
exports.de_CreateCollectionCommand = de_CreateCollectionCommand;
|
|
451
355
|
const de_CreateCollectionCommandError = async (output, context) => {
|
|
@@ -472,10 +376,9 @@ const de_CreateCollectionCommandError = async (output, context) => {
|
|
|
472
376
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
473
377
|
default:
|
|
474
378
|
const parsedBody = parsedOutput.body;
|
|
475
|
-
|
|
379
|
+
return throwDefaultError({
|
|
476
380
|
output,
|
|
477
381
|
parsedBody,
|
|
478
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
479
382
|
errorCode,
|
|
480
383
|
});
|
|
481
384
|
}
|
|
@@ -486,12 +389,12 @@ const de_CreateSecurityConfigCommand = async (output, context) => {
|
|
|
486
389
|
}
|
|
487
390
|
const data = await parseBody(output.body, context);
|
|
488
391
|
let contents = {};
|
|
489
|
-
contents =
|
|
392
|
+
contents = (0, smithy_client_1._json)(data);
|
|
490
393
|
const response = {
|
|
491
394
|
$metadata: deserializeMetadata(output),
|
|
492
395
|
...contents,
|
|
493
396
|
};
|
|
494
|
-
return
|
|
397
|
+
return response;
|
|
495
398
|
};
|
|
496
399
|
exports.de_CreateSecurityConfigCommand = de_CreateSecurityConfigCommand;
|
|
497
400
|
const de_CreateSecurityConfigCommandError = async (output, context) => {
|
|
@@ -515,10 +418,9 @@ const de_CreateSecurityConfigCommandError = async (output, context) => {
|
|
|
515
418
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
516
419
|
default:
|
|
517
420
|
const parsedBody = parsedOutput.body;
|
|
518
|
-
|
|
421
|
+
return throwDefaultError({
|
|
519
422
|
output,
|
|
520
423
|
parsedBody,
|
|
521
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
522
424
|
errorCode,
|
|
523
425
|
});
|
|
524
426
|
}
|
|
@@ -534,7 +436,7 @@ const de_CreateSecurityPolicyCommand = async (output, context) => {
|
|
|
534
436
|
$metadata: deserializeMetadata(output),
|
|
535
437
|
...contents,
|
|
536
438
|
};
|
|
537
|
-
return
|
|
439
|
+
return response;
|
|
538
440
|
};
|
|
539
441
|
exports.de_CreateSecurityPolicyCommand = de_CreateSecurityPolicyCommand;
|
|
540
442
|
const de_CreateSecurityPolicyCommandError = async (output, context) => {
|
|
@@ -558,10 +460,9 @@ const de_CreateSecurityPolicyCommandError = async (output, context) => {
|
|
|
558
460
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
559
461
|
default:
|
|
560
462
|
const parsedBody = parsedOutput.body;
|
|
561
|
-
|
|
463
|
+
return throwDefaultError({
|
|
562
464
|
output,
|
|
563
465
|
parsedBody,
|
|
564
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
565
466
|
errorCode,
|
|
566
467
|
});
|
|
567
468
|
}
|
|
@@ -572,12 +473,12 @@ const de_CreateVpcEndpointCommand = async (output, context) => {
|
|
|
572
473
|
}
|
|
573
474
|
const data = await parseBody(output.body, context);
|
|
574
475
|
let contents = {};
|
|
575
|
-
contents =
|
|
476
|
+
contents = (0, smithy_client_1._json)(data);
|
|
576
477
|
const response = {
|
|
577
478
|
$metadata: deserializeMetadata(output),
|
|
578
479
|
...contents,
|
|
579
480
|
};
|
|
580
|
-
return
|
|
481
|
+
return response;
|
|
581
482
|
};
|
|
582
483
|
exports.de_CreateVpcEndpointCommand = de_CreateVpcEndpointCommand;
|
|
583
484
|
const de_CreateVpcEndpointCommandError = async (output, context) => {
|
|
@@ -601,10 +502,9 @@ const de_CreateVpcEndpointCommandError = async (output, context) => {
|
|
|
601
502
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
602
503
|
default:
|
|
603
504
|
const parsedBody = parsedOutput.body;
|
|
604
|
-
|
|
505
|
+
return throwDefaultError({
|
|
605
506
|
output,
|
|
606
507
|
parsedBody,
|
|
607
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
608
508
|
errorCode,
|
|
609
509
|
});
|
|
610
510
|
}
|
|
@@ -615,12 +515,12 @@ const de_DeleteAccessPolicyCommand = async (output, context) => {
|
|
|
615
515
|
}
|
|
616
516
|
const data = await parseBody(output.body, context);
|
|
617
517
|
let contents = {};
|
|
618
|
-
contents =
|
|
518
|
+
contents = (0, smithy_client_1._json)(data);
|
|
619
519
|
const response = {
|
|
620
520
|
$metadata: deserializeMetadata(output),
|
|
621
521
|
...contents,
|
|
622
522
|
};
|
|
623
|
-
return
|
|
523
|
+
return response;
|
|
624
524
|
};
|
|
625
525
|
exports.de_DeleteAccessPolicyCommand = de_DeleteAccessPolicyCommand;
|
|
626
526
|
const de_DeleteAccessPolicyCommandError = async (output, context) => {
|
|
@@ -644,10 +544,9 @@ const de_DeleteAccessPolicyCommandError = async (output, context) => {
|
|
|
644
544
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
645
545
|
default:
|
|
646
546
|
const parsedBody = parsedOutput.body;
|
|
647
|
-
|
|
547
|
+
return throwDefaultError({
|
|
648
548
|
output,
|
|
649
549
|
parsedBody,
|
|
650
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
651
550
|
errorCode,
|
|
652
551
|
});
|
|
653
552
|
}
|
|
@@ -658,12 +557,12 @@ const de_DeleteCollectionCommand = async (output, context) => {
|
|
|
658
557
|
}
|
|
659
558
|
const data = await parseBody(output.body, context);
|
|
660
559
|
let contents = {};
|
|
661
|
-
contents =
|
|
560
|
+
contents = (0, smithy_client_1._json)(data);
|
|
662
561
|
const response = {
|
|
663
562
|
$metadata: deserializeMetadata(output),
|
|
664
563
|
...contents,
|
|
665
564
|
};
|
|
666
|
-
return
|
|
565
|
+
return response;
|
|
667
566
|
};
|
|
668
567
|
exports.de_DeleteCollectionCommand = de_DeleteCollectionCommand;
|
|
669
568
|
const de_DeleteCollectionCommandError = async (output, context) => {
|
|
@@ -687,10 +586,9 @@ const de_DeleteCollectionCommandError = async (output, context) => {
|
|
|
687
586
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
688
587
|
default:
|
|
689
588
|
const parsedBody = parsedOutput.body;
|
|
690
|
-
|
|
589
|
+
return throwDefaultError({
|
|
691
590
|
output,
|
|
692
591
|
parsedBody,
|
|
693
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
694
592
|
errorCode,
|
|
695
593
|
});
|
|
696
594
|
}
|
|
@@ -701,12 +599,12 @@ const de_DeleteSecurityConfigCommand = async (output, context) => {
|
|
|
701
599
|
}
|
|
702
600
|
const data = await parseBody(output.body, context);
|
|
703
601
|
let contents = {};
|
|
704
|
-
contents =
|
|
602
|
+
contents = (0, smithy_client_1._json)(data);
|
|
705
603
|
const response = {
|
|
706
604
|
$metadata: deserializeMetadata(output),
|
|
707
605
|
...contents,
|
|
708
606
|
};
|
|
709
|
-
return
|
|
607
|
+
return response;
|
|
710
608
|
};
|
|
711
609
|
exports.de_DeleteSecurityConfigCommand = de_DeleteSecurityConfigCommand;
|
|
712
610
|
const de_DeleteSecurityConfigCommandError = async (output, context) => {
|
|
@@ -730,10 +628,9 @@ const de_DeleteSecurityConfigCommandError = async (output, context) => {
|
|
|
730
628
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
731
629
|
default:
|
|
732
630
|
const parsedBody = parsedOutput.body;
|
|
733
|
-
|
|
631
|
+
return throwDefaultError({
|
|
734
632
|
output,
|
|
735
633
|
parsedBody,
|
|
736
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
737
634
|
errorCode,
|
|
738
635
|
});
|
|
739
636
|
}
|
|
@@ -744,12 +641,12 @@ const de_DeleteSecurityPolicyCommand = async (output, context) => {
|
|
|
744
641
|
}
|
|
745
642
|
const data = await parseBody(output.body, context);
|
|
746
643
|
let contents = {};
|
|
747
|
-
contents =
|
|
644
|
+
contents = (0, smithy_client_1._json)(data);
|
|
748
645
|
const response = {
|
|
749
646
|
$metadata: deserializeMetadata(output),
|
|
750
647
|
...contents,
|
|
751
648
|
};
|
|
752
|
-
return
|
|
649
|
+
return response;
|
|
753
650
|
};
|
|
754
651
|
exports.de_DeleteSecurityPolicyCommand = de_DeleteSecurityPolicyCommand;
|
|
755
652
|
const de_DeleteSecurityPolicyCommandError = async (output, context) => {
|
|
@@ -773,10 +670,9 @@ const de_DeleteSecurityPolicyCommandError = async (output, context) => {
|
|
|
773
670
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
774
671
|
default:
|
|
775
672
|
const parsedBody = parsedOutput.body;
|
|
776
|
-
|
|
673
|
+
return throwDefaultError({
|
|
777
674
|
output,
|
|
778
675
|
parsedBody,
|
|
779
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
780
676
|
errorCode,
|
|
781
677
|
});
|
|
782
678
|
}
|
|
@@ -787,12 +683,12 @@ const de_DeleteVpcEndpointCommand = async (output, context) => {
|
|
|
787
683
|
}
|
|
788
684
|
const data = await parseBody(output.body, context);
|
|
789
685
|
let contents = {};
|
|
790
|
-
contents =
|
|
686
|
+
contents = (0, smithy_client_1._json)(data);
|
|
791
687
|
const response = {
|
|
792
688
|
$metadata: deserializeMetadata(output),
|
|
793
689
|
...contents,
|
|
794
690
|
};
|
|
795
|
-
return
|
|
691
|
+
return response;
|
|
796
692
|
};
|
|
797
693
|
exports.de_DeleteVpcEndpointCommand = de_DeleteVpcEndpointCommand;
|
|
798
694
|
const de_DeleteVpcEndpointCommandError = async (output, context) => {
|
|
@@ -816,10 +712,9 @@ const de_DeleteVpcEndpointCommandError = async (output, context) => {
|
|
|
816
712
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
817
713
|
default:
|
|
818
714
|
const parsedBody = parsedOutput.body;
|
|
819
|
-
|
|
715
|
+
return throwDefaultError({
|
|
820
716
|
output,
|
|
821
717
|
parsedBody,
|
|
822
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
823
718
|
errorCode,
|
|
824
719
|
});
|
|
825
720
|
}
|
|
@@ -835,7 +730,7 @@ const de_GetAccessPolicyCommand = async (output, context) => {
|
|
|
835
730
|
$metadata: deserializeMetadata(output),
|
|
836
731
|
...contents,
|
|
837
732
|
};
|
|
838
|
-
return
|
|
733
|
+
return response;
|
|
839
734
|
};
|
|
840
735
|
exports.de_GetAccessPolicyCommand = de_GetAccessPolicyCommand;
|
|
841
736
|
const de_GetAccessPolicyCommandError = async (output, context) => {
|
|
@@ -856,10 +751,9 @@ const de_GetAccessPolicyCommandError = async (output, context) => {
|
|
|
856
751
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
857
752
|
default:
|
|
858
753
|
const parsedBody = parsedOutput.body;
|
|
859
|
-
|
|
754
|
+
return throwDefaultError({
|
|
860
755
|
output,
|
|
861
756
|
parsedBody,
|
|
862
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
863
757
|
errorCode,
|
|
864
758
|
});
|
|
865
759
|
}
|
|
@@ -870,12 +764,12 @@ const de_GetAccountSettingsCommand = async (output, context) => {
|
|
|
870
764
|
}
|
|
871
765
|
const data = await parseBody(output.body, context);
|
|
872
766
|
let contents = {};
|
|
873
|
-
contents =
|
|
767
|
+
contents = (0, smithy_client_1._json)(data);
|
|
874
768
|
const response = {
|
|
875
769
|
$metadata: deserializeMetadata(output),
|
|
876
770
|
...contents,
|
|
877
771
|
};
|
|
878
|
-
return
|
|
772
|
+
return response;
|
|
879
773
|
};
|
|
880
774
|
exports.de_GetAccountSettingsCommand = de_GetAccountSettingsCommand;
|
|
881
775
|
const de_GetAccountSettingsCommandError = async (output, context) => {
|
|
@@ -893,10 +787,9 @@ const de_GetAccountSettingsCommandError = async (output, context) => {
|
|
|
893
787
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
894
788
|
default:
|
|
895
789
|
const parsedBody = parsedOutput.body;
|
|
896
|
-
|
|
790
|
+
return throwDefaultError({
|
|
897
791
|
output,
|
|
898
792
|
parsedBody,
|
|
899
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
900
793
|
errorCode,
|
|
901
794
|
});
|
|
902
795
|
}
|
|
@@ -907,12 +800,12 @@ const de_GetPoliciesStatsCommand = async (output, context) => {
|
|
|
907
800
|
}
|
|
908
801
|
const data = await parseBody(output.body, context);
|
|
909
802
|
let contents = {};
|
|
910
|
-
contents =
|
|
803
|
+
contents = (0, smithy_client_1._json)(data);
|
|
911
804
|
const response = {
|
|
912
805
|
$metadata: deserializeMetadata(output),
|
|
913
806
|
...contents,
|
|
914
807
|
};
|
|
915
|
-
return
|
|
808
|
+
return response;
|
|
916
809
|
};
|
|
917
810
|
exports.de_GetPoliciesStatsCommand = de_GetPoliciesStatsCommand;
|
|
918
811
|
const de_GetPoliciesStatsCommandError = async (output, context) => {
|
|
@@ -927,10 +820,9 @@ const de_GetPoliciesStatsCommandError = async (output, context) => {
|
|
|
927
820
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
928
821
|
default:
|
|
929
822
|
const parsedBody = parsedOutput.body;
|
|
930
|
-
|
|
823
|
+
return throwDefaultError({
|
|
931
824
|
output,
|
|
932
825
|
parsedBody,
|
|
933
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
934
826
|
errorCode,
|
|
935
827
|
});
|
|
936
828
|
}
|
|
@@ -941,12 +833,12 @@ const de_GetSecurityConfigCommand = async (output, context) => {
|
|
|
941
833
|
}
|
|
942
834
|
const data = await parseBody(output.body, context);
|
|
943
835
|
let contents = {};
|
|
944
|
-
contents =
|
|
836
|
+
contents = (0, smithy_client_1._json)(data);
|
|
945
837
|
const response = {
|
|
946
838
|
$metadata: deserializeMetadata(output),
|
|
947
839
|
...contents,
|
|
948
840
|
};
|
|
949
|
-
return
|
|
841
|
+
return response;
|
|
950
842
|
};
|
|
951
843
|
exports.de_GetSecurityConfigCommand = de_GetSecurityConfigCommand;
|
|
952
844
|
const de_GetSecurityConfigCommandError = async (output, context) => {
|
|
@@ -967,10 +859,9 @@ const de_GetSecurityConfigCommandError = async (output, context) => {
|
|
|
967
859
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
968
860
|
default:
|
|
969
861
|
const parsedBody = parsedOutput.body;
|
|
970
|
-
|
|
862
|
+
return throwDefaultError({
|
|
971
863
|
output,
|
|
972
864
|
parsedBody,
|
|
973
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
974
865
|
errorCode,
|
|
975
866
|
});
|
|
976
867
|
}
|
|
@@ -986,7 +877,7 @@ const de_GetSecurityPolicyCommand = async (output, context) => {
|
|
|
986
877
|
$metadata: deserializeMetadata(output),
|
|
987
878
|
...contents,
|
|
988
879
|
};
|
|
989
|
-
return
|
|
880
|
+
return response;
|
|
990
881
|
};
|
|
991
882
|
exports.de_GetSecurityPolicyCommand = de_GetSecurityPolicyCommand;
|
|
992
883
|
const de_GetSecurityPolicyCommandError = async (output, context) => {
|
|
@@ -1007,10 +898,9 @@ const de_GetSecurityPolicyCommandError = async (output, context) => {
|
|
|
1007
898
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1008
899
|
default:
|
|
1009
900
|
const parsedBody = parsedOutput.body;
|
|
1010
|
-
|
|
901
|
+
return throwDefaultError({
|
|
1011
902
|
output,
|
|
1012
903
|
parsedBody,
|
|
1013
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1014
904
|
errorCode,
|
|
1015
905
|
});
|
|
1016
906
|
}
|
|
@@ -1021,12 +911,12 @@ const de_ListAccessPoliciesCommand = async (output, context) => {
|
|
|
1021
911
|
}
|
|
1022
912
|
const data = await parseBody(output.body, context);
|
|
1023
913
|
let contents = {};
|
|
1024
|
-
contents =
|
|
914
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1025
915
|
const response = {
|
|
1026
916
|
$metadata: deserializeMetadata(output),
|
|
1027
917
|
...contents,
|
|
1028
918
|
};
|
|
1029
|
-
return
|
|
919
|
+
return response;
|
|
1030
920
|
};
|
|
1031
921
|
exports.de_ListAccessPoliciesCommand = de_ListAccessPoliciesCommand;
|
|
1032
922
|
const de_ListAccessPoliciesCommandError = async (output, context) => {
|
|
@@ -1044,10 +934,9 @@ const de_ListAccessPoliciesCommandError = async (output, context) => {
|
|
|
1044
934
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1045
935
|
default:
|
|
1046
936
|
const parsedBody = parsedOutput.body;
|
|
1047
|
-
|
|
937
|
+
return throwDefaultError({
|
|
1048
938
|
output,
|
|
1049
939
|
parsedBody,
|
|
1050
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1051
940
|
errorCode,
|
|
1052
941
|
});
|
|
1053
942
|
}
|
|
@@ -1058,12 +947,12 @@ const de_ListCollectionsCommand = async (output, context) => {
|
|
|
1058
947
|
}
|
|
1059
948
|
const data = await parseBody(output.body, context);
|
|
1060
949
|
let contents = {};
|
|
1061
|
-
contents =
|
|
950
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1062
951
|
const response = {
|
|
1063
952
|
$metadata: deserializeMetadata(output),
|
|
1064
953
|
...contents,
|
|
1065
954
|
};
|
|
1066
|
-
return
|
|
955
|
+
return response;
|
|
1067
956
|
};
|
|
1068
957
|
exports.de_ListCollectionsCommand = de_ListCollectionsCommand;
|
|
1069
958
|
const de_ListCollectionsCommandError = async (output, context) => {
|
|
@@ -1081,10 +970,9 @@ const de_ListCollectionsCommandError = async (output, context) => {
|
|
|
1081
970
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1082
971
|
default:
|
|
1083
972
|
const parsedBody = parsedOutput.body;
|
|
1084
|
-
|
|
973
|
+
return throwDefaultError({
|
|
1085
974
|
output,
|
|
1086
975
|
parsedBody,
|
|
1087
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1088
976
|
errorCode,
|
|
1089
977
|
});
|
|
1090
978
|
}
|
|
@@ -1095,12 +983,12 @@ const de_ListSecurityConfigsCommand = async (output, context) => {
|
|
|
1095
983
|
}
|
|
1096
984
|
const data = await parseBody(output.body, context);
|
|
1097
985
|
let contents = {};
|
|
1098
|
-
contents =
|
|
986
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1099
987
|
const response = {
|
|
1100
988
|
$metadata: deserializeMetadata(output),
|
|
1101
989
|
...contents,
|
|
1102
990
|
};
|
|
1103
|
-
return
|
|
991
|
+
return response;
|
|
1104
992
|
};
|
|
1105
993
|
exports.de_ListSecurityConfigsCommand = de_ListSecurityConfigsCommand;
|
|
1106
994
|
const de_ListSecurityConfigsCommandError = async (output, context) => {
|
|
@@ -1118,10 +1006,9 @@ const de_ListSecurityConfigsCommandError = async (output, context) => {
|
|
|
1118
1006
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1119
1007
|
default:
|
|
1120
1008
|
const parsedBody = parsedOutput.body;
|
|
1121
|
-
|
|
1009
|
+
return throwDefaultError({
|
|
1122
1010
|
output,
|
|
1123
1011
|
parsedBody,
|
|
1124
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1125
1012
|
errorCode,
|
|
1126
1013
|
});
|
|
1127
1014
|
}
|
|
@@ -1132,12 +1019,12 @@ const de_ListSecurityPoliciesCommand = async (output, context) => {
|
|
|
1132
1019
|
}
|
|
1133
1020
|
const data = await parseBody(output.body, context);
|
|
1134
1021
|
let contents = {};
|
|
1135
|
-
contents =
|
|
1022
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1136
1023
|
const response = {
|
|
1137
1024
|
$metadata: deserializeMetadata(output),
|
|
1138
1025
|
...contents,
|
|
1139
1026
|
};
|
|
1140
|
-
return
|
|
1027
|
+
return response;
|
|
1141
1028
|
};
|
|
1142
1029
|
exports.de_ListSecurityPoliciesCommand = de_ListSecurityPoliciesCommand;
|
|
1143
1030
|
const de_ListSecurityPoliciesCommandError = async (output, context) => {
|
|
@@ -1155,10 +1042,9 @@ const de_ListSecurityPoliciesCommandError = async (output, context) => {
|
|
|
1155
1042
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1156
1043
|
default:
|
|
1157
1044
|
const parsedBody = parsedOutput.body;
|
|
1158
|
-
|
|
1045
|
+
return throwDefaultError({
|
|
1159
1046
|
output,
|
|
1160
1047
|
parsedBody,
|
|
1161
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1162
1048
|
errorCode,
|
|
1163
1049
|
});
|
|
1164
1050
|
}
|
|
@@ -1169,12 +1055,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1169
1055
|
}
|
|
1170
1056
|
const data = await parseBody(output.body, context);
|
|
1171
1057
|
let contents = {};
|
|
1172
|
-
contents =
|
|
1058
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1173
1059
|
const response = {
|
|
1174
1060
|
$metadata: deserializeMetadata(output),
|
|
1175
1061
|
...contents,
|
|
1176
1062
|
};
|
|
1177
|
-
return
|
|
1063
|
+
return response;
|
|
1178
1064
|
};
|
|
1179
1065
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1180
1066
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1195,10 +1081,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1195
1081
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1196
1082
|
default:
|
|
1197
1083
|
const parsedBody = parsedOutput.body;
|
|
1198
|
-
|
|
1084
|
+
return throwDefaultError({
|
|
1199
1085
|
output,
|
|
1200
1086
|
parsedBody,
|
|
1201
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1202
1087
|
errorCode,
|
|
1203
1088
|
});
|
|
1204
1089
|
}
|
|
@@ -1209,12 +1094,12 @@ const de_ListVpcEndpointsCommand = async (output, context) => {
|
|
|
1209
1094
|
}
|
|
1210
1095
|
const data = await parseBody(output.body, context);
|
|
1211
1096
|
let contents = {};
|
|
1212
|
-
contents =
|
|
1097
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1213
1098
|
const response = {
|
|
1214
1099
|
$metadata: deserializeMetadata(output),
|
|
1215
1100
|
...contents,
|
|
1216
1101
|
};
|
|
1217
|
-
return
|
|
1102
|
+
return response;
|
|
1218
1103
|
};
|
|
1219
1104
|
exports.de_ListVpcEndpointsCommand = de_ListVpcEndpointsCommand;
|
|
1220
1105
|
const de_ListVpcEndpointsCommandError = async (output, context) => {
|
|
@@ -1232,10 +1117,9 @@ const de_ListVpcEndpointsCommandError = async (output, context) => {
|
|
|
1232
1117
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1233
1118
|
default:
|
|
1234
1119
|
const parsedBody = parsedOutput.body;
|
|
1235
|
-
|
|
1120
|
+
return throwDefaultError({
|
|
1236
1121
|
output,
|
|
1237
1122
|
parsedBody,
|
|
1238
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1239
1123
|
errorCode,
|
|
1240
1124
|
});
|
|
1241
1125
|
}
|
|
@@ -1246,12 +1130,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1246
1130
|
}
|
|
1247
1131
|
const data = await parseBody(output.body, context);
|
|
1248
1132
|
let contents = {};
|
|
1249
|
-
contents =
|
|
1133
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1250
1134
|
const response = {
|
|
1251
1135
|
$metadata: deserializeMetadata(output),
|
|
1252
1136
|
...contents,
|
|
1253
1137
|
};
|
|
1254
|
-
return
|
|
1138
|
+
return response;
|
|
1255
1139
|
};
|
|
1256
1140
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1257
1141
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -1278,10 +1162,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1278
1162
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1279
1163
|
default:
|
|
1280
1164
|
const parsedBody = parsedOutput.body;
|
|
1281
|
-
|
|
1165
|
+
return throwDefaultError({
|
|
1282
1166
|
output,
|
|
1283
1167
|
parsedBody,
|
|
1284
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1285
1168
|
errorCode,
|
|
1286
1169
|
});
|
|
1287
1170
|
}
|
|
@@ -1292,12 +1175,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1292
1175
|
}
|
|
1293
1176
|
const data = await parseBody(output.body, context);
|
|
1294
1177
|
let contents = {};
|
|
1295
|
-
contents =
|
|
1178
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1296
1179
|
const response = {
|
|
1297
1180
|
$metadata: deserializeMetadata(output),
|
|
1298
1181
|
...contents,
|
|
1299
1182
|
};
|
|
1300
|
-
return
|
|
1183
|
+
return response;
|
|
1301
1184
|
};
|
|
1302
1185
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1303
1186
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -1321,10 +1204,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1321
1204
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1322
1205
|
default:
|
|
1323
1206
|
const parsedBody = parsedOutput.body;
|
|
1324
|
-
|
|
1207
|
+
return throwDefaultError({
|
|
1325
1208
|
output,
|
|
1326
1209
|
parsedBody,
|
|
1327
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1328
1210
|
errorCode,
|
|
1329
1211
|
});
|
|
1330
1212
|
}
|
|
@@ -1340,7 +1222,7 @@ const de_UpdateAccessPolicyCommand = async (output, context) => {
|
|
|
1340
1222
|
$metadata: deserializeMetadata(output),
|
|
1341
1223
|
...contents,
|
|
1342
1224
|
};
|
|
1343
|
-
return
|
|
1225
|
+
return response;
|
|
1344
1226
|
};
|
|
1345
1227
|
exports.de_UpdateAccessPolicyCommand = de_UpdateAccessPolicyCommand;
|
|
1346
1228
|
const de_UpdateAccessPolicyCommandError = async (output, context) => {
|
|
@@ -1364,10 +1246,9 @@ const de_UpdateAccessPolicyCommandError = async (output, context) => {
|
|
|
1364
1246
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1365
1247
|
default:
|
|
1366
1248
|
const parsedBody = parsedOutput.body;
|
|
1367
|
-
|
|
1249
|
+
return throwDefaultError({
|
|
1368
1250
|
output,
|
|
1369
1251
|
parsedBody,
|
|
1370
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1371
1252
|
errorCode,
|
|
1372
1253
|
});
|
|
1373
1254
|
}
|
|
@@ -1378,12 +1259,12 @@ const de_UpdateAccountSettingsCommand = async (output, context) => {
|
|
|
1378
1259
|
}
|
|
1379
1260
|
const data = await parseBody(output.body, context);
|
|
1380
1261
|
let contents = {};
|
|
1381
|
-
contents =
|
|
1262
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1382
1263
|
const response = {
|
|
1383
1264
|
$metadata: deserializeMetadata(output),
|
|
1384
1265
|
...contents,
|
|
1385
1266
|
};
|
|
1386
|
-
return
|
|
1267
|
+
return response;
|
|
1387
1268
|
};
|
|
1388
1269
|
exports.de_UpdateAccountSettingsCommand = de_UpdateAccountSettingsCommand;
|
|
1389
1270
|
const de_UpdateAccountSettingsCommandError = async (output, context) => {
|
|
@@ -1401,10 +1282,9 @@ const de_UpdateAccountSettingsCommandError = async (output, context) => {
|
|
|
1401
1282
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1402
1283
|
default:
|
|
1403
1284
|
const parsedBody = parsedOutput.body;
|
|
1404
|
-
|
|
1285
|
+
return throwDefaultError({
|
|
1405
1286
|
output,
|
|
1406
1287
|
parsedBody,
|
|
1407
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1408
1288
|
errorCode,
|
|
1409
1289
|
});
|
|
1410
1290
|
}
|
|
@@ -1415,12 +1295,12 @@ const de_UpdateCollectionCommand = async (output, context) => {
|
|
|
1415
1295
|
}
|
|
1416
1296
|
const data = await parseBody(output.body, context);
|
|
1417
1297
|
let contents = {};
|
|
1418
|
-
contents =
|
|
1298
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1419
1299
|
const response = {
|
|
1420
1300
|
$metadata: deserializeMetadata(output),
|
|
1421
1301
|
...contents,
|
|
1422
1302
|
};
|
|
1423
|
-
return
|
|
1303
|
+
return response;
|
|
1424
1304
|
};
|
|
1425
1305
|
exports.de_UpdateCollectionCommand = de_UpdateCollectionCommand;
|
|
1426
1306
|
const de_UpdateCollectionCommandError = async (output, context) => {
|
|
@@ -1441,10 +1321,9 @@ const de_UpdateCollectionCommandError = async (output, context) => {
|
|
|
1441
1321
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1442
1322
|
default:
|
|
1443
1323
|
const parsedBody = parsedOutput.body;
|
|
1444
|
-
|
|
1324
|
+
return throwDefaultError({
|
|
1445
1325
|
output,
|
|
1446
1326
|
parsedBody,
|
|
1447
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1448
1327
|
errorCode,
|
|
1449
1328
|
});
|
|
1450
1329
|
}
|
|
@@ -1455,12 +1334,12 @@ const de_UpdateSecurityConfigCommand = async (output, context) => {
|
|
|
1455
1334
|
}
|
|
1456
1335
|
const data = await parseBody(output.body, context);
|
|
1457
1336
|
let contents = {};
|
|
1458
|
-
contents =
|
|
1337
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1459
1338
|
const response = {
|
|
1460
1339
|
$metadata: deserializeMetadata(output),
|
|
1461
1340
|
...contents,
|
|
1462
1341
|
};
|
|
1463
|
-
return
|
|
1342
|
+
return response;
|
|
1464
1343
|
};
|
|
1465
1344
|
exports.de_UpdateSecurityConfigCommand = de_UpdateSecurityConfigCommand;
|
|
1466
1345
|
const de_UpdateSecurityConfigCommandError = async (output, context) => {
|
|
@@ -1484,10 +1363,9 @@ const de_UpdateSecurityConfigCommandError = async (output, context) => {
|
|
|
1484
1363
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1485
1364
|
default:
|
|
1486
1365
|
const parsedBody = parsedOutput.body;
|
|
1487
|
-
|
|
1366
|
+
return throwDefaultError({
|
|
1488
1367
|
output,
|
|
1489
1368
|
parsedBody,
|
|
1490
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1491
1369
|
errorCode,
|
|
1492
1370
|
});
|
|
1493
1371
|
}
|
|
@@ -1503,7 +1381,7 @@ const de_UpdateSecurityPolicyCommand = async (output, context) => {
|
|
|
1503
1381
|
$metadata: deserializeMetadata(output),
|
|
1504
1382
|
...contents,
|
|
1505
1383
|
};
|
|
1506
|
-
return
|
|
1384
|
+
return response;
|
|
1507
1385
|
};
|
|
1508
1386
|
exports.de_UpdateSecurityPolicyCommand = de_UpdateSecurityPolicyCommand;
|
|
1509
1387
|
const de_UpdateSecurityPolicyCommandError = async (output, context) => {
|
|
@@ -1530,10 +1408,9 @@ const de_UpdateSecurityPolicyCommandError = async (output, context) => {
|
|
|
1530
1408
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1531
1409
|
default:
|
|
1532
1410
|
const parsedBody = parsedOutput.body;
|
|
1533
|
-
|
|
1411
|
+
return throwDefaultError({
|
|
1534
1412
|
output,
|
|
1535
1413
|
parsedBody,
|
|
1536
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1537
1414
|
errorCode,
|
|
1538
1415
|
});
|
|
1539
1416
|
}
|
|
@@ -1544,12 +1421,12 @@ const de_UpdateVpcEndpointCommand = async (output, context) => {
|
|
|
1544
1421
|
}
|
|
1545
1422
|
const data = await parseBody(output.body, context);
|
|
1546
1423
|
let contents = {};
|
|
1547
|
-
contents =
|
|
1424
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1548
1425
|
const response = {
|
|
1549
1426
|
$metadata: deserializeMetadata(output),
|
|
1550
1427
|
...contents,
|
|
1551
1428
|
};
|
|
1552
|
-
return
|
|
1429
|
+
return response;
|
|
1553
1430
|
};
|
|
1554
1431
|
exports.de_UpdateVpcEndpointCommand = de_UpdateVpcEndpointCommand;
|
|
1555
1432
|
const de_UpdateVpcEndpointCommandError = async (output, context) => {
|
|
@@ -1570,17 +1447,16 @@ const de_UpdateVpcEndpointCommandError = async (output, context) => {
|
|
|
1570
1447
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1571
1448
|
default:
|
|
1572
1449
|
const parsedBody = parsedOutput.body;
|
|
1573
|
-
|
|
1450
|
+
return throwDefaultError({
|
|
1574
1451
|
output,
|
|
1575
1452
|
parsedBody,
|
|
1576
|
-
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1577
1453
|
errorCode,
|
|
1578
1454
|
});
|
|
1579
1455
|
}
|
|
1580
1456
|
};
|
|
1581
1457
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1582
1458
|
const body = parsedOutput.body;
|
|
1583
|
-
const deserialized =
|
|
1459
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1584
1460
|
const exception = new models_0_1.ConflictException({
|
|
1585
1461
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1586
1462
|
...deserialized,
|
|
@@ -1589,7 +1465,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1589
1465
|
};
|
|
1590
1466
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1591
1467
|
const body = parsedOutput.body;
|
|
1592
|
-
const deserialized =
|
|
1468
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1593
1469
|
const exception = new models_0_1.InternalServerException({
|
|
1594
1470
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1595
1471
|
...deserialized,
|
|
@@ -1598,7 +1474,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1598
1474
|
};
|
|
1599
1475
|
const de_OcuLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1600
1476
|
const body = parsedOutput.body;
|
|
1601
|
-
const deserialized =
|
|
1477
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1602
1478
|
const exception = new models_0_1.OcuLimitExceededException({
|
|
1603
1479
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1604
1480
|
...deserialized,
|
|
@@ -1607,7 +1483,7 @@ const de_OcuLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1607
1483
|
};
|
|
1608
1484
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1609
1485
|
const body = parsedOutput.body;
|
|
1610
|
-
const deserialized =
|
|
1486
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1611
1487
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1612
1488
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1613
1489
|
...deserialized,
|
|
@@ -1616,7 +1492,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1616
1492
|
};
|
|
1617
1493
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1618
1494
|
const body = parsedOutput.body;
|
|
1619
|
-
const deserialized =
|
|
1495
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1620
1496
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1621
1497
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1622
1498
|
...deserialized,
|
|
@@ -1625,886 +1501,187 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1625
1501
|
};
|
|
1626
1502
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1627
1503
|
const body = parsedOutput.body;
|
|
1628
|
-
const deserialized =
|
|
1504
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1629
1505
|
const exception = new models_0_1.ValidationException({
|
|
1630
1506
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1631
1507
|
...deserialized,
|
|
1632
1508
|
});
|
|
1633
1509
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1634
1510
|
};
|
|
1635
|
-
const se_BatchGetCollectionRequest = (input, context) => {
|
|
1636
|
-
return {
|
|
1637
|
-
...(input.ids != null && { ids: se_CollectionIds(input.ids, context) }),
|
|
1638
|
-
...(input.names != null && { names: se_CollectionNames(input.names, context) }),
|
|
1639
|
-
};
|
|
1640
|
-
};
|
|
1641
|
-
const se_BatchGetVpcEndpointRequest = (input, context) => {
|
|
1642
|
-
return {
|
|
1643
|
-
...(input.ids != null && { ids: se_VpcEndpointIds(input.ids, context) }),
|
|
1644
|
-
};
|
|
1645
|
-
};
|
|
1646
|
-
const se_CapacityLimits = (input, context) => {
|
|
1647
|
-
return {
|
|
1648
|
-
...(input.maxIndexingCapacityInOCU != null && { maxIndexingCapacityInOCU: input.maxIndexingCapacityInOCU }),
|
|
1649
|
-
...(input.maxSearchCapacityInOCU != null && { maxSearchCapacityInOCU: input.maxSearchCapacityInOCU }),
|
|
1650
|
-
};
|
|
1651
|
-
};
|
|
1652
|
-
const se_CollectionFilters = (input, context) => {
|
|
1653
|
-
return {
|
|
1654
|
-
...(input.name != null && { name: input.name }),
|
|
1655
|
-
...(input.status != null && { status: input.status }),
|
|
1656
|
-
};
|
|
1657
|
-
};
|
|
1658
|
-
const se_CollectionIds = (input, context) => {
|
|
1659
|
-
return input
|
|
1660
|
-
.filter((e) => e != null)
|
|
1661
|
-
.map((entry) => {
|
|
1662
|
-
return entry;
|
|
1663
|
-
});
|
|
1664
|
-
};
|
|
1665
|
-
const se_CollectionNames = (input, context) => {
|
|
1666
|
-
return input
|
|
1667
|
-
.filter((e) => e != null)
|
|
1668
|
-
.map((entry) => {
|
|
1669
|
-
return entry;
|
|
1670
|
-
});
|
|
1671
|
-
};
|
|
1672
1511
|
const se_CreateAccessPolicyRequest = (input, context) => {
|
|
1673
|
-
return {
|
|
1674
|
-
clientToken:
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
};
|
|
1512
|
+
return (0, smithy_client_1.take)(input, {
|
|
1513
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1514
|
+
description: [],
|
|
1515
|
+
name: [],
|
|
1516
|
+
policy: [],
|
|
1517
|
+
type: [],
|
|
1518
|
+
});
|
|
1680
1519
|
};
|
|
1681
1520
|
const se_CreateCollectionRequest = (input, context) => {
|
|
1682
|
-
return {
|
|
1683
|
-
clientToken:
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
};
|
|
1521
|
+
return (0, smithy_client_1.take)(input, {
|
|
1522
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1523
|
+
description: [],
|
|
1524
|
+
name: [],
|
|
1525
|
+
tags: smithy_client_1._json,
|
|
1526
|
+
type: [],
|
|
1527
|
+
});
|
|
1689
1528
|
};
|
|
1690
1529
|
const se_CreateSecurityConfigRequest = (input, context) => {
|
|
1691
|
-
return {
|
|
1692
|
-
clientToken:
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
};
|
|
1530
|
+
return (0, smithy_client_1.take)(input, {
|
|
1531
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1532
|
+
description: [],
|
|
1533
|
+
name: [],
|
|
1534
|
+
samlOptions: smithy_client_1._json,
|
|
1535
|
+
type: [],
|
|
1536
|
+
});
|
|
1698
1537
|
};
|
|
1699
1538
|
const se_CreateSecurityPolicyRequest = (input, context) => {
|
|
1700
|
-
return {
|
|
1701
|
-
clientToken:
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
};
|
|
1539
|
+
return (0, smithy_client_1.take)(input, {
|
|
1540
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1541
|
+
description: [],
|
|
1542
|
+
name: [],
|
|
1543
|
+
policy: [],
|
|
1544
|
+
type: [],
|
|
1545
|
+
});
|
|
1707
1546
|
};
|
|
1708
1547
|
const se_CreateVpcEndpointRequest = (input, context) => {
|
|
1709
|
-
return {
|
|
1710
|
-
clientToken:
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
};
|
|
1548
|
+
return (0, smithy_client_1.take)(input, {
|
|
1549
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1550
|
+
name: [],
|
|
1551
|
+
securityGroupIds: smithy_client_1._json,
|
|
1552
|
+
subnetIds: smithy_client_1._json,
|
|
1553
|
+
vpcId: [],
|
|
1554
|
+
});
|
|
1716
1555
|
};
|
|
1717
1556
|
const se_DeleteAccessPolicyRequest = (input, context) => {
|
|
1718
|
-
return {
|
|
1719
|
-
clientToken:
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
};
|
|
1723
|
-
};
|
|
1724
|
-
const se_DeleteCollectionRequest = (input, context) => {
|
|
1725
|
-
return {
|
|
1726
|
-
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1727
|
-
...(input.id != null && { id: input.id }),
|
|
1728
|
-
};
|
|
1729
|
-
};
|
|
1730
|
-
const se_DeleteSecurityConfigRequest = (input, context) => {
|
|
1731
|
-
return {
|
|
1732
|
-
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1733
|
-
...(input.id != null && { id: input.id }),
|
|
1734
|
-
};
|
|
1735
|
-
};
|
|
1736
|
-
const se_DeleteSecurityPolicyRequest = (input, context) => {
|
|
1737
|
-
return {
|
|
1738
|
-
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1739
|
-
...(input.name != null && { name: input.name }),
|
|
1740
|
-
...(input.type != null && { type: input.type }),
|
|
1741
|
-
};
|
|
1742
|
-
};
|
|
1743
|
-
const se_DeleteVpcEndpointRequest = (input, context) => {
|
|
1744
|
-
return {
|
|
1745
|
-
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1746
|
-
...(input.id != null && { id: input.id }),
|
|
1747
|
-
};
|
|
1748
|
-
};
|
|
1749
|
-
const se_GetAccessPolicyRequest = (input, context) => {
|
|
1750
|
-
return {
|
|
1751
|
-
...(input.name != null && { name: input.name }),
|
|
1752
|
-
...(input.type != null && { type: input.type }),
|
|
1753
|
-
};
|
|
1754
|
-
};
|
|
1755
|
-
const se_GetAccountSettingsRequest = (input, context) => {
|
|
1756
|
-
return {};
|
|
1757
|
-
};
|
|
1758
|
-
const se_GetPoliciesStatsRequest = (input, context) => {
|
|
1759
|
-
return {};
|
|
1760
|
-
};
|
|
1761
|
-
const se_GetSecurityConfigRequest = (input, context) => {
|
|
1762
|
-
return {
|
|
1763
|
-
...(input.id != null && { id: input.id }),
|
|
1764
|
-
};
|
|
1765
|
-
};
|
|
1766
|
-
const se_GetSecurityPolicyRequest = (input, context) => {
|
|
1767
|
-
return {
|
|
1768
|
-
...(input.name != null && { name: input.name }),
|
|
1769
|
-
...(input.type != null && { type: input.type }),
|
|
1770
|
-
};
|
|
1771
|
-
};
|
|
1772
|
-
const se_ListAccessPoliciesRequest = (input, context) => {
|
|
1773
|
-
return {
|
|
1774
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1775
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1776
|
-
...(input.resource != null && { resource: se_ResourceFilter(input.resource, context) }),
|
|
1777
|
-
...(input.type != null && { type: input.type }),
|
|
1778
|
-
};
|
|
1779
|
-
};
|
|
1780
|
-
const se_ListCollectionsRequest = (input, context) => {
|
|
1781
|
-
return {
|
|
1782
|
-
...(input.collectionFilters != null && {
|
|
1783
|
-
collectionFilters: se_CollectionFilters(input.collectionFilters, context),
|
|
1784
|
-
}),
|
|
1785
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1786
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1787
|
-
};
|
|
1788
|
-
};
|
|
1789
|
-
const se_ListSecurityConfigsRequest = (input, context) => {
|
|
1790
|
-
return {
|
|
1791
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1792
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1793
|
-
...(input.type != null && { type: input.type }),
|
|
1794
|
-
};
|
|
1795
|
-
};
|
|
1796
|
-
const se_ListSecurityPoliciesRequest = (input, context) => {
|
|
1797
|
-
return {
|
|
1798
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1799
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1800
|
-
...(input.resource != null && { resource: se_ResourceFilter(input.resource, context) }),
|
|
1801
|
-
...(input.type != null && { type: input.type }),
|
|
1802
|
-
};
|
|
1803
|
-
};
|
|
1804
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1805
|
-
return {
|
|
1806
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1807
|
-
};
|
|
1808
|
-
};
|
|
1809
|
-
const se_ListVpcEndpointsRequest = (input, context) => {
|
|
1810
|
-
return {
|
|
1811
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1812
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1813
|
-
...(input.vpcEndpointFilters != null && {
|
|
1814
|
-
vpcEndpointFilters: se_VpcEndpointFilters(input.vpcEndpointFilters, context),
|
|
1815
|
-
}),
|
|
1816
|
-
};
|
|
1817
|
-
};
|
|
1818
|
-
const se_ResourceFilter = (input, context) => {
|
|
1819
|
-
return input
|
|
1820
|
-
.filter((e) => e != null)
|
|
1821
|
-
.map((entry) => {
|
|
1822
|
-
return entry;
|
|
1557
|
+
return (0, smithy_client_1.take)(input, {
|
|
1558
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1559
|
+
name: [],
|
|
1560
|
+
type: [],
|
|
1823
1561
|
});
|
|
1824
1562
|
};
|
|
1825
|
-
const
|
|
1826
|
-
return {
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
...(input.sessionTimeout != null && { sessionTimeout: input.sessionTimeout }),
|
|
1830
|
-
...(input.userAttribute != null && { userAttribute: input.userAttribute }),
|
|
1831
|
-
};
|
|
1832
|
-
};
|
|
1833
|
-
const se_SecurityGroupIds = (input, context) => {
|
|
1834
|
-
return input
|
|
1835
|
-
.filter((e) => e != null)
|
|
1836
|
-
.map((entry) => {
|
|
1837
|
-
return entry;
|
|
1563
|
+
const se_DeleteCollectionRequest = (input, context) => {
|
|
1564
|
+
return (0, smithy_client_1.take)(input, {
|
|
1565
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1566
|
+
id: [],
|
|
1838
1567
|
});
|
|
1839
1568
|
};
|
|
1840
|
-
const
|
|
1841
|
-
return input
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
return entry;
|
|
1569
|
+
const se_DeleteSecurityConfigRequest = (input, context) => {
|
|
1570
|
+
return (0, smithy_client_1.take)(input, {
|
|
1571
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1572
|
+
id: [],
|
|
1845
1573
|
});
|
|
1846
1574
|
};
|
|
1847
|
-
const
|
|
1848
|
-
return {
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
};
|
|
1853
|
-
const se_TagKeys = (input, context) => {
|
|
1854
|
-
return input
|
|
1855
|
-
.filter((e) => e != null)
|
|
1856
|
-
.map((entry) => {
|
|
1857
|
-
return entry;
|
|
1575
|
+
const se_DeleteSecurityPolicyRequest = (input, context) => {
|
|
1576
|
+
return (0, smithy_client_1.take)(input, {
|
|
1577
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1578
|
+
name: [],
|
|
1579
|
+
type: [],
|
|
1858
1580
|
});
|
|
1859
1581
|
};
|
|
1860
|
-
const
|
|
1861
|
-
return {
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
};
|
|
1865
|
-
};
|
|
1866
|
-
const se_Tags = (input, context) => {
|
|
1867
|
-
return input
|
|
1868
|
-
.filter((e) => e != null)
|
|
1869
|
-
.map((entry) => {
|
|
1870
|
-
return se_Tag(entry, context);
|
|
1582
|
+
const se_DeleteVpcEndpointRequest = (input, context) => {
|
|
1583
|
+
return (0, smithy_client_1.take)(input, {
|
|
1584
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1585
|
+
id: [],
|
|
1871
1586
|
});
|
|
1872
1587
|
};
|
|
1873
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
1874
|
-
return {
|
|
1875
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1876
|
-
...(input.tagKeys != null && { tagKeys: se_TagKeys(input.tagKeys, context) }),
|
|
1877
|
-
};
|
|
1878
|
-
};
|
|
1879
1588
|
const se_UpdateAccessPolicyRequest = (input, context) => {
|
|
1880
|
-
return {
|
|
1881
|
-
clientToken:
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
};
|
|
1888
|
-
};
|
|
1889
|
-
const se_UpdateAccountSettingsRequest = (input, context) => {
|
|
1890
|
-
return {
|
|
1891
|
-
...(input.capacityLimits != null && { capacityLimits: se_CapacityLimits(input.capacityLimits, context) }),
|
|
1892
|
-
};
|
|
1589
|
+
return (0, smithy_client_1.take)(input, {
|
|
1590
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1591
|
+
description: [],
|
|
1592
|
+
name: [],
|
|
1593
|
+
policy: [],
|
|
1594
|
+
policyVersion: [],
|
|
1595
|
+
type: [],
|
|
1596
|
+
});
|
|
1893
1597
|
};
|
|
1894
1598
|
const se_UpdateCollectionRequest = (input, context) => {
|
|
1895
|
-
return {
|
|
1896
|
-
clientToken:
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
};
|
|
1599
|
+
return (0, smithy_client_1.take)(input, {
|
|
1600
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1601
|
+
description: [],
|
|
1602
|
+
id: [],
|
|
1603
|
+
});
|
|
1900
1604
|
};
|
|
1901
1605
|
const se_UpdateSecurityConfigRequest = (input, context) => {
|
|
1902
|
-
return {
|
|
1903
|
-
clientToken:
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
};
|
|
1606
|
+
return (0, smithy_client_1.take)(input, {
|
|
1607
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1608
|
+
configVersion: [],
|
|
1609
|
+
description: [],
|
|
1610
|
+
id: [],
|
|
1611
|
+
samlOptions: smithy_client_1._json,
|
|
1612
|
+
});
|
|
1909
1613
|
};
|
|
1910
1614
|
const se_UpdateSecurityPolicyRequest = (input, context) => {
|
|
1911
|
-
return {
|
|
1912
|
-
clientToken:
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
};
|
|
1615
|
+
return (0, smithy_client_1.take)(input, {
|
|
1616
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1617
|
+
description: [],
|
|
1618
|
+
name: [],
|
|
1619
|
+
policy: [],
|
|
1620
|
+
policyVersion: [],
|
|
1621
|
+
type: [],
|
|
1622
|
+
});
|
|
1919
1623
|
};
|
|
1920
1624
|
const se_UpdateVpcEndpointRequest = (input, context) => {
|
|
1921
|
-
return {
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
...(input.removeSecurityGroupIds != null && {
|
|
1929
|
-
removeSecurityGroupIds: se_SecurityGroupIds(input.removeSecurityGroupIds, context),
|
|
1930
|
-
}),
|
|
1931
|
-
...(input.removeSubnetIds != null && { removeSubnetIds: se_SubnetIds(input.removeSubnetIds, context) }),
|
|
1932
|
-
};
|
|
1933
|
-
};
|
|
1934
|
-
const se_VpcEndpointFilters = (input, context) => {
|
|
1935
|
-
return {
|
|
1936
|
-
...(input.status != null && { status: input.status }),
|
|
1937
|
-
};
|
|
1938
|
-
};
|
|
1939
|
-
const se_VpcEndpointIds = (input, context) => {
|
|
1940
|
-
return input
|
|
1941
|
-
.filter((e) => e != null)
|
|
1942
|
-
.map((entry) => {
|
|
1943
|
-
return entry;
|
|
1625
|
+
return (0, smithy_client_1.take)(input, {
|
|
1626
|
+
addSecurityGroupIds: smithy_client_1._json,
|
|
1627
|
+
addSubnetIds: smithy_client_1._json,
|
|
1628
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1629
|
+
id: [],
|
|
1630
|
+
removeSecurityGroupIds: smithy_client_1._json,
|
|
1631
|
+
removeSubnetIds: smithy_client_1._json,
|
|
1944
1632
|
});
|
|
1945
1633
|
};
|
|
1946
1634
|
const de_AccessPolicyDetail = (output, context) => {
|
|
1947
|
-
return {
|
|
1948
|
-
createdDate:
|
|
1949
|
-
description:
|
|
1950
|
-
lastModifiedDate:
|
|
1951
|
-
name:
|
|
1952
|
-
policy:
|
|
1953
|
-
policyVersion:
|
|
1954
|
-
type:
|
|
1955
|
-
};
|
|
1956
|
-
};
|
|
1957
|
-
const de_AccessPolicyStats = (output, context) => {
|
|
1958
|
-
return {
|
|
1959
|
-
DataPolicyCount: (0, smithy_client_1.expectLong)(output.DataPolicyCount),
|
|
1960
|
-
};
|
|
1961
|
-
};
|
|
1962
|
-
const de_AccessPolicySummaries = (output, context) => {
|
|
1963
|
-
const retVal = (output || [])
|
|
1964
|
-
.filter((e) => e != null)
|
|
1965
|
-
.map((entry) => {
|
|
1966
|
-
if (entry === null) {
|
|
1967
|
-
return null;
|
|
1968
|
-
}
|
|
1969
|
-
return de_AccessPolicySummary(entry, context);
|
|
1970
|
-
});
|
|
1971
|
-
return retVal;
|
|
1972
|
-
};
|
|
1973
|
-
const de_AccessPolicySummary = (output, context) => {
|
|
1974
|
-
return {
|
|
1975
|
-
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
1976
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
1977
|
-
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
1978
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
1979
|
-
policyVersion: (0, smithy_client_1.expectString)(output.policyVersion),
|
|
1980
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
1981
|
-
};
|
|
1982
|
-
};
|
|
1983
|
-
const de_AccountSettingsDetail = (output, context) => {
|
|
1984
|
-
return {
|
|
1985
|
-
capacityLimits: output.capacityLimits != null ? de_CapacityLimits(output.capacityLimits, context) : undefined,
|
|
1986
|
-
};
|
|
1987
|
-
};
|
|
1988
|
-
const de_BatchGetCollectionResponse = (output, context) => {
|
|
1989
|
-
return {
|
|
1990
|
-
collectionDetails: output.collectionDetails != null ? de_CollectionDetails(output.collectionDetails, context) : undefined,
|
|
1991
|
-
collectionErrorDetails: output.collectionErrorDetails != null
|
|
1992
|
-
? de_CollectionErrorDetails(output.collectionErrorDetails, context)
|
|
1993
|
-
: undefined,
|
|
1994
|
-
};
|
|
1995
|
-
};
|
|
1996
|
-
const de_BatchGetVpcEndpointResponse = (output, context) => {
|
|
1997
|
-
return {
|
|
1998
|
-
vpcEndpointDetails: output.vpcEndpointDetails != null ? de_VpcEndpointDetails(output.vpcEndpointDetails, context) : undefined,
|
|
1999
|
-
vpcEndpointErrorDetails: output.vpcEndpointErrorDetails != null
|
|
2000
|
-
? de_VpcEndpointErrorDetails(output.vpcEndpointErrorDetails, context)
|
|
2001
|
-
: undefined,
|
|
2002
|
-
};
|
|
2003
|
-
};
|
|
2004
|
-
const de_CapacityLimits = (output, context) => {
|
|
2005
|
-
return {
|
|
2006
|
-
maxIndexingCapacityInOCU: (0, smithy_client_1.expectInt32)(output.maxIndexingCapacityInOCU),
|
|
2007
|
-
maxSearchCapacityInOCU: (0, smithy_client_1.expectInt32)(output.maxSearchCapacityInOCU),
|
|
2008
|
-
};
|
|
2009
|
-
};
|
|
2010
|
-
const de_CollectionDetail = (output, context) => {
|
|
2011
|
-
return {
|
|
2012
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2013
|
-
collectionEndpoint: (0, smithy_client_1.expectString)(output.collectionEndpoint),
|
|
2014
|
-
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2015
|
-
dashboardEndpoint: (0, smithy_client_1.expectString)(output.dashboardEndpoint),
|
|
2016
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
2017
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2018
|
-
kmsKeyArn: (0, smithy_client_1.expectString)(output.kmsKeyArn),
|
|
2019
|
-
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2020
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2021
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2022
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2023
|
-
};
|
|
2024
|
-
};
|
|
2025
|
-
const de_CollectionDetails = (output, context) => {
|
|
2026
|
-
const retVal = (output || [])
|
|
2027
|
-
.filter((e) => e != null)
|
|
2028
|
-
.map((entry) => {
|
|
2029
|
-
if (entry === null) {
|
|
2030
|
-
return null;
|
|
2031
|
-
}
|
|
2032
|
-
return de_CollectionDetail(entry, context);
|
|
2033
|
-
});
|
|
2034
|
-
return retVal;
|
|
2035
|
-
};
|
|
2036
|
-
const de_CollectionErrorDetail = (output, context) => {
|
|
2037
|
-
return {
|
|
2038
|
-
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
2039
|
-
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
2040
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2041
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2042
|
-
};
|
|
2043
|
-
};
|
|
2044
|
-
const de_CollectionErrorDetails = (output, context) => {
|
|
2045
|
-
const retVal = (output || [])
|
|
2046
|
-
.filter((e) => e != null)
|
|
2047
|
-
.map((entry) => {
|
|
2048
|
-
if (entry === null) {
|
|
2049
|
-
return null;
|
|
2050
|
-
}
|
|
2051
|
-
return de_CollectionErrorDetail(entry, context);
|
|
2052
|
-
});
|
|
2053
|
-
return retVal;
|
|
2054
|
-
};
|
|
2055
|
-
const de_CollectionSummaries = (output, context) => {
|
|
2056
|
-
const retVal = (output || [])
|
|
2057
|
-
.filter((e) => e != null)
|
|
2058
|
-
.map((entry) => {
|
|
2059
|
-
if (entry === null) {
|
|
2060
|
-
return null;
|
|
2061
|
-
}
|
|
2062
|
-
return de_CollectionSummary(entry, context);
|
|
1635
|
+
return (0, smithy_client_1.take)(output, {
|
|
1636
|
+
createdDate: smithy_client_1.expectLong,
|
|
1637
|
+
description: smithy_client_1.expectString,
|
|
1638
|
+
lastModifiedDate: smithy_client_1.expectLong,
|
|
1639
|
+
name: smithy_client_1.expectString,
|
|
1640
|
+
policy: (_) => de_Document(_, context),
|
|
1641
|
+
policyVersion: smithy_client_1.expectString,
|
|
1642
|
+
type: smithy_client_1.expectString,
|
|
2063
1643
|
});
|
|
2064
|
-
return retVal;
|
|
2065
|
-
};
|
|
2066
|
-
const de_CollectionSummary = (output, context) => {
|
|
2067
|
-
return {
|
|
2068
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2069
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2070
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2071
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2072
|
-
};
|
|
2073
|
-
};
|
|
2074
|
-
const de_ConflictException = (output, context) => {
|
|
2075
|
-
return {
|
|
2076
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2077
|
-
};
|
|
2078
1644
|
};
|
|
2079
1645
|
const de_CreateAccessPolicyResponse = (output, context) => {
|
|
2080
|
-
return {
|
|
2081
|
-
accessPolicyDetail:
|
|
2082
|
-
};
|
|
2083
|
-
};
|
|
2084
|
-
const de_CreateCollectionDetail = (output, context) => {
|
|
2085
|
-
return {
|
|
2086
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2087
|
-
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2088
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
2089
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2090
|
-
kmsKeyArn: (0, smithy_client_1.expectString)(output.kmsKeyArn),
|
|
2091
|
-
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2092
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2093
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2094
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2095
|
-
};
|
|
2096
|
-
};
|
|
2097
|
-
const de_CreateCollectionResponse = (output, context) => {
|
|
2098
|
-
return {
|
|
2099
|
-
createCollectionDetail: output.createCollectionDetail != null
|
|
2100
|
-
? de_CreateCollectionDetail(output.createCollectionDetail, context)
|
|
2101
|
-
: undefined,
|
|
2102
|
-
};
|
|
2103
|
-
};
|
|
2104
|
-
const de_CreateSecurityConfigResponse = (output, context) => {
|
|
2105
|
-
return {
|
|
2106
|
-
securityConfigDetail: output.securityConfigDetail != null ? de_SecurityConfigDetail(output.securityConfigDetail, context) : undefined,
|
|
2107
|
-
};
|
|
1646
|
+
return (0, smithy_client_1.take)(output, {
|
|
1647
|
+
accessPolicyDetail: (_) => de_AccessPolicyDetail(_, context),
|
|
1648
|
+
});
|
|
2108
1649
|
};
|
|
2109
1650
|
const de_CreateSecurityPolicyResponse = (output, context) => {
|
|
2110
|
-
return {
|
|
2111
|
-
securityPolicyDetail:
|
|
2112
|
-
};
|
|
2113
|
-
};
|
|
2114
|
-
const de_CreateVpcEndpointDetail = (output, context) => {
|
|
2115
|
-
return {
|
|
2116
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2117
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2118
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2119
|
-
};
|
|
2120
|
-
};
|
|
2121
|
-
const de_CreateVpcEndpointResponse = (output, context) => {
|
|
2122
|
-
return {
|
|
2123
|
-
createVpcEndpointDetail: output.createVpcEndpointDetail != null
|
|
2124
|
-
? de_CreateVpcEndpointDetail(output.createVpcEndpointDetail, context)
|
|
2125
|
-
: undefined,
|
|
2126
|
-
};
|
|
2127
|
-
};
|
|
2128
|
-
const de_DeleteAccessPolicyResponse = (output, context) => {
|
|
2129
|
-
return {};
|
|
2130
|
-
};
|
|
2131
|
-
const de_DeleteCollectionDetail = (output, context) => {
|
|
2132
|
-
return {
|
|
2133
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2134
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2135
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2136
|
-
};
|
|
2137
|
-
};
|
|
2138
|
-
const de_DeleteCollectionResponse = (output, context) => {
|
|
2139
|
-
return {
|
|
2140
|
-
deleteCollectionDetail: output.deleteCollectionDetail != null
|
|
2141
|
-
? de_DeleteCollectionDetail(output.deleteCollectionDetail, context)
|
|
2142
|
-
: undefined,
|
|
2143
|
-
};
|
|
2144
|
-
};
|
|
2145
|
-
const de_DeleteSecurityConfigResponse = (output, context) => {
|
|
2146
|
-
return {};
|
|
2147
|
-
};
|
|
2148
|
-
const de_DeleteSecurityPolicyResponse = (output, context) => {
|
|
2149
|
-
return {};
|
|
2150
|
-
};
|
|
2151
|
-
const de_DeleteVpcEndpointDetail = (output, context) => {
|
|
2152
|
-
return {
|
|
2153
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2154
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2155
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2156
|
-
};
|
|
2157
|
-
};
|
|
2158
|
-
const de_DeleteVpcEndpointResponse = (output, context) => {
|
|
2159
|
-
return {
|
|
2160
|
-
deleteVpcEndpointDetail: output.deleteVpcEndpointDetail != null
|
|
2161
|
-
? de_DeleteVpcEndpointDetail(output.deleteVpcEndpointDetail, context)
|
|
2162
|
-
: undefined,
|
|
2163
|
-
};
|
|
1651
|
+
return (0, smithy_client_1.take)(output, {
|
|
1652
|
+
securityPolicyDetail: (_) => de_SecurityPolicyDetail(_, context),
|
|
1653
|
+
});
|
|
2164
1654
|
};
|
|
2165
1655
|
const de_GetAccessPolicyResponse = (output, context) => {
|
|
2166
|
-
return {
|
|
2167
|
-
accessPolicyDetail:
|
|
2168
|
-
};
|
|
2169
|
-
};
|
|
2170
|
-
const de_GetAccountSettingsResponse = (output, context) => {
|
|
2171
|
-
return {
|
|
2172
|
-
accountSettingsDetail: output.accountSettingsDetail != null
|
|
2173
|
-
? de_AccountSettingsDetail(output.accountSettingsDetail, context)
|
|
2174
|
-
: undefined,
|
|
2175
|
-
};
|
|
2176
|
-
};
|
|
2177
|
-
const de_GetPoliciesStatsResponse = (output, context) => {
|
|
2178
|
-
return {
|
|
2179
|
-
AccessPolicyStats: output.AccessPolicyStats != null ? de_AccessPolicyStats(output.AccessPolicyStats, context) : undefined,
|
|
2180
|
-
SecurityConfigStats: output.SecurityConfigStats != null ? de_SecurityConfigStats(output.SecurityConfigStats, context) : undefined,
|
|
2181
|
-
SecurityPolicyStats: output.SecurityPolicyStats != null ? de_SecurityPolicyStats(output.SecurityPolicyStats, context) : undefined,
|
|
2182
|
-
TotalPolicyCount: (0, smithy_client_1.expectLong)(output.TotalPolicyCount),
|
|
2183
|
-
};
|
|
2184
|
-
};
|
|
2185
|
-
const de_GetSecurityConfigResponse = (output, context) => {
|
|
2186
|
-
return {
|
|
2187
|
-
securityConfigDetail: output.securityConfigDetail != null ? de_SecurityConfigDetail(output.securityConfigDetail, context) : undefined,
|
|
2188
|
-
};
|
|
2189
|
-
};
|
|
2190
|
-
const de_GetSecurityPolicyResponse = (output, context) => {
|
|
2191
|
-
return {
|
|
2192
|
-
securityPolicyDetail: output.securityPolicyDetail != null ? de_SecurityPolicyDetail(output.securityPolicyDetail, context) : undefined,
|
|
2193
|
-
};
|
|
2194
|
-
};
|
|
2195
|
-
const de_InternalServerException = (output, context) => {
|
|
2196
|
-
return {
|
|
2197
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2198
|
-
};
|
|
2199
|
-
};
|
|
2200
|
-
const de_ListAccessPoliciesResponse = (output, context) => {
|
|
2201
|
-
return {
|
|
2202
|
-
accessPolicySummaries: output.accessPolicySummaries != null
|
|
2203
|
-
? de_AccessPolicySummaries(output.accessPolicySummaries, context)
|
|
2204
|
-
: undefined,
|
|
2205
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2206
|
-
};
|
|
2207
|
-
};
|
|
2208
|
-
const de_ListCollectionsResponse = (output, context) => {
|
|
2209
|
-
return {
|
|
2210
|
-
collectionSummaries: output.collectionSummaries != null ? de_CollectionSummaries(output.collectionSummaries, context) : undefined,
|
|
2211
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2212
|
-
};
|
|
2213
|
-
};
|
|
2214
|
-
const de_ListSecurityConfigsResponse = (output, context) => {
|
|
2215
|
-
return {
|
|
2216
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2217
|
-
securityConfigSummaries: output.securityConfigSummaries != null
|
|
2218
|
-
? de_SecurityConfigSummaries(output.securityConfigSummaries, context)
|
|
2219
|
-
: undefined,
|
|
2220
|
-
};
|
|
2221
|
-
};
|
|
2222
|
-
const de_ListSecurityPoliciesResponse = (output, context) => {
|
|
2223
|
-
return {
|
|
2224
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2225
|
-
securityPolicySummaries: output.securityPolicySummaries != null
|
|
2226
|
-
? de_SecurityPolicySummaries(output.securityPolicySummaries, context)
|
|
2227
|
-
: undefined,
|
|
2228
|
-
};
|
|
2229
|
-
};
|
|
2230
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
2231
|
-
return {
|
|
2232
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2233
|
-
};
|
|
2234
|
-
};
|
|
2235
|
-
const de_ListVpcEndpointsResponse = (output, context) => {
|
|
2236
|
-
return {
|
|
2237
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2238
|
-
vpcEndpointSummaries: output.vpcEndpointSummaries != null ? de_VpcEndpointSummaries(output.vpcEndpointSummaries, context) : undefined,
|
|
2239
|
-
};
|
|
2240
|
-
};
|
|
2241
|
-
const de_OcuLimitExceededException = (output, context) => {
|
|
2242
|
-
return {
|
|
2243
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2244
|
-
};
|
|
2245
|
-
};
|
|
2246
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
2247
|
-
return {
|
|
2248
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2249
|
-
};
|
|
2250
|
-
};
|
|
2251
|
-
const de_SamlConfigOptions = (output, context) => {
|
|
2252
|
-
return {
|
|
2253
|
-
groupAttribute: (0, smithy_client_1.expectString)(output.groupAttribute),
|
|
2254
|
-
metadata: (0, smithy_client_1.expectString)(output.metadata),
|
|
2255
|
-
sessionTimeout: (0, smithy_client_1.expectInt32)(output.sessionTimeout),
|
|
2256
|
-
userAttribute: (0, smithy_client_1.expectString)(output.userAttribute),
|
|
2257
|
-
};
|
|
2258
|
-
};
|
|
2259
|
-
const de_SecurityConfigDetail = (output, context) => {
|
|
2260
|
-
return {
|
|
2261
|
-
configVersion: (0, smithy_client_1.expectString)(output.configVersion),
|
|
2262
|
-
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2263
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
2264
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2265
|
-
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2266
|
-
samlOptions: output.samlOptions != null ? de_SamlConfigOptions(output.samlOptions, context) : undefined,
|
|
2267
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2268
|
-
};
|
|
2269
|
-
};
|
|
2270
|
-
const de_SecurityConfigStats = (output, context) => {
|
|
2271
|
-
return {
|
|
2272
|
-
SamlConfigCount: (0, smithy_client_1.expectLong)(output.SamlConfigCount),
|
|
2273
|
-
};
|
|
2274
|
-
};
|
|
2275
|
-
const de_SecurityConfigSummaries = (output, context) => {
|
|
2276
|
-
const retVal = (output || [])
|
|
2277
|
-
.filter((e) => e != null)
|
|
2278
|
-
.map((entry) => {
|
|
2279
|
-
if (entry === null) {
|
|
2280
|
-
return null;
|
|
2281
|
-
}
|
|
2282
|
-
return de_SecurityConfigSummary(entry, context);
|
|
1656
|
+
return (0, smithy_client_1.take)(output, {
|
|
1657
|
+
accessPolicyDetail: (_) => de_AccessPolicyDetail(_, context),
|
|
2283
1658
|
});
|
|
2284
|
-
return retVal;
|
|
2285
1659
|
};
|
|
2286
|
-
const
|
|
2287
|
-
return {
|
|
2288
|
-
|
|
2289
|
-
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2290
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
2291
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2292
|
-
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2293
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2294
|
-
};
|
|
2295
|
-
};
|
|
2296
|
-
const de_SecurityGroupIds = (output, context) => {
|
|
2297
|
-
const retVal = (output || [])
|
|
2298
|
-
.filter((e) => e != null)
|
|
2299
|
-
.map((entry) => {
|
|
2300
|
-
if (entry === null) {
|
|
2301
|
-
return null;
|
|
2302
|
-
}
|
|
2303
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1660
|
+
const de_GetSecurityPolicyResponse = (output, context) => {
|
|
1661
|
+
return (0, smithy_client_1.take)(output, {
|
|
1662
|
+
securityPolicyDetail: (_) => de_SecurityPolicyDetail(_, context),
|
|
2304
1663
|
});
|
|
2305
|
-
return retVal;
|
|
2306
1664
|
};
|
|
2307
1665
|
const de_SecurityPolicyDetail = (output, context) => {
|
|
2308
|
-
return {
|
|
2309
|
-
createdDate:
|
|
2310
|
-
description:
|
|
2311
|
-
lastModifiedDate:
|
|
2312
|
-
name:
|
|
2313
|
-
policy:
|
|
2314
|
-
policyVersion:
|
|
2315
|
-
type:
|
|
2316
|
-
};
|
|
2317
|
-
};
|
|
2318
|
-
const de_SecurityPolicyStats = (output, context) => {
|
|
2319
|
-
return {
|
|
2320
|
-
EncryptionPolicyCount: (0, smithy_client_1.expectLong)(output.EncryptionPolicyCount),
|
|
2321
|
-
NetworkPolicyCount: (0, smithy_client_1.expectLong)(output.NetworkPolicyCount),
|
|
2322
|
-
};
|
|
2323
|
-
};
|
|
2324
|
-
const de_SecurityPolicySummaries = (output, context) => {
|
|
2325
|
-
const retVal = (output || [])
|
|
2326
|
-
.filter((e) => e != null)
|
|
2327
|
-
.map((entry) => {
|
|
2328
|
-
if (entry === null) {
|
|
2329
|
-
return null;
|
|
2330
|
-
}
|
|
2331
|
-
return de_SecurityPolicySummary(entry, context);
|
|
1666
|
+
return (0, smithy_client_1.take)(output, {
|
|
1667
|
+
createdDate: smithy_client_1.expectLong,
|
|
1668
|
+
description: smithy_client_1.expectString,
|
|
1669
|
+
lastModifiedDate: smithy_client_1.expectLong,
|
|
1670
|
+
name: smithy_client_1.expectString,
|
|
1671
|
+
policy: (_) => de_Document(_, context),
|
|
1672
|
+
policyVersion: smithy_client_1.expectString,
|
|
1673
|
+
type: smithy_client_1.expectString,
|
|
2332
1674
|
});
|
|
2333
|
-
return retVal;
|
|
2334
|
-
};
|
|
2335
|
-
const de_SecurityPolicySummary = (output, context) => {
|
|
2336
|
-
return {
|
|
2337
|
-
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2338
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
2339
|
-
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2340
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2341
|
-
policyVersion: (0, smithy_client_1.expectString)(output.policyVersion),
|
|
2342
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2343
|
-
};
|
|
2344
|
-
};
|
|
2345
|
-
const de_ServiceQuotaExceededException = (output, context) => {
|
|
2346
|
-
return {
|
|
2347
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2348
|
-
quotaCode: (0, smithy_client_1.expectString)(output.quotaCode),
|
|
2349
|
-
resourceId: (0, smithy_client_1.expectString)(output.resourceId),
|
|
2350
|
-
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2351
|
-
serviceCode: (0, smithy_client_1.expectString)(output.serviceCode),
|
|
2352
|
-
};
|
|
2353
|
-
};
|
|
2354
|
-
const de_SubnetIds = (output, context) => {
|
|
2355
|
-
const retVal = (output || [])
|
|
2356
|
-
.filter((e) => e != null)
|
|
2357
|
-
.map((entry) => {
|
|
2358
|
-
if (entry === null) {
|
|
2359
|
-
return null;
|
|
2360
|
-
}
|
|
2361
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2362
|
-
});
|
|
2363
|
-
return retVal;
|
|
2364
|
-
};
|
|
2365
|
-
const de_Tag = (output, context) => {
|
|
2366
|
-
return {
|
|
2367
|
-
key: (0, smithy_client_1.expectString)(output.key),
|
|
2368
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
2369
|
-
};
|
|
2370
|
-
};
|
|
2371
|
-
const de_TagResourceResponse = (output, context) => {
|
|
2372
|
-
return {};
|
|
2373
|
-
};
|
|
2374
|
-
const de_Tags = (output, context) => {
|
|
2375
|
-
const retVal = (output || [])
|
|
2376
|
-
.filter((e) => e != null)
|
|
2377
|
-
.map((entry) => {
|
|
2378
|
-
if (entry === null) {
|
|
2379
|
-
return null;
|
|
2380
|
-
}
|
|
2381
|
-
return de_Tag(entry, context);
|
|
2382
|
-
});
|
|
2383
|
-
return retVal;
|
|
2384
|
-
};
|
|
2385
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
2386
|
-
return {};
|
|
2387
1675
|
};
|
|
2388
1676
|
const de_UpdateAccessPolicyResponse = (output, context) => {
|
|
2389
|
-
return {
|
|
2390
|
-
accessPolicyDetail:
|
|
2391
|
-
};
|
|
2392
|
-
};
|
|
2393
|
-
const de_UpdateAccountSettingsResponse = (output, context) => {
|
|
2394
|
-
return {
|
|
2395
|
-
accountSettingsDetail: output.accountSettingsDetail != null
|
|
2396
|
-
? de_AccountSettingsDetail(output.accountSettingsDetail, context)
|
|
2397
|
-
: undefined,
|
|
2398
|
-
};
|
|
2399
|
-
};
|
|
2400
|
-
const de_UpdateCollectionDetail = (output, context) => {
|
|
2401
|
-
return {
|
|
2402
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2403
|
-
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2404
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
2405
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2406
|
-
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2407
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2408
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2409
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2410
|
-
};
|
|
2411
|
-
};
|
|
2412
|
-
const de_UpdateCollectionResponse = (output, context) => {
|
|
2413
|
-
return {
|
|
2414
|
-
updateCollectionDetail: output.updateCollectionDetail != null
|
|
2415
|
-
? de_UpdateCollectionDetail(output.updateCollectionDetail, context)
|
|
2416
|
-
: undefined,
|
|
2417
|
-
};
|
|
2418
|
-
};
|
|
2419
|
-
const de_UpdateSecurityConfigResponse = (output, context) => {
|
|
2420
|
-
return {
|
|
2421
|
-
securityConfigDetail: output.securityConfigDetail != null ? de_SecurityConfigDetail(output.securityConfigDetail, context) : undefined,
|
|
2422
|
-
};
|
|
2423
|
-
};
|
|
2424
|
-
const de_UpdateSecurityPolicyResponse = (output, context) => {
|
|
2425
|
-
return {
|
|
2426
|
-
securityPolicyDetail: output.securityPolicyDetail != null ? de_SecurityPolicyDetail(output.securityPolicyDetail, context) : undefined,
|
|
2427
|
-
};
|
|
2428
|
-
};
|
|
2429
|
-
const de_UpdateVpcEndpointDetail = (output, context) => {
|
|
2430
|
-
return {
|
|
2431
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2432
|
-
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2433
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2434
|
-
securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIds(output.securityGroupIds, context) : undefined,
|
|
2435
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2436
|
-
subnetIds: output.subnetIds != null ? de_SubnetIds(output.subnetIds, context) : undefined,
|
|
2437
|
-
};
|
|
2438
|
-
};
|
|
2439
|
-
const de_UpdateVpcEndpointResponse = (output, context) => {
|
|
2440
|
-
return {
|
|
2441
|
-
UpdateVpcEndpointDetail: output.UpdateVpcEndpointDetail != null
|
|
2442
|
-
? de_UpdateVpcEndpointDetail(output.UpdateVpcEndpointDetail, context)
|
|
2443
|
-
: undefined,
|
|
2444
|
-
};
|
|
2445
|
-
};
|
|
2446
|
-
const de_ValidationException = (output, context) => {
|
|
2447
|
-
return {
|
|
2448
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2449
|
-
};
|
|
2450
|
-
};
|
|
2451
|
-
const de_VpcEndpointDetail = (output, context) => {
|
|
2452
|
-
return {
|
|
2453
|
-
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2454
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2455
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2456
|
-
securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIds(output.securityGroupIds, context) : undefined,
|
|
2457
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2458
|
-
subnetIds: output.subnetIds != null ? de_SubnetIds(output.subnetIds, context) : undefined,
|
|
2459
|
-
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
2460
|
-
};
|
|
2461
|
-
};
|
|
2462
|
-
const de_VpcEndpointDetails = (output, context) => {
|
|
2463
|
-
const retVal = (output || [])
|
|
2464
|
-
.filter((e) => e != null)
|
|
2465
|
-
.map((entry) => {
|
|
2466
|
-
if (entry === null) {
|
|
2467
|
-
return null;
|
|
2468
|
-
}
|
|
2469
|
-
return de_VpcEndpointDetail(entry, context);
|
|
1677
|
+
return (0, smithy_client_1.take)(output, {
|
|
1678
|
+
accessPolicyDetail: (_) => de_AccessPolicyDetail(_, context),
|
|
2470
1679
|
});
|
|
2471
|
-
return retVal;
|
|
2472
1680
|
};
|
|
2473
|
-
const
|
|
2474
|
-
return {
|
|
2475
|
-
|
|
2476
|
-
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
2477
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2478
|
-
};
|
|
2479
|
-
};
|
|
2480
|
-
const de_VpcEndpointErrorDetails = (output, context) => {
|
|
2481
|
-
const retVal = (output || [])
|
|
2482
|
-
.filter((e) => e != null)
|
|
2483
|
-
.map((entry) => {
|
|
2484
|
-
if (entry === null) {
|
|
2485
|
-
return null;
|
|
2486
|
-
}
|
|
2487
|
-
return de_VpcEndpointErrorDetail(entry, context);
|
|
2488
|
-
});
|
|
2489
|
-
return retVal;
|
|
2490
|
-
};
|
|
2491
|
-
const de_VpcEndpointSummaries = (output, context) => {
|
|
2492
|
-
const retVal = (output || [])
|
|
2493
|
-
.filter((e) => e != null)
|
|
2494
|
-
.map((entry) => {
|
|
2495
|
-
if (entry === null) {
|
|
2496
|
-
return null;
|
|
2497
|
-
}
|
|
2498
|
-
return de_VpcEndpointSummary(entry, context);
|
|
1681
|
+
const de_UpdateSecurityPolicyResponse = (output, context) => {
|
|
1682
|
+
return (0, smithy_client_1.take)(output, {
|
|
1683
|
+
securityPolicyDetail: (_) => de_SecurityPolicyDetail(_, context),
|
|
2499
1684
|
});
|
|
2500
|
-
return retVal;
|
|
2501
|
-
};
|
|
2502
|
-
const de_VpcEndpointSummary = (output, context) => {
|
|
2503
|
-
return {
|
|
2504
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2505
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2506
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2507
|
-
};
|
|
2508
1685
|
};
|
|
2509
1686
|
const de_Document = (output, context) => {
|
|
2510
1687
|
return output;
|
|
@@ -2522,6 +1699,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2522
1699
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2523
1700
|
};
|
|
2524
1701
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1702
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException);
|
|
2525
1703
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2526
1704
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2527
1705
|
const contents = {
|
|
@@ -2540,6 +1718,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2540
1718
|
}
|
|
2541
1719
|
return new protocol_http_1.HttpRequest(contents);
|
|
2542
1720
|
};
|
|
1721
|
+
function sharedHeaders(operation) {
|
|
1722
|
+
return {
|
|
1723
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1724
|
+
"x-amz-target": `OpenSearchServerless.${operation}`,
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
2543
1727
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2544
1728
|
if (encoded.length) {
|
|
2545
1729
|
return JSON.parse(encoded);
|