@aws-sdk/client-lex-model-building-service 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.
@@ -2,704 +2,450 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_DeleteIntentCommand = exports.de_DeleteBotVersionCommand = exports.de_DeleteBotChannelAssociationCommand = exports.de_DeleteBotAliasCommand = exports.de_DeleteBotCommand = exports.de_CreateSlotTypeVersionCommand = exports.de_CreateIntentVersionCommand = exports.de_CreateBotVersionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartMigrationCommand = exports.se_StartImportCommand = exports.se_PutSlotTypeCommand = exports.se_PutIntentCommand = exports.se_PutBotAliasCommand = exports.se_PutBotCommand = exports.se_ListTagsForResourceCommand = exports.se_GetUtterancesViewCommand = exports.se_GetSlotTypeVersionsCommand = exports.se_GetSlotTypesCommand = exports.se_GetSlotTypeCommand = exports.se_GetMigrationsCommand = exports.se_GetMigrationCommand = exports.se_GetIntentVersionsCommand = exports.se_GetIntentsCommand = exports.se_GetIntentCommand = exports.se_GetImportCommand = exports.se_GetExportCommand = exports.se_GetBuiltinSlotTypesCommand = exports.se_GetBuiltinIntentsCommand = exports.se_GetBuiltinIntentCommand = exports.se_GetBotVersionsCommand = exports.se_GetBotsCommand = exports.se_GetBotChannelAssociationsCommand = exports.se_GetBotChannelAssociationCommand = exports.se_GetBotAliasesCommand = exports.se_GetBotAliasCommand = exports.se_GetBotCommand = exports.se_DeleteUtterancesCommand = exports.se_DeleteSlotTypeVersionCommand = exports.se_DeleteSlotTypeCommand = exports.se_DeleteIntentVersionCommand = exports.se_DeleteIntentCommand = exports.se_DeleteBotVersionCommand = exports.se_DeleteBotChannelAssociationCommand = exports.se_DeleteBotAliasCommand = exports.se_DeleteBotCommand = exports.se_CreateSlotTypeVersionCommand = exports.se_CreateIntentVersionCommand = exports.se_CreateBotVersionCommand = void 0;
4
4
  exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartMigrationCommand = exports.de_StartImportCommand = exports.de_PutSlotTypeCommand = exports.de_PutIntentCommand = exports.de_PutBotAliasCommand = exports.de_PutBotCommand = exports.de_ListTagsForResourceCommand = exports.de_GetUtterancesViewCommand = exports.de_GetSlotTypeVersionsCommand = exports.de_GetSlotTypesCommand = exports.de_GetSlotTypeCommand = exports.de_GetMigrationsCommand = exports.de_GetMigrationCommand = exports.de_GetIntentVersionsCommand = exports.de_GetIntentsCommand = exports.de_GetIntentCommand = exports.de_GetImportCommand = exports.de_GetExportCommand = exports.de_GetBuiltinSlotTypesCommand = exports.de_GetBuiltinIntentsCommand = exports.de_GetBuiltinIntentCommand = exports.de_GetBotVersionsCommand = exports.de_GetBotsCommand = exports.de_GetBotChannelAssociationsCommand = exports.de_GetBotChannelAssociationCommand = exports.de_GetBotAliasesCommand = exports.de_GetBotAliasCommand = exports.de_GetBotCommand = exports.de_DeleteUtterancesCommand = exports.de_DeleteSlotTypeVersionCommand = exports.de_DeleteSlotTypeCommand = exports.de_DeleteIntentVersionCommand = 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 LexModelBuildingServiceServiceException_1 = require("../models/LexModelBuildingServiceServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_CreateBotVersionCommand = 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
12
  "content-type": "application/json",
13
13
  };
14
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{name}/versions";
15
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
14
+ b.bp("/bots/{name}/versions");
15
+ b.p("name", () => input.name, "{name}", false);
16
16
  let body;
17
17
  body = JSON.stringify((0, smithy_client_1.take)(input, {
18
18
  checksum: [],
19
19
  }));
20
- return new protocol_http_1.HttpRequest({
21
- protocol,
22
- hostname,
23
- port,
24
- method: "POST",
25
- headers,
26
- path: resolvedPath,
27
- body,
28
- });
20
+ b.m("POST").h(headers).b(body);
21
+ return b.build();
29
22
  };
30
23
  exports.se_CreateBotVersionCommand = se_CreateBotVersionCommand;
31
24
  const se_CreateIntentVersionCommand = async (input, context) => {
32
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
25
+ const b = (0, core_1.requestBuilder)(input, context);
33
26
  const headers = {
34
27
  "content-type": "application/json",
35
28
  };
36
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/intents/{name}/versions";
37
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
29
+ b.bp("/intents/{name}/versions");
30
+ b.p("name", () => input.name, "{name}", false);
38
31
  let body;
39
32
  body = JSON.stringify((0, smithy_client_1.take)(input, {
40
33
  checksum: [],
41
34
  }));
42
- return new protocol_http_1.HttpRequest({
43
- protocol,
44
- hostname,
45
- port,
46
- method: "POST",
47
- headers,
48
- path: resolvedPath,
49
- body,
50
- });
35
+ b.m("POST").h(headers).b(body);
36
+ return b.build();
51
37
  };
52
38
  exports.se_CreateIntentVersionCommand = se_CreateIntentVersionCommand;
53
39
  const se_CreateSlotTypeVersionCommand = async (input, context) => {
54
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
40
+ const b = (0, core_1.requestBuilder)(input, context);
55
41
  const headers = {
56
42
  "content-type": "application/json",
57
43
  };
58
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/slottypes/{name}/versions";
59
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
44
+ b.bp("/slottypes/{name}/versions");
45
+ b.p("name", () => input.name, "{name}", false);
60
46
  let body;
61
47
  body = JSON.stringify((0, smithy_client_1.take)(input, {
62
48
  checksum: [],
63
49
  }));
64
- return new protocol_http_1.HttpRequest({
65
- protocol,
66
- hostname,
67
- port,
68
- method: "POST",
69
- headers,
70
- path: resolvedPath,
71
- body,
72
- });
50
+ b.m("POST").h(headers).b(body);
51
+ return b.build();
73
52
  };
74
53
  exports.se_CreateSlotTypeVersionCommand = se_CreateSlotTypeVersionCommand;
75
54
  const se_DeleteBotCommand = async (input, context) => {
76
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
55
+ const b = (0, core_1.requestBuilder)(input, context);
77
56
  const headers = {};
78
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{name}";
79
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
57
+ b.bp("/bots/{name}");
58
+ b.p("name", () => input.name, "{name}", false);
80
59
  let body;
81
- return new protocol_http_1.HttpRequest({
82
- protocol,
83
- hostname,
84
- port,
85
- method: "DELETE",
86
- headers,
87
- path: resolvedPath,
88
- body,
89
- });
60
+ b.m("DELETE").h(headers).b(body);
61
+ return b.build();
90
62
  };
91
63
  exports.se_DeleteBotCommand = se_DeleteBotCommand;
92
64
  const se_DeleteBotAliasCommand = async (input, context) => {
93
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
65
+ const b = (0, core_1.requestBuilder)(input, context);
94
66
  const headers = {};
95
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botName}/aliases/{name}";
96
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
97
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botName", () => input.botName, "{botName}", false);
67
+ b.bp("/bots/{botName}/aliases/{name}");
68
+ b.p("name", () => input.name, "{name}", false);
69
+ b.p("botName", () => input.botName, "{botName}", false);
98
70
  let body;
99
- return new protocol_http_1.HttpRequest({
100
- protocol,
101
- hostname,
102
- port,
103
- method: "DELETE",
104
- headers,
105
- path: resolvedPath,
106
- body,
107
- });
71
+ b.m("DELETE").h(headers).b(body);
72
+ return b.build();
108
73
  };
109
74
  exports.se_DeleteBotAliasCommand = se_DeleteBotAliasCommand;
110
75
  const se_DeleteBotChannelAssociationCommand = async (input, context) => {
111
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
76
+ const b = (0, core_1.requestBuilder)(input, context);
112
77
  const headers = {};
113
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
114
- "/bots/{botName}/aliases/{botAlias}/channels/{name}";
115
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
116
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botName", () => input.botName, "{botName}", false);
117
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botAlias", () => input.botAlias, "{botAlias}", false);
78
+ b.bp("/bots/{botName}/aliases/{botAlias}/channels/{name}");
79
+ b.p("name", () => input.name, "{name}", false);
80
+ b.p("botName", () => input.botName, "{botName}", false);
81
+ b.p("botAlias", () => input.botAlias, "{botAlias}", false);
118
82
  let body;
119
- return new protocol_http_1.HttpRequest({
120
- protocol,
121
- hostname,
122
- port,
123
- method: "DELETE",
124
- headers,
125
- path: resolvedPath,
126
- body,
127
- });
83
+ b.m("DELETE").h(headers).b(body);
84
+ return b.build();
128
85
  };
129
86
  exports.se_DeleteBotChannelAssociationCommand = se_DeleteBotChannelAssociationCommand;
130
87
  const se_DeleteBotVersionCommand = async (input, context) => {
131
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
88
+ const b = (0, core_1.requestBuilder)(input, context);
132
89
  const headers = {};
133
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{name}/versions/{version}";
134
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
135
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "version", () => input.version, "{version}", false);
90
+ b.bp("/bots/{name}/versions/{version}");
91
+ b.p("name", () => input.name, "{name}", false);
92
+ b.p("version", () => input.version, "{version}", false);
136
93
  let body;
137
- return new protocol_http_1.HttpRequest({
138
- protocol,
139
- hostname,
140
- port,
141
- method: "DELETE",
142
- headers,
143
- path: resolvedPath,
144
- body,
145
- });
94
+ b.m("DELETE").h(headers).b(body);
95
+ return b.build();
146
96
  };
147
97
  exports.se_DeleteBotVersionCommand = se_DeleteBotVersionCommand;
148
98
  const se_DeleteIntentCommand = async (input, context) => {
149
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
99
+ const b = (0, core_1.requestBuilder)(input, context);
150
100
  const headers = {};
151
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/intents/{name}";
152
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
101
+ b.bp("/intents/{name}");
102
+ b.p("name", () => input.name, "{name}", false);
153
103
  let body;
154
- return new protocol_http_1.HttpRequest({
155
- protocol,
156
- hostname,
157
- port,
158
- method: "DELETE",
159
- headers,
160
- path: resolvedPath,
161
- body,
162
- });
104
+ b.m("DELETE").h(headers).b(body);
105
+ return b.build();
163
106
  };
164
107
  exports.se_DeleteIntentCommand = se_DeleteIntentCommand;
165
108
  const se_DeleteIntentVersionCommand = async (input, context) => {
166
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
109
+ const b = (0, core_1.requestBuilder)(input, context);
167
110
  const headers = {};
168
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/intents/{name}/versions/{version}";
169
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
170
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "version", () => input.version, "{version}", false);
111
+ b.bp("/intents/{name}/versions/{version}");
112
+ b.p("name", () => input.name, "{name}", false);
113
+ b.p("version", () => input.version, "{version}", false);
171
114
  let body;
172
- return new protocol_http_1.HttpRequest({
173
- protocol,
174
- hostname,
175
- port,
176
- method: "DELETE",
177
- headers,
178
- path: resolvedPath,
179
- body,
180
- });
115
+ b.m("DELETE").h(headers).b(body);
116
+ return b.build();
181
117
  };
182
118
  exports.se_DeleteIntentVersionCommand = se_DeleteIntentVersionCommand;
183
119
  const se_DeleteSlotTypeCommand = async (input, context) => {
184
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
120
+ const b = (0, core_1.requestBuilder)(input, context);
185
121
  const headers = {};
186
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/slottypes/{name}";
187
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
122
+ b.bp("/slottypes/{name}");
123
+ b.p("name", () => input.name, "{name}", false);
188
124
  let body;
189
- return new protocol_http_1.HttpRequest({
190
- protocol,
191
- hostname,
192
- port,
193
- method: "DELETE",
194
- headers,
195
- path: resolvedPath,
196
- body,
197
- });
125
+ b.m("DELETE").h(headers).b(body);
126
+ return b.build();
198
127
  };
199
128
  exports.se_DeleteSlotTypeCommand = se_DeleteSlotTypeCommand;
200
129
  const se_DeleteSlotTypeVersionCommand = async (input, context) => {
201
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
130
+ const b = (0, core_1.requestBuilder)(input, context);
202
131
  const headers = {};
203
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/slottypes/{name}/version/{version}";
204
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
205
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "version", () => input.version, "{version}", false);
132
+ b.bp("/slottypes/{name}/version/{version}");
133
+ b.p("name", () => input.name, "{name}", false);
134
+ b.p("version", () => input.version, "{version}", false);
206
135
  let body;
207
- return new protocol_http_1.HttpRequest({
208
- protocol,
209
- hostname,
210
- port,
211
- method: "DELETE",
212
- headers,
213
- path: resolvedPath,
214
- body,
215
- });
136
+ b.m("DELETE").h(headers).b(body);
137
+ return b.build();
216
138
  };
217
139
  exports.se_DeleteSlotTypeVersionCommand = se_DeleteSlotTypeVersionCommand;
218
140
  const se_DeleteUtterancesCommand = async (input, context) => {
219
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
141
+ const b = (0, core_1.requestBuilder)(input, context);
220
142
  const headers = {};
221
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botName}/utterances/{userId}";
222
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botName", () => input.botName, "{botName}", false);
223
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
143
+ b.bp("/bots/{botName}/utterances/{userId}");
144
+ b.p("botName", () => input.botName, "{botName}", false);
145
+ b.p("userId", () => input.userId, "{userId}", false);
224
146
  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
- });
147
+ b.m("DELETE").h(headers).b(body);
148
+ return b.build();
234
149
  };
235
150
  exports.se_DeleteUtterancesCommand = se_DeleteUtterancesCommand;
236
151
  const se_GetBotCommand = async (input, context) => {
237
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
152
+ const b = (0, core_1.requestBuilder)(input, context);
238
153
  const headers = {};
239
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{name}/versions/{versionOrAlias}";
240
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
241
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "versionOrAlias", () => input.versionOrAlias, "{versionOrAlias}", false);
154
+ b.bp("/bots/{name}/versions/{versionOrAlias}");
155
+ b.p("name", () => input.name, "{name}", false);
156
+ b.p("versionOrAlias", () => input.versionOrAlias, "{versionOrAlias}", false);
242
157
  let body;
243
- return new protocol_http_1.HttpRequest({
244
- protocol,
245
- hostname,
246
- port,
247
- method: "GET",
248
- headers,
249
- path: resolvedPath,
250
- body,
251
- });
158
+ b.m("GET").h(headers).b(body);
159
+ return b.build();
252
160
  };
253
161
  exports.se_GetBotCommand = se_GetBotCommand;
254
162
  const se_GetBotAliasCommand = async (input, context) => {
255
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
163
+ const b = (0, core_1.requestBuilder)(input, context);
256
164
  const headers = {};
257
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botName}/aliases/{name}";
258
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
259
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botName", () => input.botName, "{botName}", false);
165
+ b.bp("/bots/{botName}/aliases/{name}");
166
+ b.p("name", () => input.name, "{name}", false);
167
+ b.p("botName", () => input.botName, "{botName}", false);
260
168
  let body;
261
- return new protocol_http_1.HttpRequest({
262
- protocol,
263
- hostname,
264
- port,
265
- method: "GET",
266
- headers,
267
- path: resolvedPath,
268
- body,
269
- });
169
+ b.m("GET").h(headers).b(body);
170
+ return b.build();
270
171
  };
271
172
  exports.se_GetBotAliasCommand = se_GetBotAliasCommand;
272
173
  const se_GetBotAliasesCommand = async (input, context) => {
273
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
174
+ const b = (0, core_1.requestBuilder)(input, context);
274
175
  const headers = {};
275
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botName}/aliases";
276
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botName", () => input.botName, "{botName}", false);
176
+ b.bp("/bots/{botName}/aliases");
177
+ b.p("botName", () => input.botName, "{botName}", false);
277
178
  const query = (0, smithy_client_1.map)({
278
- nextToken: [, input.nextToken],
279
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
280
- nameContains: [, input.nameContains],
179
+ [_nT]: [, input[_nT]],
180
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
181
+ [_nC]: [, input[_nC]],
281
182
  });
282
183
  let body;
283
- return new protocol_http_1.HttpRequest({
284
- protocol,
285
- hostname,
286
- port,
287
- method: "GET",
288
- headers,
289
- path: resolvedPath,
290
- query,
291
- body,
292
- });
184
+ b.m("GET").h(headers).q(query).b(body);
185
+ return b.build();
293
186
  };
294
187
  exports.se_GetBotAliasesCommand = se_GetBotAliasesCommand;
295
188
  const se_GetBotChannelAssociationCommand = async (input, context) => {
296
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
189
+ const b = (0, core_1.requestBuilder)(input, context);
297
190
  const headers = {};
298
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
299
- "/bots/{botName}/aliases/{botAlias}/channels/{name}";
300
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
301
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botName", () => input.botName, "{botName}", false);
302
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botAlias", () => input.botAlias, "{botAlias}", false);
191
+ b.bp("/bots/{botName}/aliases/{botAlias}/channels/{name}");
192
+ b.p("name", () => input.name, "{name}", false);
193
+ b.p("botName", () => input.botName, "{botName}", false);
194
+ b.p("botAlias", () => input.botAlias, "{botAlias}", false);
303
195
  let body;
304
- return new protocol_http_1.HttpRequest({
305
- protocol,
306
- hostname,
307
- port,
308
- method: "GET",
309
- headers,
310
- path: resolvedPath,
311
- body,
312
- });
196
+ b.m("GET").h(headers).b(body);
197
+ return b.build();
313
198
  };
314
199
  exports.se_GetBotChannelAssociationCommand = se_GetBotChannelAssociationCommand;
315
200
  const se_GetBotChannelAssociationsCommand = async (input, context) => {
316
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
201
+ const b = (0, core_1.requestBuilder)(input, context);
317
202
  const headers = {};
318
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
319
- "/bots/{botName}/aliases/{botAlias}/channels";
320
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botName", () => input.botName, "{botName}", false);
321
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botAlias", () => input.botAlias, "{botAlias}", false);
203
+ b.bp("/bots/{botName}/aliases/{botAlias}/channels");
204
+ b.p("botName", () => input.botName, "{botName}", false);
205
+ b.p("botAlias", () => input.botAlias, "{botAlias}", false);
322
206
  const query = (0, smithy_client_1.map)({
323
- nextToken: [, input.nextToken],
324
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
325
- nameContains: [, input.nameContains],
207
+ [_nT]: [, input[_nT]],
208
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
209
+ [_nC]: [, input[_nC]],
326
210
  });
327
211
  let body;
328
- return new protocol_http_1.HttpRequest({
329
- protocol,
330
- hostname,
331
- port,
332
- method: "GET",
333
- headers,
334
- path: resolvedPath,
335
- query,
336
- body,
337
- });
212
+ b.m("GET").h(headers).q(query).b(body);
213
+ return b.build();
338
214
  };
339
215
  exports.se_GetBotChannelAssociationsCommand = se_GetBotChannelAssociationsCommand;
340
216
  const se_GetBotsCommand = async (input, context) => {
341
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
217
+ const b = (0, core_1.requestBuilder)(input, context);
342
218
  const headers = {};
343
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots";
219
+ b.bp("/bots");
344
220
  const query = (0, smithy_client_1.map)({
345
- nextToken: [, input.nextToken],
346
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
347
- nameContains: [, input.nameContains],
221
+ [_nT]: [, input[_nT]],
222
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
223
+ [_nC]: [, input[_nC]],
348
224
  });
349
225
  let body;
350
- return new protocol_http_1.HttpRequest({
351
- protocol,
352
- hostname,
353
- port,
354
- method: "GET",
355
- headers,
356
- path: resolvedPath,
357
- query,
358
- body,
359
- });
226
+ b.m("GET").h(headers).q(query).b(body);
227
+ return b.build();
360
228
  };
361
229
  exports.se_GetBotsCommand = se_GetBotsCommand;
362
230
  const se_GetBotVersionsCommand = async (input, context) => {
363
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
231
+ const b = (0, core_1.requestBuilder)(input, context);
364
232
  const headers = {};
365
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{name}/versions";
366
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
233
+ b.bp("/bots/{name}/versions");
234
+ b.p("name", () => input.name, "{name}", false);
367
235
  const query = (0, smithy_client_1.map)({
368
- nextToken: [, input.nextToken],
369
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
236
+ [_nT]: [, input[_nT]],
237
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
370
238
  });
371
239
  let body;
372
- return new protocol_http_1.HttpRequest({
373
- protocol,
374
- hostname,
375
- port,
376
- method: "GET",
377
- headers,
378
- path: resolvedPath,
379
- query,
380
- body,
381
- });
240
+ b.m("GET").h(headers).q(query).b(body);
241
+ return b.build();
382
242
  };
383
243
  exports.se_GetBotVersionsCommand = se_GetBotVersionsCommand;
384
244
  const se_GetBuiltinIntentCommand = async (input, context) => {
385
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
245
+ const b = (0, core_1.requestBuilder)(input, context);
386
246
  const headers = {};
387
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/builtins/intents/{signature}";
388
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "signature", () => input.signature, "{signature}", false);
247
+ b.bp("/builtins/intents/{signature}");
248
+ b.p("signature", () => input.signature, "{signature}", false);
389
249
  let body;
390
- return new protocol_http_1.HttpRequest({
391
- protocol,
392
- hostname,
393
- port,
394
- method: "GET",
395
- headers,
396
- path: resolvedPath,
397
- body,
398
- });
250
+ b.m("GET").h(headers).b(body);
251
+ return b.build();
399
252
  };
400
253
  exports.se_GetBuiltinIntentCommand = se_GetBuiltinIntentCommand;
401
254
  const se_GetBuiltinIntentsCommand = async (input, context) => {
402
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
255
+ const b = (0, core_1.requestBuilder)(input, context);
403
256
  const headers = {};
404
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/builtins/intents";
257
+ b.bp("/builtins/intents");
405
258
  const query = (0, smithy_client_1.map)({
406
- locale: [, input.locale],
407
- signatureContains: [, input.signatureContains],
408
- nextToken: [, input.nextToken],
409
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
259
+ [_l]: [, input[_l]],
260
+ [_sC]: [, input[_sC]],
261
+ [_nT]: [, input[_nT]],
262
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
410
263
  });
411
264
  let body;
412
- return new protocol_http_1.HttpRequest({
413
- protocol,
414
- hostname,
415
- port,
416
- method: "GET",
417
- headers,
418
- path: resolvedPath,
419
- query,
420
- body,
421
- });
265
+ b.m("GET").h(headers).q(query).b(body);
266
+ return b.build();
422
267
  };
423
268
  exports.se_GetBuiltinIntentsCommand = se_GetBuiltinIntentsCommand;
424
269
  const se_GetBuiltinSlotTypesCommand = async (input, context) => {
425
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
270
+ const b = (0, core_1.requestBuilder)(input, context);
426
271
  const headers = {};
427
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/builtins/slottypes";
272
+ b.bp("/builtins/slottypes");
428
273
  const query = (0, smithy_client_1.map)({
429
- locale: [, input.locale],
430
- signatureContains: [, input.signatureContains],
431
- nextToken: [, input.nextToken],
432
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
274
+ [_l]: [, input[_l]],
275
+ [_sC]: [, input[_sC]],
276
+ [_nT]: [, input[_nT]],
277
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
433
278
  });
434
279
  let body;
435
- return new protocol_http_1.HttpRequest({
436
- protocol,
437
- hostname,
438
- port,
439
- method: "GET",
440
- headers,
441
- path: resolvedPath,
442
- query,
443
- body,
444
- });
280
+ b.m("GET").h(headers).q(query).b(body);
281
+ return b.build();
445
282
  };
446
283
  exports.se_GetBuiltinSlotTypesCommand = se_GetBuiltinSlotTypesCommand;
447
284
  const se_GetExportCommand = async (input, context) => {
448
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
285
+ const b = (0, core_1.requestBuilder)(input, context);
449
286
  const headers = {};
450
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/exports";
287
+ b.bp("/exports");
451
288
  const query = (0, smithy_client_1.map)({
452
- name: [, (0, smithy_client_1.expectNonNull)(input.name, `name`)],
453
- version: [, (0, smithy_client_1.expectNonNull)(input.version, `version`)],
454
- resourceType: [, (0, smithy_client_1.expectNonNull)(input.resourceType, `resourceType`)],
455
- exportType: [, (0, smithy_client_1.expectNonNull)(input.exportType, `exportType`)],
289
+ [_n]: [, (0, smithy_client_1.expectNonNull)(input[_n], `name`)],
290
+ [_v]: [, (0, smithy_client_1.expectNonNull)(input[_v], `version`)],
291
+ [_rT]: [, (0, smithy_client_1.expectNonNull)(input[_rT], `resourceType`)],
292
+ [_eT]: [, (0, smithy_client_1.expectNonNull)(input[_eT], `exportType`)],
456
293
  });
457
294
  let body;
458
- return new protocol_http_1.HttpRequest({
459
- protocol,
460
- hostname,
461
- port,
462
- method: "GET",
463
- headers,
464
- path: resolvedPath,
465
- query,
466
- body,
467
- });
295
+ b.m("GET").h(headers).q(query).b(body);
296
+ return b.build();
468
297
  };
469
298
  exports.se_GetExportCommand = se_GetExportCommand;
470
299
  const se_GetImportCommand = async (input, context) => {
471
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
300
+ const b = (0, core_1.requestBuilder)(input, context);
472
301
  const headers = {};
473
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/imports/{importId}";
474
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "importId", () => input.importId, "{importId}", false);
302
+ b.bp("/imports/{importId}");
303
+ b.p("importId", () => input.importId, "{importId}", false);
475
304
  let body;
476
- return new protocol_http_1.HttpRequest({
477
- protocol,
478
- hostname,
479
- port,
480
- method: "GET",
481
- headers,
482
- path: resolvedPath,
483
- body,
484
- });
305
+ b.m("GET").h(headers).b(body);
306
+ return b.build();
485
307
  };
486
308
  exports.se_GetImportCommand = se_GetImportCommand;
487
309
  const se_GetIntentCommand = async (input, context) => {
488
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
310
+ const b = (0, core_1.requestBuilder)(input, context);
489
311
  const headers = {};
490
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/intents/{name}/versions/{version}";
491
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
492
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "version", () => input.version, "{version}", false);
312
+ b.bp("/intents/{name}/versions/{version}");
313
+ b.p("name", () => input.name, "{name}", false);
314
+ b.p("version", () => input.version, "{version}", false);
493
315
  let body;
494
- return new protocol_http_1.HttpRequest({
495
- protocol,
496
- hostname,
497
- port,
498
- method: "GET",
499
- headers,
500
- path: resolvedPath,
501
- body,
502
- });
316
+ b.m("GET").h(headers).b(body);
317
+ return b.build();
503
318
  };
504
319
  exports.se_GetIntentCommand = se_GetIntentCommand;
505
320
  const se_GetIntentsCommand = async (input, context) => {
506
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
321
+ const b = (0, core_1.requestBuilder)(input, context);
507
322
  const headers = {};
508
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/intents";
323
+ b.bp("/intents");
509
324
  const query = (0, smithy_client_1.map)({
510
- nextToken: [, input.nextToken],
511
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
512
- nameContains: [, input.nameContains],
325
+ [_nT]: [, input[_nT]],
326
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
327
+ [_nC]: [, input[_nC]],
513
328
  });
514
329
  let body;
515
- return new protocol_http_1.HttpRequest({
516
- protocol,
517
- hostname,
518
- port,
519
- method: "GET",
520
- headers,
521
- path: resolvedPath,
522
- query,
523
- body,
524
- });
330
+ b.m("GET").h(headers).q(query).b(body);
331
+ return b.build();
525
332
  };
526
333
  exports.se_GetIntentsCommand = se_GetIntentsCommand;
527
334
  const se_GetIntentVersionsCommand = async (input, context) => {
528
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
335
+ const b = (0, core_1.requestBuilder)(input, context);
529
336
  const headers = {};
530
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/intents/{name}/versions";
531
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
337
+ b.bp("/intents/{name}/versions");
338
+ b.p("name", () => input.name, "{name}", false);
532
339
  const query = (0, smithy_client_1.map)({
533
- nextToken: [, input.nextToken],
534
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
340
+ [_nT]: [, input[_nT]],
341
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
535
342
  });
536
343
  let body;
537
- return new protocol_http_1.HttpRequest({
538
- protocol,
539
- hostname,
540
- port,
541
- method: "GET",
542
- headers,
543
- path: resolvedPath,
544
- query,
545
- body,
546
- });
344
+ b.m("GET").h(headers).q(query).b(body);
345
+ return b.build();
547
346
  };
548
347
  exports.se_GetIntentVersionsCommand = se_GetIntentVersionsCommand;
549
348
  const se_GetMigrationCommand = async (input, context) => {
550
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
349
+ const b = (0, core_1.requestBuilder)(input, context);
551
350
  const headers = {};
552
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrations/{migrationId}";
553
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "migrationId", () => input.migrationId, "{migrationId}", false);
351
+ b.bp("/migrations/{migrationId}");
352
+ b.p("migrationId", () => input.migrationId, "{migrationId}", false);
554
353
  let body;
555
- return new protocol_http_1.HttpRequest({
556
- protocol,
557
- hostname,
558
- port,
559
- method: "GET",
560
- headers,
561
- path: resolvedPath,
562
- body,
563
- });
354
+ b.m("GET").h(headers).b(body);
355
+ return b.build();
564
356
  };
565
357
  exports.se_GetMigrationCommand = se_GetMigrationCommand;
566
358
  const se_GetMigrationsCommand = async (input, context) => {
567
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
359
+ const b = (0, core_1.requestBuilder)(input, context);
568
360
  const headers = {};
569
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrations";
361
+ b.bp("/migrations");
570
362
  const query = (0, smithy_client_1.map)({
571
- sortByAttribute: [, input.sortByAttribute],
572
- sortByOrder: [, input.sortByOrder],
573
- v1BotNameContains: [, input.v1BotNameContains],
574
- migrationStatusEquals: [, input.migrationStatusEquals],
575
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
576
- nextToken: [, input.nextToken],
363
+ [_sBA]: [, input[_sBA]],
364
+ [_sBO]: [, input[_sBO]],
365
+ [_vBNC]: [, input[_vBNC]],
366
+ [_mSE]: [, input[_mSE]],
367
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
368
+ [_nT]: [, input[_nT]],
577
369
  });
578
370
  let body;
579
- return new protocol_http_1.HttpRequest({
580
- protocol,
581
- hostname,
582
- port,
583
- method: "GET",
584
- headers,
585
- path: resolvedPath,
586
- query,
587
- body,
588
- });
371
+ b.m("GET").h(headers).q(query).b(body);
372
+ return b.build();
589
373
  };
590
374
  exports.se_GetMigrationsCommand = se_GetMigrationsCommand;
591
375
  const se_GetSlotTypeCommand = async (input, context) => {
592
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
376
+ const b = (0, core_1.requestBuilder)(input, context);
593
377
  const headers = {};
594
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/slottypes/{name}/versions/{version}";
595
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
596
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "version", () => input.version, "{version}", false);
378
+ b.bp("/slottypes/{name}/versions/{version}");
379
+ b.p("name", () => input.name, "{name}", false);
380
+ b.p("version", () => input.version, "{version}", false);
597
381
  let body;
598
- return new protocol_http_1.HttpRequest({
599
- protocol,
600
- hostname,
601
- port,
602
- method: "GET",
603
- headers,
604
- path: resolvedPath,
605
- body,
606
- });
382
+ b.m("GET").h(headers).b(body);
383
+ return b.build();
607
384
  };
608
385
  exports.se_GetSlotTypeCommand = se_GetSlotTypeCommand;
609
386
  const se_GetSlotTypesCommand = async (input, context) => {
610
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
387
+ const b = (0, core_1.requestBuilder)(input, context);
611
388
  const headers = {};
612
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/slottypes";
389
+ b.bp("/slottypes");
613
390
  const query = (0, smithy_client_1.map)({
614
- nextToken: [, input.nextToken],
615
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
616
- nameContains: [, input.nameContains],
391
+ [_nT]: [, input[_nT]],
392
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
393
+ [_nC]: [, input[_nC]],
617
394
  });
618
395
  let body;
619
- return new protocol_http_1.HttpRequest({
620
- protocol,
621
- hostname,
622
- port,
623
- method: "GET",
624
- headers,
625
- path: resolvedPath,
626
- query,
627
- body,
628
- });
396
+ b.m("GET").h(headers).q(query).b(body);
397
+ return b.build();
629
398
  };
630
399
  exports.se_GetSlotTypesCommand = se_GetSlotTypesCommand;
631
400
  const se_GetSlotTypeVersionsCommand = async (input, context) => {
632
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
401
+ const b = (0, core_1.requestBuilder)(input, context);
633
402
  const headers = {};
634
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/slottypes/{name}/versions";
635
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
403
+ b.bp("/slottypes/{name}/versions");
404
+ b.p("name", () => input.name, "{name}", false);
636
405
  const query = (0, smithy_client_1.map)({
637
- nextToken: [, input.nextToken],
638
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
406
+ [_nT]: [, input[_nT]],
407
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
639
408
  });
640
409
  let body;
641
- return new protocol_http_1.HttpRequest({
642
- protocol,
643
- hostname,
644
- port,
645
- method: "GET",
646
- headers,
647
- path: resolvedPath,
648
- query,
649
- body,
650
- });
410
+ b.m("GET").h(headers).q(query).b(body);
411
+ return b.build();
651
412
  };
652
413
  exports.se_GetSlotTypeVersionsCommand = se_GetSlotTypeVersionsCommand;
653
414
  const se_GetUtterancesViewCommand = async (input, context) => {
654
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
415
+ const b = (0, core_1.requestBuilder)(input, context);
655
416
  const headers = {};
656
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botName}/utterances";
657
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botName", () => input.botName, "{botName}", false);
417
+ b.bp("/bots/{botName}/utterances");
418
+ b.p("botName", () => input.botName, "{botName}", false);
658
419
  const query = (0, smithy_client_1.map)({
659
- view: [, "aggregation"],
660
- bot_versions: [
420
+ [_vi]: [, "aggregation"],
421
+ [_bv]: [
661
422
  (0, smithy_client_1.expectNonNull)(input.botVersions, `botVersions`) != null,
662
- () => (input.botVersions || []).map((_entry) => _entry),
423
+ () => (input[_bV] || []).map((_entry) => _entry),
663
424
  ],
664
- status_type: [, (0, smithy_client_1.expectNonNull)(input.statusType, `statusType`)],
425
+ [_st]: [, (0, smithy_client_1.expectNonNull)(input[_sT], `statusType`)],
665
426
  });
666
427
  let body;
667
- return new protocol_http_1.HttpRequest({
668
- protocol,
669
- hostname,
670
- port,
671
- method: "GET",
672
- headers,
673
- path: resolvedPath,
674
- query,
675
- body,
676
- });
428
+ b.m("GET").h(headers).q(query).b(body);
429
+ return b.build();
677
430
  };
678
431
  exports.se_GetUtterancesViewCommand = se_GetUtterancesViewCommand;
679
432
  const se_ListTagsForResourceCommand = async (input, context) => {
680
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
433
+ const b = (0, core_1.requestBuilder)(input, context);
681
434
  const headers = {};
682
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
683
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
435
+ b.bp("/tags/{resourceArn}");
436
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
684
437
  let body;
685
- return new protocol_http_1.HttpRequest({
686
- protocol,
687
- hostname,
688
- port,
689
- method: "GET",
690
- headers,
691
- path: resolvedPath,
692
- body,
693
- });
438
+ b.m("GET").h(headers).b(body);
439
+ return b.build();
694
440
  };
695
441
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
696
442
  const se_PutBotCommand = async (input, context) => {
697
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
443
+ const b = (0, core_1.requestBuilder)(input, context);
698
444
  const headers = {
699
445
  "content-type": "application/json",
700
446
  };
701
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{name}/versions/$LATEST";
702
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
447
+ b.bp("/bots/{name}/versions/$LATEST");
448
+ b.p("name", () => input.name, "{name}", false);
703
449
  let body;
704
450
  body = JSON.stringify((0, smithy_client_1.take)(input, {
705
451
  abortStatement: (_) => (0, smithy_client_1._json)(_),
@@ -718,25 +464,18 @@ const se_PutBotCommand = async (input, context) => {
718
464
  tags: (_) => (0, smithy_client_1._json)(_),
719
465
  voiceId: [],
720
466
  }));
721
- return new protocol_http_1.HttpRequest({
722
- protocol,
723
- hostname,
724
- port,
725
- method: "PUT",
726
- headers,
727
- path: resolvedPath,
728
- body,
729
- });
467
+ b.m("PUT").h(headers).b(body);
468
+ return b.build();
730
469
  };
731
470
  exports.se_PutBotCommand = se_PutBotCommand;
732
471
  const se_PutBotAliasCommand = async (input, context) => {
733
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
472
+ const b = (0, core_1.requestBuilder)(input, context);
734
473
  const headers = {
735
474
  "content-type": "application/json",
736
475
  };
737
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/bots/{botName}/aliases/{name}";
738
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
739
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botName", () => input.botName, "{botName}", false);
476
+ b.bp("/bots/{botName}/aliases/{name}");
477
+ b.p("name", () => input.name, "{name}", false);
478
+ b.p("botName", () => input.botName, "{botName}", false);
740
479
  let body;
741
480
  body = JSON.stringify((0, smithy_client_1.take)(input, {
742
481
  botVersion: [],
@@ -745,24 +484,17 @@ const se_PutBotAliasCommand = async (input, context) => {
745
484
  description: [],
746
485
  tags: (_) => (0, smithy_client_1._json)(_),
747
486
  }));
748
- return new protocol_http_1.HttpRequest({
749
- protocol,
750
- hostname,
751
- port,
752
- method: "PUT",
753
- headers,
754
- path: resolvedPath,
755
- body,
756
- });
487
+ b.m("PUT").h(headers).b(body);
488
+ return b.build();
757
489
  };
758
490
  exports.se_PutBotAliasCommand = se_PutBotAliasCommand;
759
491
  const se_PutIntentCommand = async (input, context) => {
760
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
492
+ const b = (0, core_1.requestBuilder)(input, context);
761
493
  const headers = {
762
494
  "content-type": "application/json",
763
495
  };
764
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/intents/{name}/versions/$LATEST";
765
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
496
+ b.bp("/intents/{name}/versions/$LATEST");
497
+ b.p("name", () => input.name, "{name}", false);
766
498
  let body;
767
499
  body = JSON.stringify((0, smithy_client_1.take)(input, {
768
500
  checksum: [],
@@ -781,24 +513,17 @@ const se_PutIntentCommand = async (input, context) => {
781
513
  sampleUtterances: (_) => (0, smithy_client_1._json)(_),
782
514
  slots: (_) => (0, smithy_client_1._json)(_),
783
515
  }));
784
- return new protocol_http_1.HttpRequest({
785
- protocol,
786
- hostname,
787
- port,
788
- method: "PUT",
789
- headers,
790
- path: resolvedPath,
791
- body,
792
- });
516
+ b.m("PUT").h(headers).b(body);
517
+ return b.build();
793
518
  };
794
519
  exports.se_PutIntentCommand = se_PutIntentCommand;
795
520
  const se_PutSlotTypeCommand = async (input, context) => {
796
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
521
+ const b = (0, core_1.requestBuilder)(input, context);
797
522
  const headers = {
798
523
  "content-type": "application/json",
799
524
  };
800
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/slottypes/{name}/versions/$LATEST";
801
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
525
+ b.bp("/slottypes/{name}/versions/$LATEST");
526
+ b.p("name", () => input.name, "{name}", false);
802
527
  let body;
803
528
  body = JSON.stringify((0, smithy_client_1.take)(input, {
804
529
  checksum: [],
@@ -809,23 +534,16 @@ const se_PutSlotTypeCommand = async (input, context) => {
809
534
  slotTypeConfigurations: (_) => (0, smithy_client_1._json)(_),
810
535
  valueSelectionStrategy: [],
811
536
  }));
812
- return new protocol_http_1.HttpRequest({
813
- protocol,
814
- hostname,
815
- port,
816
- method: "PUT",
817
- headers,
818
- path: resolvedPath,
819
- body,
820
- });
537
+ b.m("PUT").h(headers).b(body);
538
+ return b.build();
821
539
  };
822
540
  exports.se_PutSlotTypeCommand = se_PutSlotTypeCommand;
823
541
  const se_StartImportCommand = async (input, context) => {
824
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
542
+ const b = (0, core_1.requestBuilder)(input, context);
825
543
  const headers = {
826
544
  "content-type": "application/json",
827
545
  };
828
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/imports";
546
+ b.bp("/imports");
829
547
  let body;
830
548
  body = JSON.stringify((0, smithy_client_1.take)(input, {
831
549
  mergeStrategy: [],
@@ -833,23 +551,16 @@ const se_StartImportCommand = async (input, context) => {
833
551
  resourceType: [],
834
552
  tags: (_) => (0, smithy_client_1._json)(_),
835
553
  }));
836
- return new protocol_http_1.HttpRequest({
837
- protocol,
838
- hostname,
839
- port,
840
- method: "POST",
841
- headers,
842
- path: resolvedPath,
843
- body,
844
- });
554
+ b.m("POST").h(headers).b(body);
555
+ return b.build();
845
556
  };
846
557
  exports.se_StartImportCommand = se_StartImportCommand;
847
558
  const se_StartMigrationCommand = async (input, context) => {
848
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
559
+ const b = (0, core_1.requestBuilder)(input, context);
849
560
  const headers = {
850
561
  "content-type": "application/json",
851
562
  };
852
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/migrations";
563
+ b.bp("/migrations");
853
564
  let body;
854
565
  body = JSON.stringify((0, smithy_client_1.take)(input, {
855
566
  migrationStrategy: [],
@@ -858,61 +569,39 @@ const se_StartMigrationCommand = async (input, context) => {
858
569
  v2BotName: [],
859
570
  v2BotRole: [],
860
571
  }));
861
- return new protocol_http_1.HttpRequest({
862
- protocol,
863
- hostname,
864
- port,
865
- method: "POST",
866
- headers,
867
- path: resolvedPath,
868
- body,
869
- });
572
+ b.m("POST").h(headers).b(body);
573
+ return b.build();
870
574
  };
871
575
  exports.se_StartMigrationCommand = se_StartMigrationCommand;
872
576
  const se_TagResourceCommand = async (input, context) => {
873
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
577
+ const b = (0, core_1.requestBuilder)(input, context);
874
578
  const headers = {
875
579
  "content-type": "application/json",
876
580
  };
877
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
878
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
581
+ b.bp("/tags/{resourceArn}");
582
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
879
583
  let body;
880
584
  body = JSON.stringify((0, smithy_client_1.take)(input, {
881
585
  tags: (_) => (0, smithy_client_1._json)(_),
882
586
  }));
883
- return new protocol_http_1.HttpRequest({
884
- protocol,
885
- hostname,
886
- port,
887
- method: "POST",
888
- headers,
889
- path: resolvedPath,
890
- body,
891
- });
587
+ b.m("POST").h(headers).b(body);
588
+ return b.build();
892
589
  };
893
590
  exports.se_TagResourceCommand = se_TagResourceCommand;
894
591
  const se_UntagResourceCommand = async (input, context) => {
895
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
592
+ const b = (0, core_1.requestBuilder)(input, context);
896
593
  const headers = {};
897
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
898
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
594
+ b.bp("/tags/{resourceArn}");
595
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
899
596
  const query = (0, smithy_client_1.map)({
900
- tagKeys: [
597
+ [_tK]: [
901
598
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
902
- () => (input.tagKeys || []).map((_entry) => _entry),
599
+ () => (input[_tK] || []).map((_entry) => _entry),
903
600
  ],
904
601
  });
905
602
  let body;
906
- return new protocol_http_1.HttpRequest({
907
- protocol,
908
- hostname,
909
- port,
910
- method: "DELETE",
911
- headers,
912
- path: resolvedPath,
913
- query,
914
- body,
915
- });
603
+ b.m("DELETE").h(headers).q(query).b(body);
604
+ return b.build();
916
605
  };
917
606
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
918
607
  const de_CreateBotVersionCommand = async (output, context) => {
@@ -2998,7 +2687,7 @@ const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
2998
2687
  };
2999
2688
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
3000
2689
  const contents = (0, smithy_client_1.map)({
3001
- retryAfterSeconds: [, parsedOutput.headers["retry-after"]],
2690
+ [_rAS]: [, parsedOutput.headers[_ra]],
3002
2691
  });
3003
2692
  const data = parsedOutput.body;
3004
2693
  const doc = (0, smithy_client_1.take)(data, {
@@ -3208,6 +2897,27 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
3208
2897
  value !== "" &&
3209
2898
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
3210
2899
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2900
+ const _bV = "botVersions";
2901
+ const _bv = "bot_versions";
2902
+ const _eT = "exportType";
2903
+ const _l = "locale";
2904
+ const _mR = "maxResults";
2905
+ const _mSE = "migrationStatusEquals";
2906
+ const _n = "name";
2907
+ const _nC = "nameContains";
2908
+ const _nT = "nextToken";
2909
+ const _rAS = "retryAfterSeconds";
2910
+ const _rT = "resourceType";
2911
+ const _ra = "retry-after";
2912
+ const _sBA = "sortByAttribute";
2913
+ const _sBO = "sortByOrder";
2914
+ const _sC = "signatureContains";
2915
+ const _sT = "statusType";
2916
+ const _st = "status_type";
2917
+ const _tK = "tagKeys";
2918
+ const _v = "version";
2919
+ const _vBNC = "v1BotNameContains";
2920
+ const _vi = "view";
3211
2921
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3212
2922
  if (encoded.length) {
3213
2923
  return JSON.parse(encoded);