@aws-sdk/client-opensearchserverless 3.306.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/BatchGetCollectionCommand.js +2 -2
- package/dist-cjs/commands/BatchGetVpcEndpointCommand.js +2 -2
- package/dist-cjs/commands/CreateAccessPolicyCommand.js +2 -2
- package/dist-cjs/commands/CreateCollectionCommand.js +2 -2
- package/dist-cjs/commands/CreateSecurityConfigCommand.js +2 -2
- package/dist-cjs/commands/CreateSecurityPolicyCommand.js +2 -2
- package/dist-cjs/commands/CreateVpcEndpointCommand.js +2 -2
- package/dist-cjs/commands/DeleteAccessPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteCollectionCommand.js +2 -2
- package/dist-cjs/commands/DeleteSecurityConfigCommand.js +2 -2
- package/dist-cjs/commands/DeleteSecurityPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteVpcEndpointCommand.js +2 -2
- package/dist-cjs/commands/GetAccessPolicyCommand.js +2 -2
- package/dist-cjs/commands/GetAccountSettingsCommand.js +2 -2
- package/dist-cjs/commands/GetPoliciesStatsCommand.js +2 -2
- package/dist-cjs/commands/GetSecurityConfigCommand.js +2 -2
- package/dist-cjs/commands/GetSecurityPolicyCommand.js +2 -2
- package/dist-cjs/commands/ListAccessPoliciesCommand.js +2 -2
- package/dist-cjs/commands/ListCollectionsCommand.js +2 -2
- package/dist-cjs/commands/ListSecurityConfigsCommand.js +2 -2
- package/dist-cjs/commands/ListSecurityPoliciesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListVpcEndpointsCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateAccessPolicyCommand.js +2 -2
- package/dist-cjs/commands/UpdateAccountSettingsCommand.js +2 -2
- package/dist-cjs/commands/UpdateCollectionCommand.js +2 -2
- package/dist-cjs/commands/UpdateSecurityConfigCommand.js +2 -2
- package/dist-cjs/commands/UpdateSecurityPolicyCommand.js +2 -2
- package/dist-cjs/commands/UpdateVpcEndpointCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_0.js +549 -595
- package/dist-es/commands/BatchGetCollectionCommand.js +3 -3
- package/dist-es/commands/BatchGetVpcEndpointCommand.js +3 -3
- package/dist-es/commands/CreateAccessPolicyCommand.js +3 -3
- package/dist-es/commands/CreateCollectionCommand.js +3 -3
- package/dist-es/commands/CreateSecurityConfigCommand.js +3 -3
- package/dist-es/commands/CreateSecurityPolicyCommand.js +3 -3
- package/dist-es/commands/CreateVpcEndpointCommand.js +3 -3
- package/dist-es/commands/DeleteAccessPolicyCommand.js +3 -3
- package/dist-es/commands/DeleteCollectionCommand.js +3 -3
- package/dist-es/commands/DeleteSecurityConfigCommand.js +3 -3
- package/dist-es/commands/DeleteSecurityPolicyCommand.js +3 -3
- package/dist-es/commands/DeleteVpcEndpointCommand.js +3 -3
- package/dist-es/commands/GetAccessPolicyCommand.js +3 -3
- package/dist-es/commands/GetAccountSettingsCommand.js +3 -3
- package/dist-es/commands/GetPoliciesStatsCommand.js +3 -3
- package/dist-es/commands/GetSecurityConfigCommand.js +3 -3
- package/dist-es/commands/GetSecurityPolicyCommand.js +3 -3
- package/dist-es/commands/ListAccessPoliciesCommand.js +3 -3
- package/dist-es/commands/ListCollectionsCommand.js +3 -3
- package/dist-es/commands/ListSecurityConfigsCommand.js +3 -3
- package/dist-es/commands/ListSecurityPoliciesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListVpcEndpointsCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateAccessPolicyCommand.js +3 -3
- package/dist-es/commands/UpdateAccountSettingsCommand.js +3 -3
- package/dist-es/commands/UpdateCollectionCommand.js +3 -3
- package/dist-es/commands/UpdateSecurityConfigCommand.js +3 -3
- package/dist-es/commands/UpdateSecurityPolicyCommand.js +3 -3
- package/dist-es/commands/UpdateVpcEndpointCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_0.js +485 -531
- package/dist-types/protocols/Aws_json1_0.d.ts +248 -62
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +62 -62
- package/package.json +6 -6
|
@@ -3,299 +3,299 @@ import { decorateServiceException as __decorateServiceException, expectInt32 as
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { ConflictException, InternalServerException, OcuLimitExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { OpenSearchServerlessServiceException as __BaseException } from "../models/OpenSearchServerlessServiceException";
|
|
6
|
-
export const
|
|
6
|
+
export const se_BatchGetCollectionCommand = async (input, context) => {
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/x-amz-json-1.0",
|
|
9
9
|
"x-amz-target": "OpenSearchServerless.BatchGetCollection",
|
|
10
10
|
};
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify(se_BatchGetCollectionRequest(input, context));
|
|
13
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
14
|
};
|
|
15
|
-
export const
|
|
15
|
+
export const se_BatchGetVpcEndpointCommand = async (input, context) => {
|
|
16
16
|
const headers = {
|
|
17
17
|
"content-type": "application/x-amz-json-1.0",
|
|
18
18
|
"x-amz-target": "OpenSearchServerless.BatchGetVpcEndpoint",
|
|
19
19
|
};
|
|
20
20
|
let body;
|
|
21
|
-
body = JSON.stringify(
|
|
21
|
+
body = JSON.stringify(se_BatchGetVpcEndpointRequest(input, context));
|
|
22
22
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
23
|
};
|
|
24
|
-
export const
|
|
24
|
+
export const se_CreateAccessPolicyCommand = async (input, context) => {
|
|
25
25
|
const headers = {
|
|
26
26
|
"content-type": "application/x-amz-json-1.0",
|
|
27
27
|
"x-amz-target": "OpenSearchServerless.CreateAccessPolicy",
|
|
28
28
|
};
|
|
29
29
|
let body;
|
|
30
|
-
body = JSON.stringify(
|
|
30
|
+
body = JSON.stringify(se_CreateAccessPolicyRequest(input, context));
|
|
31
31
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
32
|
};
|
|
33
|
-
export const
|
|
33
|
+
export const se_CreateCollectionCommand = async (input, context) => {
|
|
34
34
|
const headers = {
|
|
35
35
|
"content-type": "application/x-amz-json-1.0",
|
|
36
36
|
"x-amz-target": "OpenSearchServerless.CreateCollection",
|
|
37
37
|
};
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify(se_CreateCollectionRequest(input, context));
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
|
-
export const
|
|
42
|
+
export const se_CreateSecurityConfigCommand = async (input, context) => {
|
|
43
43
|
const headers = {
|
|
44
44
|
"content-type": "application/x-amz-json-1.0",
|
|
45
45
|
"x-amz-target": "OpenSearchServerless.CreateSecurityConfig",
|
|
46
46
|
};
|
|
47
47
|
let body;
|
|
48
|
-
body = JSON.stringify(
|
|
48
|
+
body = JSON.stringify(se_CreateSecurityConfigRequest(input, context));
|
|
49
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
50
|
};
|
|
51
|
-
export const
|
|
51
|
+
export const se_CreateSecurityPolicyCommand = async (input, context) => {
|
|
52
52
|
const headers = {
|
|
53
53
|
"content-type": "application/x-amz-json-1.0",
|
|
54
54
|
"x-amz-target": "OpenSearchServerless.CreateSecurityPolicy",
|
|
55
55
|
};
|
|
56
56
|
let body;
|
|
57
|
-
body = JSON.stringify(
|
|
57
|
+
body = JSON.stringify(se_CreateSecurityPolicyRequest(input, context));
|
|
58
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
59
|
};
|
|
60
|
-
export const
|
|
60
|
+
export const se_CreateVpcEndpointCommand = async (input, context) => {
|
|
61
61
|
const headers = {
|
|
62
62
|
"content-type": "application/x-amz-json-1.0",
|
|
63
63
|
"x-amz-target": "OpenSearchServerless.CreateVpcEndpoint",
|
|
64
64
|
};
|
|
65
65
|
let body;
|
|
66
|
-
body = JSON.stringify(
|
|
66
|
+
body = JSON.stringify(se_CreateVpcEndpointRequest(input, context));
|
|
67
67
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
68
|
};
|
|
69
|
-
export const
|
|
69
|
+
export const se_DeleteAccessPolicyCommand = async (input, context) => {
|
|
70
70
|
const headers = {
|
|
71
71
|
"content-type": "application/x-amz-json-1.0",
|
|
72
72
|
"x-amz-target": "OpenSearchServerless.DeleteAccessPolicy",
|
|
73
73
|
};
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(se_DeleteAccessPolicyRequest(input, context));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
|
-
export const
|
|
78
|
+
export const se_DeleteCollectionCommand = async (input, context) => {
|
|
79
79
|
const headers = {
|
|
80
80
|
"content-type": "application/x-amz-json-1.0",
|
|
81
81
|
"x-amz-target": "OpenSearchServerless.DeleteCollection",
|
|
82
82
|
};
|
|
83
83
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
84
|
+
body = JSON.stringify(se_DeleteCollectionRequest(input, context));
|
|
85
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
86
|
};
|
|
87
|
-
export const
|
|
87
|
+
export const se_DeleteSecurityConfigCommand = async (input, context) => {
|
|
88
88
|
const headers = {
|
|
89
89
|
"content-type": "application/x-amz-json-1.0",
|
|
90
90
|
"x-amz-target": "OpenSearchServerless.DeleteSecurityConfig",
|
|
91
91
|
};
|
|
92
92
|
let body;
|
|
93
|
-
body = JSON.stringify(
|
|
93
|
+
body = JSON.stringify(se_DeleteSecurityConfigRequest(input, context));
|
|
94
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
95
|
};
|
|
96
|
-
export const
|
|
96
|
+
export const se_DeleteSecurityPolicyCommand = async (input, context) => {
|
|
97
97
|
const headers = {
|
|
98
98
|
"content-type": "application/x-amz-json-1.0",
|
|
99
99
|
"x-amz-target": "OpenSearchServerless.DeleteSecurityPolicy",
|
|
100
100
|
};
|
|
101
101
|
let body;
|
|
102
|
-
body = JSON.stringify(
|
|
102
|
+
body = JSON.stringify(se_DeleteSecurityPolicyRequest(input, context));
|
|
103
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
104
|
};
|
|
105
|
-
export const
|
|
105
|
+
export const se_DeleteVpcEndpointCommand = async (input, context) => {
|
|
106
106
|
const headers = {
|
|
107
107
|
"content-type": "application/x-amz-json-1.0",
|
|
108
108
|
"x-amz-target": "OpenSearchServerless.DeleteVpcEndpoint",
|
|
109
109
|
};
|
|
110
110
|
let body;
|
|
111
|
-
body = JSON.stringify(
|
|
111
|
+
body = JSON.stringify(se_DeleteVpcEndpointRequest(input, context));
|
|
112
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
113
|
};
|
|
114
|
-
export const
|
|
114
|
+
export const se_GetAccessPolicyCommand = async (input, context) => {
|
|
115
115
|
const headers = {
|
|
116
116
|
"content-type": "application/x-amz-json-1.0",
|
|
117
117
|
"x-amz-target": "OpenSearchServerless.GetAccessPolicy",
|
|
118
118
|
};
|
|
119
119
|
let body;
|
|
120
|
-
body = JSON.stringify(
|
|
120
|
+
body = JSON.stringify(se_GetAccessPolicyRequest(input, context));
|
|
121
121
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
122
122
|
};
|
|
123
|
-
export const
|
|
123
|
+
export const se_GetAccountSettingsCommand = async (input, context) => {
|
|
124
124
|
const headers = {
|
|
125
125
|
"content-type": "application/x-amz-json-1.0",
|
|
126
126
|
"x-amz-target": "OpenSearchServerless.GetAccountSettings",
|
|
127
127
|
};
|
|
128
128
|
let body;
|
|
129
|
-
body = JSON.stringify(
|
|
129
|
+
body = JSON.stringify(se_GetAccountSettingsRequest(input, context));
|
|
130
130
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
131
|
};
|
|
132
|
-
export const
|
|
132
|
+
export const se_GetPoliciesStatsCommand = async (input, context) => {
|
|
133
133
|
const headers = {
|
|
134
134
|
"content-type": "application/x-amz-json-1.0",
|
|
135
135
|
"x-amz-target": "OpenSearchServerless.GetPoliciesStats",
|
|
136
136
|
};
|
|
137
137
|
let body;
|
|
138
|
-
body = JSON.stringify(
|
|
138
|
+
body = JSON.stringify(se_GetPoliciesStatsRequest(input, context));
|
|
139
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
140
|
};
|
|
141
|
-
export const
|
|
141
|
+
export const se_GetSecurityConfigCommand = async (input, context) => {
|
|
142
142
|
const headers = {
|
|
143
143
|
"content-type": "application/x-amz-json-1.0",
|
|
144
144
|
"x-amz-target": "OpenSearchServerless.GetSecurityConfig",
|
|
145
145
|
};
|
|
146
146
|
let body;
|
|
147
|
-
body = JSON.stringify(
|
|
147
|
+
body = JSON.stringify(se_GetSecurityConfigRequest(input, context));
|
|
148
148
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
149
|
};
|
|
150
|
-
export const
|
|
150
|
+
export const se_GetSecurityPolicyCommand = async (input, context) => {
|
|
151
151
|
const headers = {
|
|
152
152
|
"content-type": "application/x-amz-json-1.0",
|
|
153
153
|
"x-amz-target": "OpenSearchServerless.GetSecurityPolicy",
|
|
154
154
|
};
|
|
155
155
|
let body;
|
|
156
|
-
body = JSON.stringify(
|
|
156
|
+
body = JSON.stringify(se_GetSecurityPolicyRequest(input, context));
|
|
157
157
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
158
|
};
|
|
159
|
-
export const
|
|
159
|
+
export const se_ListAccessPoliciesCommand = async (input, context) => {
|
|
160
160
|
const headers = {
|
|
161
161
|
"content-type": "application/x-amz-json-1.0",
|
|
162
162
|
"x-amz-target": "OpenSearchServerless.ListAccessPolicies",
|
|
163
163
|
};
|
|
164
164
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify(se_ListAccessPoliciesRequest(input, context));
|
|
166
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
167
|
};
|
|
168
|
-
export const
|
|
168
|
+
export const se_ListCollectionsCommand = async (input, context) => {
|
|
169
169
|
const headers = {
|
|
170
170
|
"content-type": "application/x-amz-json-1.0",
|
|
171
171
|
"x-amz-target": "OpenSearchServerless.ListCollections",
|
|
172
172
|
};
|
|
173
173
|
let body;
|
|
174
|
-
body = JSON.stringify(
|
|
174
|
+
body = JSON.stringify(se_ListCollectionsRequest(input, context));
|
|
175
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
176
|
};
|
|
177
|
-
export const
|
|
177
|
+
export const se_ListSecurityConfigsCommand = async (input, context) => {
|
|
178
178
|
const headers = {
|
|
179
179
|
"content-type": "application/x-amz-json-1.0",
|
|
180
180
|
"x-amz-target": "OpenSearchServerless.ListSecurityConfigs",
|
|
181
181
|
};
|
|
182
182
|
let body;
|
|
183
|
-
body = JSON.stringify(
|
|
183
|
+
body = JSON.stringify(se_ListSecurityConfigsRequest(input, context));
|
|
184
184
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
185
|
};
|
|
186
|
-
export const
|
|
186
|
+
export const se_ListSecurityPoliciesCommand = async (input, context) => {
|
|
187
187
|
const headers = {
|
|
188
188
|
"content-type": "application/x-amz-json-1.0",
|
|
189
189
|
"x-amz-target": "OpenSearchServerless.ListSecurityPolicies",
|
|
190
190
|
};
|
|
191
191
|
let body;
|
|
192
|
-
body = JSON.stringify(
|
|
192
|
+
body = JSON.stringify(se_ListSecurityPoliciesRequest(input, context));
|
|
193
193
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
194
194
|
};
|
|
195
|
-
export const
|
|
195
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
196
196
|
const headers = {
|
|
197
197
|
"content-type": "application/x-amz-json-1.0",
|
|
198
198
|
"x-amz-target": "OpenSearchServerless.ListTagsForResource",
|
|
199
199
|
};
|
|
200
200
|
let body;
|
|
201
|
-
body = JSON.stringify(
|
|
201
|
+
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
202
202
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
203
|
};
|
|
204
|
-
export const
|
|
204
|
+
export const se_ListVpcEndpointsCommand = async (input, context) => {
|
|
205
205
|
const headers = {
|
|
206
206
|
"content-type": "application/x-amz-json-1.0",
|
|
207
207
|
"x-amz-target": "OpenSearchServerless.ListVpcEndpoints",
|
|
208
208
|
};
|
|
209
209
|
let body;
|
|
210
|
-
body = JSON.stringify(
|
|
210
|
+
body = JSON.stringify(se_ListVpcEndpointsRequest(input, context));
|
|
211
211
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
212
212
|
};
|
|
213
|
-
export const
|
|
213
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
214
214
|
const headers = {
|
|
215
215
|
"content-type": "application/x-amz-json-1.0",
|
|
216
216
|
"x-amz-target": "OpenSearchServerless.TagResource",
|
|
217
217
|
};
|
|
218
218
|
let body;
|
|
219
|
-
body = JSON.stringify(
|
|
219
|
+
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
220
220
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
221
|
};
|
|
222
|
-
export const
|
|
222
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
223
223
|
const headers = {
|
|
224
224
|
"content-type": "application/x-amz-json-1.0",
|
|
225
225
|
"x-amz-target": "OpenSearchServerless.UntagResource",
|
|
226
226
|
};
|
|
227
227
|
let body;
|
|
228
|
-
body = JSON.stringify(
|
|
228
|
+
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
229
229
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
230
230
|
};
|
|
231
|
-
export const
|
|
231
|
+
export const se_UpdateAccessPolicyCommand = async (input, context) => {
|
|
232
232
|
const headers = {
|
|
233
233
|
"content-type": "application/x-amz-json-1.0",
|
|
234
234
|
"x-amz-target": "OpenSearchServerless.UpdateAccessPolicy",
|
|
235
235
|
};
|
|
236
236
|
let body;
|
|
237
|
-
body = JSON.stringify(
|
|
237
|
+
body = JSON.stringify(se_UpdateAccessPolicyRequest(input, context));
|
|
238
238
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
239
|
};
|
|
240
|
-
export const
|
|
240
|
+
export const se_UpdateAccountSettingsCommand = async (input, context) => {
|
|
241
241
|
const headers = {
|
|
242
242
|
"content-type": "application/x-amz-json-1.0",
|
|
243
243
|
"x-amz-target": "OpenSearchServerless.UpdateAccountSettings",
|
|
244
244
|
};
|
|
245
245
|
let body;
|
|
246
|
-
body = JSON.stringify(
|
|
246
|
+
body = JSON.stringify(se_UpdateAccountSettingsRequest(input, context));
|
|
247
247
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
248
|
};
|
|
249
|
-
export const
|
|
249
|
+
export const se_UpdateCollectionCommand = async (input, context) => {
|
|
250
250
|
const headers = {
|
|
251
251
|
"content-type": "application/x-amz-json-1.0",
|
|
252
252
|
"x-amz-target": "OpenSearchServerless.UpdateCollection",
|
|
253
253
|
};
|
|
254
254
|
let body;
|
|
255
|
-
body = JSON.stringify(
|
|
255
|
+
body = JSON.stringify(se_UpdateCollectionRequest(input, context));
|
|
256
256
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
257
|
};
|
|
258
|
-
export const
|
|
258
|
+
export const se_UpdateSecurityConfigCommand = async (input, context) => {
|
|
259
259
|
const headers = {
|
|
260
260
|
"content-type": "application/x-amz-json-1.0",
|
|
261
261
|
"x-amz-target": "OpenSearchServerless.UpdateSecurityConfig",
|
|
262
262
|
};
|
|
263
263
|
let body;
|
|
264
|
-
body = JSON.stringify(
|
|
264
|
+
body = JSON.stringify(se_UpdateSecurityConfigRequest(input, context));
|
|
265
265
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
266
266
|
};
|
|
267
|
-
export const
|
|
267
|
+
export const se_UpdateSecurityPolicyCommand = async (input, context) => {
|
|
268
268
|
const headers = {
|
|
269
269
|
"content-type": "application/x-amz-json-1.0",
|
|
270
270
|
"x-amz-target": "OpenSearchServerless.UpdateSecurityPolicy",
|
|
271
271
|
};
|
|
272
272
|
let body;
|
|
273
|
-
body = JSON.stringify(
|
|
273
|
+
body = JSON.stringify(se_UpdateSecurityPolicyRequest(input, context));
|
|
274
274
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
275
|
};
|
|
276
|
-
export const
|
|
276
|
+
export const se_UpdateVpcEndpointCommand = async (input, context) => {
|
|
277
277
|
const headers = {
|
|
278
278
|
"content-type": "application/x-amz-json-1.0",
|
|
279
279
|
"x-amz-target": "OpenSearchServerless.UpdateVpcEndpoint",
|
|
280
280
|
};
|
|
281
281
|
let body;
|
|
282
|
-
body = JSON.stringify(
|
|
282
|
+
body = JSON.stringify(se_UpdateVpcEndpointRequest(input, context));
|
|
283
283
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
284
284
|
};
|
|
285
|
-
export const
|
|
285
|
+
export const de_BatchGetCollectionCommand = async (output, context) => {
|
|
286
286
|
if (output.statusCode >= 300) {
|
|
287
|
-
return
|
|
287
|
+
return de_BatchGetCollectionCommandError(output, context);
|
|
288
288
|
}
|
|
289
289
|
const data = await parseBody(output.body, context);
|
|
290
290
|
let contents = {};
|
|
291
|
-
contents =
|
|
291
|
+
contents = de_BatchGetCollectionResponse(data, context);
|
|
292
292
|
const response = {
|
|
293
293
|
$metadata: deserializeMetadata(output),
|
|
294
294
|
...contents,
|
|
295
295
|
};
|
|
296
296
|
return Promise.resolve(response);
|
|
297
297
|
};
|
|
298
|
-
const
|
|
298
|
+
const de_BatchGetCollectionCommandError = async (output, context) => {
|
|
299
299
|
const parsedOutput = {
|
|
300
300
|
...output,
|
|
301
301
|
body: await parseErrorBody(output.body, context),
|
|
@@ -304,10 +304,10 @@ const deserializeAws_json1_0BatchGetCollectionCommandError = async (output, cont
|
|
|
304
304
|
switch (errorCode) {
|
|
305
305
|
case "InternalServerException":
|
|
306
306
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
307
|
-
throw await
|
|
307
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
308
308
|
case "ValidationException":
|
|
309
309
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
310
|
-
throw await
|
|
310
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
311
311
|
default:
|
|
312
312
|
const parsedBody = parsedOutput.body;
|
|
313
313
|
throwDefaultError({
|
|
@@ -318,20 +318,20 @@ const deserializeAws_json1_0BatchGetCollectionCommandError = async (output, cont
|
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
|
-
export const
|
|
321
|
+
export const de_BatchGetVpcEndpointCommand = async (output, context) => {
|
|
322
322
|
if (output.statusCode >= 300) {
|
|
323
|
-
return
|
|
323
|
+
return de_BatchGetVpcEndpointCommandError(output, context);
|
|
324
324
|
}
|
|
325
325
|
const data = await parseBody(output.body, context);
|
|
326
326
|
let contents = {};
|
|
327
|
-
contents =
|
|
327
|
+
contents = de_BatchGetVpcEndpointResponse(data, context);
|
|
328
328
|
const response = {
|
|
329
329
|
$metadata: deserializeMetadata(output),
|
|
330
330
|
...contents,
|
|
331
331
|
};
|
|
332
332
|
return Promise.resolve(response);
|
|
333
333
|
};
|
|
334
|
-
const
|
|
334
|
+
const de_BatchGetVpcEndpointCommandError = async (output, context) => {
|
|
335
335
|
const parsedOutput = {
|
|
336
336
|
...output,
|
|
337
337
|
body: await parseErrorBody(output.body, context),
|
|
@@ -340,10 +340,10 @@ const deserializeAws_json1_0BatchGetVpcEndpointCommandError = async (output, con
|
|
|
340
340
|
switch (errorCode) {
|
|
341
341
|
case "InternalServerException":
|
|
342
342
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
343
|
-
throw await
|
|
343
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
344
344
|
case "ValidationException":
|
|
345
345
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
346
|
-
throw await
|
|
346
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
347
347
|
default:
|
|
348
348
|
const parsedBody = parsedOutput.body;
|
|
349
349
|
throwDefaultError({
|
|
@@ -354,20 +354,20 @@ const deserializeAws_json1_0BatchGetVpcEndpointCommandError = async (output, con
|
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
|
-
export const
|
|
357
|
+
export const de_CreateAccessPolicyCommand = async (output, context) => {
|
|
358
358
|
if (output.statusCode >= 300) {
|
|
359
|
-
return
|
|
359
|
+
return de_CreateAccessPolicyCommandError(output, context);
|
|
360
360
|
}
|
|
361
361
|
const data = await parseBody(output.body, context);
|
|
362
362
|
let contents = {};
|
|
363
|
-
contents =
|
|
363
|
+
contents = de_CreateAccessPolicyResponse(data, context);
|
|
364
364
|
const response = {
|
|
365
365
|
$metadata: deserializeMetadata(output),
|
|
366
366
|
...contents,
|
|
367
367
|
};
|
|
368
368
|
return Promise.resolve(response);
|
|
369
369
|
};
|
|
370
|
-
const
|
|
370
|
+
const de_CreateAccessPolicyCommandError = async (output, context) => {
|
|
371
371
|
const parsedOutput = {
|
|
372
372
|
...output,
|
|
373
373
|
body: await parseErrorBody(output.body, context),
|
|
@@ -376,16 +376,16 @@ const deserializeAws_json1_0CreateAccessPolicyCommandError = async (output, cont
|
|
|
376
376
|
switch (errorCode) {
|
|
377
377
|
case "ConflictException":
|
|
378
378
|
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
379
|
-
throw await
|
|
379
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
380
380
|
case "InternalServerException":
|
|
381
381
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
382
|
-
throw await
|
|
382
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
383
383
|
case "ServiceQuotaExceededException":
|
|
384
384
|
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
385
|
-
throw await
|
|
385
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
386
386
|
case "ValidationException":
|
|
387
387
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
388
|
-
throw await
|
|
388
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
389
389
|
default:
|
|
390
390
|
const parsedBody = parsedOutput.body;
|
|
391
391
|
throwDefaultError({
|
|
@@ -396,20 +396,20 @@ const deserializeAws_json1_0CreateAccessPolicyCommandError = async (output, cont
|
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
398
|
};
|
|
399
|
-
export const
|
|
399
|
+
export const de_CreateCollectionCommand = async (output, context) => {
|
|
400
400
|
if (output.statusCode >= 300) {
|
|
401
|
-
return
|
|
401
|
+
return de_CreateCollectionCommandError(output, context);
|
|
402
402
|
}
|
|
403
403
|
const data = await parseBody(output.body, context);
|
|
404
404
|
let contents = {};
|
|
405
|
-
contents =
|
|
405
|
+
contents = de_CreateCollectionResponse(data, context);
|
|
406
406
|
const response = {
|
|
407
407
|
$metadata: deserializeMetadata(output),
|
|
408
408
|
...contents,
|
|
409
409
|
};
|
|
410
410
|
return Promise.resolve(response);
|
|
411
411
|
};
|
|
412
|
-
const
|
|
412
|
+
const de_CreateCollectionCommandError = async (output, context) => {
|
|
413
413
|
const parsedOutput = {
|
|
414
414
|
...output,
|
|
415
415
|
body: await parseErrorBody(output.body, context),
|
|
@@ -418,19 +418,19 @@ const deserializeAws_json1_0CreateCollectionCommandError = async (output, contex
|
|
|
418
418
|
switch (errorCode) {
|
|
419
419
|
case "ConflictException":
|
|
420
420
|
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
421
|
-
throw await
|
|
421
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
422
422
|
case "InternalServerException":
|
|
423
423
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
424
|
-
throw await
|
|
424
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
425
425
|
case "OcuLimitExceededException":
|
|
426
426
|
case "com.amazonaws.opensearchserverless#OcuLimitExceededException":
|
|
427
|
-
throw await
|
|
427
|
+
throw await de_OcuLimitExceededExceptionRes(parsedOutput, context);
|
|
428
428
|
case "ServiceQuotaExceededException":
|
|
429
429
|
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
430
|
-
throw await
|
|
430
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
431
431
|
case "ValidationException":
|
|
432
432
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
433
|
-
throw await
|
|
433
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
434
434
|
default:
|
|
435
435
|
const parsedBody = parsedOutput.body;
|
|
436
436
|
throwDefaultError({
|
|
@@ -441,20 +441,20 @@ const deserializeAws_json1_0CreateCollectionCommandError = async (output, contex
|
|
|
441
441
|
});
|
|
442
442
|
}
|
|
443
443
|
};
|
|
444
|
-
export const
|
|
444
|
+
export const de_CreateSecurityConfigCommand = async (output, context) => {
|
|
445
445
|
if (output.statusCode >= 300) {
|
|
446
|
-
return
|
|
446
|
+
return de_CreateSecurityConfigCommandError(output, context);
|
|
447
447
|
}
|
|
448
448
|
const data = await parseBody(output.body, context);
|
|
449
449
|
let contents = {};
|
|
450
|
-
contents =
|
|
450
|
+
contents = de_CreateSecurityConfigResponse(data, context);
|
|
451
451
|
const response = {
|
|
452
452
|
$metadata: deserializeMetadata(output),
|
|
453
453
|
...contents,
|
|
454
454
|
};
|
|
455
455
|
return Promise.resolve(response);
|
|
456
456
|
};
|
|
457
|
-
const
|
|
457
|
+
const de_CreateSecurityConfigCommandError = async (output, context) => {
|
|
458
458
|
const parsedOutput = {
|
|
459
459
|
...output,
|
|
460
460
|
body: await parseErrorBody(output.body, context),
|
|
@@ -463,16 +463,16 @@ const deserializeAws_json1_0CreateSecurityConfigCommandError = async (output, co
|
|
|
463
463
|
switch (errorCode) {
|
|
464
464
|
case "ConflictException":
|
|
465
465
|
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
466
|
-
throw await
|
|
466
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
467
467
|
case "InternalServerException":
|
|
468
468
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
469
|
-
throw await
|
|
469
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
470
470
|
case "ServiceQuotaExceededException":
|
|
471
471
|
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
472
|
-
throw await
|
|
472
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
473
473
|
case "ValidationException":
|
|
474
474
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
475
|
-
throw await
|
|
475
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
476
476
|
default:
|
|
477
477
|
const parsedBody = parsedOutput.body;
|
|
478
478
|
throwDefaultError({
|
|
@@ -483,20 +483,20 @@ const deserializeAws_json1_0CreateSecurityConfigCommandError = async (output, co
|
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
485
|
};
|
|
486
|
-
export const
|
|
486
|
+
export const de_CreateSecurityPolicyCommand = async (output, context) => {
|
|
487
487
|
if (output.statusCode >= 300) {
|
|
488
|
-
return
|
|
488
|
+
return de_CreateSecurityPolicyCommandError(output, context);
|
|
489
489
|
}
|
|
490
490
|
const data = await parseBody(output.body, context);
|
|
491
491
|
let contents = {};
|
|
492
|
-
contents =
|
|
492
|
+
contents = de_CreateSecurityPolicyResponse(data, context);
|
|
493
493
|
const response = {
|
|
494
494
|
$metadata: deserializeMetadata(output),
|
|
495
495
|
...contents,
|
|
496
496
|
};
|
|
497
497
|
return Promise.resolve(response);
|
|
498
498
|
};
|
|
499
|
-
const
|
|
499
|
+
const de_CreateSecurityPolicyCommandError = async (output, context) => {
|
|
500
500
|
const parsedOutput = {
|
|
501
501
|
...output,
|
|
502
502
|
body: await parseErrorBody(output.body, context),
|
|
@@ -505,16 +505,16 @@ const deserializeAws_json1_0CreateSecurityPolicyCommandError = async (output, co
|
|
|
505
505
|
switch (errorCode) {
|
|
506
506
|
case "ConflictException":
|
|
507
507
|
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
508
|
-
throw await
|
|
508
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
509
509
|
case "InternalServerException":
|
|
510
510
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
511
|
-
throw await
|
|
511
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
512
512
|
case "ServiceQuotaExceededException":
|
|
513
513
|
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
514
|
-
throw await
|
|
514
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
515
515
|
case "ValidationException":
|
|
516
516
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
517
|
-
throw await
|
|
517
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
518
518
|
default:
|
|
519
519
|
const parsedBody = parsedOutput.body;
|
|
520
520
|
throwDefaultError({
|
|
@@ -525,20 +525,20 @@ const deserializeAws_json1_0CreateSecurityPolicyCommandError = async (output, co
|
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
527
|
};
|
|
528
|
-
export const
|
|
528
|
+
export const de_CreateVpcEndpointCommand = async (output, context) => {
|
|
529
529
|
if (output.statusCode >= 300) {
|
|
530
|
-
return
|
|
530
|
+
return de_CreateVpcEndpointCommandError(output, context);
|
|
531
531
|
}
|
|
532
532
|
const data = await parseBody(output.body, context);
|
|
533
533
|
let contents = {};
|
|
534
|
-
contents =
|
|
534
|
+
contents = de_CreateVpcEndpointResponse(data, context);
|
|
535
535
|
const response = {
|
|
536
536
|
$metadata: deserializeMetadata(output),
|
|
537
537
|
...contents,
|
|
538
538
|
};
|
|
539
539
|
return Promise.resolve(response);
|
|
540
540
|
};
|
|
541
|
-
const
|
|
541
|
+
const de_CreateVpcEndpointCommandError = async (output, context) => {
|
|
542
542
|
const parsedOutput = {
|
|
543
543
|
...output,
|
|
544
544
|
body: await parseErrorBody(output.body, context),
|
|
@@ -547,16 +547,16 @@ const deserializeAws_json1_0CreateVpcEndpointCommandError = async (output, conte
|
|
|
547
547
|
switch (errorCode) {
|
|
548
548
|
case "ConflictException":
|
|
549
549
|
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
550
|
-
throw await
|
|
550
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
551
551
|
case "InternalServerException":
|
|
552
552
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
553
|
-
throw await
|
|
553
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
554
554
|
case "ServiceQuotaExceededException":
|
|
555
555
|
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
556
|
-
throw await
|
|
556
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
557
557
|
case "ValidationException":
|
|
558
558
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
559
|
-
throw await
|
|
559
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
560
560
|
default:
|
|
561
561
|
const parsedBody = parsedOutput.body;
|
|
562
562
|
throwDefaultError({
|
|
@@ -567,20 +567,20 @@ const deserializeAws_json1_0CreateVpcEndpointCommandError = async (output, conte
|
|
|
567
567
|
});
|
|
568
568
|
}
|
|
569
569
|
};
|
|
570
|
-
export const
|
|
570
|
+
export const de_DeleteAccessPolicyCommand = async (output, context) => {
|
|
571
571
|
if (output.statusCode >= 300) {
|
|
572
|
-
return
|
|
572
|
+
return de_DeleteAccessPolicyCommandError(output, context);
|
|
573
573
|
}
|
|
574
574
|
const data = await parseBody(output.body, context);
|
|
575
575
|
let contents = {};
|
|
576
|
-
contents =
|
|
576
|
+
contents = de_DeleteAccessPolicyResponse(data, context);
|
|
577
577
|
const response = {
|
|
578
578
|
$metadata: deserializeMetadata(output),
|
|
579
579
|
...contents,
|
|
580
580
|
};
|
|
581
581
|
return Promise.resolve(response);
|
|
582
582
|
};
|
|
583
|
-
const
|
|
583
|
+
const de_DeleteAccessPolicyCommandError = async (output, context) => {
|
|
584
584
|
const parsedOutput = {
|
|
585
585
|
...output,
|
|
586
586
|
body: await parseErrorBody(output.body, context),
|
|
@@ -589,16 +589,16 @@ const deserializeAws_json1_0DeleteAccessPolicyCommandError = async (output, cont
|
|
|
589
589
|
switch (errorCode) {
|
|
590
590
|
case "ConflictException":
|
|
591
591
|
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
592
|
-
throw await
|
|
592
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
593
593
|
case "InternalServerException":
|
|
594
594
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
595
|
-
throw await
|
|
595
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
596
596
|
case "ResourceNotFoundException":
|
|
597
597
|
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
598
|
-
throw await
|
|
598
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
599
599
|
case "ValidationException":
|
|
600
600
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
601
|
-
throw await
|
|
601
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
602
602
|
default:
|
|
603
603
|
const parsedBody = parsedOutput.body;
|
|
604
604
|
throwDefaultError({
|
|
@@ -609,20 +609,20 @@ const deserializeAws_json1_0DeleteAccessPolicyCommandError = async (output, cont
|
|
|
609
609
|
});
|
|
610
610
|
}
|
|
611
611
|
};
|
|
612
|
-
export const
|
|
612
|
+
export const de_DeleteCollectionCommand = async (output, context) => {
|
|
613
613
|
if (output.statusCode >= 300) {
|
|
614
|
-
return
|
|
614
|
+
return de_DeleteCollectionCommandError(output, context);
|
|
615
615
|
}
|
|
616
616
|
const data = await parseBody(output.body, context);
|
|
617
617
|
let contents = {};
|
|
618
|
-
contents =
|
|
618
|
+
contents = de_DeleteCollectionResponse(data, context);
|
|
619
619
|
const response = {
|
|
620
620
|
$metadata: deserializeMetadata(output),
|
|
621
621
|
...contents,
|
|
622
622
|
};
|
|
623
623
|
return Promise.resolve(response);
|
|
624
624
|
};
|
|
625
|
-
const
|
|
625
|
+
const de_DeleteCollectionCommandError = async (output, context) => {
|
|
626
626
|
const parsedOutput = {
|
|
627
627
|
...output,
|
|
628
628
|
body: await parseErrorBody(output.body, context),
|
|
@@ -631,16 +631,16 @@ const deserializeAws_json1_0DeleteCollectionCommandError = async (output, contex
|
|
|
631
631
|
switch (errorCode) {
|
|
632
632
|
case "ConflictException":
|
|
633
633
|
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
634
|
-
throw await
|
|
634
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
635
635
|
case "InternalServerException":
|
|
636
636
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
637
|
-
throw await
|
|
637
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
638
638
|
case "ResourceNotFoundException":
|
|
639
639
|
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
640
|
-
throw await
|
|
640
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
641
641
|
case "ValidationException":
|
|
642
642
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
643
|
-
throw await
|
|
643
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
644
644
|
default:
|
|
645
645
|
const parsedBody = parsedOutput.body;
|
|
646
646
|
throwDefaultError({
|
|
@@ -651,20 +651,20 @@ const deserializeAws_json1_0DeleteCollectionCommandError = async (output, contex
|
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
653
|
};
|
|
654
|
-
export const
|
|
654
|
+
export const de_DeleteSecurityConfigCommand = async (output, context) => {
|
|
655
655
|
if (output.statusCode >= 300) {
|
|
656
|
-
return
|
|
656
|
+
return de_DeleteSecurityConfigCommandError(output, context);
|
|
657
657
|
}
|
|
658
658
|
const data = await parseBody(output.body, context);
|
|
659
659
|
let contents = {};
|
|
660
|
-
contents =
|
|
660
|
+
contents = de_DeleteSecurityConfigResponse(data, context);
|
|
661
661
|
const response = {
|
|
662
662
|
$metadata: deserializeMetadata(output),
|
|
663
663
|
...contents,
|
|
664
664
|
};
|
|
665
665
|
return Promise.resolve(response);
|
|
666
666
|
};
|
|
667
|
-
const
|
|
667
|
+
const de_DeleteSecurityConfigCommandError = async (output, context) => {
|
|
668
668
|
const parsedOutput = {
|
|
669
669
|
...output,
|
|
670
670
|
body: await parseErrorBody(output.body, context),
|
|
@@ -673,16 +673,16 @@ const deserializeAws_json1_0DeleteSecurityConfigCommandError = async (output, co
|
|
|
673
673
|
switch (errorCode) {
|
|
674
674
|
case "ConflictException":
|
|
675
675
|
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
676
|
-
throw await
|
|
676
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
677
677
|
case "InternalServerException":
|
|
678
678
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
679
|
-
throw await
|
|
679
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
680
680
|
case "ResourceNotFoundException":
|
|
681
681
|
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
682
|
-
throw await
|
|
682
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
683
683
|
case "ValidationException":
|
|
684
684
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
685
|
-
throw await
|
|
685
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
686
686
|
default:
|
|
687
687
|
const parsedBody = parsedOutput.body;
|
|
688
688
|
throwDefaultError({
|
|
@@ -693,20 +693,20 @@ const deserializeAws_json1_0DeleteSecurityConfigCommandError = async (output, co
|
|
|
693
693
|
});
|
|
694
694
|
}
|
|
695
695
|
};
|
|
696
|
-
export const
|
|
696
|
+
export const de_DeleteSecurityPolicyCommand = async (output, context) => {
|
|
697
697
|
if (output.statusCode >= 300) {
|
|
698
|
-
return
|
|
698
|
+
return de_DeleteSecurityPolicyCommandError(output, context);
|
|
699
699
|
}
|
|
700
700
|
const data = await parseBody(output.body, context);
|
|
701
701
|
let contents = {};
|
|
702
|
-
contents =
|
|
702
|
+
contents = de_DeleteSecurityPolicyResponse(data, context);
|
|
703
703
|
const response = {
|
|
704
704
|
$metadata: deserializeMetadata(output),
|
|
705
705
|
...contents,
|
|
706
706
|
};
|
|
707
707
|
return Promise.resolve(response);
|
|
708
708
|
};
|
|
709
|
-
const
|
|
709
|
+
const de_DeleteSecurityPolicyCommandError = async (output, context) => {
|
|
710
710
|
const parsedOutput = {
|
|
711
711
|
...output,
|
|
712
712
|
body: await parseErrorBody(output.body, context),
|
|
@@ -715,16 +715,16 @@ const deserializeAws_json1_0DeleteSecurityPolicyCommandError = async (output, co
|
|
|
715
715
|
switch (errorCode) {
|
|
716
716
|
case "ConflictException":
|
|
717
717
|
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
718
|
-
throw await
|
|
718
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
719
719
|
case "InternalServerException":
|
|
720
720
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
721
|
-
throw await
|
|
721
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
722
722
|
case "ResourceNotFoundException":
|
|
723
723
|
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
724
|
-
throw await
|
|
724
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
725
725
|
case "ValidationException":
|
|
726
726
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
727
|
-
throw await
|
|
727
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
728
728
|
default:
|
|
729
729
|
const parsedBody = parsedOutput.body;
|
|
730
730
|
throwDefaultError({
|
|
@@ -735,20 +735,20 @@ const deserializeAws_json1_0DeleteSecurityPolicyCommandError = async (output, co
|
|
|
735
735
|
});
|
|
736
736
|
}
|
|
737
737
|
};
|
|
738
|
-
export const
|
|
738
|
+
export const de_DeleteVpcEndpointCommand = async (output, context) => {
|
|
739
739
|
if (output.statusCode >= 300) {
|
|
740
|
-
return
|
|
740
|
+
return de_DeleteVpcEndpointCommandError(output, context);
|
|
741
741
|
}
|
|
742
742
|
const data = await parseBody(output.body, context);
|
|
743
743
|
let contents = {};
|
|
744
|
-
contents =
|
|
744
|
+
contents = de_DeleteVpcEndpointResponse(data, context);
|
|
745
745
|
const response = {
|
|
746
746
|
$metadata: deserializeMetadata(output),
|
|
747
747
|
...contents,
|
|
748
748
|
};
|
|
749
749
|
return Promise.resolve(response);
|
|
750
750
|
};
|
|
751
|
-
const
|
|
751
|
+
const de_DeleteVpcEndpointCommandError = async (output, context) => {
|
|
752
752
|
const parsedOutput = {
|
|
753
753
|
...output,
|
|
754
754
|
body: await parseErrorBody(output.body, context),
|
|
@@ -757,16 +757,16 @@ const deserializeAws_json1_0DeleteVpcEndpointCommandError = async (output, conte
|
|
|
757
757
|
switch (errorCode) {
|
|
758
758
|
case "ConflictException":
|
|
759
759
|
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
760
|
-
throw await
|
|
760
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
761
761
|
case "InternalServerException":
|
|
762
762
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
763
|
-
throw await
|
|
763
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
764
764
|
case "ResourceNotFoundException":
|
|
765
765
|
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
766
|
-
throw await
|
|
766
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
767
767
|
case "ValidationException":
|
|
768
768
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
769
|
-
throw await
|
|
769
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
770
770
|
default:
|
|
771
771
|
const parsedBody = parsedOutput.body;
|
|
772
772
|
throwDefaultError({
|
|
@@ -777,20 +777,20 @@ const deserializeAws_json1_0DeleteVpcEndpointCommandError = async (output, conte
|
|
|
777
777
|
});
|
|
778
778
|
}
|
|
779
779
|
};
|
|
780
|
-
export const
|
|
780
|
+
export const de_GetAccessPolicyCommand = async (output, context) => {
|
|
781
781
|
if (output.statusCode >= 300) {
|
|
782
|
-
return
|
|
782
|
+
return de_GetAccessPolicyCommandError(output, context);
|
|
783
783
|
}
|
|
784
784
|
const data = await parseBody(output.body, context);
|
|
785
785
|
let contents = {};
|
|
786
|
-
contents =
|
|
786
|
+
contents = de_GetAccessPolicyResponse(data, context);
|
|
787
787
|
const response = {
|
|
788
788
|
$metadata: deserializeMetadata(output),
|
|
789
789
|
...contents,
|
|
790
790
|
};
|
|
791
791
|
return Promise.resolve(response);
|
|
792
792
|
};
|
|
793
|
-
const
|
|
793
|
+
const de_GetAccessPolicyCommandError = async (output, context) => {
|
|
794
794
|
const parsedOutput = {
|
|
795
795
|
...output,
|
|
796
796
|
body: await parseErrorBody(output.body, context),
|
|
@@ -799,13 +799,13 @@ const deserializeAws_json1_0GetAccessPolicyCommandError = async (output, context
|
|
|
799
799
|
switch (errorCode) {
|
|
800
800
|
case "InternalServerException":
|
|
801
801
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
802
|
-
throw await
|
|
802
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
803
803
|
case "ResourceNotFoundException":
|
|
804
804
|
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
805
|
-
throw await
|
|
805
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
806
806
|
case "ValidationException":
|
|
807
807
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
808
|
-
throw await
|
|
808
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
809
809
|
default:
|
|
810
810
|
const parsedBody = parsedOutput.body;
|
|
811
811
|
throwDefaultError({
|
|
@@ -816,20 +816,20 @@ const deserializeAws_json1_0GetAccessPolicyCommandError = async (output, context
|
|
|
816
816
|
});
|
|
817
817
|
}
|
|
818
818
|
};
|
|
819
|
-
export const
|
|
819
|
+
export const de_GetAccountSettingsCommand = async (output, context) => {
|
|
820
820
|
if (output.statusCode >= 300) {
|
|
821
|
-
return
|
|
821
|
+
return de_GetAccountSettingsCommandError(output, context);
|
|
822
822
|
}
|
|
823
823
|
const data = await parseBody(output.body, context);
|
|
824
824
|
let contents = {};
|
|
825
|
-
contents =
|
|
825
|
+
contents = de_GetAccountSettingsResponse(data, context);
|
|
826
826
|
const response = {
|
|
827
827
|
$metadata: deserializeMetadata(output),
|
|
828
828
|
...contents,
|
|
829
829
|
};
|
|
830
830
|
return Promise.resolve(response);
|
|
831
831
|
};
|
|
832
|
-
const
|
|
832
|
+
const de_GetAccountSettingsCommandError = async (output, context) => {
|
|
833
833
|
const parsedOutput = {
|
|
834
834
|
...output,
|
|
835
835
|
body: await parseErrorBody(output.body, context),
|
|
@@ -838,10 +838,10 @@ const deserializeAws_json1_0GetAccountSettingsCommandError = async (output, cont
|
|
|
838
838
|
switch (errorCode) {
|
|
839
839
|
case "InternalServerException":
|
|
840
840
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
841
|
-
throw await
|
|
841
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
842
842
|
case "ValidationException":
|
|
843
843
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
844
|
-
throw await
|
|
844
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
845
845
|
default:
|
|
846
846
|
const parsedBody = parsedOutput.body;
|
|
847
847
|
throwDefaultError({
|
|
@@ -852,20 +852,20 @@ const deserializeAws_json1_0GetAccountSettingsCommandError = async (output, cont
|
|
|
852
852
|
});
|
|
853
853
|
}
|
|
854
854
|
};
|
|
855
|
-
export const
|
|
855
|
+
export const de_GetPoliciesStatsCommand = async (output, context) => {
|
|
856
856
|
if (output.statusCode >= 300) {
|
|
857
|
-
return
|
|
857
|
+
return de_GetPoliciesStatsCommandError(output, context);
|
|
858
858
|
}
|
|
859
859
|
const data = await parseBody(output.body, context);
|
|
860
860
|
let contents = {};
|
|
861
|
-
contents =
|
|
861
|
+
contents = de_GetPoliciesStatsResponse(data, context);
|
|
862
862
|
const response = {
|
|
863
863
|
$metadata: deserializeMetadata(output),
|
|
864
864
|
...contents,
|
|
865
865
|
};
|
|
866
866
|
return Promise.resolve(response);
|
|
867
867
|
};
|
|
868
|
-
const
|
|
868
|
+
const de_GetPoliciesStatsCommandError = async (output, context) => {
|
|
869
869
|
const parsedOutput = {
|
|
870
870
|
...output,
|
|
871
871
|
body: await parseErrorBody(output.body, context),
|
|
@@ -874,7 +874,7 @@ const deserializeAws_json1_0GetPoliciesStatsCommandError = async (output, contex
|
|
|
874
874
|
switch (errorCode) {
|
|
875
875
|
case "InternalServerException":
|
|
876
876
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
877
|
-
throw await
|
|
877
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
878
878
|
default:
|
|
879
879
|
const parsedBody = parsedOutput.body;
|
|
880
880
|
throwDefaultError({
|
|
@@ -885,20 +885,20 @@ const deserializeAws_json1_0GetPoliciesStatsCommandError = async (output, contex
|
|
|
885
885
|
});
|
|
886
886
|
}
|
|
887
887
|
};
|
|
888
|
-
export const
|
|
888
|
+
export const de_GetSecurityConfigCommand = async (output, context) => {
|
|
889
889
|
if (output.statusCode >= 300) {
|
|
890
|
-
return
|
|
890
|
+
return de_GetSecurityConfigCommandError(output, context);
|
|
891
891
|
}
|
|
892
892
|
const data = await parseBody(output.body, context);
|
|
893
893
|
let contents = {};
|
|
894
|
-
contents =
|
|
894
|
+
contents = de_GetSecurityConfigResponse(data, context);
|
|
895
895
|
const response = {
|
|
896
896
|
$metadata: deserializeMetadata(output),
|
|
897
897
|
...contents,
|
|
898
898
|
};
|
|
899
899
|
return Promise.resolve(response);
|
|
900
900
|
};
|
|
901
|
-
const
|
|
901
|
+
const de_GetSecurityConfigCommandError = async (output, context) => {
|
|
902
902
|
const parsedOutput = {
|
|
903
903
|
...output,
|
|
904
904
|
body: await parseErrorBody(output.body, context),
|
|
@@ -907,13 +907,13 @@ const deserializeAws_json1_0GetSecurityConfigCommandError = async (output, conte
|
|
|
907
907
|
switch (errorCode) {
|
|
908
908
|
case "InternalServerException":
|
|
909
909
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
910
|
-
throw await
|
|
910
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
911
911
|
case "ResourceNotFoundException":
|
|
912
912
|
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
913
|
-
throw await
|
|
913
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
914
914
|
case "ValidationException":
|
|
915
915
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
916
|
-
throw await
|
|
916
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
917
917
|
default:
|
|
918
918
|
const parsedBody = parsedOutput.body;
|
|
919
919
|
throwDefaultError({
|
|
@@ -924,20 +924,20 @@ const deserializeAws_json1_0GetSecurityConfigCommandError = async (output, conte
|
|
|
924
924
|
});
|
|
925
925
|
}
|
|
926
926
|
};
|
|
927
|
-
export const
|
|
927
|
+
export const de_GetSecurityPolicyCommand = async (output, context) => {
|
|
928
928
|
if (output.statusCode >= 300) {
|
|
929
|
-
return
|
|
929
|
+
return de_GetSecurityPolicyCommandError(output, context);
|
|
930
930
|
}
|
|
931
931
|
const data = await parseBody(output.body, context);
|
|
932
932
|
let contents = {};
|
|
933
|
-
contents =
|
|
933
|
+
contents = de_GetSecurityPolicyResponse(data, context);
|
|
934
934
|
const response = {
|
|
935
935
|
$metadata: deserializeMetadata(output),
|
|
936
936
|
...contents,
|
|
937
937
|
};
|
|
938
938
|
return Promise.resolve(response);
|
|
939
939
|
};
|
|
940
|
-
const
|
|
940
|
+
const de_GetSecurityPolicyCommandError = async (output, context) => {
|
|
941
941
|
const parsedOutput = {
|
|
942
942
|
...output,
|
|
943
943
|
body: await parseErrorBody(output.body, context),
|
|
@@ -946,13 +946,13 @@ const deserializeAws_json1_0GetSecurityPolicyCommandError = async (output, conte
|
|
|
946
946
|
switch (errorCode) {
|
|
947
947
|
case "InternalServerException":
|
|
948
948
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
949
|
-
throw await
|
|
949
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
950
950
|
case "ResourceNotFoundException":
|
|
951
951
|
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
952
|
-
throw await
|
|
952
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
953
953
|
case "ValidationException":
|
|
954
954
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
955
|
-
throw await
|
|
955
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
956
956
|
default:
|
|
957
957
|
const parsedBody = parsedOutput.body;
|
|
958
958
|
throwDefaultError({
|
|
@@ -963,20 +963,20 @@ const deserializeAws_json1_0GetSecurityPolicyCommandError = async (output, conte
|
|
|
963
963
|
});
|
|
964
964
|
}
|
|
965
965
|
};
|
|
966
|
-
export const
|
|
966
|
+
export const de_ListAccessPoliciesCommand = async (output, context) => {
|
|
967
967
|
if (output.statusCode >= 300) {
|
|
968
|
-
return
|
|
968
|
+
return de_ListAccessPoliciesCommandError(output, context);
|
|
969
969
|
}
|
|
970
970
|
const data = await parseBody(output.body, context);
|
|
971
971
|
let contents = {};
|
|
972
|
-
contents =
|
|
972
|
+
contents = de_ListAccessPoliciesResponse(data, context);
|
|
973
973
|
const response = {
|
|
974
974
|
$metadata: deserializeMetadata(output),
|
|
975
975
|
...contents,
|
|
976
976
|
};
|
|
977
977
|
return Promise.resolve(response);
|
|
978
978
|
};
|
|
979
|
-
const
|
|
979
|
+
const de_ListAccessPoliciesCommandError = async (output, context) => {
|
|
980
980
|
const parsedOutput = {
|
|
981
981
|
...output,
|
|
982
982
|
body: await parseErrorBody(output.body, context),
|
|
@@ -985,10 +985,10 @@ const deserializeAws_json1_0ListAccessPoliciesCommandError = async (output, cont
|
|
|
985
985
|
switch (errorCode) {
|
|
986
986
|
case "InternalServerException":
|
|
987
987
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
988
|
-
throw await
|
|
988
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
989
989
|
case "ValidationException":
|
|
990
990
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
991
|
-
throw await
|
|
991
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
992
992
|
default:
|
|
993
993
|
const parsedBody = parsedOutput.body;
|
|
994
994
|
throwDefaultError({
|
|
@@ -999,20 +999,20 @@ const deserializeAws_json1_0ListAccessPoliciesCommandError = async (output, cont
|
|
|
999
999
|
});
|
|
1000
1000
|
}
|
|
1001
1001
|
};
|
|
1002
|
-
export const
|
|
1002
|
+
export const de_ListCollectionsCommand = async (output, context) => {
|
|
1003
1003
|
if (output.statusCode >= 300) {
|
|
1004
|
-
return
|
|
1004
|
+
return de_ListCollectionsCommandError(output, context);
|
|
1005
1005
|
}
|
|
1006
1006
|
const data = await parseBody(output.body, context);
|
|
1007
1007
|
let contents = {};
|
|
1008
|
-
contents =
|
|
1008
|
+
contents = de_ListCollectionsResponse(data, context);
|
|
1009
1009
|
const response = {
|
|
1010
1010
|
$metadata: deserializeMetadata(output),
|
|
1011
1011
|
...contents,
|
|
1012
1012
|
};
|
|
1013
1013
|
return Promise.resolve(response);
|
|
1014
1014
|
};
|
|
1015
|
-
const
|
|
1015
|
+
const de_ListCollectionsCommandError = async (output, context) => {
|
|
1016
1016
|
const parsedOutput = {
|
|
1017
1017
|
...output,
|
|
1018
1018
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1021,10 +1021,10 @@ const deserializeAws_json1_0ListCollectionsCommandError = async (output, context
|
|
|
1021
1021
|
switch (errorCode) {
|
|
1022
1022
|
case "InternalServerException":
|
|
1023
1023
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1024
|
-
throw await
|
|
1024
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1025
1025
|
case "ValidationException":
|
|
1026
1026
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1027
|
-
throw await
|
|
1027
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1028
1028
|
default:
|
|
1029
1029
|
const parsedBody = parsedOutput.body;
|
|
1030
1030
|
throwDefaultError({
|
|
@@ -1035,20 +1035,20 @@ const deserializeAws_json1_0ListCollectionsCommandError = async (output, context
|
|
|
1035
1035
|
});
|
|
1036
1036
|
}
|
|
1037
1037
|
};
|
|
1038
|
-
export const
|
|
1038
|
+
export const de_ListSecurityConfigsCommand = async (output, context) => {
|
|
1039
1039
|
if (output.statusCode >= 300) {
|
|
1040
|
-
return
|
|
1040
|
+
return de_ListSecurityConfigsCommandError(output, context);
|
|
1041
1041
|
}
|
|
1042
1042
|
const data = await parseBody(output.body, context);
|
|
1043
1043
|
let contents = {};
|
|
1044
|
-
contents =
|
|
1044
|
+
contents = de_ListSecurityConfigsResponse(data, context);
|
|
1045
1045
|
const response = {
|
|
1046
1046
|
$metadata: deserializeMetadata(output),
|
|
1047
1047
|
...contents,
|
|
1048
1048
|
};
|
|
1049
1049
|
return Promise.resolve(response);
|
|
1050
1050
|
};
|
|
1051
|
-
const
|
|
1051
|
+
const de_ListSecurityConfigsCommandError = async (output, context) => {
|
|
1052
1052
|
const parsedOutput = {
|
|
1053
1053
|
...output,
|
|
1054
1054
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1057,10 +1057,10 @@ const deserializeAws_json1_0ListSecurityConfigsCommandError = async (output, con
|
|
|
1057
1057
|
switch (errorCode) {
|
|
1058
1058
|
case "InternalServerException":
|
|
1059
1059
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1060
|
-
throw await
|
|
1060
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1061
1061
|
case "ValidationException":
|
|
1062
1062
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1063
|
-
throw await
|
|
1063
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1064
1064
|
default:
|
|
1065
1065
|
const parsedBody = parsedOutput.body;
|
|
1066
1066
|
throwDefaultError({
|
|
@@ -1071,20 +1071,20 @@ const deserializeAws_json1_0ListSecurityConfigsCommandError = async (output, con
|
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
1073
|
};
|
|
1074
|
-
export const
|
|
1074
|
+
export const de_ListSecurityPoliciesCommand = async (output, context) => {
|
|
1075
1075
|
if (output.statusCode >= 300) {
|
|
1076
|
-
return
|
|
1076
|
+
return de_ListSecurityPoliciesCommandError(output, context);
|
|
1077
1077
|
}
|
|
1078
1078
|
const data = await parseBody(output.body, context);
|
|
1079
1079
|
let contents = {};
|
|
1080
|
-
contents =
|
|
1080
|
+
contents = de_ListSecurityPoliciesResponse(data, context);
|
|
1081
1081
|
const response = {
|
|
1082
1082
|
$metadata: deserializeMetadata(output),
|
|
1083
1083
|
...contents,
|
|
1084
1084
|
};
|
|
1085
1085
|
return Promise.resolve(response);
|
|
1086
1086
|
};
|
|
1087
|
-
const
|
|
1087
|
+
const de_ListSecurityPoliciesCommandError = async (output, context) => {
|
|
1088
1088
|
const parsedOutput = {
|
|
1089
1089
|
...output,
|
|
1090
1090
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1093,10 +1093,10 @@ const deserializeAws_json1_0ListSecurityPoliciesCommandError = async (output, co
|
|
|
1093
1093
|
switch (errorCode) {
|
|
1094
1094
|
case "InternalServerException":
|
|
1095
1095
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1096
|
-
throw await
|
|
1096
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1097
1097
|
case "ValidationException":
|
|
1098
1098
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1099
|
-
throw await
|
|
1099
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1100
1100
|
default:
|
|
1101
1101
|
const parsedBody = parsedOutput.body;
|
|
1102
1102
|
throwDefaultError({
|
|
@@ -1107,20 +1107,20 @@ const deserializeAws_json1_0ListSecurityPoliciesCommandError = async (output, co
|
|
|
1107
1107
|
});
|
|
1108
1108
|
}
|
|
1109
1109
|
};
|
|
1110
|
-
export const
|
|
1110
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1111
1111
|
if (output.statusCode >= 300) {
|
|
1112
|
-
return
|
|
1112
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1113
1113
|
}
|
|
1114
1114
|
const data = await parseBody(output.body, context);
|
|
1115
1115
|
let contents = {};
|
|
1116
|
-
contents =
|
|
1116
|
+
contents = de_ListTagsForResourceResponse(data, context);
|
|
1117
1117
|
const response = {
|
|
1118
1118
|
$metadata: deserializeMetadata(output),
|
|
1119
1119
|
...contents,
|
|
1120
1120
|
};
|
|
1121
1121
|
return Promise.resolve(response);
|
|
1122
1122
|
};
|
|
1123
|
-
const
|
|
1123
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1124
1124
|
const parsedOutput = {
|
|
1125
1125
|
...output,
|
|
1126
1126
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1129,13 +1129,13 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1129
1129
|
switch (errorCode) {
|
|
1130
1130
|
case "InternalServerException":
|
|
1131
1131
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1132
|
-
throw await
|
|
1132
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1133
1133
|
case "ResourceNotFoundException":
|
|
1134
1134
|
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1135
|
-
throw await
|
|
1135
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1136
1136
|
case "ValidationException":
|
|
1137
1137
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1138
|
-
throw await
|
|
1138
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1139
1139
|
default:
|
|
1140
1140
|
const parsedBody = parsedOutput.body;
|
|
1141
1141
|
throwDefaultError({
|
|
@@ -1146,20 +1146,20 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1146
1146
|
});
|
|
1147
1147
|
}
|
|
1148
1148
|
};
|
|
1149
|
-
export const
|
|
1149
|
+
export const de_ListVpcEndpointsCommand = async (output, context) => {
|
|
1150
1150
|
if (output.statusCode >= 300) {
|
|
1151
|
-
return
|
|
1151
|
+
return de_ListVpcEndpointsCommandError(output, context);
|
|
1152
1152
|
}
|
|
1153
1153
|
const data = await parseBody(output.body, context);
|
|
1154
1154
|
let contents = {};
|
|
1155
|
-
contents =
|
|
1155
|
+
contents = de_ListVpcEndpointsResponse(data, context);
|
|
1156
1156
|
const response = {
|
|
1157
1157
|
$metadata: deserializeMetadata(output),
|
|
1158
1158
|
...contents,
|
|
1159
1159
|
};
|
|
1160
1160
|
return Promise.resolve(response);
|
|
1161
1161
|
};
|
|
1162
|
-
const
|
|
1162
|
+
const de_ListVpcEndpointsCommandError = async (output, context) => {
|
|
1163
1163
|
const parsedOutput = {
|
|
1164
1164
|
...output,
|
|
1165
1165
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1168,10 +1168,10 @@ const deserializeAws_json1_0ListVpcEndpointsCommandError = async (output, contex
|
|
|
1168
1168
|
switch (errorCode) {
|
|
1169
1169
|
case "InternalServerException":
|
|
1170
1170
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1171
|
-
throw await
|
|
1171
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1172
1172
|
case "ValidationException":
|
|
1173
1173
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1174
|
-
throw await
|
|
1174
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1175
1175
|
default:
|
|
1176
1176
|
const parsedBody = parsedOutput.body;
|
|
1177
1177
|
throwDefaultError({
|
|
@@ -1182,20 +1182,20 @@ const deserializeAws_json1_0ListVpcEndpointsCommandError = async (output, contex
|
|
|
1182
1182
|
});
|
|
1183
1183
|
}
|
|
1184
1184
|
};
|
|
1185
|
-
export const
|
|
1185
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1186
1186
|
if (output.statusCode >= 300) {
|
|
1187
|
-
return
|
|
1187
|
+
return de_TagResourceCommandError(output, context);
|
|
1188
1188
|
}
|
|
1189
1189
|
const data = await parseBody(output.body, context);
|
|
1190
1190
|
let contents = {};
|
|
1191
|
-
contents =
|
|
1191
|
+
contents = de_TagResourceResponse(data, context);
|
|
1192
1192
|
const response = {
|
|
1193
1193
|
$metadata: deserializeMetadata(output),
|
|
1194
1194
|
...contents,
|
|
1195
1195
|
};
|
|
1196
1196
|
return Promise.resolve(response);
|
|
1197
1197
|
};
|
|
1198
|
-
const
|
|
1198
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1199
1199
|
const parsedOutput = {
|
|
1200
1200
|
...output,
|
|
1201
1201
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1204,19 +1204,19 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1204
1204
|
switch (errorCode) {
|
|
1205
1205
|
case "ConflictException":
|
|
1206
1206
|
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1207
|
-
throw await
|
|
1207
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1208
1208
|
case "InternalServerException":
|
|
1209
1209
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1210
|
-
throw await
|
|
1210
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1211
1211
|
case "ResourceNotFoundException":
|
|
1212
1212
|
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1213
|
-
throw await
|
|
1213
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1214
1214
|
case "ServiceQuotaExceededException":
|
|
1215
1215
|
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
1216
|
-
throw await
|
|
1216
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1217
1217
|
case "ValidationException":
|
|
1218
1218
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1219
|
-
throw await
|
|
1219
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1220
1220
|
default:
|
|
1221
1221
|
const parsedBody = parsedOutput.body;
|
|
1222
1222
|
throwDefaultError({
|
|
@@ -1227,20 +1227,20 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1227
1227
|
});
|
|
1228
1228
|
}
|
|
1229
1229
|
};
|
|
1230
|
-
export const
|
|
1230
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1231
1231
|
if (output.statusCode >= 300) {
|
|
1232
|
-
return
|
|
1232
|
+
return de_UntagResourceCommandError(output, context);
|
|
1233
1233
|
}
|
|
1234
1234
|
const data = await parseBody(output.body, context);
|
|
1235
1235
|
let contents = {};
|
|
1236
|
-
contents =
|
|
1236
|
+
contents = de_UntagResourceResponse(data, context);
|
|
1237
1237
|
const response = {
|
|
1238
1238
|
$metadata: deserializeMetadata(output),
|
|
1239
1239
|
...contents,
|
|
1240
1240
|
};
|
|
1241
1241
|
return Promise.resolve(response);
|
|
1242
1242
|
};
|
|
1243
|
-
const
|
|
1243
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1244
1244
|
const parsedOutput = {
|
|
1245
1245
|
...output,
|
|
1246
1246
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1249,16 +1249,16 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1249
1249
|
switch (errorCode) {
|
|
1250
1250
|
case "ConflictException":
|
|
1251
1251
|
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1252
|
-
throw await
|
|
1252
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1253
1253
|
case "InternalServerException":
|
|
1254
1254
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1255
|
-
throw await
|
|
1255
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1256
1256
|
case "ResourceNotFoundException":
|
|
1257
1257
|
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1258
|
-
throw await
|
|
1258
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1259
1259
|
case "ValidationException":
|
|
1260
1260
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1261
|
-
throw await
|
|
1261
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1262
1262
|
default:
|
|
1263
1263
|
const parsedBody = parsedOutput.body;
|
|
1264
1264
|
throwDefaultError({
|
|
@@ -1269,20 +1269,20 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1269
1269
|
});
|
|
1270
1270
|
}
|
|
1271
1271
|
};
|
|
1272
|
-
export const
|
|
1272
|
+
export const de_UpdateAccessPolicyCommand = async (output, context) => {
|
|
1273
1273
|
if (output.statusCode >= 300) {
|
|
1274
|
-
return
|
|
1274
|
+
return de_UpdateAccessPolicyCommandError(output, context);
|
|
1275
1275
|
}
|
|
1276
1276
|
const data = await parseBody(output.body, context);
|
|
1277
1277
|
let contents = {};
|
|
1278
|
-
contents =
|
|
1278
|
+
contents = de_UpdateAccessPolicyResponse(data, context);
|
|
1279
1279
|
const response = {
|
|
1280
1280
|
$metadata: deserializeMetadata(output),
|
|
1281
1281
|
...contents,
|
|
1282
1282
|
};
|
|
1283
1283
|
return Promise.resolve(response);
|
|
1284
1284
|
};
|
|
1285
|
-
const
|
|
1285
|
+
const de_UpdateAccessPolicyCommandError = async (output, context) => {
|
|
1286
1286
|
const parsedOutput = {
|
|
1287
1287
|
...output,
|
|
1288
1288
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1291,16 +1291,16 @@ const deserializeAws_json1_0UpdateAccessPolicyCommandError = async (output, cont
|
|
|
1291
1291
|
switch (errorCode) {
|
|
1292
1292
|
case "ConflictException":
|
|
1293
1293
|
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1294
|
-
throw await
|
|
1294
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1295
1295
|
case "InternalServerException":
|
|
1296
1296
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1297
|
-
throw await
|
|
1297
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1298
1298
|
case "ResourceNotFoundException":
|
|
1299
1299
|
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1300
|
-
throw await
|
|
1300
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1301
1301
|
case "ValidationException":
|
|
1302
1302
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1303
|
-
throw await
|
|
1303
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1304
1304
|
default:
|
|
1305
1305
|
const parsedBody = parsedOutput.body;
|
|
1306
1306
|
throwDefaultError({
|
|
@@ -1311,20 +1311,20 @@ const deserializeAws_json1_0UpdateAccessPolicyCommandError = async (output, cont
|
|
|
1311
1311
|
});
|
|
1312
1312
|
}
|
|
1313
1313
|
};
|
|
1314
|
-
export const
|
|
1314
|
+
export const de_UpdateAccountSettingsCommand = async (output, context) => {
|
|
1315
1315
|
if (output.statusCode >= 300) {
|
|
1316
|
-
return
|
|
1316
|
+
return de_UpdateAccountSettingsCommandError(output, context);
|
|
1317
1317
|
}
|
|
1318
1318
|
const data = await parseBody(output.body, context);
|
|
1319
1319
|
let contents = {};
|
|
1320
|
-
contents =
|
|
1320
|
+
contents = de_UpdateAccountSettingsResponse(data, context);
|
|
1321
1321
|
const response = {
|
|
1322
1322
|
$metadata: deserializeMetadata(output),
|
|
1323
1323
|
...contents,
|
|
1324
1324
|
};
|
|
1325
1325
|
return Promise.resolve(response);
|
|
1326
1326
|
};
|
|
1327
|
-
const
|
|
1327
|
+
const de_UpdateAccountSettingsCommandError = async (output, context) => {
|
|
1328
1328
|
const parsedOutput = {
|
|
1329
1329
|
...output,
|
|
1330
1330
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1333,10 +1333,10 @@ const deserializeAws_json1_0UpdateAccountSettingsCommandError = async (output, c
|
|
|
1333
1333
|
switch (errorCode) {
|
|
1334
1334
|
case "InternalServerException":
|
|
1335
1335
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1336
|
-
throw await
|
|
1336
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1337
1337
|
case "ValidationException":
|
|
1338
1338
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1339
|
-
throw await
|
|
1339
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1340
1340
|
default:
|
|
1341
1341
|
const parsedBody = parsedOutput.body;
|
|
1342
1342
|
throwDefaultError({
|
|
@@ -1347,20 +1347,20 @@ const deserializeAws_json1_0UpdateAccountSettingsCommandError = async (output, c
|
|
|
1347
1347
|
});
|
|
1348
1348
|
}
|
|
1349
1349
|
};
|
|
1350
|
-
export const
|
|
1350
|
+
export const de_UpdateCollectionCommand = async (output, context) => {
|
|
1351
1351
|
if (output.statusCode >= 300) {
|
|
1352
|
-
return
|
|
1352
|
+
return de_UpdateCollectionCommandError(output, context);
|
|
1353
1353
|
}
|
|
1354
1354
|
const data = await parseBody(output.body, context);
|
|
1355
1355
|
let contents = {};
|
|
1356
|
-
contents =
|
|
1356
|
+
contents = de_UpdateCollectionResponse(data, context);
|
|
1357
1357
|
const response = {
|
|
1358
1358
|
$metadata: deserializeMetadata(output),
|
|
1359
1359
|
...contents,
|
|
1360
1360
|
};
|
|
1361
1361
|
return Promise.resolve(response);
|
|
1362
1362
|
};
|
|
1363
|
-
const
|
|
1363
|
+
const de_UpdateCollectionCommandError = async (output, context) => {
|
|
1364
1364
|
const parsedOutput = {
|
|
1365
1365
|
...output,
|
|
1366
1366
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1369,13 +1369,13 @@ const deserializeAws_json1_0UpdateCollectionCommandError = async (output, contex
|
|
|
1369
1369
|
switch (errorCode) {
|
|
1370
1370
|
case "ConflictException":
|
|
1371
1371
|
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1372
|
-
throw await
|
|
1372
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1373
1373
|
case "InternalServerException":
|
|
1374
1374
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1375
|
-
throw await
|
|
1375
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1376
1376
|
case "ValidationException":
|
|
1377
1377
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1378
|
-
throw await
|
|
1378
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1379
1379
|
default:
|
|
1380
1380
|
const parsedBody = parsedOutput.body;
|
|
1381
1381
|
throwDefaultError({
|
|
@@ -1386,20 +1386,20 @@ const deserializeAws_json1_0UpdateCollectionCommandError = async (output, contex
|
|
|
1386
1386
|
});
|
|
1387
1387
|
}
|
|
1388
1388
|
};
|
|
1389
|
-
export const
|
|
1389
|
+
export const de_UpdateSecurityConfigCommand = async (output, context) => {
|
|
1390
1390
|
if (output.statusCode >= 300) {
|
|
1391
|
-
return
|
|
1391
|
+
return de_UpdateSecurityConfigCommandError(output, context);
|
|
1392
1392
|
}
|
|
1393
1393
|
const data = await parseBody(output.body, context);
|
|
1394
1394
|
let contents = {};
|
|
1395
|
-
contents =
|
|
1395
|
+
contents = de_UpdateSecurityConfigResponse(data, context);
|
|
1396
1396
|
const response = {
|
|
1397
1397
|
$metadata: deserializeMetadata(output),
|
|
1398
1398
|
...contents,
|
|
1399
1399
|
};
|
|
1400
1400
|
return Promise.resolve(response);
|
|
1401
1401
|
};
|
|
1402
|
-
const
|
|
1402
|
+
const de_UpdateSecurityConfigCommandError = async (output, context) => {
|
|
1403
1403
|
const parsedOutput = {
|
|
1404
1404
|
...output,
|
|
1405
1405
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1408,16 +1408,16 @@ const deserializeAws_json1_0UpdateSecurityConfigCommandError = async (output, co
|
|
|
1408
1408
|
switch (errorCode) {
|
|
1409
1409
|
case "ConflictException":
|
|
1410
1410
|
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1411
|
-
throw await
|
|
1411
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1412
1412
|
case "InternalServerException":
|
|
1413
1413
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1414
|
-
throw await
|
|
1414
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1415
1415
|
case "ResourceNotFoundException":
|
|
1416
1416
|
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1417
|
-
throw await
|
|
1417
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1418
1418
|
case "ValidationException":
|
|
1419
1419
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1420
|
-
throw await
|
|
1420
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1421
1421
|
default:
|
|
1422
1422
|
const parsedBody = parsedOutput.body;
|
|
1423
1423
|
throwDefaultError({
|
|
@@ -1428,20 +1428,20 @@ const deserializeAws_json1_0UpdateSecurityConfigCommandError = async (output, co
|
|
|
1428
1428
|
});
|
|
1429
1429
|
}
|
|
1430
1430
|
};
|
|
1431
|
-
export const
|
|
1431
|
+
export const de_UpdateSecurityPolicyCommand = async (output, context) => {
|
|
1432
1432
|
if (output.statusCode >= 300) {
|
|
1433
|
-
return
|
|
1433
|
+
return de_UpdateSecurityPolicyCommandError(output, context);
|
|
1434
1434
|
}
|
|
1435
1435
|
const data = await parseBody(output.body, context);
|
|
1436
1436
|
let contents = {};
|
|
1437
|
-
contents =
|
|
1437
|
+
contents = de_UpdateSecurityPolicyResponse(data, context);
|
|
1438
1438
|
const response = {
|
|
1439
1439
|
$metadata: deserializeMetadata(output),
|
|
1440
1440
|
...contents,
|
|
1441
1441
|
};
|
|
1442
1442
|
return Promise.resolve(response);
|
|
1443
1443
|
};
|
|
1444
|
-
const
|
|
1444
|
+
const de_UpdateSecurityPolicyCommandError = async (output, context) => {
|
|
1445
1445
|
const parsedOutput = {
|
|
1446
1446
|
...output,
|
|
1447
1447
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1450,19 +1450,19 @@ const deserializeAws_json1_0UpdateSecurityPolicyCommandError = async (output, co
|
|
|
1450
1450
|
switch (errorCode) {
|
|
1451
1451
|
case "ConflictException":
|
|
1452
1452
|
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1453
|
-
throw await
|
|
1453
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1454
1454
|
case "InternalServerException":
|
|
1455
1455
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1456
|
-
throw await
|
|
1456
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1457
1457
|
case "ResourceNotFoundException":
|
|
1458
1458
|
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1459
|
-
throw await
|
|
1459
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1460
1460
|
case "ServiceQuotaExceededException":
|
|
1461
1461
|
case "com.amazonaws.opensearchserverless#ServiceQuotaExceededException":
|
|
1462
|
-
throw await
|
|
1462
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1463
1463
|
case "ValidationException":
|
|
1464
1464
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1465
|
-
throw await
|
|
1465
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1466
1466
|
default:
|
|
1467
1467
|
const parsedBody = parsedOutput.body;
|
|
1468
1468
|
throwDefaultError({
|
|
@@ -1473,20 +1473,20 @@ const deserializeAws_json1_0UpdateSecurityPolicyCommandError = async (output, co
|
|
|
1473
1473
|
});
|
|
1474
1474
|
}
|
|
1475
1475
|
};
|
|
1476
|
-
export const
|
|
1476
|
+
export const de_UpdateVpcEndpointCommand = async (output, context) => {
|
|
1477
1477
|
if (output.statusCode >= 300) {
|
|
1478
|
-
return
|
|
1478
|
+
return de_UpdateVpcEndpointCommandError(output, context);
|
|
1479
1479
|
}
|
|
1480
1480
|
const data = await parseBody(output.body, context);
|
|
1481
1481
|
let contents = {};
|
|
1482
|
-
contents =
|
|
1482
|
+
contents = de_UpdateVpcEndpointResponse(data, context);
|
|
1483
1483
|
const response = {
|
|
1484
1484
|
$metadata: deserializeMetadata(output),
|
|
1485
1485
|
...contents,
|
|
1486
1486
|
};
|
|
1487
1487
|
return Promise.resolve(response);
|
|
1488
1488
|
};
|
|
1489
|
-
const
|
|
1489
|
+
const de_UpdateVpcEndpointCommandError = async (output, context) => {
|
|
1490
1490
|
const parsedOutput = {
|
|
1491
1491
|
...output,
|
|
1492
1492
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1495,13 +1495,13 @@ const deserializeAws_json1_0UpdateVpcEndpointCommandError = async (output, conte
|
|
|
1495
1495
|
switch (errorCode) {
|
|
1496
1496
|
case "ConflictException":
|
|
1497
1497
|
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1498
|
-
throw await
|
|
1498
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1499
1499
|
case "InternalServerException":
|
|
1500
1500
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1501
|
-
throw await
|
|
1501
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1502
1502
|
case "ValidationException":
|
|
1503
1503
|
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1504
|
-
throw await
|
|
1504
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1505
1505
|
default:
|
|
1506
1506
|
const parsedBody = parsedOutput.body;
|
|
1507
1507
|
throwDefaultError({
|
|
@@ -1512,98 +1512,98 @@ const deserializeAws_json1_0UpdateVpcEndpointCommandError = async (output, conte
|
|
|
1512
1512
|
});
|
|
1513
1513
|
}
|
|
1514
1514
|
};
|
|
1515
|
-
const
|
|
1515
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1516
1516
|
const body = parsedOutput.body;
|
|
1517
|
-
const deserialized =
|
|
1517
|
+
const deserialized = de_ConflictException(body, context);
|
|
1518
1518
|
const exception = new ConflictException({
|
|
1519
1519
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1520
1520
|
...deserialized,
|
|
1521
1521
|
});
|
|
1522
1522
|
return __decorateServiceException(exception, body);
|
|
1523
1523
|
};
|
|
1524
|
-
const
|
|
1524
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1525
1525
|
const body = parsedOutput.body;
|
|
1526
|
-
const deserialized =
|
|
1526
|
+
const deserialized = de_InternalServerException(body, context);
|
|
1527
1527
|
const exception = new InternalServerException({
|
|
1528
1528
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1529
1529
|
...deserialized,
|
|
1530
1530
|
});
|
|
1531
1531
|
return __decorateServiceException(exception, body);
|
|
1532
1532
|
};
|
|
1533
|
-
const
|
|
1533
|
+
const de_OcuLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1534
1534
|
const body = parsedOutput.body;
|
|
1535
|
-
const deserialized =
|
|
1535
|
+
const deserialized = de_OcuLimitExceededException(body, context);
|
|
1536
1536
|
const exception = new OcuLimitExceededException({
|
|
1537
1537
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1538
1538
|
...deserialized,
|
|
1539
1539
|
});
|
|
1540
1540
|
return __decorateServiceException(exception, body);
|
|
1541
1541
|
};
|
|
1542
|
-
const
|
|
1542
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1543
1543
|
const body = parsedOutput.body;
|
|
1544
|
-
const deserialized =
|
|
1544
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
1545
1545
|
const exception = new ResourceNotFoundException({
|
|
1546
1546
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1547
1547
|
...deserialized,
|
|
1548
1548
|
});
|
|
1549
1549
|
return __decorateServiceException(exception, body);
|
|
1550
1550
|
};
|
|
1551
|
-
const
|
|
1551
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1552
1552
|
const body = parsedOutput.body;
|
|
1553
|
-
const deserialized =
|
|
1553
|
+
const deserialized = de_ServiceQuotaExceededException(body, context);
|
|
1554
1554
|
const exception = new ServiceQuotaExceededException({
|
|
1555
1555
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1556
1556
|
...deserialized,
|
|
1557
1557
|
});
|
|
1558
1558
|
return __decorateServiceException(exception, body);
|
|
1559
1559
|
};
|
|
1560
|
-
const
|
|
1560
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1561
1561
|
const body = parsedOutput.body;
|
|
1562
|
-
const deserialized =
|
|
1562
|
+
const deserialized = de_ValidationException(body, context);
|
|
1563
1563
|
const exception = new ValidationException({
|
|
1564
1564
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1565
1565
|
...deserialized,
|
|
1566
1566
|
});
|
|
1567
1567
|
return __decorateServiceException(exception, body);
|
|
1568
1568
|
};
|
|
1569
|
-
const
|
|
1569
|
+
const se_BatchGetCollectionRequest = (input, context) => {
|
|
1570
1570
|
return {
|
|
1571
|
-
...(input.ids != null && { ids:
|
|
1572
|
-
...(input.names != null && { names:
|
|
1571
|
+
...(input.ids != null && { ids: se_CollectionIds(input.ids, context) }),
|
|
1572
|
+
...(input.names != null && { names: se_CollectionNames(input.names, context) }),
|
|
1573
1573
|
};
|
|
1574
1574
|
};
|
|
1575
|
-
const
|
|
1575
|
+
const se_BatchGetVpcEndpointRequest = (input, context) => {
|
|
1576
1576
|
return {
|
|
1577
|
-
...(input.ids != null && { ids:
|
|
1577
|
+
...(input.ids != null && { ids: se_VpcEndpointIds(input.ids, context) }),
|
|
1578
1578
|
};
|
|
1579
1579
|
};
|
|
1580
|
-
const
|
|
1580
|
+
const se_CapacityLimits = (input, context) => {
|
|
1581
1581
|
return {
|
|
1582
1582
|
...(input.maxIndexingCapacityInOCU != null && { maxIndexingCapacityInOCU: input.maxIndexingCapacityInOCU }),
|
|
1583
1583
|
...(input.maxSearchCapacityInOCU != null && { maxSearchCapacityInOCU: input.maxSearchCapacityInOCU }),
|
|
1584
1584
|
};
|
|
1585
1585
|
};
|
|
1586
|
-
const
|
|
1586
|
+
const se_CollectionFilters = (input, context) => {
|
|
1587
1587
|
return {
|
|
1588
1588
|
...(input.name != null && { name: input.name }),
|
|
1589
1589
|
...(input.status != null && { status: input.status }),
|
|
1590
1590
|
};
|
|
1591
1591
|
};
|
|
1592
|
-
const
|
|
1592
|
+
const se_CollectionIds = (input, context) => {
|
|
1593
1593
|
return input
|
|
1594
1594
|
.filter((e) => e != null)
|
|
1595
1595
|
.map((entry) => {
|
|
1596
1596
|
return entry;
|
|
1597
1597
|
});
|
|
1598
1598
|
};
|
|
1599
|
-
const
|
|
1599
|
+
const se_CollectionNames = (input, context) => {
|
|
1600
1600
|
return input
|
|
1601
1601
|
.filter((e) => e != null)
|
|
1602
1602
|
.map((entry) => {
|
|
1603
1603
|
return entry;
|
|
1604
1604
|
});
|
|
1605
1605
|
};
|
|
1606
|
-
const
|
|
1606
|
+
const se_CreateAccessPolicyRequest = (input, context) => {
|
|
1607
1607
|
return {
|
|
1608
1608
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
1609
1609
|
...(input.description != null && { description: input.description }),
|
|
@@ -1612,27 +1612,25 @@ const serializeAws_json1_0CreateAccessPolicyRequest = (input, context) => {
|
|
|
1612
1612
|
...(input.type != null && { type: input.type }),
|
|
1613
1613
|
};
|
|
1614
1614
|
};
|
|
1615
|
-
const
|
|
1615
|
+
const se_CreateCollectionRequest = (input, context) => {
|
|
1616
1616
|
return {
|
|
1617
1617
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
1618
1618
|
...(input.description != null && { description: input.description }),
|
|
1619
1619
|
...(input.name != null && { name: input.name }),
|
|
1620
|
-
...(input.tags != null && { tags:
|
|
1620
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
1621
1621
|
...(input.type != null && { type: input.type }),
|
|
1622
1622
|
};
|
|
1623
1623
|
};
|
|
1624
|
-
const
|
|
1624
|
+
const se_CreateSecurityConfigRequest = (input, context) => {
|
|
1625
1625
|
return {
|
|
1626
1626
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
1627
1627
|
...(input.description != null && { description: input.description }),
|
|
1628
1628
|
...(input.name != null && { name: input.name }),
|
|
1629
|
-
...(input.samlOptions != null && {
|
|
1630
|
-
samlOptions: serializeAws_json1_0SamlConfigOptions(input.samlOptions, context),
|
|
1631
|
-
}),
|
|
1629
|
+
...(input.samlOptions != null && { samlOptions: se_SamlConfigOptions(input.samlOptions, context) }),
|
|
1632
1630
|
...(input.type != null && { type: input.type }),
|
|
1633
1631
|
};
|
|
1634
1632
|
};
|
|
1635
|
-
const
|
|
1633
|
+
const se_CreateSecurityPolicyRequest = (input, context) => {
|
|
1636
1634
|
return {
|
|
1637
1635
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
1638
1636
|
...(input.description != null && { description: input.description }),
|
|
@@ -1641,126 +1639,124 @@ const serializeAws_json1_0CreateSecurityPolicyRequest = (input, context) => {
|
|
|
1641
1639
|
...(input.type != null && { type: input.type }),
|
|
1642
1640
|
};
|
|
1643
1641
|
};
|
|
1644
|
-
const
|
|
1642
|
+
const se_CreateVpcEndpointRequest = (input, context) => {
|
|
1645
1643
|
return {
|
|
1646
1644
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
1647
1645
|
...(input.name != null && { name: input.name }),
|
|
1648
|
-
...(input.securityGroupIds != null && {
|
|
1649
|
-
|
|
1650
|
-
}),
|
|
1651
|
-
...(input.subnetIds != null && { subnetIds: serializeAws_json1_0SubnetIds(input.subnetIds, context) }),
|
|
1646
|
+
...(input.securityGroupIds != null && { securityGroupIds: se_SecurityGroupIds(input.securityGroupIds, context) }),
|
|
1647
|
+
...(input.subnetIds != null && { subnetIds: se_SubnetIds(input.subnetIds, context) }),
|
|
1652
1648
|
...(input.vpcId != null && { vpcId: input.vpcId }),
|
|
1653
1649
|
};
|
|
1654
1650
|
};
|
|
1655
|
-
const
|
|
1651
|
+
const se_DeleteAccessPolicyRequest = (input, context) => {
|
|
1656
1652
|
return {
|
|
1657
1653
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
1658
1654
|
...(input.name != null && { name: input.name }),
|
|
1659
1655
|
...(input.type != null && { type: input.type }),
|
|
1660
1656
|
};
|
|
1661
1657
|
};
|
|
1662
|
-
const
|
|
1658
|
+
const se_DeleteCollectionRequest = (input, context) => {
|
|
1663
1659
|
return {
|
|
1664
1660
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
1665
1661
|
...(input.id != null && { id: input.id }),
|
|
1666
1662
|
};
|
|
1667
1663
|
};
|
|
1668
|
-
const
|
|
1664
|
+
const se_DeleteSecurityConfigRequest = (input, context) => {
|
|
1669
1665
|
return {
|
|
1670
1666
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
1671
1667
|
...(input.id != null && { id: input.id }),
|
|
1672
1668
|
};
|
|
1673
1669
|
};
|
|
1674
|
-
const
|
|
1670
|
+
const se_DeleteSecurityPolicyRequest = (input, context) => {
|
|
1675
1671
|
return {
|
|
1676
1672
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
1677
1673
|
...(input.name != null && { name: input.name }),
|
|
1678
1674
|
...(input.type != null && { type: input.type }),
|
|
1679
1675
|
};
|
|
1680
1676
|
};
|
|
1681
|
-
const
|
|
1677
|
+
const se_DeleteVpcEndpointRequest = (input, context) => {
|
|
1682
1678
|
return {
|
|
1683
1679
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
1684
1680
|
...(input.id != null && { id: input.id }),
|
|
1685
1681
|
};
|
|
1686
1682
|
};
|
|
1687
|
-
const
|
|
1683
|
+
const se_GetAccessPolicyRequest = (input, context) => {
|
|
1688
1684
|
return {
|
|
1689
1685
|
...(input.name != null && { name: input.name }),
|
|
1690
1686
|
...(input.type != null && { type: input.type }),
|
|
1691
1687
|
};
|
|
1692
1688
|
};
|
|
1693
|
-
const
|
|
1689
|
+
const se_GetAccountSettingsRequest = (input, context) => {
|
|
1694
1690
|
return {};
|
|
1695
1691
|
};
|
|
1696
|
-
const
|
|
1692
|
+
const se_GetPoliciesStatsRequest = (input, context) => {
|
|
1697
1693
|
return {};
|
|
1698
1694
|
};
|
|
1699
|
-
const
|
|
1695
|
+
const se_GetSecurityConfigRequest = (input, context) => {
|
|
1700
1696
|
return {
|
|
1701
1697
|
...(input.id != null && { id: input.id }),
|
|
1702
1698
|
};
|
|
1703
1699
|
};
|
|
1704
|
-
const
|
|
1700
|
+
const se_GetSecurityPolicyRequest = (input, context) => {
|
|
1705
1701
|
return {
|
|
1706
1702
|
...(input.name != null && { name: input.name }),
|
|
1707
1703
|
...(input.type != null && { type: input.type }),
|
|
1708
1704
|
};
|
|
1709
1705
|
};
|
|
1710
|
-
const
|
|
1706
|
+
const se_ListAccessPoliciesRequest = (input, context) => {
|
|
1711
1707
|
return {
|
|
1712
1708
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1713
1709
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1714
|
-
...(input.resource != null && { resource:
|
|
1710
|
+
...(input.resource != null && { resource: se_ResourceFilter(input.resource, context) }),
|
|
1715
1711
|
...(input.type != null && { type: input.type }),
|
|
1716
1712
|
};
|
|
1717
1713
|
};
|
|
1718
|
-
const
|
|
1714
|
+
const se_ListCollectionsRequest = (input, context) => {
|
|
1719
1715
|
return {
|
|
1720
1716
|
...(input.collectionFilters != null && {
|
|
1721
|
-
collectionFilters:
|
|
1717
|
+
collectionFilters: se_CollectionFilters(input.collectionFilters, context),
|
|
1722
1718
|
}),
|
|
1723
1719
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1724
1720
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1725
1721
|
};
|
|
1726
1722
|
};
|
|
1727
|
-
const
|
|
1723
|
+
const se_ListSecurityConfigsRequest = (input, context) => {
|
|
1728
1724
|
return {
|
|
1729
1725
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1730
1726
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1731
1727
|
...(input.type != null && { type: input.type }),
|
|
1732
1728
|
};
|
|
1733
1729
|
};
|
|
1734
|
-
const
|
|
1730
|
+
const se_ListSecurityPoliciesRequest = (input, context) => {
|
|
1735
1731
|
return {
|
|
1736
1732
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1737
1733
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1738
|
-
...(input.resource != null && { resource:
|
|
1734
|
+
...(input.resource != null && { resource: se_ResourceFilter(input.resource, context) }),
|
|
1739
1735
|
...(input.type != null && { type: input.type }),
|
|
1740
1736
|
};
|
|
1741
1737
|
};
|
|
1742
|
-
const
|
|
1738
|
+
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1743
1739
|
return {
|
|
1744
1740
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1745
1741
|
};
|
|
1746
1742
|
};
|
|
1747
|
-
const
|
|
1743
|
+
const se_ListVpcEndpointsRequest = (input, context) => {
|
|
1748
1744
|
return {
|
|
1749
1745
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1750
1746
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1751
1747
|
...(input.vpcEndpointFilters != null && {
|
|
1752
|
-
vpcEndpointFilters:
|
|
1748
|
+
vpcEndpointFilters: se_VpcEndpointFilters(input.vpcEndpointFilters, context),
|
|
1753
1749
|
}),
|
|
1754
1750
|
};
|
|
1755
1751
|
};
|
|
1756
|
-
const
|
|
1752
|
+
const se_ResourceFilter = (input, context) => {
|
|
1757
1753
|
return input
|
|
1758
1754
|
.filter((e) => e != null)
|
|
1759
1755
|
.map((entry) => {
|
|
1760
1756
|
return entry;
|
|
1761
1757
|
});
|
|
1762
1758
|
};
|
|
1763
|
-
const
|
|
1759
|
+
const se_SamlConfigOptions = (input, context) => {
|
|
1764
1760
|
return {
|
|
1765
1761
|
...(input.groupAttribute != null && { groupAttribute: input.groupAttribute }),
|
|
1766
1762
|
...(input.metadata != null && { metadata: input.metadata }),
|
|
@@ -1768,53 +1764,53 @@ const serializeAws_json1_0SamlConfigOptions = (input, context) => {
|
|
|
1768
1764
|
...(input.userAttribute != null && { userAttribute: input.userAttribute }),
|
|
1769
1765
|
};
|
|
1770
1766
|
};
|
|
1771
|
-
const
|
|
1767
|
+
const se_SecurityGroupIds = (input, context) => {
|
|
1772
1768
|
return input
|
|
1773
1769
|
.filter((e) => e != null)
|
|
1774
1770
|
.map((entry) => {
|
|
1775
1771
|
return entry;
|
|
1776
1772
|
});
|
|
1777
1773
|
};
|
|
1778
|
-
const
|
|
1774
|
+
const se_SubnetIds = (input, context) => {
|
|
1779
1775
|
return input
|
|
1780
1776
|
.filter((e) => e != null)
|
|
1781
1777
|
.map((entry) => {
|
|
1782
1778
|
return entry;
|
|
1783
1779
|
});
|
|
1784
1780
|
};
|
|
1785
|
-
const
|
|
1781
|
+
const se_Tag = (input, context) => {
|
|
1786
1782
|
return {
|
|
1787
1783
|
...(input.key != null && { key: input.key }),
|
|
1788
1784
|
...(input.value != null && { value: input.value }),
|
|
1789
1785
|
};
|
|
1790
1786
|
};
|
|
1791
|
-
const
|
|
1787
|
+
const se_TagKeys = (input, context) => {
|
|
1792
1788
|
return input
|
|
1793
1789
|
.filter((e) => e != null)
|
|
1794
1790
|
.map((entry) => {
|
|
1795
1791
|
return entry;
|
|
1796
1792
|
});
|
|
1797
1793
|
};
|
|
1798
|
-
const
|
|
1794
|
+
const se_TagResourceRequest = (input, context) => {
|
|
1799
1795
|
return {
|
|
1800
1796
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1801
|
-
...(input.tags != null && { tags:
|
|
1797
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
1802
1798
|
};
|
|
1803
1799
|
};
|
|
1804
|
-
const
|
|
1800
|
+
const se_Tags = (input, context) => {
|
|
1805
1801
|
return input
|
|
1806
1802
|
.filter((e) => e != null)
|
|
1807
1803
|
.map((entry) => {
|
|
1808
|
-
return
|
|
1804
|
+
return se_Tag(entry, context);
|
|
1809
1805
|
});
|
|
1810
1806
|
};
|
|
1811
|
-
const
|
|
1807
|
+
const se_UntagResourceRequest = (input, context) => {
|
|
1812
1808
|
return {
|
|
1813
1809
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1814
|
-
...(input.tagKeys != null && { tagKeys:
|
|
1810
|
+
...(input.tagKeys != null && { tagKeys: se_TagKeys(input.tagKeys, context) }),
|
|
1815
1811
|
};
|
|
1816
1812
|
};
|
|
1817
|
-
const
|
|
1813
|
+
const se_UpdateAccessPolicyRequest = (input, context) => {
|
|
1818
1814
|
return {
|
|
1819
1815
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
1820
1816
|
...(input.description != null && { description: input.description }),
|
|
@@ -1824,32 +1820,28 @@ const serializeAws_json1_0UpdateAccessPolicyRequest = (input, context) => {
|
|
|
1824
1820
|
...(input.type != null && { type: input.type }),
|
|
1825
1821
|
};
|
|
1826
1822
|
};
|
|
1827
|
-
const
|
|
1823
|
+
const se_UpdateAccountSettingsRequest = (input, context) => {
|
|
1828
1824
|
return {
|
|
1829
|
-
...(input.capacityLimits != null && {
|
|
1830
|
-
capacityLimits: serializeAws_json1_0CapacityLimits(input.capacityLimits, context),
|
|
1831
|
-
}),
|
|
1825
|
+
...(input.capacityLimits != null && { capacityLimits: se_CapacityLimits(input.capacityLimits, context) }),
|
|
1832
1826
|
};
|
|
1833
1827
|
};
|
|
1834
|
-
const
|
|
1828
|
+
const se_UpdateCollectionRequest = (input, context) => {
|
|
1835
1829
|
return {
|
|
1836
1830
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
1837
1831
|
...(input.description != null && { description: input.description }),
|
|
1838
1832
|
...(input.id != null && { id: input.id }),
|
|
1839
1833
|
};
|
|
1840
1834
|
};
|
|
1841
|
-
const
|
|
1835
|
+
const se_UpdateSecurityConfigRequest = (input, context) => {
|
|
1842
1836
|
return {
|
|
1843
1837
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
1844
1838
|
...(input.configVersion != null && { configVersion: input.configVersion }),
|
|
1845
1839
|
...(input.description != null && { description: input.description }),
|
|
1846
1840
|
...(input.id != null && { id: input.id }),
|
|
1847
|
-
...(input.samlOptions != null && {
|
|
1848
|
-
samlOptions: serializeAws_json1_0SamlConfigOptions(input.samlOptions, context),
|
|
1849
|
-
}),
|
|
1841
|
+
...(input.samlOptions != null && { samlOptions: se_SamlConfigOptions(input.samlOptions, context) }),
|
|
1850
1842
|
};
|
|
1851
1843
|
};
|
|
1852
|
-
const
|
|
1844
|
+
const se_UpdateSecurityPolicyRequest = (input, context) => {
|
|
1853
1845
|
return {
|
|
1854
1846
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
1855
1847
|
...(input.description != null && { description: input.description }),
|
|
@@ -1859,62 +1851,60 @@ const serializeAws_json1_0UpdateSecurityPolicyRequest = (input, context) => {
|
|
|
1859
1851
|
...(input.type != null && { type: input.type }),
|
|
1860
1852
|
};
|
|
1861
1853
|
};
|
|
1862
|
-
const
|
|
1854
|
+
const se_UpdateVpcEndpointRequest = (input, context) => {
|
|
1863
1855
|
return {
|
|
1864
1856
|
...(input.addSecurityGroupIds != null && {
|
|
1865
|
-
addSecurityGroupIds:
|
|
1857
|
+
addSecurityGroupIds: se_SecurityGroupIds(input.addSecurityGroupIds, context),
|
|
1866
1858
|
}),
|
|
1867
|
-
...(input.addSubnetIds != null && { addSubnetIds:
|
|
1859
|
+
...(input.addSubnetIds != null && { addSubnetIds: se_SubnetIds(input.addSubnetIds, context) }),
|
|
1868
1860
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
1869
1861
|
...(input.id != null && { id: input.id }),
|
|
1870
1862
|
...(input.removeSecurityGroupIds != null && {
|
|
1871
|
-
removeSecurityGroupIds:
|
|
1872
|
-
}),
|
|
1873
|
-
...(input.removeSubnetIds != null && {
|
|
1874
|
-
removeSubnetIds: serializeAws_json1_0SubnetIds(input.removeSubnetIds, context),
|
|
1863
|
+
removeSecurityGroupIds: se_SecurityGroupIds(input.removeSecurityGroupIds, context),
|
|
1875
1864
|
}),
|
|
1865
|
+
...(input.removeSubnetIds != null && { removeSubnetIds: se_SubnetIds(input.removeSubnetIds, context) }),
|
|
1876
1866
|
};
|
|
1877
1867
|
};
|
|
1878
|
-
const
|
|
1868
|
+
const se_VpcEndpointFilters = (input, context) => {
|
|
1879
1869
|
return {
|
|
1880
1870
|
...(input.status != null && { status: input.status }),
|
|
1881
1871
|
};
|
|
1882
1872
|
};
|
|
1883
|
-
const
|
|
1873
|
+
const se_VpcEndpointIds = (input, context) => {
|
|
1884
1874
|
return input
|
|
1885
1875
|
.filter((e) => e != null)
|
|
1886
1876
|
.map((entry) => {
|
|
1887
1877
|
return entry;
|
|
1888
1878
|
});
|
|
1889
1879
|
};
|
|
1890
|
-
const
|
|
1880
|
+
const de_AccessPolicyDetail = (output, context) => {
|
|
1891
1881
|
return {
|
|
1892
1882
|
createdDate: __expectLong(output.createdDate),
|
|
1893
1883
|
description: __expectString(output.description),
|
|
1894
1884
|
lastModifiedDate: __expectLong(output.lastModifiedDate),
|
|
1895
1885
|
name: __expectString(output.name),
|
|
1896
|
-
policy: output.policy != null ?
|
|
1886
|
+
policy: output.policy != null ? de_Document(output.policy, context) : undefined,
|
|
1897
1887
|
policyVersion: __expectString(output.policyVersion),
|
|
1898
1888
|
type: __expectString(output.type),
|
|
1899
1889
|
};
|
|
1900
1890
|
};
|
|
1901
|
-
const
|
|
1891
|
+
const de_AccessPolicyStats = (output, context) => {
|
|
1902
1892
|
return {
|
|
1903
1893
|
DataPolicyCount: __expectLong(output.DataPolicyCount),
|
|
1904
1894
|
};
|
|
1905
1895
|
};
|
|
1906
|
-
const
|
|
1896
|
+
const de_AccessPolicySummaries = (output, context) => {
|
|
1907
1897
|
const retVal = (output || [])
|
|
1908
1898
|
.filter((e) => e != null)
|
|
1909
1899
|
.map((entry) => {
|
|
1910
1900
|
if (entry === null) {
|
|
1911
1901
|
return null;
|
|
1912
1902
|
}
|
|
1913
|
-
return
|
|
1903
|
+
return de_AccessPolicySummary(entry, context);
|
|
1914
1904
|
});
|
|
1915
1905
|
return retVal;
|
|
1916
1906
|
};
|
|
1917
|
-
const
|
|
1907
|
+
const de_AccessPolicySummary = (output, context) => {
|
|
1918
1908
|
return {
|
|
1919
1909
|
createdDate: __expectLong(output.createdDate),
|
|
1920
1910
|
description: __expectString(output.description),
|
|
@@ -1924,38 +1914,34 @@ const deserializeAws_json1_0AccessPolicySummary = (output, context) => {
|
|
|
1924
1914
|
type: __expectString(output.type),
|
|
1925
1915
|
};
|
|
1926
1916
|
};
|
|
1927
|
-
const
|
|
1917
|
+
const de_AccountSettingsDetail = (output, context) => {
|
|
1928
1918
|
return {
|
|
1929
|
-
capacityLimits: output.capacityLimits != null ?
|
|
1919
|
+
capacityLimits: output.capacityLimits != null ? de_CapacityLimits(output.capacityLimits, context) : undefined,
|
|
1930
1920
|
};
|
|
1931
1921
|
};
|
|
1932
|
-
const
|
|
1922
|
+
const de_BatchGetCollectionResponse = (output, context) => {
|
|
1933
1923
|
return {
|
|
1934
|
-
collectionDetails: output.collectionDetails != null
|
|
1935
|
-
? deserializeAws_json1_0CollectionDetails(output.collectionDetails, context)
|
|
1936
|
-
: undefined,
|
|
1924
|
+
collectionDetails: output.collectionDetails != null ? de_CollectionDetails(output.collectionDetails, context) : undefined,
|
|
1937
1925
|
collectionErrorDetails: output.collectionErrorDetails != null
|
|
1938
|
-
?
|
|
1926
|
+
? de_CollectionErrorDetails(output.collectionErrorDetails, context)
|
|
1939
1927
|
: undefined,
|
|
1940
1928
|
};
|
|
1941
1929
|
};
|
|
1942
|
-
const
|
|
1930
|
+
const de_BatchGetVpcEndpointResponse = (output, context) => {
|
|
1943
1931
|
return {
|
|
1944
|
-
vpcEndpointDetails: output.vpcEndpointDetails != null
|
|
1945
|
-
? deserializeAws_json1_0VpcEndpointDetails(output.vpcEndpointDetails, context)
|
|
1946
|
-
: undefined,
|
|
1932
|
+
vpcEndpointDetails: output.vpcEndpointDetails != null ? de_VpcEndpointDetails(output.vpcEndpointDetails, context) : undefined,
|
|
1947
1933
|
vpcEndpointErrorDetails: output.vpcEndpointErrorDetails != null
|
|
1948
|
-
?
|
|
1934
|
+
? de_VpcEndpointErrorDetails(output.vpcEndpointErrorDetails, context)
|
|
1949
1935
|
: undefined,
|
|
1950
1936
|
};
|
|
1951
1937
|
};
|
|
1952
|
-
const
|
|
1938
|
+
const de_CapacityLimits = (output, context) => {
|
|
1953
1939
|
return {
|
|
1954
1940
|
maxIndexingCapacityInOCU: __expectInt32(output.maxIndexingCapacityInOCU),
|
|
1955
1941
|
maxSearchCapacityInOCU: __expectInt32(output.maxSearchCapacityInOCU),
|
|
1956
1942
|
};
|
|
1957
1943
|
};
|
|
1958
|
-
const
|
|
1944
|
+
const de_CollectionDetail = (output, context) => {
|
|
1959
1945
|
return {
|
|
1960
1946
|
arn: __expectString(output.arn),
|
|
1961
1947
|
collectionEndpoint: __expectString(output.collectionEndpoint),
|
|
@@ -1970,18 +1956,18 @@ const deserializeAws_json1_0CollectionDetail = (output, context) => {
|
|
|
1970
1956
|
type: __expectString(output.type),
|
|
1971
1957
|
};
|
|
1972
1958
|
};
|
|
1973
|
-
const
|
|
1959
|
+
const de_CollectionDetails = (output, context) => {
|
|
1974
1960
|
const retVal = (output || [])
|
|
1975
1961
|
.filter((e) => e != null)
|
|
1976
1962
|
.map((entry) => {
|
|
1977
1963
|
if (entry === null) {
|
|
1978
1964
|
return null;
|
|
1979
1965
|
}
|
|
1980
|
-
return
|
|
1966
|
+
return de_CollectionDetail(entry, context);
|
|
1981
1967
|
});
|
|
1982
1968
|
return retVal;
|
|
1983
1969
|
};
|
|
1984
|
-
const
|
|
1970
|
+
const de_CollectionErrorDetail = (output, context) => {
|
|
1985
1971
|
return {
|
|
1986
1972
|
errorCode: __expectString(output.errorCode),
|
|
1987
1973
|
errorMessage: __expectString(output.errorMessage),
|
|
@@ -1989,29 +1975,29 @@ const deserializeAws_json1_0CollectionErrorDetail = (output, context) => {
|
|
|
1989
1975
|
name: __expectString(output.name),
|
|
1990
1976
|
};
|
|
1991
1977
|
};
|
|
1992
|
-
const
|
|
1978
|
+
const de_CollectionErrorDetails = (output, context) => {
|
|
1993
1979
|
const retVal = (output || [])
|
|
1994
1980
|
.filter((e) => e != null)
|
|
1995
1981
|
.map((entry) => {
|
|
1996
1982
|
if (entry === null) {
|
|
1997
1983
|
return null;
|
|
1998
1984
|
}
|
|
1999
|
-
return
|
|
1985
|
+
return de_CollectionErrorDetail(entry, context);
|
|
2000
1986
|
});
|
|
2001
1987
|
return retVal;
|
|
2002
1988
|
};
|
|
2003
|
-
const
|
|
1989
|
+
const de_CollectionSummaries = (output, context) => {
|
|
2004
1990
|
const retVal = (output || [])
|
|
2005
1991
|
.filter((e) => e != null)
|
|
2006
1992
|
.map((entry) => {
|
|
2007
1993
|
if (entry === null) {
|
|
2008
1994
|
return null;
|
|
2009
1995
|
}
|
|
2010
|
-
return
|
|
1996
|
+
return de_CollectionSummary(entry, context);
|
|
2011
1997
|
});
|
|
2012
1998
|
return retVal;
|
|
2013
1999
|
};
|
|
2014
|
-
const
|
|
2000
|
+
const de_CollectionSummary = (output, context) => {
|
|
2015
2001
|
return {
|
|
2016
2002
|
arn: __expectString(output.arn),
|
|
2017
2003
|
id: __expectString(output.id),
|
|
@@ -2019,19 +2005,17 @@ const deserializeAws_json1_0CollectionSummary = (output, context) => {
|
|
|
2019
2005
|
status: __expectString(output.status),
|
|
2020
2006
|
};
|
|
2021
2007
|
};
|
|
2022
|
-
const
|
|
2008
|
+
const de_ConflictException = (output, context) => {
|
|
2023
2009
|
return {
|
|
2024
2010
|
message: __expectString(output.message),
|
|
2025
2011
|
};
|
|
2026
2012
|
};
|
|
2027
|
-
const
|
|
2013
|
+
const de_CreateAccessPolicyResponse = (output, context) => {
|
|
2028
2014
|
return {
|
|
2029
|
-
accessPolicyDetail: output.accessPolicyDetail != null
|
|
2030
|
-
? deserializeAws_json1_0AccessPolicyDetail(output.accessPolicyDetail, context)
|
|
2031
|
-
: undefined,
|
|
2015
|
+
accessPolicyDetail: output.accessPolicyDetail != null ? de_AccessPolicyDetail(output.accessPolicyDetail, context) : undefined,
|
|
2032
2016
|
};
|
|
2033
2017
|
};
|
|
2034
|
-
const
|
|
2018
|
+
const de_CreateCollectionDetail = (output, context) => {
|
|
2035
2019
|
return {
|
|
2036
2020
|
arn: __expectString(output.arn),
|
|
2037
2021
|
createdDate: __expectLong(output.createdDate),
|
|
@@ -2044,181 +2028,161 @@ const deserializeAws_json1_0CreateCollectionDetail = (output, context) => {
|
|
|
2044
2028
|
type: __expectString(output.type),
|
|
2045
2029
|
};
|
|
2046
2030
|
};
|
|
2047
|
-
const
|
|
2031
|
+
const de_CreateCollectionResponse = (output, context) => {
|
|
2048
2032
|
return {
|
|
2049
2033
|
createCollectionDetail: output.createCollectionDetail != null
|
|
2050
|
-
?
|
|
2034
|
+
? de_CreateCollectionDetail(output.createCollectionDetail, context)
|
|
2051
2035
|
: undefined,
|
|
2052
2036
|
};
|
|
2053
2037
|
};
|
|
2054
|
-
const
|
|
2038
|
+
const de_CreateSecurityConfigResponse = (output, context) => {
|
|
2055
2039
|
return {
|
|
2056
|
-
securityConfigDetail: output.securityConfigDetail != null
|
|
2057
|
-
? deserializeAws_json1_0SecurityConfigDetail(output.securityConfigDetail, context)
|
|
2058
|
-
: undefined,
|
|
2040
|
+
securityConfigDetail: output.securityConfigDetail != null ? de_SecurityConfigDetail(output.securityConfigDetail, context) : undefined,
|
|
2059
2041
|
};
|
|
2060
2042
|
};
|
|
2061
|
-
const
|
|
2043
|
+
const de_CreateSecurityPolicyResponse = (output, context) => {
|
|
2062
2044
|
return {
|
|
2063
|
-
securityPolicyDetail: output.securityPolicyDetail != null
|
|
2064
|
-
? deserializeAws_json1_0SecurityPolicyDetail(output.securityPolicyDetail, context)
|
|
2065
|
-
: undefined,
|
|
2045
|
+
securityPolicyDetail: output.securityPolicyDetail != null ? de_SecurityPolicyDetail(output.securityPolicyDetail, context) : undefined,
|
|
2066
2046
|
};
|
|
2067
2047
|
};
|
|
2068
|
-
const
|
|
2048
|
+
const de_CreateVpcEndpointDetail = (output, context) => {
|
|
2069
2049
|
return {
|
|
2070
2050
|
id: __expectString(output.id),
|
|
2071
2051
|
name: __expectString(output.name),
|
|
2072
2052
|
status: __expectString(output.status),
|
|
2073
2053
|
};
|
|
2074
2054
|
};
|
|
2075
|
-
const
|
|
2055
|
+
const de_CreateVpcEndpointResponse = (output, context) => {
|
|
2076
2056
|
return {
|
|
2077
2057
|
createVpcEndpointDetail: output.createVpcEndpointDetail != null
|
|
2078
|
-
?
|
|
2058
|
+
? de_CreateVpcEndpointDetail(output.createVpcEndpointDetail, context)
|
|
2079
2059
|
: undefined,
|
|
2080
2060
|
};
|
|
2081
2061
|
};
|
|
2082
|
-
const
|
|
2062
|
+
const de_DeleteAccessPolicyResponse = (output, context) => {
|
|
2083
2063
|
return {};
|
|
2084
2064
|
};
|
|
2085
|
-
const
|
|
2065
|
+
const de_DeleteCollectionDetail = (output, context) => {
|
|
2086
2066
|
return {
|
|
2087
2067
|
id: __expectString(output.id),
|
|
2088
2068
|
name: __expectString(output.name),
|
|
2089
2069
|
status: __expectString(output.status),
|
|
2090
2070
|
};
|
|
2091
2071
|
};
|
|
2092
|
-
const
|
|
2072
|
+
const de_DeleteCollectionResponse = (output, context) => {
|
|
2093
2073
|
return {
|
|
2094
2074
|
deleteCollectionDetail: output.deleteCollectionDetail != null
|
|
2095
|
-
?
|
|
2075
|
+
? de_DeleteCollectionDetail(output.deleteCollectionDetail, context)
|
|
2096
2076
|
: undefined,
|
|
2097
2077
|
};
|
|
2098
2078
|
};
|
|
2099
|
-
const
|
|
2079
|
+
const de_DeleteSecurityConfigResponse = (output, context) => {
|
|
2100
2080
|
return {};
|
|
2101
2081
|
};
|
|
2102
|
-
const
|
|
2082
|
+
const de_DeleteSecurityPolicyResponse = (output, context) => {
|
|
2103
2083
|
return {};
|
|
2104
2084
|
};
|
|
2105
|
-
const
|
|
2085
|
+
const de_DeleteVpcEndpointDetail = (output, context) => {
|
|
2106
2086
|
return {
|
|
2107
2087
|
id: __expectString(output.id),
|
|
2108
2088
|
name: __expectString(output.name),
|
|
2109
2089
|
status: __expectString(output.status),
|
|
2110
2090
|
};
|
|
2111
2091
|
};
|
|
2112
|
-
const
|
|
2092
|
+
const de_DeleteVpcEndpointResponse = (output, context) => {
|
|
2113
2093
|
return {
|
|
2114
2094
|
deleteVpcEndpointDetail: output.deleteVpcEndpointDetail != null
|
|
2115
|
-
?
|
|
2095
|
+
? de_DeleteVpcEndpointDetail(output.deleteVpcEndpointDetail, context)
|
|
2116
2096
|
: undefined,
|
|
2117
2097
|
};
|
|
2118
2098
|
};
|
|
2119
|
-
const
|
|
2099
|
+
const de_GetAccessPolicyResponse = (output, context) => {
|
|
2120
2100
|
return {
|
|
2121
|
-
accessPolicyDetail: output.accessPolicyDetail != null
|
|
2122
|
-
? deserializeAws_json1_0AccessPolicyDetail(output.accessPolicyDetail, context)
|
|
2123
|
-
: undefined,
|
|
2101
|
+
accessPolicyDetail: output.accessPolicyDetail != null ? de_AccessPolicyDetail(output.accessPolicyDetail, context) : undefined,
|
|
2124
2102
|
};
|
|
2125
2103
|
};
|
|
2126
|
-
const
|
|
2104
|
+
const de_GetAccountSettingsResponse = (output, context) => {
|
|
2127
2105
|
return {
|
|
2128
2106
|
accountSettingsDetail: output.accountSettingsDetail != null
|
|
2129
|
-
?
|
|
2107
|
+
? de_AccountSettingsDetail(output.accountSettingsDetail, context)
|
|
2130
2108
|
: undefined,
|
|
2131
2109
|
};
|
|
2132
2110
|
};
|
|
2133
|
-
const
|
|
2111
|
+
const de_GetPoliciesStatsResponse = (output, context) => {
|
|
2134
2112
|
return {
|
|
2135
|
-
AccessPolicyStats: output.AccessPolicyStats != null
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
SecurityConfigStats: output.SecurityConfigStats != null
|
|
2139
|
-
? deserializeAws_json1_0SecurityConfigStats(output.SecurityConfigStats, context)
|
|
2140
|
-
: undefined,
|
|
2141
|
-
SecurityPolicyStats: output.SecurityPolicyStats != null
|
|
2142
|
-
? deserializeAws_json1_0SecurityPolicyStats(output.SecurityPolicyStats, context)
|
|
2143
|
-
: undefined,
|
|
2113
|
+
AccessPolicyStats: output.AccessPolicyStats != null ? de_AccessPolicyStats(output.AccessPolicyStats, context) : undefined,
|
|
2114
|
+
SecurityConfigStats: output.SecurityConfigStats != null ? de_SecurityConfigStats(output.SecurityConfigStats, context) : undefined,
|
|
2115
|
+
SecurityPolicyStats: output.SecurityPolicyStats != null ? de_SecurityPolicyStats(output.SecurityPolicyStats, context) : undefined,
|
|
2144
2116
|
TotalPolicyCount: __expectLong(output.TotalPolicyCount),
|
|
2145
2117
|
};
|
|
2146
2118
|
};
|
|
2147
|
-
const
|
|
2119
|
+
const de_GetSecurityConfigResponse = (output, context) => {
|
|
2148
2120
|
return {
|
|
2149
|
-
securityConfigDetail: output.securityConfigDetail != null
|
|
2150
|
-
? deserializeAws_json1_0SecurityConfigDetail(output.securityConfigDetail, context)
|
|
2151
|
-
: undefined,
|
|
2121
|
+
securityConfigDetail: output.securityConfigDetail != null ? de_SecurityConfigDetail(output.securityConfigDetail, context) : undefined,
|
|
2152
2122
|
};
|
|
2153
2123
|
};
|
|
2154
|
-
const
|
|
2124
|
+
const de_GetSecurityPolicyResponse = (output, context) => {
|
|
2155
2125
|
return {
|
|
2156
|
-
securityPolicyDetail: output.securityPolicyDetail != null
|
|
2157
|
-
? deserializeAws_json1_0SecurityPolicyDetail(output.securityPolicyDetail, context)
|
|
2158
|
-
: undefined,
|
|
2126
|
+
securityPolicyDetail: output.securityPolicyDetail != null ? de_SecurityPolicyDetail(output.securityPolicyDetail, context) : undefined,
|
|
2159
2127
|
};
|
|
2160
2128
|
};
|
|
2161
|
-
const
|
|
2129
|
+
const de_InternalServerException = (output, context) => {
|
|
2162
2130
|
return {
|
|
2163
2131
|
message: __expectString(output.message),
|
|
2164
2132
|
};
|
|
2165
2133
|
};
|
|
2166
|
-
const
|
|
2134
|
+
const de_ListAccessPoliciesResponse = (output, context) => {
|
|
2167
2135
|
return {
|
|
2168
2136
|
accessPolicySummaries: output.accessPolicySummaries != null
|
|
2169
|
-
?
|
|
2137
|
+
? de_AccessPolicySummaries(output.accessPolicySummaries, context)
|
|
2170
2138
|
: undefined,
|
|
2171
2139
|
nextToken: __expectString(output.nextToken),
|
|
2172
2140
|
};
|
|
2173
2141
|
};
|
|
2174
|
-
const
|
|
2142
|
+
const de_ListCollectionsResponse = (output, context) => {
|
|
2175
2143
|
return {
|
|
2176
|
-
collectionSummaries: output.collectionSummaries != null
|
|
2177
|
-
? deserializeAws_json1_0CollectionSummaries(output.collectionSummaries, context)
|
|
2178
|
-
: undefined,
|
|
2144
|
+
collectionSummaries: output.collectionSummaries != null ? de_CollectionSummaries(output.collectionSummaries, context) : undefined,
|
|
2179
2145
|
nextToken: __expectString(output.nextToken),
|
|
2180
2146
|
};
|
|
2181
2147
|
};
|
|
2182
|
-
const
|
|
2148
|
+
const de_ListSecurityConfigsResponse = (output, context) => {
|
|
2183
2149
|
return {
|
|
2184
2150
|
nextToken: __expectString(output.nextToken),
|
|
2185
2151
|
securityConfigSummaries: output.securityConfigSummaries != null
|
|
2186
|
-
?
|
|
2152
|
+
? de_SecurityConfigSummaries(output.securityConfigSummaries, context)
|
|
2187
2153
|
: undefined,
|
|
2188
2154
|
};
|
|
2189
2155
|
};
|
|
2190
|
-
const
|
|
2156
|
+
const de_ListSecurityPoliciesResponse = (output, context) => {
|
|
2191
2157
|
return {
|
|
2192
2158
|
nextToken: __expectString(output.nextToken),
|
|
2193
2159
|
securityPolicySummaries: output.securityPolicySummaries != null
|
|
2194
|
-
?
|
|
2160
|
+
? de_SecurityPolicySummaries(output.securityPolicySummaries, context)
|
|
2195
2161
|
: undefined,
|
|
2196
2162
|
};
|
|
2197
2163
|
};
|
|
2198
|
-
const
|
|
2164
|
+
const de_ListTagsForResourceResponse = (output, context) => {
|
|
2199
2165
|
return {
|
|
2200
|
-
tags: output.tags != null ?
|
|
2166
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2201
2167
|
};
|
|
2202
2168
|
};
|
|
2203
|
-
const
|
|
2169
|
+
const de_ListVpcEndpointsResponse = (output, context) => {
|
|
2204
2170
|
return {
|
|
2205
2171
|
nextToken: __expectString(output.nextToken),
|
|
2206
|
-
vpcEndpointSummaries: output.vpcEndpointSummaries != null
|
|
2207
|
-
? deserializeAws_json1_0VpcEndpointSummaries(output.vpcEndpointSummaries, context)
|
|
2208
|
-
: undefined,
|
|
2172
|
+
vpcEndpointSummaries: output.vpcEndpointSummaries != null ? de_VpcEndpointSummaries(output.vpcEndpointSummaries, context) : undefined,
|
|
2209
2173
|
};
|
|
2210
2174
|
};
|
|
2211
|
-
const
|
|
2175
|
+
const de_OcuLimitExceededException = (output, context) => {
|
|
2212
2176
|
return {
|
|
2213
2177
|
message: __expectString(output.message),
|
|
2214
2178
|
};
|
|
2215
2179
|
};
|
|
2216
|
-
const
|
|
2180
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
2217
2181
|
return {
|
|
2218
2182
|
message: __expectString(output.message),
|
|
2219
2183
|
};
|
|
2220
2184
|
};
|
|
2221
|
-
const
|
|
2185
|
+
const de_SamlConfigOptions = (output, context) => {
|
|
2222
2186
|
return {
|
|
2223
2187
|
groupAttribute: __expectString(output.groupAttribute),
|
|
2224
2188
|
metadata: __expectString(output.metadata),
|
|
@@ -2226,34 +2190,34 @@ const deserializeAws_json1_0SamlConfigOptions = (output, context) => {
|
|
|
2226
2190
|
userAttribute: __expectString(output.userAttribute),
|
|
2227
2191
|
};
|
|
2228
2192
|
};
|
|
2229
|
-
const
|
|
2193
|
+
const de_SecurityConfigDetail = (output, context) => {
|
|
2230
2194
|
return {
|
|
2231
2195
|
configVersion: __expectString(output.configVersion),
|
|
2232
2196
|
createdDate: __expectLong(output.createdDate),
|
|
2233
2197
|
description: __expectString(output.description),
|
|
2234
2198
|
id: __expectString(output.id),
|
|
2235
2199
|
lastModifiedDate: __expectLong(output.lastModifiedDate),
|
|
2236
|
-
samlOptions: output.samlOptions != null ?
|
|
2200
|
+
samlOptions: output.samlOptions != null ? de_SamlConfigOptions(output.samlOptions, context) : undefined,
|
|
2237
2201
|
type: __expectString(output.type),
|
|
2238
2202
|
};
|
|
2239
2203
|
};
|
|
2240
|
-
const
|
|
2204
|
+
const de_SecurityConfigStats = (output, context) => {
|
|
2241
2205
|
return {
|
|
2242
2206
|
SamlConfigCount: __expectLong(output.SamlConfigCount),
|
|
2243
2207
|
};
|
|
2244
2208
|
};
|
|
2245
|
-
const
|
|
2209
|
+
const de_SecurityConfigSummaries = (output, context) => {
|
|
2246
2210
|
const retVal = (output || [])
|
|
2247
2211
|
.filter((e) => e != null)
|
|
2248
2212
|
.map((entry) => {
|
|
2249
2213
|
if (entry === null) {
|
|
2250
2214
|
return null;
|
|
2251
2215
|
}
|
|
2252
|
-
return
|
|
2216
|
+
return de_SecurityConfigSummary(entry, context);
|
|
2253
2217
|
});
|
|
2254
2218
|
return retVal;
|
|
2255
2219
|
};
|
|
2256
|
-
const
|
|
2220
|
+
const de_SecurityConfigSummary = (output, context) => {
|
|
2257
2221
|
return {
|
|
2258
2222
|
configVersion: __expectString(output.configVersion),
|
|
2259
2223
|
createdDate: __expectLong(output.createdDate),
|
|
@@ -2263,7 +2227,7 @@ const deserializeAws_json1_0SecurityConfigSummary = (output, context) => {
|
|
|
2263
2227
|
type: __expectString(output.type),
|
|
2264
2228
|
};
|
|
2265
2229
|
};
|
|
2266
|
-
const
|
|
2230
|
+
const de_SecurityGroupIds = (output, context) => {
|
|
2267
2231
|
const retVal = (output || [])
|
|
2268
2232
|
.filter((e) => e != null)
|
|
2269
2233
|
.map((entry) => {
|
|
@@ -2274,35 +2238,35 @@ const deserializeAws_json1_0SecurityGroupIds = (output, context) => {
|
|
|
2274
2238
|
});
|
|
2275
2239
|
return retVal;
|
|
2276
2240
|
};
|
|
2277
|
-
const
|
|
2241
|
+
const de_SecurityPolicyDetail = (output, context) => {
|
|
2278
2242
|
return {
|
|
2279
2243
|
createdDate: __expectLong(output.createdDate),
|
|
2280
2244
|
description: __expectString(output.description),
|
|
2281
2245
|
lastModifiedDate: __expectLong(output.lastModifiedDate),
|
|
2282
2246
|
name: __expectString(output.name),
|
|
2283
|
-
policy: output.policy != null ?
|
|
2247
|
+
policy: output.policy != null ? de_Document(output.policy, context) : undefined,
|
|
2284
2248
|
policyVersion: __expectString(output.policyVersion),
|
|
2285
2249
|
type: __expectString(output.type),
|
|
2286
2250
|
};
|
|
2287
2251
|
};
|
|
2288
|
-
const
|
|
2252
|
+
const de_SecurityPolicyStats = (output, context) => {
|
|
2289
2253
|
return {
|
|
2290
2254
|
EncryptionPolicyCount: __expectLong(output.EncryptionPolicyCount),
|
|
2291
2255
|
NetworkPolicyCount: __expectLong(output.NetworkPolicyCount),
|
|
2292
2256
|
};
|
|
2293
2257
|
};
|
|
2294
|
-
const
|
|
2258
|
+
const de_SecurityPolicySummaries = (output, context) => {
|
|
2295
2259
|
const retVal = (output || [])
|
|
2296
2260
|
.filter((e) => e != null)
|
|
2297
2261
|
.map((entry) => {
|
|
2298
2262
|
if (entry === null) {
|
|
2299
2263
|
return null;
|
|
2300
2264
|
}
|
|
2301
|
-
return
|
|
2265
|
+
return de_SecurityPolicySummary(entry, context);
|
|
2302
2266
|
});
|
|
2303
2267
|
return retVal;
|
|
2304
2268
|
};
|
|
2305
|
-
const
|
|
2269
|
+
const de_SecurityPolicySummary = (output, context) => {
|
|
2306
2270
|
return {
|
|
2307
2271
|
createdDate: __expectLong(output.createdDate),
|
|
2308
2272
|
description: __expectString(output.description),
|
|
@@ -2312,7 +2276,7 @@ const deserializeAws_json1_0SecurityPolicySummary = (output, context) => {
|
|
|
2312
2276
|
type: __expectString(output.type),
|
|
2313
2277
|
};
|
|
2314
2278
|
};
|
|
2315
|
-
const
|
|
2279
|
+
const de_ServiceQuotaExceededException = (output, context) => {
|
|
2316
2280
|
return {
|
|
2317
2281
|
message: __expectString(output.message),
|
|
2318
2282
|
quotaCode: __expectString(output.quotaCode),
|
|
@@ -2321,7 +2285,7 @@ const deserializeAws_json1_0ServiceQuotaExceededException = (output, context) =>
|
|
|
2321
2285
|
serviceCode: __expectString(output.serviceCode),
|
|
2322
2286
|
};
|
|
2323
2287
|
};
|
|
2324
|
-
const
|
|
2288
|
+
const de_SubnetIds = (output, context) => {
|
|
2325
2289
|
const retVal = (output || [])
|
|
2326
2290
|
.filter((e) => e != null)
|
|
2327
2291
|
.map((entry) => {
|
|
@@ -2332,44 +2296,42 @@ const deserializeAws_json1_0SubnetIds = (output, context) => {
|
|
|
2332
2296
|
});
|
|
2333
2297
|
return retVal;
|
|
2334
2298
|
};
|
|
2335
|
-
const
|
|
2299
|
+
const de_Tag = (output, context) => {
|
|
2336
2300
|
return {
|
|
2337
2301
|
key: __expectString(output.key),
|
|
2338
2302
|
value: __expectString(output.value),
|
|
2339
2303
|
};
|
|
2340
2304
|
};
|
|
2341
|
-
const
|
|
2305
|
+
const de_TagResourceResponse = (output, context) => {
|
|
2342
2306
|
return {};
|
|
2343
2307
|
};
|
|
2344
|
-
const
|
|
2308
|
+
const de_Tags = (output, context) => {
|
|
2345
2309
|
const retVal = (output || [])
|
|
2346
2310
|
.filter((e) => e != null)
|
|
2347
2311
|
.map((entry) => {
|
|
2348
2312
|
if (entry === null) {
|
|
2349
2313
|
return null;
|
|
2350
2314
|
}
|
|
2351
|
-
return
|
|
2315
|
+
return de_Tag(entry, context);
|
|
2352
2316
|
});
|
|
2353
2317
|
return retVal;
|
|
2354
2318
|
};
|
|
2355
|
-
const
|
|
2319
|
+
const de_UntagResourceResponse = (output, context) => {
|
|
2356
2320
|
return {};
|
|
2357
2321
|
};
|
|
2358
|
-
const
|
|
2322
|
+
const de_UpdateAccessPolicyResponse = (output, context) => {
|
|
2359
2323
|
return {
|
|
2360
|
-
accessPolicyDetail: output.accessPolicyDetail != null
|
|
2361
|
-
? deserializeAws_json1_0AccessPolicyDetail(output.accessPolicyDetail, context)
|
|
2362
|
-
: undefined,
|
|
2324
|
+
accessPolicyDetail: output.accessPolicyDetail != null ? de_AccessPolicyDetail(output.accessPolicyDetail, context) : undefined,
|
|
2363
2325
|
};
|
|
2364
2326
|
};
|
|
2365
|
-
const
|
|
2327
|
+
const de_UpdateAccountSettingsResponse = (output, context) => {
|
|
2366
2328
|
return {
|
|
2367
2329
|
accountSettingsDetail: output.accountSettingsDetail != null
|
|
2368
|
-
?
|
|
2330
|
+
? de_AccountSettingsDetail(output.accountSettingsDetail, context)
|
|
2369
2331
|
: undefined,
|
|
2370
2332
|
};
|
|
2371
2333
|
};
|
|
2372
|
-
const
|
|
2334
|
+
const de_UpdateCollectionDetail = (output, context) => {
|
|
2373
2335
|
return {
|
|
2374
2336
|
arn: __expectString(output.arn),
|
|
2375
2337
|
createdDate: __expectLong(output.createdDate),
|
|
@@ -2381,112 +2343,104 @@ const deserializeAws_json1_0UpdateCollectionDetail = (output, context) => {
|
|
|
2381
2343
|
type: __expectString(output.type),
|
|
2382
2344
|
};
|
|
2383
2345
|
};
|
|
2384
|
-
const
|
|
2346
|
+
const de_UpdateCollectionResponse = (output, context) => {
|
|
2385
2347
|
return {
|
|
2386
2348
|
updateCollectionDetail: output.updateCollectionDetail != null
|
|
2387
|
-
?
|
|
2349
|
+
? de_UpdateCollectionDetail(output.updateCollectionDetail, context)
|
|
2388
2350
|
: undefined,
|
|
2389
2351
|
};
|
|
2390
2352
|
};
|
|
2391
|
-
const
|
|
2353
|
+
const de_UpdateSecurityConfigResponse = (output, context) => {
|
|
2392
2354
|
return {
|
|
2393
|
-
securityConfigDetail: output.securityConfigDetail != null
|
|
2394
|
-
? deserializeAws_json1_0SecurityConfigDetail(output.securityConfigDetail, context)
|
|
2395
|
-
: undefined,
|
|
2355
|
+
securityConfigDetail: output.securityConfigDetail != null ? de_SecurityConfigDetail(output.securityConfigDetail, context) : undefined,
|
|
2396
2356
|
};
|
|
2397
2357
|
};
|
|
2398
|
-
const
|
|
2358
|
+
const de_UpdateSecurityPolicyResponse = (output, context) => {
|
|
2399
2359
|
return {
|
|
2400
|
-
securityPolicyDetail: output.securityPolicyDetail != null
|
|
2401
|
-
? deserializeAws_json1_0SecurityPolicyDetail(output.securityPolicyDetail, context)
|
|
2402
|
-
: undefined,
|
|
2360
|
+
securityPolicyDetail: output.securityPolicyDetail != null ? de_SecurityPolicyDetail(output.securityPolicyDetail, context) : undefined,
|
|
2403
2361
|
};
|
|
2404
2362
|
};
|
|
2405
|
-
const
|
|
2363
|
+
const de_UpdateVpcEndpointDetail = (output, context) => {
|
|
2406
2364
|
return {
|
|
2407
2365
|
id: __expectString(output.id),
|
|
2408
2366
|
lastModifiedDate: __expectLong(output.lastModifiedDate),
|
|
2409
2367
|
name: __expectString(output.name),
|
|
2410
|
-
securityGroupIds: output.securityGroupIds != null
|
|
2411
|
-
? deserializeAws_json1_0SecurityGroupIds(output.securityGroupIds, context)
|
|
2412
|
-
: undefined,
|
|
2368
|
+
securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIds(output.securityGroupIds, context) : undefined,
|
|
2413
2369
|
status: __expectString(output.status),
|
|
2414
|
-
subnetIds: output.subnetIds != null ?
|
|
2370
|
+
subnetIds: output.subnetIds != null ? de_SubnetIds(output.subnetIds, context) : undefined,
|
|
2415
2371
|
};
|
|
2416
2372
|
};
|
|
2417
|
-
const
|
|
2373
|
+
const de_UpdateVpcEndpointResponse = (output, context) => {
|
|
2418
2374
|
return {
|
|
2419
2375
|
UpdateVpcEndpointDetail: output.UpdateVpcEndpointDetail != null
|
|
2420
|
-
?
|
|
2376
|
+
? de_UpdateVpcEndpointDetail(output.UpdateVpcEndpointDetail, context)
|
|
2421
2377
|
: undefined,
|
|
2422
2378
|
};
|
|
2423
2379
|
};
|
|
2424
|
-
const
|
|
2380
|
+
const de_ValidationException = (output, context) => {
|
|
2425
2381
|
return {
|
|
2426
2382
|
message: __expectString(output.message),
|
|
2427
2383
|
};
|
|
2428
2384
|
};
|
|
2429
|
-
const
|
|
2385
|
+
const de_VpcEndpointDetail = (output, context) => {
|
|
2430
2386
|
return {
|
|
2431
2387
|
createdDate: __expectLong(output.createdDate),
|
|
2432
2388
|
id: __expectString(output.id),
|
|
2433
2389
|
name: __expectString(output.name),
|
|
2434
|
-
securityGroupIds: output.securityGroupIds != null
|
|
2435
|
-
? deserializeAws_json1_0SecurityGroupIds(output.securityGroupIds, context)
|
|
2436
|
-
: undefined,
|
|
2390
|
+
securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIds(output.securityGroupIds, context) : undefined,
|
|
2437
2391
|
status: __expectString(output.status),
|
|
2438
|
-
subnetIds: output.subnetIds != null ?
|
|
2392
|
+
subnetIds: output.subnetIds != null ? de_SubnetIds(output.subnetIds, context) : undefined,
|
|
2439
2393
|
vpcId: __expectString(output.vpcId),
|
|
2440
2394
|
};
|
|
2441
2395
|
};
|
|
2442
|
-
const
|
|
2396
|
+
const de_VpcEndpointDetails = (output, context) => {
|
|
2443
2397
|
const retVal = (output || [])
|
|
2444
2398
|
.filter((e) => e != null)
|
|
2445
2399
|
.map((entry) => {
|
|
2446
2400
|
if (entry === null) {
|
|
2447
2401
|
return null;
|
|
2448
2402
|
}
|
|
2449
|
-
return
|
|
2403
|
+
return de_VpcEndpointDetail(entry, context);
|
|
2450
2404
|
});
|
|
2451
2405
|
return retVal;
|
|
2452
2406
|
};
|
|
2453
|
-
const
|
|
2407
|
+
const de_VpcEndpointErrorDetail = (output, context) => {
|
|
2454
2408
|
return {
|
|
2455
2409
|
errorCode: __expectString(output.errorCode),
|
|
2456
2410
|
errorMessage: __expectString(output.errorMessage),
|
|
2457
2411
|
id: __expectString(output.id),
|
|
2458
2412
|
};
|
|
2459
2413
|
};
|
|
2460
|
-
const
|
|
2414
|
+
const de_VpcEndpointErrorDetails = (output, context) => {
|
|
2461
2415
|
const retVal = (output || [])
|
|
2462
2416
|
.filter((e) => e != null)
|
|
2463
2417
|
.map((entry) => {
|
|
2464
2418
|
if (entry === null) {
|
|
2465
2419
|
return null;
|
|
2466
2420
|
}
|
|
2467
|
-
return
|
|
2421
|
+
return de_VpcEndpointErrorDetail(entry, context);
|
|
2468
2422
|
});
|
|
2469
2423
|
return retVal;
|
|
2470
2424
|
};
|
|
2471
|
-
const
|
|
2425
|
+
const de_VpcEndpointSummaries = (output, context) => {
|
|
2472
2426
|
const retVal = (output || [])
|
|
2473
2427
|
.filter((e) => e != null)
|
|
2474
2428
|
.map((entry) => {
|
|
2475
2429
|
if (entry === null) {
|
|
2476
2430
|
return null;
|
|
2477
2431
|
}
|
|
2478
|
-
return
|
|
2432
|
+
return de_VpcEndpointSummary(entry, context);
|
|
2479
2433
|
});
|
|
2480
2434
|
return retVal;
|
|
2481
2435
|
};
|
|
2482
|
-
const
|
|
2436
|
+
const de_VpcEndpointSummary = (output, context) => {
|
|
2483
2437
|
return {
|
|
2484
2438
|
id: __expectString(output.id),
|
|
2485
2439
|
name: __expectString(output.name),
|
|
2486
2440
|
status: __expectString(output.status),
|
|
2487
2441
|
};
|
|
2488
2442
|
};
|
|
2489
|
-
const
|
|
2443
|
+
const de_Document = (output, context) => {
|
|
2490
2444
|
return output;
|
|
2491
2445
|
};
|
|
2492
2446
|
const deserializeMetadata = (output) => ({
|