@aws-sdk/client-elasticsearch-service 3.476.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.
@@ -2,120 +2,81 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.se_UpgradeElasticsearchDomainCommand = exports.se_UpdateVpcEndpointCommand = exports.se_UpdatePackageCommand = exports.se_UpdateElasticsearchDomainConfigCommand = exports.se_StartElasticsearchServiceSoftwareUpdateCommand = exports.se_RevokeVpcEndpointAccessCommand = exports.se_RemoveTagsCommand = exports.se_RejectInboundCrossClusterSearchConnectionCommand = exports.se_PurchaseReservedElasticsearchInstanceOfferingCommand = exports.se_ListVpcEndpointsForDomainCommand = exports.se_ListVpcEndpointsCommand = exports.se_ListVpcEndpointAccessCommand = exports.se_ListTagsCommand = exports.se_ListPackagesForDomainCommand = exports.se_ListElasticsearchVersionsCommand = exports.se_ListElasticsearchInstanceTypesCommand = exports.se_ListDomainsForPackageCommand = exports.se_ListDomainNamesCommand = exports.se_GetUpgradeStatusCommand = exports.se_GetUpgradeHistoryCommand = exports.se_GetPackageVersionHistoryCommand = exports.se_GetCompatibleElasticsearchVersionsCommand = exports.se_DissociatePackageCommand = exports.se_DescribeVpcEndpointsCommand = exports.se_DescribeReservedElasticsearchInstancesCommand = exports.se_DescribeReservedElasticsearchInstanceOfferingsCommand = exports.se_DescribePackagesCommand = exports.se_DescribeOutboundCrossClusterSearchConnectionsCommand = exports.se_DescribeInboundCrossClusterSearchConnectionsCommand = exports.se_DescribeElasticsearchInstanceTypeLimitsCommand = exports.se_DescribeElasticsearchDomainsCommand = exports.se_DescribeElasticsearchDomainConfigCommand = exports.se_DescribeElasticsearchDomainCommand = exports.se_DescribeDomainChangeProgressCommand = exports.se_DescribeDomainAutoTunesCommand = exports.se_DeleteVpcEndpointCommand = exports.se_DeletePackageCommand = exports.se_DeleteOutboundCrossClusterSearchConnectionCommand = exports.se_DeleteInboundCrossClusterSearchConnectionCommand = exports.se_DeleteElasticsearchServiceRoleCommand = exports.se_DeleteElasticsearchDomainCommand = exports.se_CreateVpcEndpointCommand = exports.se_CreatePackageCommand = exports.se_CreateOutboundCrossClusterSearchConnectionCommand = exports.se_CreateElasticsearchDomainCommand = exports.se_CancelElasticsearchServiceSoftwareUpdateCommand = exports.se_AuthorizeVpcEndpointAccessCommand = exports.se_AssociatePackageCommand = exports.se_AddTagsCommand = exports.se_AcceptInboundCrossClusterSearchConnectionCommand = void 0;
4
4
  exports.de_UpgradeElasticsearchDomainCommand = exports.de_UpdateVpcEndpointCommand = exports.de_UpdatePackageCommand = exports.de_UpdateElasticsearchDomainConfigCommand = exports.de_StartElasticsearchServiceSoftwareUpdateCommand = exports.de_RevokeVpcEndpointAccessCommand = exports.de_RemoveTagsCommand = exports.de_RejectInboundCrossClusterSearchConnectionCommand = exports.de_PurchaseReservedElasticsearchInstanceOfferingCommand = exports.de_ListVpcEndpointsForDomainCommand = exports.de_ListVpcEndpointsCommand = exports.de_ListVpcEndpointAccessCommand = exports.de_ListTagsCommand = exports.de_ListPackagesForDomainCommand = exports.de_ListElasticsearchVersionsCommand = exports.de_ListElasticsearchInstanceTypesCommand = exports.de_ListDomainsForPackageCommand = exports.de_ListDomainNamesCommand = exports.de_GetUpgradeStatusCommand = exports.de_GetUpgradeHistoryCommand = exports.de_GetPackageVersionHistoryCommand = exports.de_GetCompatibleElasticsearchVersionsCommand = exports.de_DissociatePackageCommand = exports.de_DescribeVpcEndpointsCommand = exports.de_DescribeReservedElasticsearchInstancesCommand = exports.de_DescribeReservedElasticsearchInstanceOfferingsCommand = exports.de_DescribePackagesCommand = exports.de_DescribeOutboundCrossClusterSearchConnectionsCommand = exports.de_DescribeInboundCrossClusterSearchConnectionsCommand = exports.de_DescribeElasticsearchInstanceTypeLimitsCommand = exports.de_DescribeElasticsearchDomainsCommand = exports.de_DescribeElasticsearchDomainConfigCommand = exports.de_DescribeElasticsearchDomainCommand = exports.de_DescribeDomainChangeProgressCommand = exports.de_DescribeDomainAutoTunesCommand = exports.de_DeleteVpcEndpointCommand = exports.de_DeletePackageCommand = exports.de_DeleteOutboundCrossClusterSearchConnectionCommand = exports.de_DeleteInboundCrossClusterSearchConnectionCommand = exports.de_DeleteElasticsearchServiceRoleCommand = exports.de_DeleteElasticsearchDomainCommand = exports.de_CreateVpcEndpointCommand = exports.de_CreatePackageCommand = exports.de_CreateOutboundCrossClusterSearchConnectionCommand = exports.de_CreateElasticsearchDomainCommand = exports.de_CancelElasticsearchServiceSoftwareUpdateCommand = exports.de_AuthorizeVpcEndpointAccessCommand = exports.de_AssociatePackageCommand = exports.de_AddTagsCommand = exports.de_AcceptInboundCrossClusterSearchConnectionCommand = void 0;
5
- const protocol_http_1 = require("@smithy/protocol-http");
5
+ const core_1 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const ElasticsearchServiceServiceException_1 = require("../models/ElasticsearchServiceServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_AcceptInboundCrossClusterSearchConnectionCommand = async (input, context) => {
10
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
+ const b = (0, core_1.requestBuilder)(input, context);
11
11
  const headers = {};
12
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
13
- "/2015-01-01/es/ccs/inboundConnection/{CrossClusterSearchConnectionId}/accept";
14
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CrossClusterSearchConnectionId", () => input.CrossClusterSearchConnectionId, "{CrossClusterSearchConnectionId}", false);
12
+ b.bp("/2015-01-01/es/ccs/inboundConnection/{CrossClusterSearchConnectionId}/accept");
13
+ b.p("CrossClusterSearchConnectionId", () => input.CrossClusterSearchConnectionId, "{CrossClusterSearchConnectionId}", false);
15
14
  let body;
16
- return new protocol_http_1.HttpRequest({
17
- protocol,
18
- hostname,
19
- port,
20
- method: "PUT",
21
- headers,
22
- path: resolvedPath,
23
- body,
24
- });
15
+ b.m("PUT").h(headers).b(body);
16
+ return b.build();
25
17
  };
26
18
  exports.se_AcceptInboundCrossClusterSearchConnectionCommand = se_AcceptInboundCrossClusterSearchConnectionCommand;
27
19
  const se_AddTagsCommand = async (input, context) => {
28
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
20
+ const b = (0, core_1.requestBuilder)(input, context);
29
21
  const headers = {
30
22
  "content-type": "application/json",
31
23
  };
32
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/tags";
24
+ b.bp("/2015-01-01/tags");
33
25
  let body;
34
26
  body = JSON.stringify((0, smithy_client_1.take)(input, {
35
27
  ARN: [],
36
28
  TagList: (_) => (0, smithy_client_1._json)(_),
37
29
  }));
38
- return new protocol_http_1.HttpRequest({
39
- protocol,
40
- hostname,
41
- port,
42
- method: "POST",
43
- headers,
44
- path: resolvedPath,
45
- body,
46
- });
30
+ b.m("POST").h(headers).b(body);
31
+ return b.build();
47
32
  };
48
33
  exports.se_AddTagsCommand = se_AddTagsCommand;
49
34
  const se_AssociatePackageCommand = async (input, context) => {
50
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
+ const b = (0, core_1.requestBuilder)(input, context);
51
36
  const headers = {};
52
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
53
- "/2015-01-01/packages/associate/{PackageID}/{DomainName}";
54
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PackageID", () => input.PackageID, "{PackageID}", false);
55
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
37
+ b.bp("/2015-01-01/packages/associate/{PackageID}/{DomainName}");
38
+ b.p("PackageID", () => input.PackageID, "{PackageID}", false);
39
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
56
40
  let body;
57
- return new protocol_http_1.HttpRequest({
58
- protocol,
59
- hostname,
60
- port,
61
- method: "POST",
62
- headers,
63
- path: resolvedPath,
64
- body,
65
- });
41
+ b.m("POST").h(headers).b(body);
42
+ return b.build();
66
43
  };
67
44
  exports.se_AssociatePackageCommand = se_AssociatePackageCommand;
68
45
  const se_AuthorizeVpcEndpointAccessCommand = async (input, context) => {
69
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
46
+ const b = (0, core_1.requestBuilder)(input, context);
70
47
  const headers = {
71
48
  "content-type": "application/json",
72
49
  };
73
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
74
- "/2015-01-01/es/domain/{DomainName}/authorizeVpcEndpointAccess";
75
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
50
+ b.bp("/2015-01-01/es/domain/{DomainName}/authorizeVpcEndpointAccess");
51
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
76
52
  let body;
77
53
  body = JSON.stringify((0, smithy_client_1.take)(input, {
78
54
  Account: [],
79
55
  }));
80
- return new protocol_http_1.HttpRequest({
81
- protocol,
82
- hostname,
83
- port,
84
- method: "POST",
85
- headers,
86
- path: resolvedPath,
87
- body,
88
- });
56
+ b.m("POST").h(headers).b(body);
57
+ return b.build();
89
58
  };
90
59
  exports.se_AuthorizeVpcEndpointAccessCommand = se_AuthorizeVpcEndpointAccessCommand;
91
60
  const se_CancelElasticsearchServiceSoftwareUpdateCommand = async (input, context) => {
92
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
61
+ const b = (0, core_1.requestBuilder)(input, context);
93
62
  const headers = {
94
63
  "content-type": "application/json",
95
64
  };
96
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
97
- "/2015-01-01/es/serviceSoftwareUpdate/cancel";
65
+ b.bp("/2015-01-01/es/serviceSoftwareUpdate/cancel");
98
66
  let body;
99
67
  body = JSON.stringify((0, smithy_client_1.take)(input, {
100
68
  DomainName: [],
101
69
  }));
102
- return new protocol_http_1.HttpRequest({
103
- protocol,
104
- hostname,
105
- port,
106
- method: "POST",
107
- headers,
108
- path: resolvedPath,
109
- body,
110
- });
70
+ b.m("POST").h(headers).b(body);
71
+ return b.build();
111
72
  };
112
73
  exports.se_CancelElasticsearchServiceSoftwareUpdateCommand = se_CancelElasticsearchServiceSoftwareUpdateCommand;
113
74
  const se_CreateElasticsearchDomainCommand = async (input, context) => {
114
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
75
+ const b = (0, core_1.requestBuilder)(input, context);
115
76
  const headers = {
116
77
  "content-type": "application/json",
117
78
  };
118
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain";
79
+ b.bp("/2015-01-01/es/domain");
119
80
  let body;
120
81
  body = JSON.stringify((0, smithy_client_1.take)(input, {
121
82
  AccessPolicies: [],
@@ -135,46 +96,32 @@ const se_CreateElasticsearchDomainCommand = async (input, context) => {
135
96
  TagList: (_) => (0, smithy_client_1._json)(_),
136
97
  VPCOptions: (_) => (0, smithy_client_1._json)(_),
137
98
  }));
138
- return new protocol_http_1.HttpRequest({
139
- protocol,
140
- hostname,
141
- port,
142
- method: "POST",
143
- headers,
144
- path: resolvedPath,
145
- body,
146
- });
99
+ b.m("POST").h(headers).b(body);
100
+ return b.build();
147
101
  };
148
102
  exports.se_CreateElasticsearchDomainCommand = se_CreateElasticsearchDomainCommand;
149
103
  const se_CreateOutboundCrossClusterSearchConnectionCommand = async (input, context) => {
150
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
104
+ const b = (0, core_1.requestBuilder)(input, context);
151
105
  const headers = {
152
106
  "content-type": "application/json",
153
107
  };
154
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/ccs/outboundConnection";
108
+ b.bp("/2015-01-01/es/ccs/outboundConnection");
155
109
  let body;
156
110
  body = JSON.stringify((0, smithy_client_1.take)(input, {
157
111
  ConnectionAlias: [],
158
112
  DestinationDomainInfo: (_) => (0, smithy_client_1._json)(_),
159
113
  SourceDomainInfo: (_) => (0, smithy_client_1._json)(_),
160
114
  }));
161
- return new protocol_http_1.HttpRequest({
162
- protocol,
163
- hostname,
164
- port,
165
- method: "POST",
166
- headers,
167
- path: resolvedPath,
168
- body,
169
- });
115
+ b.m("POST").h(headers).b(body);
116
+ return b.build();
170
117
  };
171
118
  exports.se_CreateOutboundCrossClusterSearchConnectionCommand = se_CreateOutboundCrossClusterSearchConnectionCommand;
172
119
  const se_CreatePackageCommand = async (input, context) => {
173
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
120
+ const b = (0, core_1.requestBuilder)(input, context);
174
121
  const headers = {
175
122
  "content-type": "application/json",
176
123
  };
177
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages";
124
+ b.bp("/2015-01-01/packages");
178
125
  let body;
179
126
  body = JSON.stringify((0, smithy_client_1.take)(input, {
180
127
  PackageDescription: [],
@@ -182,818 +129,511 @@ const se_CreatePackageCommand = async (input, context) => {
182
129
  PackageSource: (_) => (0, smithy_client_1._json)(_),
183
130
  PackageType: [],
184
131
  }));
185
- return new protocol_http_1.HttpRequest({
186
- protocol,
187
- hostname,
188
- port,
189
- method: "POST",
190
- headers,
191
- path: resolvedPath,
192
- body,
193
- });
132
+ b.m("POST").h(headers).b(body);
133
+ return b.build();
194
134
  };
195
135
  exports.se_CreatePackageCommand = se_CreatePackageCommand;
196
136
  const se_CreateVpcEndpointCommand = async (input, context) => {
197
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
137
+ const b = (0, core_1.requestBuilder)(input, context);
198
138
  const headers = {
199
139
  "content-type": "application/json",
200
140
  };
201
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/vpcEndpoints";
141
+ b.bp("/2015-01-01/es/vpcEndpoints");
202
142
  let body;
203
143
  body = JSON.stringify((0, smithy_client_1.take)(input, {
204
144
  ClientToken: [],
205
145
  DomainArn: [],
206
146
  VpcOptions: (_) => (0, smithy_client_1._json)(_),
207
147
  }));
208
- return new protocol_http_1.HttpRequest({
209
- protocol,
210
- hostname,
211
- port,
212
- method: "POST",
213
- headers,
214
- path: resolvedPath,
215
- body,
216
- });
148
+ b.m("POST").h(headers).b(body);
149
+ return b.build();
217
150
  };
218
151
  exports.se_CreateVpcEndpointCommand = se_CreateVpcEndpointCommand;
219
152
  const se_DeleteElasticsearchDomainCommand = async (input, context) => {
220
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
153
+ const b = (0, core_1.requestBuilder)(input, context);
221
154
  const headers = {};
222
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}";
223
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
155
+ b.bp("/2015-01-01/es/domain/{DomainName}");
156
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
224
157
  let body;
225
- return new protocol_http_1.HttpRequest({
226
- protocol,
227
- hostname,
228
- port,
229
- method: "DELETE",
230
- headers,
231
- path: resolvedPath,
232
- body,
233
- });
158
+ b.m("DELETE").h(headers).b(body);
159
+ return b.build();
234
160
  };
235
161
  exports.se_DeleteElasticsearchDomainCommand = se_DeleteElasticsearchDomainCommand;
236
162
  const se_DeleteElasticsearchServiceRoleCommand = async (input, context) => {
237
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
163
+ const b = (0, core_1.requestBuilder)(input, context);
238
164
  const headers = {
239
165
  "content-type": "application/json",
240
166
  };
241
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/role";
167
+ b.bp("/2015-01-01/es/role");
242
168
  let body;
243
169
  body = "";
244
- return new protocol_http_1.HttpRequest({
245
- protocol,
246
- hostname,
247
- port,
248
- method: "DELETE",
249
- headers,
250
- path: resolvedPath,
251
- body,
252
- });
170
+ b.m("DELETE").h(headers).b(body);
171
+ return b.build();
253
172
  };
254
173
  exports.se_DeleteElasticsearchServiceRoleCommand = se_DeleteElasticsearchServiceRoleCommand;
255
174
  const se_DeleteInboundCrossClusterSearchConnectionCommand = async (input, context) => {
256
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
175
+ const b = (0, core_1.requestBuilder)(input, context);
257
176
  const headers = {};
258
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
259
- "/2015-01-01/es/ccs/inboundConnection/{CrossClusterSearchConnectionId}";
260
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CrossClusterSearchConnectionId", () => input.CrossClusterSearchConnectionId, "{CrossClusterSearchConnectionId}", false);
177
+ b.bp("/2015-01-01/es/ccs/inboundConnection/{CrossClusterSearchConnectionId}");
178
+ b.p("CrossClusterSearchConnectionId", () => input.CrossClusterSearchConnectionId, "{CrossClusterSearchConnectionId}", false);
261
179
  let body;
262
- return new protocol_http_1.HttpRequest({
263
- protocol,
264
- hostname,
265
- port,
266
- method: "DELETE",
267
- headers,
268
- path: resolvedPath,
269
- body,
270
- });
180
+ b.m("DELETE").h(headers).b(body);
181
+ return b.build();
271
182
  };
272
183
  exports.se_DeleteInboundCrossClusterSearchConnectionCommand = se_DeleteInboundCrossClusterSearchConnectionCommand;
273
184
  const se_DeleteOutboundCrossClusterSearchConnectionCommand = async (input, context) => {
274
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
185
+ const b = (0, core_1.requestBuilder)(input, context);
275
186
  const headers = {};
276
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
277
- "/2015-01-01/es/ccs/outboundConnection/{CrossClusterSearchConnectionId}";
278
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CrossClusterSearchConnectionId", () => input.CrossClusterSearchConnectionId, "{CrossClusterSearchConnectionId}", false);
187
+ b.bp("/2015-01-01/es/ccs/outboundConnection/{CrossClusterSearchConnectionId}");
188
+ b.p("CrossClusterSearchConnectionId", () => input.CrossClusterSearchConnectionId, "{CrossClusterSearchConnectionId}", false);
279
189
  let body;
280
- return new protocol_http_1.HttpRequest({
281
- protocol,
282
- hostname,
283
- port,
284
- method: "DELETE",
285
- headers,
286
- path: resolvedPath,
287
- body,
288
- });
190
+ b.m("DELETE").h(headers).b(body);
191
+ return b.build();
289
192
  };
290
193
  exports.se_DeleteOutboundCrossClusterSearchConnectionCommand = se_DeleteOutboundCrossClusterSearchConnectionCommand;
291
194
  const se_DeletePackageCommand = async (input, context) => {
292
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
195
+ const b = (0, core_1.requestBuilder)(input, context);
293
196
  const headers = {};
294
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/{PackageID}";
295
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PackageID", () => input.PackageID, "{PackageID}", false);
197
+ b.bp("/2015-01-01/packages/{PackageID}");
198
+ b.p("PackageID", () => input.PackageID, "{PackageID}", false);
296
199
  let body;
297
- return new protocol_http_1.HttpRequest({
298
- protocol,
299
- hostname,
300
- port,
301
- method: "DELETE",
302
- headers,
303
- path: resolvedPath,
304
- body,
305
- });
200
+ b.m("DELETE").h(headers).b(body);
201
+ return b.build();
306
202
  };
307
203
  exports.se_DeletePackageCommand = se_DeletePackageCommand;
308
204
  const se_DeleteVpcEndpointCommand = async (input, context) => {
309
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
205
+ const b = (0, core_1.requestBuilder)(input, context);
310
206
  const headers = {};
311
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
312
- "/2015-01-01/es/vpcEndpoints/{VpcEndpointId}";
313
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VpcEndpointId", () => input.VpcEndpointId, "{VpcEndpointId}", false);
207
+ b.bp("/2015-01-01/es/vpcEndpoints/{VpcEndpointId}");
208
+ b.p("VpcEndpointId", () => input.VpcEndpointId, "{VpcEndpointId}", false);
314
209
  let body;
315
- return new protocol_http_1.HttpRequest({
316
- protocol,
317
- hostname,
318
- port,
319
- method: "DELETE",
320
- headers,
321
- path: resolvedPath,
322
- body,
323
- });
210
+ b.m("DELETE").h(headers).b(body);
211
+ return b.build();
324
212
  };
325
213
  exports.se_DeleteVpcEndpointCommand = se_DeleteVpcEndpointCommand;
326
214
  const se_DescribeDomainAutoTunesCommand = async (input, context) => {
327
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
215
+ const b = (0, core_1.requestBuilder)(input, context);
328
216
  const headers = {
329
217
  "content-type": "application/json",
330
218
  };
331
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
332
- "/2015-01-01/es/domain/{DomainName}/autoTunes";
333
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
219
+ b.bp("/2015-01-01/es/domain/{DomainName}/autoTunes");
220
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
334
221
  let body;
335
222
  body = JSON.stringify((0, smithy_client_1.take)(input, {
336
223
  MaxResults: [],
337
224
  NextToken: [],
338
225
  }));
339
- return new protocol_http_1.HttpRequest({
340
- protocol,
341
- hostname,
342
- port,
343
- method: "GET",
344
- headers,
345
- path: resolvedPath,
346
- body,
347
- });
226
+ b.m("GET").h(headers).b(body);
227
+ return b.build();
348
228
  };
349
229
  exports.se_DescribeDomainAutoTunesCommand = se_DescribeDomainAutoTunesCommand;
350
230
  const se_DescribeDomainChangeProgressCommand = async (input, context) => {
351
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
231
+ const b = (0, core_1.requestBuilder)(input, context);
352
232
  const headers = {};
353
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
354
- "/2015-01-01/es/domain/{DomainName}/progress";
355
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
233
+ b.bp("/2015-01-01/es/domain/{DomainName}/progress");
234
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
356
235
  const query = (0, smithy_client_1.map)({
357
- changeid: [, input.ChangeId],
236
+ [_c]: [, input[_CI]],
358
237
  });
359
238
  let body;
360
- return new protocol_http_1.HttpRequest({
361
- protocol,
362
- hostname,
363
- port,
364
- method: "GET",
365
- headers,
366
- path: resolvedPath,
367
- query,
368
- body,
369
- });
239
+ b.m("GET").h(headers).q(query).b(body);
240
+ return b.build();
370
241
  };
371
242
  exports.se_DescribeDomainChangeProgressCommand = se_DescribeDomainChangeProgressCommand;
372
243
  const se_DescribeElasticsearchDomainCommand = async (input, context) => {
373
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
244
+ const b = (0, core_1.requestBuilder)(input, context);
374
245
  const headers = {};
375
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}";
376
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
246
+ b.bp("/2015-01-01/es/domain/{DomainName}");
247
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
377
248
  let body;
378
- return new protocol_http_1.HttpRequest({
379
- protocol,
380
- hostname,
381
- port,
382
- method: "GET",
383
- headers,
384
- path: resolvedPath,
385
- body,
386
- });
249
+ b.m("GET").h(headers).b(body);
250
+ return b.build();
387
251
  };
388
252
  exports.se_DescribeElasticsearchDomainCommand = se_DescribeElasticsearchDomainCommand;
389
253
  const se_DescribeElasticsearchDomainConfigCommand = async (input, context) => {
390
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
254
+ const b = (0, core_1.requestBuilder)(input, context);
391
255
  const headers = {};
392
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}/config";
393
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
256
+ b.bp("/2015-01-01/es/domain/{DomainName}/config");
257
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
394
258
  let body;
395
- return new protocol_http_1.HttpRequest({
396
- protocol,
397
- hostname,
398
- port,
399
- method: "GET",
400
- headers,
401
- path: resolvedPath,
402
- body,
403
- });
259
+ b.m("GET").h(headers).b(body);
260
+ return b.build();
404
261
  };
405
262
  exports.se_DescribeElasticsearchDomainConfigCommand = se_DescribeElasticsearchDomainConfigCommand;
406
263
  const se_DescribeElasticsearchDomainsCommand = async (input, context) => {
407
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
264
+ const b = (0, core_1.requestBuilder)(input, context);
408
265
  const headers = {
409
266
  "content-type": "application/json",
410
267
  };
411
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain-info";
268
+ b.bp("/2015-01-01/es/domain-info");
412
269
  let body;
413
270
  body = JSON.stringify((0, smithy_client_1.take)(input, {
414
271
  DomainNames: (_) => (0, smithy_client_1._json)(_),
415
272
  }));
416
- return new protocol_http_1.HttpRequest({
417
- protocol,
418
- hostname,
419
- port,
420
- method: "POST",
421
- headers,
422
- path: resolvedPath,
423
- body,
424
- });
273
+ b.m("POST").h(headers).b(body);
274
+ return b.build();
425
275
  };
426
276
  exports.se_DescribeElasticsearchDomainsCommand = se_DescribeElasticsearchDomainsCommand;
427
277
  const se_DescribeElasticsearchInstanceTypeLimitsCommand = async (input, context) => {
428
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
278
+ const b = (0, core_1.requestBuilder)(input, context);
429
279
  const headers = {};
430
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
431
- "/2015-01-01/es/instanceTypeLimits/{ElasticsearchVersion}/{InstanceType}";
432
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceType", () => input.InstanceType, "{InstanceType}", false);
433
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ElasticsearchVersion", () => input.ElasticsearchVersion, "{ElasticsearchVersion}", false);
280
+ b.bp("/2015-01-01/es/instanceTypeLimits/{ElasticsearchVersion}/{InstanceType}");
281
+ b.p("InstanceType", () => input.InstanceType, "{InstanceType}", false);
282
+ b.p("ElasticsearchVersion", () => input.ElasticsearchVersion, "{ElasticsearchVersion}", false);
434
283
  const query = (0, smithy_client_1.map)({
435
- domainName: [, input.DomainName],
284
+ [_dN]: [, input[_DN]],
436
285
  });
437
286
  let body;
438
- return new protocol_http_1.HttpRequest({
439
- protocol,
440
- hostname,
441
- port,
442
- method: "GET",
443
- headers,
444
- path: resolvedPath,
445
- query,
446
- body,
447
- });
287
+ b.m("GET").h(headers).q(query).b(body);
288
+ return b.build();
448
289
  };
449
290
  exports.se_DescribeElasticsearchInstanceTypeLimitsCommand = se_DescribeElasticsearchInstanceTypeLimitsCommand;
450
291
  const se_DescribeInboundCrossClusterSearchConnectionsCommand = async (input, context) => {
451
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
292
+ const b = (0, core_1.requestBuilder)(input, context);
452
293
  const headers = {
453
294
  "content-type": "application/json",
454
295
  };
455
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
456
- "/2015-01-01/es/ccs/inboundConnection/search";
296
+ b.bp("/2015-01-01/es/ccs/inboundConnection/search");
457
297
  let body;
458
298
  body = JSON.stringify((0, smithy_client_1.take)(input, {
459
299
  Filters: (_) => (0, smithy_client_1._json)(_),
460
300
  MaxResults: [],
461
301
  NextToken: [],
462
302
  }));
463
- return new protocol_http_1.HttpRequest({
464
- protocol,
465
- hostname,
466
- port,
467
- method: "POST",
468
- headers,
469
- path: resolvedPath,
470
- body,
471
- });
303
+ b.m("POST").h(headers).b(body);
304
+ return b.build();
472
305
  };
473
306
  exports.se_DescribeInboundCrossClusterSearchConnectionsCommand = se_DescribeInboundCrossClusterSearchConnectionsCommand;
474
307
  const se_DescribeOutboundCrossClusterSearchConnectionsCommand = async (input, context) => {
475
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
308
+ const b = (0, core_1.requestBuilder)(input, context);
476
309
  const headers = {
477
310
  "content-type": "application/json",
478
311
  };
479
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
480
- "/2015-01-01/es/ccs/outboundConnection/search";
312
+ b.bp("/2015-01-01/es/ccs/outboundConnection/search");
481
313
  let body;
482
314
  body = JSON.stringify((0, smithy_client_1.take)(input, {
483
315
  Filters: (_) => (0, smithy_client_1._json)(_),
484
316
  MaxResults: [],
485
317
  NextToken: [],
486
318
  }));
487
- return new protocol_http_1.HttpRequest({
488
- protocol,
489
- hostname,
490
- port,
491
- method: "POST",
492
- headers,
493
- path: resolvedPath,
494
- body,
495
- });
319
+ b.m("POST").h(headers).b(body);
320
+ return b.build();
496
321
  };
497
322
  exports.se_DescribeOutboundCrossClusterSearchConnectionsCommand = se_DescribeOutboundCrossClusterSearchConnectionsCommand;
498
323
  const se_DescribePackagesCommand = async (input, context) => {
499
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
324
+ const b = (0, core_1.requestBuilder)(input, context);
500
325
  const headers = {
501
326
  "content-type": "application/json",
502
327
  };
503
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/describe";
328
+ b.bp("/2015-01-01/packages/describe");
504
329
  let body;
505
330
  body = JSON.stringify((0, smithy_client_1.take)(input, {
506
331
  Filters: (_) => (0, smithy_client_1._json)(_),
507
332
  MaxResults: [],
508
333
  NextToken: [],
509
334
  }));
510
- return new protocol_http_1.HttpRequest({
511
- protocol,
512
- hostname,
513
- port,
514
- method: "POST",
515
- headers,
516
- path: resolvedPath,
517
- body,
518
- });
335
+ b.m("POST").h(headers).b(body);
336
+ return b.build();
519
337
  };
520
338
  exports.se_DescribePackagesCommand = se_DescribePackagesCommand;
521
339
  const se_DescribeReservedElasticsearchInstanceOfferingsCommand = async (input, context) => {
522
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
340
+ const b = (0, core_1.requestBuilder)(input, context);
523
341
  const headers = {};
524
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/reservedInstanceOfferings";
342
+ b.bp("/2015-01-01/es/reservedInstanceOfferings");
525
343
  const query = (0, smithy_client_1.map)({
526
- offeringId: [, input.ReservedElasticsearchInstanceOfferingId],
527
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
528
- nextToken: [, input.NextToken],
344
+ [_oI]: [, input[_REIOI]],
345
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
346
+ [_nT]: [, input[_NT]],
529
347
  });
530
348
  let body;
531
- return new protocol_http_1.HttpRequest({
532
- protocol,
533
- hostname,
534
- port,
535
- method: "GET",
536
- headers,
537
- path: resolvedPath,
538
- query,
539
- body,
540
- });
349
+ b.m("GET").h(headers).q(query).b(body);
350
+ return b.build();
541
351
  };
542
352
  exports.se_DescribeReservedElasticsearchInstanceOfferingsCommand = se_DescribeReservedElasticsearchInstanceOfferingsCommand;
543
353
  const se_DescribeReservedElasticsearchInstancesCommand = async (input, context) => {
544
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
354
+ const b = (0, core_1.requestBuilder)(input, context);
545
355
  const headers = {};
546
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/reservedInstances";
356
+ b.bp("/2015-01-01/es/reservedInstances");
547
357
  const query = (0, smithy_client_1.map)({
548
- reservationId: [, input.ReservedElasticsearchInstanceId],
549
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
550
- nextToken: [, input.NextToken],
358
+ [_rI]: [, input[_REII]],
359
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
360
+ [_nT]: [, input[_NT]],
551
361
  });
552
362
  let body;
553
- return new protocol_http_1.HttpRequest({
554
- protocol,
555
- hostname,
556
- port,
557
- method: "GET",
558
- headers,
559
- path: resolvedPath,
560
- query,
561
- body,
562
- });
363
+ b.m("GET").h(headers).q(query).b(body);
364
+ return b.build();
563
365
  };
564
366
  exports.se_DescribeReservedElasticsearchInstancesCommand = se_DescribeReservedElasticsearchInstancesCommand;
565
367
  const se_DescribeVpcEndpointsCommand = async (input, context) => {
566
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
368
+ const b = (0, core_1.requestBuilder)(input, context);
567
369
  const headers = {
568
370
  "content-type": "application/json",
569
371
  };
570
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/vpcEndpoints/describe";
372
+ b.bp("/2015-01-01/es/vpcEndpoints/describe");
571
373
  let body;
572
374
  body = JSON.stringify((0, smithy_client_1.take)(input, {
573
375
  VpcEndpointIds: (_) => (0, smithy_client_1._json)(_),
574
376
  }));
575
- return new protocol_http_1.HttpRequest({
576
- protocol,
577
- hostname,
578
- port,
579
- method: "POST",
580
- headers,
581
- path: resolvedPath,
582
- body,
583
- });
377
+ b.m("POST").h(headers).b(body);
378
+ return b.build();
584
379
  };
585
380
  exports.se_DescribeVpcEndpointsCommand = se_DescribeVpcEndpointsCommand;
586
381
  const se_DissociatePackageCommand = async (input, context) => {
587
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
382
+ const b = (0, core_1.requestBuilder)(input, context);
588
383
  const headers = {};
589
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
590
- "/2015-01-01/packages/dissociate/{PackageID}/{DomainName}";
591
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PackageID", () => input.PackageID, "{PackageID}", false);
592
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
384
+ b.bp("/2015-01-01/packages/dissociate/{PackageID}/{DomainName}");
385
+ b.p("PackageID", () => input.PackageID, "{PackageID}", false);
386
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
593
387
  let body;
594
- return new protocol_http_1.HttpRequest({
595
- protocol,
596
- hostname,
597
- port,
598
- method: "POST",
599
- headers,
600
- path: resolvedPath,
601
- body,
602
- });
388
+ b.m("POST").h(headers).b(body);
389
+ return b.build();
603
390
  };
604
391
  exports.se_DissociatePackageCommand = se_DissociatePackageCommand;
605
392
  const se_GetCompatibleElasticsearchVersionsCommand = async (input, context) => {
606
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
393
+ const b = (0, core_1.requestBuilder)(input, context);
607
394
  const headers = {};
608
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/compatibleVersions";
395
+ b.bp("/2015-01-01/es/compatibleVersions");
609
396
  const query = (0, smithy_client_1.map)({
610
- domainName: [, input.DomainName],
397
+ [_dN]: [, input[_DN]],
611
398
  });
612
399
  let body;
613
- return new protocol_http_1.HttpRequest({
614
- protocol,
615
- hostname,
616
- port,
617
- method: "GET",
618
- headers,
619
- path: resolvedPath,
620
- query,
621
- body,
622
- });
400
+ b.m("GET").h(headers).q(query).b(body);
401
+ return b.build();
623
402
  };
624
403
  exports.se_GetCompatibleElasticsearchVersionsCommand = se_GetCompatibleElasticsearchVersionsCommand;
625
404
  const se_GetPackageVersionHistoryCommand = async (input, context) => {
626
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
405
+ const b = (0, core_1.requestBuilder)(input, context);
627
406
  const headers = {};
628
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/{PackageID}/history";
629
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PackageID", () => input.PackageID, "{PackageID}", false);
407
+ b.bp("/2015-01-01/packages/{PackageID}/history");
408
+ b.p("PackageID", () => input.PackageID, "{PackageID}", false);
630
409
  const query = (0, smithy_client_1.map)({
631
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
632
- nextToken: [, input.NextToken],
410
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
411
+ [_nT]: [, input[_NT]],
633
412
  });
634
413
  let body;
635
- return new protocol_http_1.HttpRequest({
636
- protocol,
637
- hostname,
638
- port,
639
- method: "GET",
640
- headers,
641
- path: resolvedPath,
642
- query,
643
- body,
644
- });
414
+ b.m("GET").h(headers).q(query).b(body);
415
+ return b.build();
645
416
  };
646
417
  exports.se_GetPackageVersionHistoryCommand = se_GetPackageVersionHistoryCommand;
647
418
  const se_GetUpgradeHistoryCommand = async (input, context) => {
648
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
419
+ const b = (0, core_1.requestBuilder)(input, context);
649
420
  const headers = {};
650
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
651
- "/2015-01-01/es/upgradeDomain/{DomainName}/history";
652
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
421
+ b.bp("/2015-01-01/es/upgradeDomain/{DomainName}/history");
422
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
653
423
  const query = (0, smithy_client_1.map)({
654
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
655
- nextToken: [, input.NextToken],
424
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
425
+ [_nT]: [, input[_NT]],
656
426
  });
657
427
  let body;
658
- return new protocol_http_1.HttpRequest({
659
- protocol,
660
- hostname,
661
- port,
662
- method: "GET",
663
- headers,
664
- path: resolvedPath,
665
- query,
666
- body,
667
- });
428
+ b.m("GET").h(headers).q(query).b(body);
429
+ return b.build();
668
430
  };
669
431
  exports.se_GetUpgradeHistoryCommand = se_GetUpgradeHistoryCommand;
670
432
  const se_GetUpgradeStatusCommand = async (input, context) => {
671
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
433
+ const b = (0, core_1.requestBuilder)(input, context);
672
434
  const headers = {};
673
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
674
- "/2015-01-01/es/upgradeDomain/{DomainName}/status";
675
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
435
+ b.bp("/2015-01-01/es/upgradeDomain/{DomainName}/status");
436
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
676
437
  let body;
677
- return new protocol_http_1.HttpRequest({
678
- protocol,
679
- hostname,
680
- port,
681
- method: "GET",
682
- headers,
683
- path: resolvedPath,
684
- body,
685
- });
438
+ b.m("GET").h(headers).b(body);
439
+ return b.build();
686
440
  };
687
441
  exports.se_GetUpgradeStatusCommand = se_GetUpgradeStatusCommand;
688
442
  const se_ListDomainNamesCommand = async (input, context) => {
689
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
443
+ const b = (0, core_1.requestBuilder)(input, context);
690
444
  const headers = {};
691
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/domain";
445
+ b.bp("/2015-01-01/domain");
692
446
  const query = (0, smithy_client_1.map)({
693
- engineType: [, input.EngineType],
447
+ [_eT]: [, input[_ET]],
694
448
  });
695
449
  let body;
696
- return new protocol_http_1.HttpRequest({
697
- protocol,
698
- hostname,
699
- port,
700
- method: "GET",
701
- headers,
702
- path: resolvedPath,
703
- query,
704
- body,
705
- });
450
+ b.m("GET").h(headers).q(query).b(body);
451
+ return b.build();
706
452
  };
707
453
  exports.se_ListDomainNamesCommand = se_ListDomainNamesCommand;
708
454
  const se_ListDomainsForPackageCommand = async (input, context) => {
709
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
455
+ const b = (0, core_1.requestBuilder)(input, context);
710
456
  const headers = {};
711
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/{PackageID}/domains";
712
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PackageID", () => input.PackageID, "{PackageID}", false);
457
+ b.bp("/2015-01-01/packages/{PackageID}/domains");
458
+ b.p("PackageID", () => input.PackageID, "{PackageID}", false);
713
459
  const query = (0, smithy_client_1.map)({
714
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
715
- nextToken: [, input.NextToken],
460
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
461
+ [_nT]: [, input[_NT]],
716
462
  });
717
463
  let body;
718
- return new protocol_http_1.HttpRequest({
719
- protocol,
720
- hostname,
721
- port,
722
- method: "GET",
723
- headers,
724
- path: resolvedPath,
725
- query,
726
- body,
727
- });
464
+ b.m("GET").h(headers).q(query).b(body);
465
+ return b.build();
728
466
  };
729
467
  exports.se_ListDomainsForPackageCommand = se_ListDomainsForPackageCommand;
730
468
  const se_ListElasticsearchInstanceTypesCommand = async (input, context) => {
731
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
469
+ const b = (0, core_1.requestBuilder)(input, context);
732
470
  const headers = {};
733
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
734
- "/2015-01-01/es/instanceTypes/{ElasticsearchVersion}";
735
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ElasticsearchVersion", () => input.ElasticsearchVersion, "{ElasticsearchVersion}", false);
471
+ b.bp("/2015-01-01/es/instanceTypes/{ElasticsearchVersion}");
472
+ b.p("ElasticsearchVersion", () => input.ElasticsearchVersion, "{ElasticsearchVersion}", false);
736
473
  const query = (0, smithy_client_1.map)({
737
- domainName: [, input.DomainName],
738
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
739
- nextToken: [, input.NextToken],
474
+ [_dN]: [, input[_DN]],
475
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
476
+ [_nT]: [, input[_NT]],
740
477
  });
741
478
  let body;
742
- return new protocol_http_1.HttpRequest({
743
- protocol,
744
- hostname,
745
- port,
746
- method: "GET",
747
- headers,
748
- path: resolvedPath,
749
- query,
750
- body,
751
- });
479
+ b.m("GET").h(headers).q(query).b(body);
480
+ return b.build();
752
481
  };
753
482
  exports.se_ListElasticsearchInstanceTypesCommand = se_ListElasticsearchInstanceTypesCommand;
754
483
  const se_ListElasticsearchVersionsCommand = async (input, context) => {
755
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
484
+ const b = (0, core_1.requestBuilder)(input, context);
756
485
  const headers = {};
757
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/versions";
486
+ b.bp("/2015-01-01/es/versions");
758
487
  const query = (0, smithy_client_1.map)({
759
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
760
- nextToken: [, input.NextToken],
488
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
489
+ [_nT]: [, input[_NT]],
761
490
  });
762
491
  let body;
763
- return new protocol_http_1.HttpRequest({
764
- protocol,
765
- hostname,
766
- port,
767
- method: "GET",
768
- headers,
769
- path: resolvedPath,
770
- query,
771
- body,
772
- });
492
+ b.m("GET").h(headers).q(query).b(body);
493
+ return b.build();
773
494
  };
774
495
  exports.se_ListElasticsearchVersionsCommand = se_ListElasticsearchVersionsCommand;
775
496
  const se_ListPackagesForDomainCommand = async (input, context) => {
776
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
497
+ const b = (0, core_1.requestBuilder)(input, context);
777
498
  const headers = {};
778
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/domain/{DomainName}/packages";
779
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
499
+ b.bp("/2015-01-01/domain/{DomainName}/packages");
500
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
780
501
  const query = (0, smithy_client_1.map)({
781
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
782
- nextToken: [, input.NextToken],
502
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
503
+ [_nT]: [, input[_NT]],
783
504
  });
784
505
  let body;
785
- return new protocol_http_1.HttpRequest({
786
- protocol,
787
- hostname,
788
- port,
789
- method: "GET",
790
- headers,
791
- path: resolvedPath,
792
- query,
793
- body,
794
- });
506
+ b.m("GET").h(headers).q(query).b(body);
507
+ return b.build();
795
508
  };
796
509
  exports.se_ListPackagesForDomainCommand = se_ListPackagesForDomainCommand;
797
510
  const se_ListTagsCommand = async (input, context) => {
798
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
511
+ const b = (0, core_1.requestBuilder)(input, context);
799
512
  const headers = {};
800
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/tags";
513
+ b.bp("/2015-01-01/tags");
801
514
  const query = (0, smithy_client_1.map)({
802
- arn: [, (0, smithy_client_1.expectNonNull)(input.ARN, `ARN`)],
515
+ [_a]: [, (0, smithy_client_1.expectNonNull)(input[_ARN], `ARN`)],
803
516
  });
804
517
  let body;
805
- return new protocol_http_1.HttpRequest({
806
- protocol,
807
- hostname,
808
- port,
809
- method: "GET",
810
- headers,
811
- path: resolvedPath,
812
- query,
813
- body,
814
- });
518
+ b.m("GET").h(headers).q(query).b(body);
519
+ return b.build();
815
520
  };
816
521
  exports.se_ListTagsCommand = se_ListTagsCommand;
817
522
  const se_ListVpcEndpointAccessCommand = async (input, context) => {
818
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
523
+ const b = (0, core_1.requestBuilder)(input, context);
819
524
  const headers = {};
820
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
821
- "/2015-01-01/es/domain/{DomainName}/listVpcEndpointAccess";
822
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
525
+ b.bp("/2015-01-01/es/domain/{DomainName}/listVpcEndpointAccess");
526
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
823
527
  const query = (0, smithy_client_1.map)({
824
- nextToken: [, input.NextToken],
528
+ [_nT]: [, input[_NT]],
825
529
  });
826
530
  let body;
827
- return new protocol_http_1.HttpRequest({
828
- protocol,
829
- hostname,
830
- port,
831
- method: "GET",
832
- headers,
833
- path: resolvedPath,
834
- query,
835
- body,
836
- });
531
+ b.m("GET").h(headers).q(query).b(body);
532
+ return b.build();
837
533
  };
838
534
  exports.se_ListVpcEndpointAccessCommand = se_ListVpcEndpointAccessCommand;
839
535
  const se_ListVpcEndpointsCommand = async (input, context) => {
840
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
536
+ const b = (0, core_1.requestBuilder)(input, context);
841
537
  const headers = {};
842
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/vpcEndpoints";
538
+ b.bp("/2015-01-01/es/vpcEndpoints");
843
539
  const query = (0, smithy_client_1.map)({
844
- nextToken: [, input.NextToken],
540
+ [_nT]: [, input[_NT]],
845
541
  });
846
542
  let body;
847
- return new protocol_http_1.HttpRequest({
848
- protocol,
849
- hostname,
850
- port,
851
- method: "GET",
852
- headers,
853
- path: resolvedPath,
854
- query,
855
- body,
856
- });
543
+ b.m("GET").h(headers).q(query).b(body);
544
+ return b.build();
857
545
  };
858
546
  exports.se_ListVpcEndpointsCommand = se_ListVpcEndpointsCommand;
859
547
  const se_ListVpcEndpointsForDomainCommand = async (input, context) => {
860
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
548
+ const b = (0, core_1.requestBuilder)(input, context);
861
549
  const headers = {};
862
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
863
- "/2015-01-01/es/domain/{DomainName}/vpcEndpoints";
864
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
550
+ b.bp("/2015-01-01/es/domain/{DomainName}/vpcEndpoints");
551
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
865
552
  const query = (0, smithy_client_1.map)({
866
- nextToken: [, input.NextToken],
553
+ [_nT]: [, input[_NT]],
867
554
  });
868
555
  let body;
869
- return new protocol_http_1.HttpRequest({
870
- protocol,
871
- hostname,
872
- port,
873
- method: "GET",
874
- headers,
875
- path: resolvedPath,
876
- query,
877
- body,
878
- });
556
+ b.m("GET").h(headers).q(query).b(body);
557
+ return b.build();
879
558
  };
880
559
  exports.se_ListVpcEndpointsForDomainCommand = se_ListVpcEndpointsForDomainCommand;
881
560
  const se_PurchaseReservedElasticsearchInstanceOfferingCommand = async (input, context) => {
882
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
561
+ const b = (0, core_1.requestBuilder)(input, context);
883
562
  const headers = {
884
563
  "content-type": "application/json",
885
564
  };
886
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
887
- "/2015-01-01/es/purchaseReservedInstanceOffering";
565
+ b.bp("/2015-01-01/es/purchaseReservedInstanceOffering");
888
566
  let body;
889
567
  body = JSON.stringify((0, smithy_client_1.take)(input, {
890
568
  InstanceCount: [],
891
569
  ReservationName: [],
892
570
  ReservedElasticsearchInstanceOfferingId: [],
893
571
  }));
894
- return new protocol_http_1.HttpRequest({
895
- protocol,
896
- hostname,
897
- port,
898
- method: "POST",
899
- headers,
900
- path: resolvedPath,
901
- body,
902
- });
572
+ b.m("POST").h(headers).b(body);
573
+ return b.build();
903
574
  };
904
575
  exports.se_PurchaseReservedElasticsearchInstanceOfferingCommand = se_PurchaseReservedElasticsearchInstanceOfferingCommand;
905
576
  const se_RejectInboundCrossClusterSearchConnectionCommand = async (input, context) => {
906
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
577
+ const b = (0, core_1.requestBuilder)(input, context);
907
578
  const headers = {};
908
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
909
- "/2015-01-01/es/ccs/inboundConnection/{CrossClusterSearchConnectionId}/reject";
910
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CrossClusterSearchConnectionId", () => input.CrossClusterSearchConnectionId, "{CrossClusterSearchConnectionId}", false);
579
+ b.bp("/2015-01-01/es/ccs/inboundConnection/{CrossClusterSearchConnectionId}/reject");
580
+ b.p("CrossClusterSearchConnectionId", () => input.CrossClusterSearchConnectionId, "{CrossClusterSearchConnectionId}", false);
911
581
  let body;
912
- return new protocol_http_1.HttpRequest({
913
- protocol,
914
- hostname,
915
- port,
916
- method: "PUT",
917
- headers,
918
- path: resolvedPath,
919
- body,
920
- });
582
+ b.m("PUT").h(headers).b(body);
583
+ return b.build();
921
584
  };
922
585
  exports.se_RejectInboundCrossClusterSearchConnectionCommand = se_RejectInboundCrossClusterSearchConnectionCommand;
923
586
  const se_RemoveTagsCommand = async (input, context) => {
924
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
587
+ const b = (0, core_1.requestBuilder)(input, context);
925
588
  const headers = {
926
589
  "content-type": "application/json",
927
590
  };
928
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/tags-removal";
591
+ b.bp("/2015-01-01/tags-removal");
929
592
  let body;
930
593
  body = JSON.stringify((0, smithy_client_1.take)(input, {
931
594
  ARN: [],
932
595
  TagKeys: (_) => (0, smithy_client_1._json)(_),
933
596
  }));
934
- return new protocol_http_1.HttpRequest({
935
- protocol,
936
- hostname,
937
- port,
938
- method: "POST",
939
- headers,
940
- path: resolvedPath,
941
- body,
942
- });
597
+ b.m("POST").h(headers).b(body);
598
+ return b.build();
943
599
  };
944
600
  exports.se_RemoveTagsCommand = se_RemoveTagsCommand;
945
601
  const se_RevokeVpcEndpointAccessCommand = async (input, context) => {
946
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
602
+ const b = (0, core_1.requestBuilder)(input, context);
947
603
  const headers = {
948
604
  "content-type": "application/json",
949
605
  };
950
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
951
- "/2015-01-01/es/domain/{DomainName}/revokeVpcEndpointAccess";
952
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
606
+ b.bp("/2015-01-01/es/domain/{DomainName}/revokeVpcEndpointAccess");
607
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
953
608
  let body;
954
609
  body = JSON.stringify((0, smithy_client_1.take)(input, {
955
610
  Account: [],
956
611
  }));
957
- return new protocol_http_1.HttpRequest({
958
- protocol,
959
- hostname,
960
- port,
961
- method: "POST",
962
- headers,
963
- path: resolvedPath,
964
- body,
965
- });
612
+ b.m("POST").h(headers).b(body);
613
+ return b.build();
966
614
  };
967
615
  exports.se_RevokeVpcEndpointAccessCommand = se_RevokeVpcEndpointAccessCommand;
968
616
  const se_StartElasticsearchServiceSoftwareUpdateCommand = async (input, context) => {
969
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
617
+ const b = (0, core_1.requestBuilder)(input, context);
970
618
  const headers = {
971
619
  "content-type": "application/json",
972
620
  };
973
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
974
- "/2015-01-01/es/serviceSoftwareUpdate/start";
621
+ b.bp("/2015-01-01/es/serviceSoftwareUpdate/start");
975
622
  let body;
976
623
  body = JSON.stringify((0, smithy_client_1.take)(input, {
977
624
  DomainName: [],
978
625
  }));
979
- return new protocol_http_1.HttpRequest({
980
- protocol,
981
- hostname,
982
- port,
983
- method: "POST",
984
- headers,
985
- path: resolvedPath,
986
- body,
987
- });
626
+ b.m("POST").h(headers).b(body);
627
+ return b.build();
988
628
  };
989
629
  exports.se_StartElasticsearchServiceSoftwareUpdateCommand = se_StartElasticsearchServiceSoftwareUpdateCommand;
990
630
  const se_UpdateElasticsearchDomainConfigCommand = async (input, context) => {
991
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
631
+ const b = (0, core_1.requestBuilder)(input, context);
992
632
  const headers = {
993
633
  "content-type": "application/json",
994
634
  };
995
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/domain/{DomainName}/config";
996
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
635
+ b.bp("/2015-01-01/es/domain/{DomainName}/config");
636
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
997
637
  let body;
998
638
  body = JSON.stringify((0, smithy_client_1.take)(input, {
999
639
  AccessPolicies: [],
@@ -1011,23 +651,16 @@ const se_UpdateElasticsearchDomainConfigCommand = async (input, context) => {
1011
651
  SnapshotOptions: (_) => (0, smithy_client_1._json)(_),
1012
652
  VPCOptions: (_) => (0, smithy_client_1._json)(_),
1013
653
  }));
1014
- return new protocol_http_1.HttpRequest({
1015
- protocol,
1016
- hostname,
1017
- port,
1018
- method: "POST",
1019
- headers,
1020
- path: resolvedPath,
1021
- body,
1022
- });
654
+ b.m("POST").h(headers).b(body);
655
+ return b.build();
1023
656
  };
1024
657
  exports.se_UpdateElasticsearchDomainConfigCommand = se_UpdateElasticsearchDomainConfigCommand;
1025
658
  const se_UpdatePackageCommand = async (input, context) => {
1026
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
659
+ const b = (0, core_1.requestBuilder)(input, context);
1027
660
  const headers = {
1028
661
  "content-type": "application/json",
1029
662
  };
1030
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/packages/update";
663
+ b.bp("/2015-01-01/packages/update");
1031
664
  let body;
1032
665
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1033
666
  CommitMessage: [],
@@ -1035,60 +668,39 @@ const se_UpdatePackageCommand = async (input, context) => {
1035
668
  PackageID: [],
1036
669
  PackageSource: (_) => (0, smithy_client_1._json)(_),
1037
670
  }));
1038
- return new protocol_http_1.HttpRequest({
1039
- protocol,
1040
- hostname,
1041
- port,
1042
- method: "POST",
1043
- headers,
1044
- path: resolvedPath,
1045
- body,
1046
- });
671
+ b.m("POST").h(headers).b(body);
672
+ return b.build();
1047
673
  };
1048
674
  exports.se_UpdatePackageCommand = se_UpdatePackageCommand;
1049
675
  const se_UpdateVpcEndpointCommand = async (input, context) => {
1050
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
676
+ const b = (0, core_1.requestBuilder)(input, context);
1051
677
  const headers = {
1052
678
  "content-type": "application/json",
1053
679
  };
1054
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/vpcEndpoints/update";
680
+ b.bp("/2015-01-01/es/vpcEndpoints/update");
1055
681
  let body;
1056
682
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1057
683
  VpcEndpointId: [],
1058
684
  VpcOptions: (_) => (0, smithy_client_1._json)(_),
1059
685
  }));
1060
- return new protocol_http_1.HttpRequest({
1061
- protocol,
1062
- hostname,
1063
- port,
1064
- method: "POST",
1065
- headers,
1066
- path: resolvedPath,
1067
- body,
1068
- });
686
+ b.m("POST").h(headers).b(body);
687
+ return b.build();
1069
688
  };
1070
689
  exports.se_UpdateVpcEndpointCommand = se_UpdateVpcEndpointCommand;
1071
690
  const se_UpgradeElasticsearchDomainCommand = async (input, context) => {
1072
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
691
+ const b = (0, core_1.requestBuilder)(input, context);
1073
692
  const headers = {
1074
693
  "content-type": "application/json",
1075
694
  };
1076
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2015-01-01/es/upgradeDomain";
695
+ b.bp("/2015-01-01/es/upgradeDomain");
1077
696
  let body;
1078
697
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1079
698
  DomainName: [],
1080
699
  PerformCheckOnly: [],
1081
700
  TargetVersion: [],
1082
701
  }));
1083
- return new protocol_http_1.HttpRequest({
1084
- protocol,
1085
- hostname,
1086
- port,
1087
- method: "POST",
1088
- headers,
1089
- path: resolvedPath,
1090
- body,
1091
- });
702
+ b.m("POST").h(headers).b(body);
703
+ return b.build();
1092
704
  };
1093
705
  exports.se_UpgradeElasticsearchDomainCommand = se_UpgradeElasticsearchDomainCommand;
1094
706
  const de_AcceptInboundCrossClusterSearchConnectionCommand = async (output, context) => {
@@ -3897,6 +3509,22 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
3897
3509
  value !== "" &&
3898
3510
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
3899
3511
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
3512
+ const _ARN = "ARN";
3513
+ const _CI = "ChangeId";
3514
+ const _DN = "DomainName";
3515
+ const _ET = "EngineType";
3516
+ const _MR = "MaxResults";
3517
+ const _NT = "NextToken";
3518
+ const _REII = "ReservedElasticsearchInstanceId";
3519
+ const _REIOI = "ReservedElasticsearchInstanceOfferingId";
3520
+ const _a = "arn";
3521
+ const _c = "changeid";
3522
+ const _dN = "domainName";
3523
+ const _eT = "engineType";
3524
+ const _mR = "maxResults";
3525
+ const _nT = "nextToken";
3526
+ const _oI = "offeringId";
3527
+ const _rI = "reservationId";
3900
3528
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3901
3529
  if (encoded.length) {
3902
3530
  return JSON.parse(encoded);