@aws-sdk/client-iot-events 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,16 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_UpdateAlarmModelCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartDetectorModelAnalysisCommand = exports.de_PutLoggingOptionsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListInputsCommand = exports.de_ListInputRoutingsCommand = exports.de_ListDetectorModelVersionsCommand = exports.de_ListDetectorModelsCommand = exports.de_ListAlarmModelVersionsCommand = exports.de_ListAlarmModelsCommand = exports.de_GetDetectorModelAnalysisResultsCommand = exports.de_DescribeLoggingOptionsCommand = exports.de_DescribeInputCommand = exports.de_DescribeDetectorModelAnalysisCommand = exports.de_DescribeDetectorModelCommand = exports.de_DescribeAlarmModelCommand = exports.de_DeleteInputCommand = exports.de_DeleteDetectorModelCommand = exports.de_DeleteAlarmModelCommand = exports.de_CreateInputCommand = exports.de_CreateDetectorModelCommand = exports.de_CreateAlarmModelCommand = exports.se_UpdateInputCommand = exports.se_UpdateDetectorModelCommand = exports.se_UpdateAlarmModelCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartDetectorModelAnalysisCommand = exports.se_PutLoggingOptionsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListInputsCommand = exports.se_ListInputRoutingsCommand = exports.se_ListDetectorModelVersionsCommand = exports.se_ListDetectorModelsCommand = exports.se_ListAlarmModelVersionsCommand = exports.se_ListAlarmModelsCommand = exports.se_GetDetectorModelAnalysisResultsCommand = exports.se_DescribeLoggingOptionsCommand = exports.se_DescribeInputCommand = exports.se_DescribeDetectorModelAnalysisCommand = exports.se_DescribeDetectorModelCommand = exports.se_DescribeAlarmModelCommand = exports.se_DeleteInputCommand = exports.se_DeleteDetectorModelCommand = exports.se_DeleteAlarmModelCommand = exports.se_CreateInputCommand = exports.se_CreateDetectorModelCommand = exports.se_CreateAlarmModelCommand = void 0;
4
4
  exports.de_UpdateInputCommand = exports.de_UpdateDetectorModelCommand = 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 IoTEventsServiceException_1 = require("../models/IoTEventsServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_CreateAlarmModelCommand = 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
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models";
14
+ b.bp("/alarm-models");
15
15
  let body;
16
16
  body = JSON.stringify((0, smithy_client_1.take)(input, {
17
17
  alarmCapabilities: (_) => (0, smithy_client_1._json)(_),
@@ -25,23 +25,16 @@ const se_CreateAlarmModelCommand = async (input, context) => {
25
25
  severity: [],
26
26
  tags: (_) => (0, smithy_client_1._json)(_),
27
27
  }));
28
- return new protocol_http_1.HttpRequest({
29
- protocol,
30
- hostname,
31
- port,
32
- method: "POST",
33
- headers,
34
- path: resolvedPath,
35
- body,
36
- });
28
+ b.m("POST").h(headers).b(body);
29
+ return b.build();
37
30
  };
38
31
  exports.se_CreateAlarmModelCommand = se_CreateAlarmModelCommand;
39
32
  const se_CreateDetectorModelCommand = async (input, context) => {
40
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
33
+ const b = (0, core_1.requestBuilder)(input, context);
41
34
  const headers = {
42
35
  "content-type": "application/json",
43
36
  };
44
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector-models";
37
+ b.bp("/detector-models");
45
38
  let body;
46
39
  body = JSON.stringify((0, smithy_client_1.take)(input, {
47
40
  detectorModelDefinition: (_) => se_DetectorModelDefinition(_, context),
@@ -52,23 +45,16 @@ const se_CreateDetectorModelCommand = async (input, context) => {
52
45
  roleArn: [],
53
46
  tags: (_) => (0, smithy_client_1._json)(_),
54
47
  }));
55
- return new protocol_http_1.HttpRequest({
56
- protocol,
57
- hostname,
58
- port,
59
- method: "POST",
60
- headers,
61
- path: resolvedPath,
62
- body,
63
- });
48
+ b.m("POST").h(headers).b(body);
49
+ return b.build();
64
50
  };
65
51
  exports.se_CreateDetectorModelCommand = se_CreateDetectorModelCommand;
66
52
  const se_CreateInputCommand = async (input, context) => {
67
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
53
+ const b = (0, core_1.requestBuilder)(input, context);
68
54
  const headers = {
69
55
  "content-type": "application/json",
70
56
  };
71
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs";
57
+ b.bp("/inputs");
72
58
  let body;
73
59
  body = JSON.stringify((0, smithy_client_1.take)(input, {
74
60
  inputDefinition: (_) => (0, smithy_client_1._json)(_),
@@ -76,435 +62,275 @@ const se_CreateInputCommand = async (input, context) => {
76
62
  inputName: [],
77
63
  tags: (_) => (0, smithy_client_1._json)(_),
78
64
  }));
79
- return new protocol_http_1.HttpRequest({
80
- protocol,
81
- hostname,
82
- port,
83
- method: "POST",
84
- headers,
85
- path: resolvedPath,
86
- body,
87
- });
65
+ b.m("POST").h(headers).b(body);
66
+ return b.build();
88
67
  };
89
68
  exports.se_CreateInputCommand = se_CreateInputCommand;
90
69
  const se_DeleteAlarmModelCommand = async (input, context) => {
91
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
70
+ const b = (0, core_1.requestBuilder)(input, context);
92
71
  const headers = {};
93
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models/{alarmModelName}";
94
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
72
+ b.bp("/alarm-models/{alarmModelName}");
73
+ b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
95
74
  let body;
96
- return new protocol_http_1.HttpRequest({
97
- protocol,
98
- hostname,
99
- port,
100
- method: "DELETE",
101
- headers,
102
- path: resolvedPath,
103
- body,
104
- });
75
+ b.m("DELETE").h(headers).b(body);
76
+ return b.build();
105
77
  };
106
78
  exports.se_DeleteAlarmModelCommand = se_DeleteAlarmModelCommand;
107
79
  const se_DeleteDetectorModelCommand = async (input, context) => {
108
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
80
+ const b = (0, core_1.requestBuilder)(input, context);
109
81
  const headers = {};
110
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector-models/{detectorModelName}";
111
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
82
+ b.bp("/detector-models/{detectorModelName}");
83
+ b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
112
84
  let body;
113
- return new protocol_http_1.HttpRequest({
114
- protocol,
115
- hostname,
116
- port,
117
- method: "DELETE",
118
- headers,
119
- path: resolvedPath,
120
- body,
121
- });
85
+ b.m("DELETE").h(headers).b(body);
86
+ return b.build();
122
87
  };
123
88
  exports.se_DeleteDetectorModelCommand = se_DeleteDetectorModelCommand;
124
89
  const se_DeleteInputCommand = async (input, context) => {
125
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
90
+ const b = (0, core_1.requestBuilder)(input, context);
126
91
  const headers = {};
127
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs/{inputName}";
128
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "inputName", () => input.inputName, "{inputName}", false);
92
+ b.bp("/inputs/{inputName}");
93
+ b.p("inputName", () => input.inputName, "{inputName}", false);
129
94
  let body;
130
- return new protocol_http_1.HttpRequest({
131
- protocol,
132
- hostname,
133
- port,
134
- method: "DELETE",
135
- headers,
136
- path: resolvedPath,
137
- body,
138
- });
95
+ b.m("DELETE").h(headers).b(body);
96
+ return b.build();
139
97
  };
140
98
  exports.se_DeleteInputCommand = se_DeleteInputCommand;
141
99
  const se_DescribeAlarmModelCommand = async (input, context) => {
142
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
100
+ const b = (0, core_1.requestBuilder)(input, context);
143
101
  const headers = {};
144
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models/{alarmModelName}";
145
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
102
+ b.bp("/alarm-models/{alarmModelName}");
103
+ b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
146
104
  const query = (0, smithy_client_1.map)({
147
- version: [, input.alarmModelVersion],
105
+ [_v]: [, input[_aMV]],
148
106
  });
149
107
  let body;
150
- return new protocol_http_1.HttpRequest({
151
- protocol,
152
- hostname,
153
- port,
154
- method: "GET",
155
- headers,
156
- path: resolvedPath,
157
- query,
158
- body,
159
- });
108
+ b.m("GET").h(headers).q(query).b(body);
109
+ return b.build();
160
110
  };
161
111
  exports.se_DescribeAlarmModelCommand = se_DescribeAlarmModelCommand;
162
112
  const se_DescribeDetectorModelCommand = async (input, context) => {
163
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
113
+ const b = (0, core_1.requestBuilder)(input, context);
164
114
  const headers = {};
165
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector-models/{detectorModelName}";
166
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
115
+ b.bp("/detector-models/{detectorModelName}");
116
+ b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
167
117
  const query = (0, smithy_client_1.map)({
168
- version: [, input.detectorModelVersion],
118
+ [_v]: [, input[_dMV]],
169
119
  });
170
120
  let body;
171
- return new protocol_http_1.HttpRequest({
172
- protocol,
173
- hostname,
174
- port,
175
- method: "GET",
176
- headers,
177
- path: resolvedPath,
178
- query,
179
- body,
180
- });
121
+ b.m("GET").h(headers).q(query).b(body);
122
+ return b.build();
181
123
  };
182
124
  exports.se_DescribeDetectorModelCommand = se_DescribeDetectorModelCommand;
183
125
  const se_DescribeDetectorModelAnalysisCommand = async (input, context) => {
184
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
126
+ const b = (0, core_1.requestBuilder)(input, context);
185
127
  const headers = {};
186
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analysis/detector-models/{analysisId}";
187
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analysisId", () => input.analysisId, "{analysisId}", false);
128
+ b.bp("/analysis/detector-models/{analysisId}");
129
+ b.p("analysisId", () => input.analysisId, "{analysisId}", false);
188
130
  let body;
189
- return new protocol_http_1.HttpRequest({
190
- protocol,
191
- hostname,
192
- port,
193
- method: "GET",
194
- headers,
195
- path: resolvedPath,
196
- body,
197
- });
131
+ b.m("GET").h(headers).b(body);
132
+ return b.build();
198
133
  };
199
134
  exports.se_DescribeDetectorModelAnalysisCommand = se_DescribeDetectorModelAnalysisCommand;
200
135
  const se_DescribeInputCommand = async (input, context) => {
201
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
136
+ const b = (0, core_1.requestBuilder)(input, context);
202
137
  const headers = {};
203
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs/{inputName}";
204
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "inputName", () => input.inputName, "{inputName}", false);
138
+ b.bp("/inputs/{inputName}");
139
+ b.p("inputName", () => input.inputName, "{inputName}", false);
205
140
  let body;
206
- return new protocol_http_1.HttpRequest({
207
- protocol,
208
- hostname,
209
- port,
210
- method: "GET",
211
- headers,
212
- path: resolvedPath,
213
- body,
214
- });
141
+ b.m("GET").h(headers).b(body);
142
+ return b.build();
215
143
  };
216
144
  exports.se_DescribeInputCommand = se_DescribeInputCommand;
217
145
  const se_DescribeLoggingOptionsCommand = async (input, context) => {
218
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
146
+ const b = (0, core_1.requestBuilder)(input, context);
219
147
  const headers = {
220
148
  "content-type": "application/json",
221
149
  };
222
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging";
150
+ b.bp("/logging");
223
151
  let body;
224
152
  body = "";
225
- return new protocol_http_1.HttpRequest({
226
- protocol,
227
- hostname,
228
- port,
229
- method: "GET",
230
- headers,
231
- path: resolvedPath,
232
- body,
233
- });
153
+ b.m("GET").h(headers).b(body);
154
+ return b.build();
234
155
  };
235
156
  exports.se_DescribeLoggingOptionsCommand = se_DescribeLoggingOptionsCommand;
236
157
  const se_GetDetectorModelAnalysisResultsCommand = async (input, context) => {
237
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
158
+ const b = (0, core_1.requestBuilder)(input, context);
238
159
  const headers = {};
239
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
240
- "/analysis/detector-models/{analysisId}/results";
241
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analysisId", () => input.analysisId, "{analysisId}", false);
160
+ b.bp("/analysis/detector-models/{analysisId}/results");
161
+ b.p("analysisId", () => input.analysisId, "{analysisId}", false);
242
162
  const query = (0, smithy_client_1.map)({
243
- nextToken: [, input.nextToken],
244
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
163
+ [_nT]: [, input[_nT]],
164
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
245
165
  });
246
166
  let body;
247
- return new protocol_http_1.HttpRequest({
248
- protocol,
249
- hostname,
250
- port,
251
- method: "GET",
252
- headers,
253
- path: resolvedPath,
254
- query,
255
- body,
256
- });
167
+ b.m("GET").h(headers).q(query).b(body);
168
+ return b.build();
257
169
  };
258
170
  exports.se_GetDetectorModelAnalysisResultsCommand = se_GetDetectorModelAnalysisResultsCommand;
259
171
  const se_ListAlarmModelsCommand = async (input, context) => {
260
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
172
+ const b = (0, core_1.requestBuilder)(input, context);
261
173
  const headers = {};
262
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models";
174
+ b.bp("/alarm-models");
263
175
  const query = (0, smithy_client_1.map)({
264
- nextToken: [, input.nextToken],
265
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
176
+ [_nT]: [, input[_nT]],
177
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
266
178
  });
267
179
  let body;
268
- return new protocol_http_1.HttpRequest({
269
- protocol,
270
- hostname,
271
- port,
272
- method: "GET",
273
- headers,
274
- path: resolvedPath,
275
- query,
276
- body,
277
- });
180
+ b.m("GET").h(headers).q(query).b(body);
181
+ return b.build();
278
182
  };
279
183
  exports.se_ListAlarmModelsCommand = se_ListAlarmModelsCommand;
280
184
  const se_ListAlarmModelVersionsCommand = async (input, context) => {
281
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
185
+ const b = (0, core_1.requestBuilder)(input, context);
282
186
  const headers = {};
283
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models/{alarmModelName}/versions";
284
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
187
+ b.bp("/alarm-models/{alarmModelName}/versions");
188
+ b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
285
189
  const query = (0, smithy_client_1.map)({
286
- nextToken: [, input.nextToken],
287
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
190
+ [_nT]: [, input[_nT]],
191
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
288
192
  });
289
193
  let body;
290
- return new protocol_http_1.HttpRequest({
291
- protocol,
292
- hostname,
293
- port,
294
- method: "GET",
295
- headers,
296
- path: resolvedPath,
297
- query,
298
- body,
299
- });
194
+ b.m("GET").h(headers).q(query).b(body);
195
+ return b.build();
300
196
  };
301
197
  exports.se_ListAlarmModelVersionsCommand = se_ListAlarmModelVersionsCommand;
302
198
  const se_ListDetectorModelsCommand = async (input, context) => {
303
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
199
+ const b = (0, core_1.requestBuilder)(input, context);
304
200
  const headers = {};
305
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector-models";
201
+ b.bp("/detector-models");
306
202
  const query = (0, smithy_client_1.map)({
307
- nextToken: [, input.nextToken],
308
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
203
+ [_nT]: [, input[_nT]],
204
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
309
205
  });
310
206
  let body;
311
- return new protocol_http_1.HttpRequest({
312
- protocol,
313
- hostname,
314
- port,
315
- method: "GET",
316
- headers,
317
- path: resolvedPath,
318
- query,
319
- body,
320
- });
207
+ b.m("GET").h(headers).q(query).b(body);
208
+ return b.build();
321
209
  };
322
210
  exports.se_ListDetectorModelsCommand = se_ListDetectorModelsCommand;
323
211
  const se_ListDetectorModelVersionsCommand = async (input, context) => {
324
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
212
+ const b = (0, core_1.requestBuilder)(input, context);
325
213
  const headers = {};
326
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
327
- "/detector-models/{detectorModelName}/versions";
328
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
214
+ b.bp("/detector-models/{detectorModelName}/versions");
215
+ b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
329
216
  const query = (0, smithy_client_1.map)({
330
- nextToken: [, input.nextToken],
331
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
217
+ [_nT]: [, input[_nT]],
218
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
332
219
  });
333
220
  let body;
334
- return new protocol_http_1.HttpRequest({
335
- protocol,
336
- hostname,
337
- port,
338
- method: "GET",
339
- headers,
340
- path: resolvedPath,
341
- query,
342
- body,
343
- });
221
+ b.m("GET").h(headers).q(query).b(body);
222
+ return b.build();
344
223
  };
345
224
  exports.se_ListDetectorModelVersionsCommand = se_ListDetectorModelVersionsCommand;
346
225
  const se_ListInputRoutingsCommand = async (input, context) => {
347
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
226
+ const b = (0, core_1.requestBuilder)(input, context);
348
227
  const headers = {
349
228
  "content-type": "application/json",
350
229
  };
351
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/input-routings";
230
+ b.bp("/input-routings");
352
231
  let body;
353
232
  body = JSON.stringify((0, smithy_client_1.take)(input, {
354
233
  inputIdentifier: (_) => (0, smithy_client_1._json)(_),
355
234
  maxResults: [],
356
235
  nextToken: [],
357
236
  }));
358
- return new protocol_http_1.HttpRequest({
359
- protocol,
360
- hostname,
361
- port,
362
- method: "POST",
363
- headers,
364
- path: resolvedPath,
365
- body,
366
- });
237
+ b.m("POST").h(headers).b(body);
238
+ return b.build();
367
239
  };
368
240
  exports.se_ListInputRoutingsCommand = se_ListInputRoutingsCommand;
369
241
  const se_ListInputsCommand = async (input, context) => {
370
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
242
+ const b = (0, core_1.requestBuilder)(input, context);
371
243
  const headers = {};
372
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs";
244
+ b.bp("/inputs");
373
245
  const query = (0, smithy_client_1.map)({
374
- nextToken: [, input.nextToken],
375
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
246
+ [_nT]: [, input[_nT]],
247
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
376
248
  });
377
249
  let body;
378
- return new protocol_http_1.HttpRequest({
379
- protocol,
380
- hostname,
381
- port,
382
- method: "GET",
383
- headers,
384
- path: resolvedPath,
385
- query,
386
- body,
387
- });
250
+ b.m("GET").h(headers).q(query).b(body);
251
+ return b.build();
388
252
  };
389
253
  exports.se_ListInputsCommand = se_ListInputsCommand;
390
254
  const se_ListTagsForResourceCommand = async (input, context) => {
391
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
255
+ const b = (0, core_1.requestBuilder)(input, context);
392
256
  const headers = {};
393
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
257
+ b.bp("/tags");
394
258
  const query = (0, smithy_client_1.map)({
395
- resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
259
+ [_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
396
260
  });
397
261
  let body;
398
- return new protocol_http_1.HttpRequest({
399
- protocol,
400
- hostname,
401
- port,
402
- method: "GET",
403
- headers,
404
- path: resolvedPath,
405
- query,
406
- body,
407
- });
262
+ b.m("GET").h(headers).q(query).b(body);
263
+ return b.build();
408
264
  };
409
265
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
410
266
  const se_PutLoggingOptionsCommand = async (input, context) => {
411
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
267
+ const b = (0, core_1.requestBuilder)(input, context);
412
268
  const headers = {
413
269
  "content-type": "application/json",
414
270
  };
415
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging";
271
+ b.bp("/logging");
416
272
  let body;
417
273
  body = JSON.stringify((0, smithy_client_1.take)(input, {
418
274
  loggingOptions: (_) => (0, smithy_client_1._json)(_),
419
275
  }));
420
- return new protocol_http_1.HttpRequest({
421
- protocol,
422
- hostname,
423
- port,
424
- method: "PUT",
425
- headers,
426
- path: resolvedPath,
427
- body,
428
- });
276
+ b.m("PUT").h(headers).b(body);
277
+ return b.build();
429
278
  };
430
279
  exports.se_PutLoggingOptionsCommand = se_PutLoggingOptionsCommand;
431
280
  const se_StartDetectorModelAnalysisCommand = async (input, context) => {
432
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
281
+ const b = (0, core_1.requestBuilder)(input, context);
433
282
  const headers = {
434
283
  "content-type": "application/json",
435
284
  };
436
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analysis/detector-models";
285
+ b.bp("/analysis/detector-models");
437
286
  let body;
438
287
  body = JSON.stringify((0, smithy_client_1.take)(input, {
439
288
  detectorModelDefinition: (_) => se_DetectorModelDefinition(_, context),
440
289
  }));
441
- return new protocol_http_1.HttpRequest({
442
- protocol,
443
- hostname,
444
- port,
445
- method: "POST",
446
- headers,
447
- path: resolvedPath,
448
- body,
449
- });
290
+ b.m("POST").h(headers).b(body);
291
+ return b.build();
450
292
  };
451
293
  exports.se_StartDetectorModelAnalysisCommand = se_StartDetectorModelAnalysisCommand;
452
294
  const se_TagResourceCommand = async (input, context) => {
453
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
295
+ const b = (0, core_1.requestBuilder)(input, context);
454
296
  const headers = {
455
297
  "content-type": "application/json",
456
298
  };
457
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
299
+ b.bp("/tags");
458
300
  const query = (0, smithy_client_1.map)({
459
- resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
301
+ [_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
460
302
  });
461
303
  let body;
462
304
  body = JSON.stringify((0, smithy_client_1.take)(input, {
463
305
  tags: (_) => (0, smithy_client_1._json)(_),
464
306
  }));
465
- return new protocol_http_1.HttpRequest({
466
- protocol,
467
- hostname,
468
- port,
469
- method: "POST",
470
- headers,
471
- path: resolvedPath,
472
- query,
473
- body,
474
- });
307
+ b.m("POST").h(headers).q(query).b(body);
308
+ return b.build();
475
309
  };
476
310
  exports.se_TagResourceCommand = se_TagResourceCommand;
477
311
  const se_UntagResourceCommand = async (input, context) => {
478
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
312
+ const b = (0, core_1.requestBuilder)(input, context);
479
313
  const headers = {};
480
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
314
+ b.bp("/tags");
481
315
  const query = (0, smithy_client_1.map)({
482
- resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
483
- tagKeys: [
316
+ [_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
317
+ [_tK]: [
484
318
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
485
- () => (input.tagKeys || []).map((_entry) => _entry),
319
+ () => (input[_tK] || []).map((_entry) => _entry),
486
320
  ],
487
321
  });
488
322
  let body;
489
- return new protocol_http_1.HttpRequest({
490
- protocol,
491
- hostname,
492
- port,
493
- method: "DELETE",
494
- headers,
495
- path: resolvedPath,
496
- query,
497
- body,
498
- });
323
+ b.m("DELETE").h(headers).q(query).b(body);
324
+ return b.build();
499
325
  };
500
326
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
501
327
  const se_UpdateAlarmModelCommand = async (input, context) => {
502
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
328
+ const b = (0, core_1.requestBuilder)(input, context);
503
329
  const headers = {
504
330
  "content-type": "application/json",
505
331
  };
506
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models/{alarmModelName}";
507
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
332
+ b.bp("/alarm-models/{alarmModelName}");
333
+ b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
508
334
  let body;
509
335
  body = JSON.stringify((0, smithy_client_1.take)(input, {
510
336
  alarmCapabilities: (_) => (0, smithy_client_1._json)(_),
@@ -515,24 +341,17 @@ const se_UpdateAlarmModelCommand = async (input, context) => {
515
341
  roleArn: [],
516
342
  severity: [],
517
343
  }));
518
- return new protocol_http_1.HttpRequest({
519
- protocol,
520
- hostname,
521
- port,
522
- method: "POST",
523
- headers,
524
- path: resolvedPath,
525
- body,
526
- });
344
+ b.m("POST").h(headers).b(body);
345
+ return b.build();
527
346
  };
528
347
  exports.se_UpdateAlarmModelCommand = se_UpdateAlarmModelCommand;
529
348
  const se_UpdateDetectorModelCommand = async (input, context) => {
530
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
349
+ const b = (0, core_1.requestBuilder)(input, context);
531
350
  const headers = {
532
351
  "content-type": "application/json",
533
352
  };
534
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector-models/{detectorModelName}";
535
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
353
+ b.bp("/detector-models/{detectorModelName}");
354
+ b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
536
355
  let body;
537
356
  body = JSON.stringify((0, smithy_client_1.take)(input, {
538
357
  detectorModelDefinition: (_) => se_DetectorModelDefinition(_, context),
@@ -540,38 +359,24 @@ const se_UpdateDetectorModelCommand = async (input, context) => {
540
359
  evaluationMethod: [],
541
360
  roleArn: [],
542
361
  }));
543
- return new protocol_http_1.HttpRequest({
544
- protocol,
545
- hostname,
546
- port,
547
- method: "POST",
548
- headers,
549
- path: resolvedPath,
550
- body,
551
- });
362
+ b.m("POST").h(headers).b(body);
363
+ return b.build();
552
364
  };
553
365
  exports.se_UpdateDetectorModelCommand = se_UpdateDetectorModelCommand;
554
366
  const se_UpdateInputCommand = async (input, context) => {
555
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
367
+ const b = (0, core_1.requestBuilder)(input, context);
556
368
  const headers = {
557
369
  "content-type": "application/json",
558
370
  };
559
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs/{inputName}";
560
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "inputName", () => input.inputName, "{inputName}", false);
371
+ b.bp("/inputs/{inputName}");
372
+ b.p("inputName", () => input.inputName, "{inputName}", false);
561
373
  let body;
562
374
  body = JSON.stringify((0, smithy_client_1.take)(input, {
563
375
  inputDefinition: (_) => (0, smithy_client_1._json)(_),
564
376
  inputDescription: [],
565
377
  }));
566
- return new protocol_http_1.HttpRequest({
567
- protocol,
568
- hostname,
569
- port,
570
- method: "PUT",
571
- headers,
572
- path: resolvedPath,
573
- body,
574
- });
378
+ b.m("PUT").h(headers).b(body);
379
+ return b.build();
575
380
  };
576
381
  exports.se_UpdateInputCommand = se_UpdateInputCommand;
577
382
  const de_CreateAlarmModelCommand = async (output, context) => {
@@ -2073,6 +1878,13 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2073
1878
  value !== "" &&
2074
1879
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2075
1880
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1881
+ const _aMV = "alarmModelVersion";
1882
+ const _dMV = "detectorModelVersion";
1883
+ const _mR = "maxResults";
1884
+ const _nT = "nextToken";
1885
+ const _rA = "resourceArn";
1886
+ const _tK = "tagKeys";
1887
+ const _v = "version";
2076
1888
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2077
1889
  if (encoded.length) {
2078
1890
  return JSON.parse(encoded);