@aws-sdk/client-finspace 3.474.0 → 3.477.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +311 -696
- package/dist-es/protocols/Aws_restJson1.js +312 -697
- package/package.json +5 -4
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_CreateEnvironmentCommand = exports.se_UpdateKxVolumeCommand = exports.se_UpdateKxUserCommand = exports.se_UpdateKxEnvironmentNetworkCommand = exports.se_UpdateKxEnvironmentCommand = exports.se_UpdateKxDataviewCommand = exports.se_UpdateKxDatabaseCommand = exports.se_UpdateKxClusterDatabasesCommand = exports.se_UpdateKxClusterCodeConfigurationCommand = exports.se_UpdateEnvironmentCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListKxVolumesCommand = exports.se_ListKxUsersCommand = exports.se_ListKxScalingGroupsCommand = exports.se_ListKxEnvironmentsCommand = exports.se_ListKxDataviewsCommand = exports.se_ListKxDatabasesCommand = exports.se_ListKxClustersCommand = exports.se_ListKxClusterNodesCommand = exports.se_ListKxChangesetsCommand = exports.se_ListEnvironmentsCommand = exports.se_GetKxVolumeCommand = exports.se_GetKxUserCommand = exports.se_GetKxScalingGroupCommand = exports.se_GetKxEnvironmentCommand = exports.se_GetKxDataviewCommand = exports.se_GetKxDatabaseCommand = exports.se_GetKxConnectionStringCommand = exports.se_GetKxClusterCommand = exports.se_GetKxChangesetCommand = exports.se_GetEnvironmentCommand = exports.se_DeleteKxVolumeCommand = exports.se_DeleteKxUserCommand = exports.se_DeleteKxScalingGroupCommand = exports.se_DeleteKxEnvironmentCommand = exports.se_DeleteKxDataviewCommand = exports.se_DeleteKxDatabaseCommand = exports.se_DeleteKxClusterCommand = exports.se_DeleteEnvironmentCommand = exports.se_CreateKxVolumeCommand = exports.se_CreateKxUserCommand = exports.se_CreateKxScalingGroupCommand = exports.se_CreateKxEnvironmentCommand = exports.se_CreateKxDataviewCommand = exports.se_CreateKxDatabaseCommand = exports.se_CreateKxClusterCommand = exports.se_CreateKxChangesetCommand = exports.se_CreateEnvironmentCommand = void 0;
|
|
4
4
|
exports.de_UpdateKxVolumeCommand = exports.de_UpdateKxUserCommand = exports.de_UpdateKxEnvironmentNetworkCommand = exports.de_UpdateKxEnvironmentCommand = exports.de_UpdateKxDataviewCommand = exports.de_UpdateKxDatabaseCommand = exports.de_UpdateKxClusterDatabasesCommand = exports.de_UpdateKxClusterCodeConfigurationCommand = exports.de_UpdateEnvironmentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListKxVolumesCommand = exports.de_ListKxUsersCommand = exports.de_ListKxScalingGroupsCommand = exports.de_ListKxEnvironmentsCommand = exports.de_ListKxDataviewsCommand = exports.de_ListKxDatabasesCommand = exports.de_ListKxClustersCommand = exports.de_ListKxClusterNodesCommand = exports.de_ListKxChangesetsCommand = exports.de_ListEnvironmentsCommand = exports.de_GetKxVolumeCommand = exports.de_GetKxUserCommand = exports.de_GetKxScalingGroupCommand = exports.de_GetKxEnvironmentCommand = exports.de_GetKxDataviewCommand = exports.de_GetKxDatabaseCommand = exports.de_GetKxConnectionStringCommand = exports.de_GetKxClusterCommand = exports.de_GetKxChangesetCommand = exports.de_GetEnvironmentCommand = exports.de_DeleteKxVolumeCommand = exports.de_DeleteKxUserCommand = exports.de_DeleteKxScalingGroupCommand = exports.de_DeleteKxEnvironmentCommand = exports.de_DeleteKxDataviewCommand = exports.de_DeleteKxDatabaseCommand = exports.de_DeleteKxClusterCommand = exports.de_DeleteEnvironmentCommand = exports.de_CreateKxVolumeCommand = exports.de_CreateKxUserCommand = exports.de_CreateKxScalingGroupCommand = exports.de_CreateKxEnvironmentCommand = exports.de_CreateKxDataviewCommand = exports.de_CreateKxDatabaseCommand = exports.de_CreateKxClusterCommand = exports.de_CreateKxChangesetCommand = void 0;
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
8
|
const FinspaceServiceException_1 = require("../models/FinspaceServiceException");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const se_CreateEnvironmentCommand = async (input, context) => {
|
|
11
|
-
const
|
|
11
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
12
12
|
const headers = {
|
|
13
13
|
"content-type": "application/json",
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
b.bp("/environment");
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
18
|
dataBundles: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -24,49 +24,34 @@ const se_CreateEnvironmentCommand = async (input, context) => {
|
|
|
24
24
|
superuserParameters: (_) => (0, smithy_client_1._json)(_),
|
|
25
25
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
26
26
|
}));
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
hostname,
|
|
30
|
-
port,
|
|
31
|
-
method: "POST",
|
|
32
|
-
headers,
|
|
33
|
-
path: resolvedPath,
|
|
34
|
-
body,
|
|
35
|
-
});
|
|
27
|
+
b.m("POST").h(headers).b(body);
|
|
28
|
+
return b.build();
|
|
36
29
|
};
|
|
37
30
|
exports.se_CreateEnvironmentCommand = se_CreateEnvironmentCommand;
|
|
38
31
|
const se_CreateKxChangesetCommand = async (input, context) => {
|
|
39
|
-
const
|
|
32
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
40
33
|
const headers = {
|
|
41
34
|
"content-type": "application/json",
|
|
42
35
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "databaseName", () => input.databaseName, "{databaseName}", false);
|
|
36
|
+
b.bp("/kx/environments/{environmentId}/databases/{databaseName}/changesets");
|
|
37
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
38
|
+
b.p("databaseName", () => input.databaseName, "{databaseName}", false);
|
|
47
39
|
let body;
|
|
48
40
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
49
41
|
changeRequests: (_) => (0, smithy_client_1._json)(_),
|
|
50
42
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
51
43
|
}));
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
hostname,
|
|
55
|
-
port,
|
|
56
|
-
method: "POST",
|
|
57
|
-
headers,
|
|
58
|
-
path: resolvedPath,
|
|
59
|
-
body,
|
|
60
|
-
});
|
|
44
|
+
b.m("POST").h(headers).b(body);
|
|
45
|
+
return b.build();
|
|
61
46
|
};
|
|
62
47
|
exports.se_CreateKxChangesetCommand = se_CreateKxChangesetCommand;
|
|
63
48
|
const se_CreateKxClusterCommand = async (input, context) => {
|
|
64
|
-
const
|
|
49
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
65
50
|
const headers = {
|
|
66
51
|
"content-type": "application/json",
|
|
67
52
|
};
|
|
68
|
-
|
|
69
|
-
|
|
53
|
+
b.bp("/kx/environments/{environmentId}/clusters");
|
|
54
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
70
55
|
let body;
|
|
71
56
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
72
57
|
autoScalingConfiguration: (_) => se_AutoScalingConfiguration(_, context),
|
|
@@ -90,25 +75,17 @@ const se_CreateKxClusterCommand = async (input, context) => {
|
|
|
90
75
|
tickerplantLogConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
91
76
|
vpcConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
92
77
|
}));
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
hostname,
|
|
96
|
-
port,
|
|
97
|
-
method: "POST",
|
|
98
|
-
headers,
|
|
99
|
-
path: resolvedPath,
|
|
100
|
-
body,
|
|
101
|
-
});
|
|
78
|
+
b.m("POST").h(headers).b(body);
|
|
79
|
+
return b.build();
|
|
102
80
|
};
|
|
103
81
|
exports.se_CreateKxClusterCommand = se_CreateKxClusterCommand;
|
|
104
82
|
const se_CreateKxDatabaseCommand = async (input, context) => {
|
|
105
|
-
const
|
|
83
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
106
84
|
const headers = {
|
|
107
85
|
"content-type": "application/json",
|
|
108
86
|
};
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
87
|
+
b.bp("/kx/environments/{environmentId}/databases");
|
|
88
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
112
89
|
let body;
|
|
113
90
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
114
91
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -116,26 +93,18 @@ const se_CreateKxDatabaseCommand = async (input, context) => {
|
|
|
116
93
|
description: [],
|
|
117
94
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
118
95
|
}));
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
hostname,
|
|
122
|
-
port,
|
|
123
|
-
method: "POST",
|
|
124
|
-
headers,
|
|
125
|
-
path: resolvedPath,
|
|
126
|
-
body,
|
|
127
|
-
});
|
|
96
|
+
b.m("POST").h(headers).b(body);
|
|
97
|
+
return b.build();
|
|
128
98
|
};
|
|
129
99
|
exports.se_CreateKxDatabaseCommand = se_CreateKxDatabaseCommand;
|
|
130
100
|
const se_CreateKxDataviewCommand = async (input, context) => {
|
|
131
|
-
const
|
|
101
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
132
102
|
const headers = {
|
|
133
103
|
"content-type": "application/json",
|
|
134
104
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "databaseName", () => input.databaseName, "{databaseName}", false);
|
|
105
|
+
b.bp("/kx/environments/{environmentId}/databases/{databaseName}/dataviews");
|
|
106
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
107
|
+
b.p("databaseName", () => input.databaseName, "{databaseName}", false);
|
|
139
108
|
let body;
|
|
140
109
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
141
110
|
autoUpdate: [],
|
|
@@ -148,23 +117,16 @@ const se_CreateKxDataviewCommand = async (input, context) => {
|
|
|
148
117
|
segmentConfigurations: (_) => (0, smithy_client_1._json)(_),
|
|
149
118
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
150
119
|
}));
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
hostname,
|
|
154
|
-
port,
|
|
155
|
-
method: "POST",
|
|
156
|
-
headers,
|
|
157
|
-
path: resolvedPath,
|
|
158
|
-
body,
|
|
159
|
-
});
|
|
120
|
+
b.m("POST").h(headers).b(body);
|
|
121
|
+
return b.build();
|
|
160
122
|
};
|
|
161
123
|
exports.se_CreateKxDataviewCommand = se_CreateKxDataviewCommand;
|
|
162
124
|
const se_CreateKxEnvironmentCommand = async (input, context) => {
|
|
163
|
-
const
|
|
125
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
164
126
|
const headers = {
|
|
165
127
|
"content-type": "application/json",
|
|
166
128
|
};
|
|
167
|
-
|
|
129
|
+
b.bp("/kx/environments");
|
|
168
130
|
let body;
|
|
169
131
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
170
132
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -173,25 +135,17 @@ const se_CreateKxEnvironmentCommand = async (input, context) => {
|
|
|
173
135
|
name: [],
|
|
174
136
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
175
137
|
}));
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
hostname,
|
|
179
|
-
port,
|
|
180
|
-
method: "POST",
|
|
181
|
-
headers,
|
|
182
|
-
path: resolvedPath,
|
|
183
|
-
body,
|
|
184
|
-
});
|
|
138
|
+
b.m("POST").h(headers).b(body);
|
|
139
|
+
return b.build();
|
|
185
140
|
};
|
|
186
141
|
exports.se_CreateKxEnvironmentCommand = se_CreateKxEnvironmentCommand;
|
|
187
142
|
const se_CreateKxScalingGroupCommand = async (input, context) => {
|
|
188
|
-
const
|
|
143
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
189
144
|
const headers = {
|
|
190
145
|
"content-type": "application/json",
|
|
191
146
|
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
147
|
+
b.bp("/kx/environments/{environmentId}/scalingGroups");
|
|
148
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
195
149
|
let body;
|
|
196
150
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
197
151
|
availabilityZoneId: [],
|
|
@@ -200,24 +154,17 @@ const se_CreateKxScalingGroupCommand = async (input, context) => {
|
|
|
200
154
|
scalingGroupName: [],
|
|
201
155
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
202
156
|
}));
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
hostname,
|
|
206
|
-
port,
|
|
207
|
-
method: "POST",
|
|
208
|
-
headers,
|
|
209
|
-
path: resolvedPath,
|
|
210
|
-
body,
|
|
211
|
-
});
|
|
157
|
+
b.m("POST").h(headers).b(body);
|
|
158
|
+
return b.build();
|
|
212
159
|
};
|
|
213
160
|
exports.se_CreateKxScalingGroupCommand = se_CreateKxScalingGroupCommand;
|
|
214
161
|
const se_CreateKxUserCommand = async (input, context) => {
|
|
215
|
-
const
|
|
162
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
216
163
|
const headers = {
|
|
217
164
|
"content-type": "application/json",
|
|
218
165
|
};
|
|
219
|
-
|
|
220
|
-
|
|
166
|
+
b.bp("/kx/environments/{environmentId}/users");
|
|
167
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
221
168
|
let body;
|
|
222
169
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
223
170
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -225,25 +172,17 @@ const se_CreateKxUserCommand = async (input, context) => {
|
|
|
225
172
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
226
173
|
userName: [],
|
|
227
174
|
}));
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
hostname,
|
|
231
|
-
port,
|
|
232
|
-
method: "POST",
|
|
233
|
-
headers,
|
|
234
|
-
path: resolvedPath,
|
|
235
|
-
body,
|
|
236
|
-
});
|
|
175
|
+
b.m("POST").h(headers).b(body);
|
|
176
|
+
return b.build();
|
|
237
177
|
};
|
|
238
178
|
exports.se_CreateKxUserCommand = se_CreateKxUserCommand;
|
|
239
179
|
const se_CreateKxVolumeCommand = async (input, context) => {
|
|
240
|
-
const
|
|
180
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
241
181
|
const headers = {
|
|
242
182
|
"content-type": "application/json",
|
|
243
183
|
};
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
184
|
+
b.bp("/kx/environments/{environmentId}/kxvolumes");
|
|
185
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
247
186
|
let body;
|
|
248
187
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
249
188
|
availabilityZoneIds: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -255,685 +194,422 @@ const se_CreateKxVolumeCommand = async (input, context) => {
|
|
|
255
194
|
volumeName: [],
|
|
256
195
|
volumeType: [],
|
|
257
196
|
}));
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
hostname,
|
|
261
|
-
port,
|
|
262
|
-
method: "POST",
|
|
263
|
-
headers,
|
|
264
|
-
path: resolvedPath,
|
|
265
|
-
body,
|
|
266
|
-
});
|
|
197
|
+
b.m("POST").h(headers).b(body);
|
|
198
|
+
return b.build();
|
|
267
199
|
};
|
|
268
200
|
exports.se_CreateKxVolumeCommand = se_CreateKxVolumeCommand;
|
|
269
201
|
const se_DeleteEnvironmentCommand = async (input, context) => {
|
|
270
|
-
const
|
|
202
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
271
203
|
const headers = {};
|
|
272
|
-
|
|
273
|
-
|
|
204
|
+
b.bp("/environment/{environmentId}");
|
|
205
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
274
206
|
let body;
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
hostname,
|
|
278
|
-
port,
|
|
279
|
-
method: "DELETE",
|
|
280
|
-
headers,
|
|
281
|
-
path: resolvedPath,
|
|
282
|
-
body,
|
|
283
|
-
});
|
|
207
|
+
b.m("DELETE").h(headers).b(body);
|
|
208
|
+
return b.build();
|
|
284
209
|
};
|
|
285
210
|
exports.se_DeleteEnvironmentCommand = se_DeleteEnvironmentCommand;
|
|
286
211
|
const se_DeleteKxClusterCommand = async (input, context) => {
|
|
287
|
-
const
|
|
212
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
288
213
|
const headers = {};
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
214
|
+
b.bp("/kx/environments/{environmentId}/clusters/{clusterName}");
|
|
215
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
216
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
293
217
|
const query = (0, smithy_client_1.map)({
|
|
294
|
-
|
|
218
|
+
[_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
|
|
295
219
|
});
|
|
296
220
|
let body;
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
hostname,
|
|
300
|
-
port,
|
|
301
|
-
method: "DELETE",
|
|
302
|
-
headers,
|
|
303
|
-
path: resolvedPath,
|
|
304
|
-
query,
|
|
305
|
-
body,
|
|
306
|
-
});
|
|
221
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
222
|
+
return b.build();
|
|
307
223
|
};
|
|
308
224
|
exports.se_DeleteKxClusterCommand = se_DeleteKxClusterCommand;
|
|
309
225
|
const se_DeleteKxDatabaseCommand = async (input, context) => {
|
|
310
|
-
const
|
|
226
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
311
227
|
const headers = {};
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "databaseName", () => input.databaseName, "{databaseName}", false);
|
|
228
|
+
b.bp("/kx/environments/{environmentId}/databases/{databaseName}");
|
|
229
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
230
|
+
b.p("databaseName", () => input.databaseName, "{databaseName}", false);
|
|
316
231
|
const query = (0, smithy_client_1.map)({
|
|
317
|
-
|
|
232
|
+
[_cT]: [, (0, smithy_client_1.expectNonNull)(input[_cT], `clientToken`)],
|
|
318
233
|
});
|
|
319
234
|
let body;
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
hostname,
|
|
323
|
-
port,
|
|
324
|
-
method: "DELETE",
|
|
325
|
-
headers,
|
|
326
|
-
path: resolvedPath,
|
|
327
|
-
query,
|
|
328
|
-
body,
|
|
329
|
-
});
|
|
235
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
236
|
+
return b.build();
|
|
330
237
|
};
|
|
331
238
|
exports.se_DeleteKxDatabaseCommand = se_DeleteKxDatabaseCommand;
|
|
332
239
|
const se_DeleteKxDataviewCommand = async (input, context) => {
|
|
333
|
-
const
|
|
240
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
334
241
|
const headers = {};
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataviewName", () => input.dataviewName, "{dataviewName}", false);
|
|
242
|
+
b.bp("/kx/environments/{environmentId}/databases/{databaseName}/dataviews/{dataviewName}");
|
|
243
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
244
|
+
b.p("databaseName", () => input.databaseName, "{databaseName}", false);
|
|
245
|
+
b.p("dataviewName", () => input.dataviewName, "{dataviewName}", false);
|
|
340
246
|
const query = (0, smithy_client_1.map)({
|
|
341
|
-
|
|
247
|
+
[_cT]: [, (0, smithy_client_1.expectNonNull)(input[_cT], `clientToken`)],
|
|
342
248
|
});
|
|
343
249
|
let body;
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
hostname,
|
|
347
|
-
port,
|
|
348
|
-
method: "DELETE",
|
|
349
|
-
headers,
|
|
350
|
-
path: resolvedPath,
|
|
351
|
-
query,
|
|
352
|
-
body,
|
|
353
|
-
});
|
|
250
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
251
|
+
return b.build();
|
|
354
252
|
};
|
|
355
253
|
exports.se_DeleteKxDataviewCommand = se_DeleteKxDataviewCommand;
|
|
356
254
|
const se_DeleteKxEnvironmentCommand = async (input, context) => {
|
|
357
|
-
const
|
|
255
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
358
256
|
const headers = {};
|
|
359
|
-
|
|
360
|
-
|
|
257
|
+
b.bp("/kx/environments/{environmentId}");
|
|
258
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
361
259
|
const query = (0, smithy_client_1.map)({
|
|
362
|
-
|
|
260
|
+
[_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
|
|
363
261
|
});
|
|
364
262
|
let body;
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
hostname,
|
|
368
|
-
port,
|
|
369
|
-
method: "DELETE",
|
|
370
|
-
headers,
|
|
371
|
-
path: resolvedPath,
|
|
372
|
-
query,
|
|
373
|
-
body,
|
|
374
|
-
});
|
|
263
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
264
|
+
return b.build();
|
|
375
265
|
};
|
|
376
266
|
exports.se_DeleteKxEnvironmentCommand = se_DeleteKxEnvironmentCommand;
|
|
377
267
|
const se_DeleteKxScalingGroupCommand = async (input, context) => {
|
|
378
|
-
const
|
|
268
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
379
269
|
const headers = {};
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "scalingGroupName", () => input.scalingGroupName, "{scalingGroupName}", false);
|
|
270
|
+
b.bp("/kx/environments/{environmentId}/scalingGroups/{scalingGroupName}");
|
|
271
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
272
|
+
b.p("scalingGroupName", () => input.scalingGroupName, "{scalingGroupName}", false);
|
|
384
273
|
const query = (0, smithy_client_1.map)({
|
|
385
|
-
|
|
274
|
+
[_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
|
|
386
275
|
});
|
|
387
276
|
let body;
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
hostname,
|
|
391
|
-
port,
|
|
392
|
-
method: "DELETE",
|
|
393
|
-
headers,
|
|
394
|
-
path: resolvedPath,
|
|
395
|
-
query,
|
|
396
|
-
body,
|
|
397
|
-
});
|
|
277
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
278
|
+
return b.build();
|
|
398
279
|
};
|
|
399
280
|
exports.se_DeleteKxScalingGroupCommand = se_DeleteKxScalingGroupCommand;
|
|
400
281
|
const se_DeleteKxUserCommand = async (input, context) => {
|
|
401
|
-
const
|
|
282
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
402
283
|
const headers = {};
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
284
|
+
b.bp("/kx/environments/{environmentId}/users/{userName}");
|
|
285
|
+
b.p("userName", () => input.userName, "{userName}", false);
|
|
286
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
407
287
|
const query = (0, smithy_client_1.map)({
|
|
408
|
-
|
|
288
|
+
[_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
|
|
409
289
|
});
|
|
410
290
|
let body;
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
hostname,
|
|
414
|
-
port,
|
|
415
|
-
method: "DELETE",
|
|
416
|
-
headers,
|
|
417
|
-
path: resolvedPath,
|
|
418
|
-
query,
|
|
419
|
-
body,
|
|
420
|
-
});
|
|
291
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
292
|
+
return b.build();
|
|
421
293
|
};
|
|
422
294
|
exports.se_DeleteKxUserCommand = se_DeleteKxUserCommand;
|
|
423
295
|
const se_DeleteKxVolumeCommand = async (input, context) => {
|
|
424
|
-
const
|
|
296
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
425
297
|
const headers = {};
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "volumeName", () => input.volumeName, "{volumeName}", false);
|
|
298
|
+
b.bp("/kx/environments/{environmentId}/kxvolumes/{volumeName}");
|
|
299
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
300
|
+
b.p("volumeName", () => input.volumeName, "{volumeName}", false);
|
|
430
301
|
const query = (0, smithy_client_1.map)({
|
|
431
|
-
|
|
302
|
+
[_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
|
|
432
303
|
});
|
|
433
304
|
let body;
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
hostname,
|
|
437
|
-
port,
|
|
438
|
-
method: "DELETE",
|
|
439
|
-
headers,
|
|
440
|
-
path: resolvedPath,
|
|
441
|
-
query,
|
|
442
|
-
body,
|
|
443
|
-
});
|
|
305
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
306
|
+
return b.build();
|
|
444
307
|
};
|
|
445
308
|
exports.se_DeleteKxVolumeCommand = se_DeleteKxVolumeCommand;
|
|
446
309
|
const se_GetEnvironmentCommand = async (input, context) => {
|
|
447
|
-
const
|
|
310
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
448
311
|
const headers = {};
|
|
449
|
-
|
|
450
|
-
|
|
312
|
+
b.bp("/environment/{environmentId}");
|
|
313
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
451
314
|
let body;
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
hostname,
|
|
455
|
-
port,
|
|
456
|
-
method: "GET",
|
|
457
|
-
headers,
|
|
458
|
-
path: resolvedPath,
|
|
459
|
-
body,
|
|
460
|
-
});
|
|
315
|
+
b.m("GET").h(headers).b(body);
|
|
316
|
+
return b.build();
|
|
461
317
|
};
|
|
462
318
|
exports.se_GetEnvironmentCommand = se_GetEnvironmentCommand;
|
|
463
319
|
const se_GetKxChangesetCommand = async (input, context) => {
|
|
464
|
-
const
|
|
320
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
465
321
|
const headers = {};
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "changesetId", () => input.changesetId, "{changesetId}", false);
|
|
322
|
+
b.bp("/kx/environments/{environmentId}/databases/{databaseName}/changesets/{changesetId}");
|
|
323
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
324
|
+
b.p("databaseName", () => input.databaseName, "{databaseName}", false);
|
|
325
|
+
b.p("changesetId", () => input.changesetId, "{changesetId}", false);
|
|
471
326
|
let body;
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
hostname,
|
|
475
|
-
port,
|
|
476
|
-
method: "GET",
|
|
477
|
-
headers,
|
|
478
|
-
path: resolvedPath,
|
|
479
|
-
body,
|
|
480
|
-
});
|
|
327
|
+
b.m("GET").h(headers).b(body);
|
|
328
|
+
return b.build();
|
|
481
329
|
};
|
|
482
330
|
exports.se_GetKxChangesetCommand = se_GetKxChangesetCommand;
|
|
483
331
|
const se_GetKxClusterCommand = async (input, context) => {
|
|
484
|
-
const
|
|
332
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
485
333
|
const headers = {};
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
334
|
+
b.bp("/kx/environments/{environmentId}/clusters/{clusterName}");
|
|
335
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
336
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
490
337
|
let body;
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
hostname,
|
|
494
|
-
port,
|
|
495
|
-
method: "GET",
|
|
496
|
-
headers,
|
|
497
|
-
path: resolvedPath,
|
|
498
|
-
body,
|
|
499
|
-
});
|
|
338
|
+
b.m("GET").h(headers).b(body);
|
|
339
|
+
return b.build();
|
|
500
340
|
};
|
|
501
341
|
exports.se_GetKxClusterCommand = se_GetKxClusterCommand;
|
|
502
342
|
const se_GetKxConnectionStringCommand = async (input, context) => {
|
|
503
|
-
const
|
|
343
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
504
344
|
const headers = {};
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
345
|
+
b.bp("/kx/environments/{environmentId}/connectionString");
|
|
346
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
508
347
|
const query = (0, smithy_client_1.map)({
|
|
509
|
-
|
|
510
|
-
|
|
348
|
+
[_uA]: [, (0, smithy_client_1.expectNonNull)(input[_uA], `userArn`)],
|
|
349
|
+
[_cN]: [, (0, smithy_client_1.expectNonNull)(input[_cN], `clusterName`)],
|
|
511
350
|
});
|
|
512
351
|
let body;
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
hostname,
|
|
516
|
-
port,
|
|
517
|
-
method: "GET",
|
|
518
|
-
headers,
|
|
519
|
-
path: resolvedPath,
|
|
520
|
-
query,
|
|
521
|
-
body,
|
|
522
|
-
});
|
|
352
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
353
|
+
return b.build();
|
|
523
354
|
};
|
|
524
355
|
exports.se_GetKxConnectionStringCommand = se_GetKxConnectionStringCommand;
|
|
525
356
|
const se_GetKxDatabaseCommand = async (input, context) => {
|
|
526
|
-
const
|
|
357
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
527
358
|
const headers = {};
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "databaseName", () => input.databaseName, "{databaseName}", false);
|
|
359
|
+
b.bp("/kx/environments/{environmentId}/databases/{databaseName}");
|
|
360
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
361
|
+
b.p("databaseName", () => input.databaseName, "{databaseName}", false);
|
|
532
362
|
let body;
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
hostname,
|
|
536
|
-
port,
|
|
537
|
-
method: "GET",
|
|
538
|
-
headers,
|
|
539
|
-
path: resolvedPath,
|
|
540
|
-
body,
|
|
541
|
-
});
|
|
363
|
+
b.m("GET").h(headers).b(body);
|
|
364
|
+
return b.build();
|
|
542
365
|
};
|
|
543
366
|
exports.se_GetKxDatabaseCommand = se_GetKxDatabaseCommand;
|
|
544
367
|
const se_GetKxDataviewCommand = async (input, context) => {
|
|
545
|
-
const
|
|
368
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
546
369
|
const headers = {};
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataviewName", () => input.dataviewName, "{dataviewName}", false);
|
|
370
|
+
b.bp("/kx/environments/{environmentId}/databases/{databaseName}/dataviews/{dataviewName}");
|
|
371
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
372
|
+
b.p("databaseName", () => input.databaseName, "{databaseName}", false);
|
|
373
|
+
b.p("dataviewName", () => input.dataviewName, "{dataviewName}", false);
|
|
552
374
|
let body;
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
hostname,
|
|
556
|
-
port,
|
|
557
|
-
method: "GET",
|
|
558
|
-
headers,
|
|
559
|
-
path: resolvedPath,
|
|
560
|
-
body,
|
|
561
|
-
});
|
|
375
|
+
b.m("GET").h(headers).b(body);
|
|
376
|
+
return b.build();
|
|
562
377
|
};
|
|
563
378
|
exports.se_GetKxDataviewCommand = se_GetKxDataviewCommand;
|
|
564
379
|
const se_GetKxEnvironmentCommand = async (input, context) => {
|
|
565
|
-
const
|
|
380
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
566
381
|
const headers = {};
|
|
567
|
-
|
|
568
|
-
|
|
382
|
+
b.bp("/kx/environments/{environmentId}");
|
|
383
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
569
384
|
let body;
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
hostname,
|
|
573
|
-
port,
|
|
574
|
-
method: "GET",
|
|
575
|
-
headers,
|
|
576
|
-
path: resolvedPath,
|
|
577
|
-
body,
|
|
578
|
-
});
|
|
385
|
+
b.m("GET").h(headers).b(body);
|
|
386
|
+
return b.build();
|
|
579
387
|
};
|
|
580
388
|
exports.se_GetKxEnvironmentCommand = se_GetKxEnvironmentCommand;
|
|
581
389
|
const se_GetKxScalingGroupCommand = async (input, context) => {
|
|
582
|
-
const
|
|
390
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
583
391
|
const headers = {};
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "scalingGroupName", () => input.scalingGroupName, "{scalingGroupName}", false);
|
|
392
|
+
b.bp("/kx/environments/{environmentId}/scalingGroups/{scalingGroupName}");
|
|
393
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
394
|
+
b.p("scalingGroupName", () => input.scalingGroupName, "{scalingGroupName}", false);
|
|
588
395
|
let body;
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
hostname,
|
|
592
|
-
port,
|
|
593
|
-
method: "GET",
|
|
594
|
-
headers,
|
|
595
|
-
path: resolvedPath,
|
|
596
|
-
body,
|
|
597
|
-
});
|
|
396
|
+
b.m("GET").h(headers).b(body);
|
|
397
|
+
return b.build();
|
|
598
398
|
};
|
|
599
399
|
exports.se_GetKxScalingGroupCommand = se_GetKxScalingGroupCommand;
|
|
600
400
|
const se_GetKxUserCommand = async (input, context) => {
|
|
601
|
-
const
|
|
401
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
602
402
|
const headers = {};
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
403
|
+
b.bp("/kx/environments/{environmentId}/users/{userName}");
|
|
404
|
+
b.p("userName", () => input.userName, "{userName}", false);
|
|
405
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
607
406
|
let body;
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
hostname,
|
|
611
|
-
port,
|
|
612
|
-
method: "GET",
|
|
613
|
-
headers,
|
|
614
|
-
path: resolvedPath,
|
|
615
|
-
body,
|
|
616
|
-
});
|
|
407
|
+
b.m("GET").h(headers).b(body);
|
|
408
|
+
return b.build();
|
|
617
409
|
};
|
|
618
410
|
exports.se_GetKxUserCommand = se_GetKxUserCommand;
|
|
619
411
|
const se_GetKxVolumeCommand = async (input, context) => {
|
|
620
|
-
const
|
|
412
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
621
413
|
const headers = {};
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "volumeName", () => input.volumeName, "{volumeName}", false);
|
|
414
|
+
b.bp("/kx/environments/{environmentId}/kxvolumes/{volumeName}");
|
|
415
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
416
|
+
b.p("volumeName", () => input.volumeName, "{volumeName}", false);
|
|
626
417
|
let body;
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
hostname,
|
|
630
|
-
port,
|
|
631
|
-
method: "GET",
|
|
632
|
-
headers,
|
|
633
|
-
path: resolvedPath,
|
|
634
|
-
body,
|
|
635
|
-
});
|
|
418
|
+
b.m("GET").h(headers).b(body);
|
|
419
|
+
return b.build();
|
|
636
420
|
};
|
|
637
421
|
exports.se_GetKxVolumeCommand = se_GetKxVolumeCommand;
|
|
638
422
|
const se_ListEnvironmentsCommand = async (input, context) => {
|
|
639
|
-
const
|
|
423
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
640
424
|
const headers = {};
|
|
641
|
-
|
|
425
|
+
b.bp("/environment");
|
|
642
426
|
const query = (0, smithy_client_1.map)({
|
|
643
|
-
|
|
644
|
-
|
|
427
|
+
[_nT]: [, input[_nT]],
|
|
428
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
645
429
|
});
|
|
646
430
|
let body;
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
hostname,
|
|
650
|
-
port,
|
|
651
|
-
method: "GET",
|
|
652
|
-
headers,
|
|
653
|
-
path: resolvedPath,
|
|
654
|
-
query,
|
|
655
|
-
body,
|
|
656
|
-
});
|
|
431
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
432
|
+
return b.build();
|
|
657
433
|
};
|
|
658
434
|
exports.se_ListEnvironmentsCommand = se_ListEnvironmentsCommand;
|
|
659
435
|
const se_ListKxChangesetsCommand = async (input, context) => {
|
|
660
|
-
const
|
|
436
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
661
437
|
const headers = {};
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "databaseName", () => input.databaseName, "{databaseName}", false);
|
|
438
|
+
b.bp("/kx/environments/{environmentId}/databases/{databaseName}/changesets");
|
|
439
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
440
|
+
b.p("databaseName", () => input.databaseName, "{databaseName}", false);
|
|
666
441
|
const query = (0, smithy_client_1.map)({
|
|
667
|
-
|
|
668
|
-
|
|
442
|
+
[_nT]: [, input[_nT]],
|
|
443
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
669
444
|
});
|
|
670
445
|
let body;
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
hostname,
|
|
674
|
-
port,
|
|
675
|
-
method: "GET",
|
|
676
|
-
headers,
|
|
677
|
-
path: resolvedPath,
|
|
678
|
-
query,
|
|
679
|
-
body,
|
|
680
|
-
});
|
|
446
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
447
|
+
return b.build();
|
|
681
448
|
};
|
|
682
449
|
exports.se_ListKxChangesetsCommand = se_ListKxChangesetsCommand;
|
|
683
450
|
const se_ListKxClusterNodesCommand = async (input, context) => {
|
|
684
|
-
const
|
|
451
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
685
452
|
const headers = {};
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
453
|
+
b.bp("/kx/environments/{environmentId}/clusters/{clusterName}/nodes");
|
|
454
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
455
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
690
456
|
const query = (0, smithy_client_1.map)({
|
|
691
|
-
|
|
692
|
-
|
|
457
|
+
[_nT]: [, input[_nT]],
|
|
458
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
693
459
|
});
|
|
694
460
|
let body;
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
hostname,
|
|
698
|
-
port,
|
|
699
|
-
method: "GET",
|
|
700
|
-
headers,
|
|
701
|
-
path: resolvedPath,
|
|
702
|
-
query,
|
|
703
|
-
body,
|
|
704
|
-
});
|
|
461
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
462
|
+
return b.build();
|
|
705
463
|
};
|
|
706
464
|
exports.se_ListKxClusterNodesCommand = se_ListKxClusterNodesCommand;
|
|
707
465
|
const se_ListKxClustersCommand = async (input, context) => {
|
|
708
|
-
const
|
|
466
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
709
467
|
const headers = {};
|
|
710
|
-
|
|
711
|
-
|
|
468
|
+
b.bp("/kx/environments/{environmentId}/clusters");
|
|
469
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
712
470
|
const query = (0, smithy_client_1.map)({
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
471
|
+
[_cTl]: [, input[_cTl]],
|
|
472
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
473
|
+
[_nT]: [, input[_nT]],
|
|
716
474
|
});
|
|
717
475
|
let body;
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
hostname,
|
|
721
|
-
port,
|
|
722
|
-
method: "GET",
|
|
723
|
-
headers,
|
|
724
|
-
path: resolvedPath,
|
|
725
|
-
query,
|
|
726
|
-
body,
|
|
727
|
-
});
|
|
476
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
477
|
+
return b.build();
|
|
728
478
|
};
|
|
729
479
|
exports.se_ListKxClustersCommand = se_ListKxClustersCommand;
|
|
730
480
|
const se_ListKxDatabasesCommand = async (input, context) => {
|
|
731
|
-
const
|
|
481
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
732
482
|
const headers = {};
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
483
|
+
b.bp("/kx/environments/{environmentId}/databases");
|
|
484
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
736
485
|
const query = (0, smithy_client_1.map)({
|
|
737
|
-
|
|
738
|
-
|
|
486
|
+
[_nT]: [, input[_nT]],
|
|
487
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
739
488
|
});
|
|
740
489
|
let body;
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
hostname,
|
|
744
|
-
port,
|
|
745
|
-
method: "GET",
|
|
746
|
-
headers,
|
|
747
|
-
path: resolvedPath,
|
|
748
|
-
query,
|
|
749
|
-
body,
|
|
750
|
-
});
|
|
490
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
491
|
+
return b.build();
|
|
751
492
|
};
|
|
752
493
|
exports.se_ListKxDatabasesCommand = se_ListKxDatabasesCommand;
|
|
753
494
|
const se_ListKxDataviewsCommand = async (input, context) => {
|
|
754
|
-
const
|
|
495
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
755
496
|
const headers = {};
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "databaseName", () => input.databaseName, "{databaseName}", false);
|
|
497
|
+
b.bp("/kx/environments/{environmentId}/databases/{databaseName}/dataviews");
|
|
498
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
499
|
+
b.p("databaseName", () => input.databaseName, "{databaseName}", false);
|
|
760
500
|
const query = (0, smithy_client_1.map)({
|
|
761
|
-
|
|
762
|
-
|
|
501
|
+
[_nT]: [, input[_nT]],
|
|
502
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
763
503
|
});
|
|
764
504
|
let body;
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
hostname,
|
|
768
|
-
port,
|
|
769
|
-
method: "GET",
|
|
770
|
-
headers,
|
|
771
|
-
path: resolvedPath,
|
|
772
|
-
query,
|
|
773
|
-
body,
|
|
774
|
-
});
|
|
505
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
506
|
+
return b.build();
|
|
775
507
|
};
|
|
776
508
|
exports.se_ListKxDataviewsCommand = se_ListKxDataviewsCommand;
|
|
777
509
|
const se_ListKxEnvironmentsCommand = async (input, context) => {
|
|
778
|
-
const
|
|
510
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
779
511
|
const headers = {};
|
|
780
|
-
|
|
512
|
+
b.bp("/kx/environments");
|
|
781
513
|
const query = (0, smithy_client_1.map)({
|
|
782
|
-
|
|
783
|
-
|
|
514
|
+
[_nT]: [, input[_nT]],
|
|
515
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
784
516
|
});
|
|
785
517
|
let body;
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
hostname,
|
|
789
|
-
port,
|
|
790
|
-
method: "GET",
|
|
791
|
-
headers,
|
|
792
|
-
path: resolvedPath,
|
|
793
|
-
query,
|
|
794
|
-
body,
|
|
795
|
-
});
|
|
518
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
519
|
+
return b.build();
|
|
796
520
|
};
|
|
797
521
|
exports.se_ListKxEnvironmentsCommand = se_ListKxEnvironmentsCommand;
|
|
798
522
|
const se_ListKxScalingGroupsCommand = async (input, context) => {
|
|
799
|
-
const
|
|
523
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
800
524
|
const headers = {};
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
525
|
+
b.bp("/kx/environments/{environmentId}/scalingGroups");
|
|
526
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
804
527
|
const query = (0, smithy_client_1.map)({
|
|
805
|
-
|
|
806
|
-
|
|
528
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
529
|
+
[_nT]: [, input[_nT]],
|
|
807
530
|
});
|
|
808
531
|
let body;
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
hostname,
|
|
812
|
-
port,
|
|
813
|
-
method: "GET",
|
|
814
|
-
headers,
|
|
815
|
-
path: resolvedPath,
|
|
816
|
-
query,
|
|
817
|
-
body,
|
|
818
|
-
});
|
|
532
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
533
|
+
return b.build();
|
|
819
534
|
};
|
|
820
535
|
exports.se_ListKxScalingGroupsCommand = se_ListKxScalingGroupsCommand;
|
|
821
536
|
const se_ListKxUsersCommand = async (input, context) => {
|
|
822
|
-
const
|
|
537
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
823
538
|
const headers = {};
|
|
824
|
-
|
|
825
|
-
|
|
539
|
+
b.bp("/kx/environments/{environmentId}/users");
|
|
540
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
826
541
|
const query = (0, smithy_client_1.map)({
|
|
827
|
-
|
|
828
|
-
|
|
542
|
+
[_nT]: [, input[_nT]],
|
|
543
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
829
544
|
});
|
|
830
545
|
let body;
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
hostname,
|
|
834
|
-
port,
|
|
835
|
-
method: "GET",
|
|
836
|
-
headers,
|
|
837
|
-
path: resolvedPath,
|
|
838
|
-
query,
|
|
839
|
-
body,
|
|
840
|
-
});
|
|
546
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
547
|
+
return b.build();
|
|
841
548
|
};
|
|
842
549
|
exports.se_ListKxUsersCommand = se_ListKxUsersCommand;
|
|
843
550
|
const se_ListKxVolumesCommand = async (input, context) => {
|
|
844
|
-
const
|
|
551
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
845
552
|
const headers = {};
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
553
|
+
b.bp("/kx/environments/{environmentId}/kxvolumes");
|
|
554
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
849
555
|
const query = (0, smithy_client_1.map)({
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
556
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
557
|
+
[_nT]: [, input[_nT]],
|
|
558
|
+
[_vT]: [, input[_vT]],
|
|
853
559
|
});
|
|
854
560
|
let body;
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
hostname,
|
|
858
|
-
port,
|
|
859
|
-
method: "GET",
|
|
860
|
-
headers,
|
|
861
|
-
path: resolvedPath,
|
|
862
|
-
query,
|
|
863
|
-
body,
|
|
864
|
-
});
|
|
561
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
562
|
+
return b.build();
|
|
865
563
|
};
|
|
866
564
|
exports.se_ListKxVolumesCommand = se_ListKxVolumesCommand;
|
|
867
565
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
868
|
-
const
|
|
566
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
869
567
|
const headers = {};
|
|
870
|
-
|
|
871
|
-
|
|
568
|
+
b.bp("/tags/{resourceArn}");
|
|
569
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
872
570
|
let body;
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
hostname,
|
|
876
|
-
port,
|
|
877
|
-
method: "GET",
|
|
878
|
-
headers,
|
|
879
|
-
path: resolvedPath,
|
|
880
|
-
body,
|
|
881
|
-
});
|
|
571
|
+
b.m("GET").h(headers).b(body);
|
|
572
|
+
return b.build();
|
|
882
573
|
};
|
|
883
574
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
884
575
|
const se_TagResourceCommand = async (input, context) => {
|
|
885
|
-
const
|
|
576
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
886
577
|
const headers = {
|
|
887
578
|
"content-type": "application/json",
|
|
888
579
|
};
|
|
889
|
-
|
|
890
|
-
|
|
580
|
+
b.bp("/tags/{resourceArn}");
|
|
581
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
891
582
|
let body;
|
|
892
583
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
893
584
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
894
585
|
}));
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
hostname,
|
|
898
|
-
port,
|
|
899
|
-
method: "POST",
|
|
900
|
-
headers,
|
|
901
|
-
path: resolvedPath,
|
|
902
|
-
body,
|
|
903
|
-
});
|
|
586
|
+
b.m("POST").h(headers).b(body);
|
|
587
|
+
return b.build();
|
|
904
588
|
};
|
|
905
589
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
906
590
|
const se_UntagResourceCommand = async (input, context) => {
|
|
907
|
-
const
|
|
591
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
908
592
|
const headers = {};
|
|
909
|
-
|
|
910
|
-
|
|
593
|
+
b.bp("/tags/{resourceArn}");
|
|
594
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
911
595
|
const query = (0, smithy_client_1.map)({
|
|
912
|
-
|
|
596
|
+
[_tK]: [
|
|
913
597
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
914
|
-
() => (input
|
|
598
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
915
599
|
],
|
|
916
600
|
});
|
|
917
601
|
let body;
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
hostname,
|
|
921
|
-
port,
|
|
922
|
-
method: "DELETE",
|
|
923
|
-
headers,
|
|
924
|
-
path: resolvedPath,
|
|
925
|
-
query,
|
|
926
|
-
body,
|
|
927
|
-
});
|
|
602
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
603
|
+
return b.build();
|
|
928
604
|
};
|
|
929
605
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
930
606
|
const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
931
|
-
const
|
|
607
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
932
608
|
const headers = {
|
|
933
609
|
"content-type": "application/json",
|
|
934
610
|
};
|
|
935
|
-
|
|
936
|
-
|
|
611
|
+
b.bp("/environment/{environmentId}");
|
|
612
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
937
613
|
let body;
|
|
938
614
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
939
615
|
description: [],
|
|
@@ -941,26 +617,18 @@ const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
|
941
617
|
federationParameters: (_) => (0, smithy_client_1._json)(_),
|
|
942
618
|
name: [],
|
|
943
619
|
}));
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
hostname,
|
|
947
|
-
port,
|
|
948
|
-
method: "PUT",
|
|
949
|
-
headers,
|
|
950
|
-
path: resolvedPath,
|
|
951
|
-
body,
|
|
952
|
-
});
|
|
620
|
+
b.m("PUT").h(headers).b(body);
|
|
621
|
+
return b.build();
|
|
953
622
|
};
|
|
954
623
|
exports.se_UpdateEnvironmentCommand = se_UpdateEnvironmentCommand;
|
|
955
624
|
const se_UpdateKxClusterCodeConfigurationCommand = async (input, context) => {
|
|
956
|
-
const
|
|
625
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
957
626
|
const headers = {
|
|
958
627
|
"content-type": "application/json",
|
|
959
628
|
};
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
629
|
+
b.bp("/kx/environments/{environmentId}/clusters/{clusterName}/configuration/code");
|
|
630
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
631
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
964
632
|
let body;
|
|
965
633
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
966
634
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -969,78 +637,54 @@ const se_UpdateKxClusterCodeConfigurationCommand = async (input, context) => {
|
|
|
969
637
|
deploymentConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
970
638
|
initializationScript: [],
|
|
971
639
|
}));
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
hostname,
|
|
975
|
-
port,
|
|
976
|
-
method: "PUT",
|
|
977
|
-
headers,
|
|
978
|
-
path: resolvedPath,
|
|
979
|
-
body,
|
|
980
|
-
});
|
|
640
|
+
b.m("PUT").h(headers).b(body);
|
|
641
|
+
return b.build();
|
|
981
642
|
};
|
|
982
643
|
exports.se_UpdateKxClusterCodeConfigurationCommand = se_UpdateKxClusterCodeConfigurationCommand;
|
|
983
644
|
const se_UpdateKxClusterDatabasesCommand = async (input, context) => {
|
|
984
|
-
const
|
|
645
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
985
646
|
const headers = {
|
|
986
647
|
"content-type": "application/json",
|
|
987
648
|
};
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
|
|
649
|
+
b.bp("/kx/environments/{environmentId}/clusters/{clusterName}/configuration/databases");
|
|
650
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
651
|
+
b.p("clusterName", () => input.clusterName, "{clusterName}", false);
|
|
992
652
|
let body;
|
|
993
653
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
994
654
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
995
655
|
databases: (_) => (0, smithy_client_1._json)(_),
|
|
996
656
|
deploymentConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
997
657
|
}));
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
hostname,
|
|
1001
|
-
port,
|
|
1002
|
-
method: "PUT",
|
|
1003
|
-
headers,
|
|
1004
|
-
path: resolvedPath,
|
|
1005
|
-
body,
|
|
1006
|
-
});
|
|
658
|
+
b.m("PUT").h(headers).b(body);
|
|
659
|
+
return b.build();
|
|
1007
660
|
};
|
|
1008
661
|
exports.se_UpdateKxClusterDatabasesCommand = se_UpdateKxClusterDatabasesCommand;
|
|
1009
662
|
const se_UpdateKxDatabaseCommand = async (input, context) => {
|
|
1010
|
-
const
|
|
663
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1011
664
|
const headers = {
|
|
1012
665
|
"content-type": "application/json",
|
|
1013
666
|
};
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "databaseName", () => input.databaseName, "{databaseName}", false);
|
|
667
|
+
b.bp("/kx/environments/{environmentId}/databases/{databaseName}");
|
|
668
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
669
|
+
b.p("databaseName", () => input.databaseName, "{databaseName}", false);
|
|
1018
670
|
let body;
|
|
1019
671
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1020
672
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1021
673
|
description: [],
|
|
1022
674
|
}));
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
hostname,
|
|
1026
|
-
port,
|
|
1027
|
-
method: "PUT",
|
|
1028
|
-
headers,
|
|
1029
|
-
path: resolvedPath,
|
|
1030
|
-
body,
|
|
1031
|
-
});
|
|
675
|
+
b.m("PUT").h(headers).b(body);
|
|
676
|
+
return b.build();
|
|
1032
677
|
};
|
|
1033
678
|
exports.se_UpdateKxDatabaseCommand = se_UpdateKxDatabaseCommand;
|
|
1034
679
|
const se_UpdateKxDataviewCommand = async (input, context) => {
|
|
1035
|
-
const
|
|
680
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1036
681
|
const headers = {
|
|
1037
682
|
"content-type": "application/json",
|
|
1038
683
|
};
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataviewName", () => input.dataviewName, "{dataviewName}", false);
|
|
684
|
+
b.bp("/kx/environments/{environmentId}/databases/{databaseName}/dataviews/{dataviewName}");
|
|
685
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
686
|
+
b.p("databaseName", () => input.databaseName, "{databaseName}", false);
|
|
687
|
+
b.p("dataviewName", () => input.dataviewName, "{dataviewName}", false);
|
|
1044
688
|
let body;
|
|
1045
689
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1046
690
|
changesetId: [],
|
|
@@ -1048,114 +692,77 @@ const se_UpdateKxDataviewCommand = async (input, context) => {
|
|
|
1048
692
|
description: [],
|
|
1049
693
|
segmentConfigurations: (_) => (0, smithy_client_1._json)(_),
|
|
1050
694
|
}));
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
hostname,
|
|
1054
|
-
port,
|
|
1055
|
-
method: "PUT",
|
|
1056
|
-
headers,
|
|
1057
|
-
path: resolvedPath,
|
|
1058
|
-
body,
|
|
1059
|
-
});
|
|
695
|
+
b.m("PUT").h(headers).b(body);
|
|
696
|
+
return b.build();
|
|
1060
697
|
};
|
|
1061
698
|
exports.se_UpdateKxDataviewCommand = se_UpdateKxDataviewCommand;
|
|
1062
699
|
const se_UpdateKxEnvironmentCommand = async (input, context) => {
|
|
1063
|
-
const
|
|
700
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1064
701
|
const headers = {
|
|
1065
702
|
"content-type": "application/json",
|
|
1066
703
|
};
|
|
1067
|
-
|
|
1068
|
-
|
|
704
|
+
b.bp("/kx/environments/{environmentId}");
|
|
705
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
1069
706
|
let body;
|
|
1070
707
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1071
708
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1072
709
|
description: [],
|
|
1073
710
|
name: [],
|
|
1074
711
|
}));
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
hostname,
|
|
1078
|
-
port,
|
|
1079
|
-
method: "PUT",
|
|
1080
|
-
headers,
|
|
1081
|
-
path: resolvedPath,
|
|
1082
|
-
body,
|
|
1083
|
-
});
|
|
712
|
+
b.m("PUT").h(headers).b(body);
|
|
713
|
+
return b.build();
|
|
1084
714
|
};
|
|
1085
715
|
exports.se_UpdateKxEnvironmentCommand = se_UpdateKxEnvironmentCommand;
|
|
1086
716
|
const se_UpdateKxEnvironmentNetworkCommand = async (input, context) => {
|
|
1087
|
-
const
|
|
717
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1088
718
|
const headers = {
|
|
1089
719
|
"content-type": "application/json",
|
|
1090
720
|
};
|
|
1091
|
-
|
|
1092
|
-
|
|
721
|
+
b.bp("/kx/environments/{environmentId}/network");
|
|
722
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
1093
723
|
let body;
|
|
1094
724
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1095
725
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1096
726
|
customDNSConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
1097
727
|
transitGatewayConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
1098
728
|
}));
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
hostname,
|
|
1102
|
-
port,
|
|
1103
|
-
method: "PUT",
|
|
1104
|
-
headers,
|
|
1105
|
-
path: resolvedPath,
|
|
1106
|
-
body,
|
|
1107
|
-
});
|
|
729
|
+
b.m("PUT").h(headers).b(body);
|
|
730
|
+
return b.build();
|
|
1108
731
|
};
|
|
1109
732
|
exports.se_UpdateKxEnvironmentNetworkCommand = se_UpdateKxEnvironmentNetworkCommand;
|
|
1110
733
|
const se_UpdateKxUserCommand = async (input, context) => {
|
|
1111
|
-
const
|
|
734
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1112
735
|
const headers = {
|
|
1113
736
|
"content-type": "application/json",
|
|
1114
737
|
};
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userName", () => input.userName, "{userName}", false);
|
|
738
|
+
b.bp("/kx/environments/{environmentId}/users/{userName}");
|
|
739
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
740
|
+
b.p("userName", () => input.userName, "{userName}", false);
|
|
1119
741
|
let body;
|
|
1120
742
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1121
743
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1122
744
|
iamRole: [],
|
|
1123
745
|
}));
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
hostname,
|
|
1127
|
-
port,
|
|
1128
|
-
method: "PUT",
|
|
1129
|
-
headers,
|
|
1130
|
-
path: resolvedPath,
|
|
1131
|
-
body,
|
|
1132
|
-
});
|
|
746
|
+
b.m("PUT").h(headers).b(body);
|
|
747
|
+
return b.build();
|
|
1133
748
|
};
|
|
1134
749
|
exports.se_UpdateKxUserCommand = se_UpdateKxUserCommand;
|
|
1135
750
|
const se_UpdateKxVolumeCommand = async (input, context) => {
|
|
1136
|
-
const
|
|
751
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1137
752
|
const headers = {
|
|
1138
753
|
"content-type": "application/json",
|
|
1139
754
|
};
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "volumeName", () => input.volumeName, "{volumeName}", false);
|
|
755
|
+
b.bp("/kx/environments/{environmentId}/kxvolumes/{volumeName}");
|
|
756
|
+
b.p("environmentId", () => input.environmentId, "{environmentId}", false);
|
|
757
|
+
b.p("volumeName", () => input.volumeName, "{volumeName}", false);
|
|
1144
758
|
let body;
|
|
1145
759
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1146
760
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1147
761
|
description: [],
|
|
1148
762
|
nas1Configuration: (_) => (0, smithy_client_1._json)(_),
|
|
1149
763
|
}));
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
hostname,
|
|
1153
|
-
port,
|
|
1154
|
-
method: "PATCH",
|
|
1155
|
-
headers,
|
|
1156
|
-
path: resolvedPath,
|
|
1157
|
-
body,
|
|
1158
|
-
});
|
|
764
|
+
b.m("PATCH").h(headers).b(body);
|
|
765
|
+
return b.build();
|
|
1159
766
|
};
|
|
1160
767
|
exports.se_UpdateKxVolumeCommand = se_UpdateKxVolumeCommand;
|
|
1161
768
|
const de_CreateEnvironmentCommand = async (output, context) => {
|
|
@@ -4120,6 +3727,14 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
4120
3727
|
value !== "" &&
|
|
4121
3728
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
4122
3729
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
3730
|
+
const _cN = "clusterName";
|
|
3731
|
+
const _cT = "clientToken";
|
|
3732
|
+
const _cTl = "clusterType";
|
|
3733
|
+
const _mR = "maxResults";
|
|
3734
|
+
const _nT = "nextToken";
|
|
3735
|
+
const _tK = "tagKeys";
|
|
3736
|
+
const _uA = "userArn";
|
|
3737
|
+
const _vT = "volumeType";
|
|
4123
3738
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4124
3739
|
if (encoded.length) {
|
|
4125
3740
|
return JSON.parse(encoded);
|