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