@aws-sdk/client-appintegrations 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.
@@ -1,17 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_UpdateEventIntegrationCommand = exports.de_UpdateDataIntegrationCommand = exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListEventIntegrationsCommand = exports.de_ListEventIntegrationAssociationsCommand = exports.de_ListDataIntegrationsCommand = exports.de_ListDataIntegrationAssociationsCommand = exports.de_ListApplicationsCommand = exports.de_GetEventIntegrationCommand = exports.de_GetDataIntegrationCommand = exports.de_GetApplicationCommand = exports.de_DeleteEventIntegrationCommand = exports.de_DeleteDataIntegrationCommand = exports.de_CreateEventIntegrationCommand = exports.de_CreateDataIntegrationCommand = exports.de_CreateApplicationCommand = exports.se_UpdateEventIntegrationCommand = exports.se_UpdateDataIntegrationCommand = exports.se_UpdateApplicationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListEventIntegrationsCommand = exports.se_ListEventIntegrationAssociationsCommand = exports.se_ListDataIntegrationsCommand = exports.se_ListDataIntegrationAssociationsCommand = exports.se_ListApplicationsCommand = exports.se_GetEventIntegrationCommand = exports.se_GetDataIntegrationCommand = exports.se_GetApplicationCommand = exports.se_DeleteEventIntegrationCommand = exports.se_DeleteDataIntegrationCommand = exports.se_CreateEventIntegrationCommand = exports.se_CreateDataIntegrationCommand = exports.se_CreateApplicationCommand = void 0;
4
- const protocol_http_1 = require("@smithy/protocol-http");
4
+ const core_1 = require("@smithy/core");
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const uuid_1 = require("uuid");
7
7
  const AppIntegrationsServiceException_1 = require("../models/AppIntegrationsServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_CreateApplicationCommand = 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 || ""}` + "/applications";
14
+ b.bp("/applications");
15
15
  let body;
16
16
  body = JSON.stringify((0, smithy_client_1.take)(input, {
17
17
  ApplicationSourceConfig: (_) => (0, smithy_client_1._json)(_),
@@ -23,23 +23,16 @@ const se_CreateApplicationCommand = async (input, context) => {
23
23
  Subscriptions: (_) => (0, smithy_client_1._json)(_),
24
24
  Tags: (_) => (0, smithy_client_1._json)(_),
25
25
  }));
26
- return new protocol_http_1.HttpRequest({
27
- protocol,
28
- hostname,
29
- port,
30
- method: "POST",
31
- headers,
32
- path: resolvedPath,
33
- body,
34
- });
26
+ b.m("POST").h(headers).b(body);
27
+ return b.build();
35
28
  };
36
29
  exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
37
30
  const se_CreateDataIntegrationCommand = async (input, context) => {
38
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
31
+ const b = (0, core_1.requestBuilder)(input, context);
39
32
  const headers = {
40
33
  "content-type": "application/json",
41
34
  };
42
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations";
35
+ b.bp("/dataIntegrations");
43
36
  let body;
44
37
  body = JSON.stringify((0, smithy_client_1.take)(input, {
45
38
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -52,23 +45,16 @@ const se_CreateDataIntegrationCommand = async (input, context) => {
52
45
  SourceURI: [],
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_CreateDataIntegrationCommand = se_CreateDataIntegrationCommand;
66
52
  const se_CreateEventIntegrationCommand = 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 || ""}` + "/eventIntegrations";
57
+ b.bp("/eventIntegrations");
72
58
  let body;
73
59
  body = JSON.stringify((0, smithy_client_1.take)(input, {
74
60
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -78,282 +64,175 @@ const se_CreateEventIntegrationCommand = async (input, context) => {
78
64
  Name: [],
79
65
  Tags: (_) => (0, smithy_client_1._json)(_),
80
66
  }));
81
- return new protocol_http_1.HttpRequest({
82
- protocol,
83
- hostname,
84
- port,
85
- method: "POST",
86
- headers,
87
- path: resolvedPath,
88
- body,
89
- });
67
+ b.m("POST").h(headers).b(body);
68
+ return b.build();
90
69
  };
91
70
  exports.se_CreateEventIntegrationCommand = se_CreateEventIntegrationCommand;
92
71
  const se_DeleteDataIntegrationCommand = async (input, context) => {
93
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
72
+ const b = (0, core_1.requestBuilder)(input, context);
94
73
  const headers = {};
95
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
96
- "/dataIntegrations/{DataIntegrationIdentifier}";
97
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
74
+ b.bp("/dataIntegrations/{DataIntegrationIdentifier}");
75
+ b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
98
76
  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
- });
77
+ b.m("DELETE").h(headers).b(body);
78
+ return b.build();
108
79
  };
109
80
  exports.se_DeleteDataIntegrationCommand = se_DeleteDataIntegrationCommand;
110
81
  const se_DeleteEventIntegrationCommand = async (input, context) => {
111
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
82
+ const b = (0, core_1.requestBuilder)(input, context);
112
83
  const headers = {};
113
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations/{Name}";
114
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
84
+ b.bp("/eventIntegrations/{Name}");
85
+ b.p("Name", () => input.Name, "{Name}", false);
115
86
  let body;
116
- return new protocol_http_1.HttpRequest({
117
- protocol,
118
- hostname,
119
- port,
120
- method: "DELETE",
121
- headers,
122
- path: resolvedPath,
123
- body,
124
- });
87
+ b.m("DELETE").h(headers).b(body);
88
+ return b.build();
125
89
  };
126
90
  exports.se_DeleteEventIntegrationCommand = se_DeleteEventIntegrationCommand;
127
91
  const se_GetApplicationCommand = async (input, context) => {
128
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
92
+ const b = (0, core_1.requestBuilder)(input, context);
129
93
  const headers = {};
130
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{Arn}";
131
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
94
+ b.bp("/applications/{Arn}");
95
+ b.p("Arn", () => input.Arn, "{Arn}", false);
132
96
  let body;
133
- return new protocol_http_1.HttpRequest({
134
- protocol,
135
- hostname,
136
- port,
137
- method: "GET",
138
- headers,
139
- path: resolvedPath,
140
- body,
141
- });
97
+ b.m("GET").h(headers).b(body);
98
+ return b.build();
142
99
  };
143
100
  exports.se_GetApplicationCommand = se_GetApplicationCommand;
144
101
  const se_GetDataIntegrationCommand = async (input, context) => {
145
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
102
+ const b = (0, core_1.requestBuilder)(input, context);
146
103
  const headers = {};
147
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations/{Identifier}";
148
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
104
+ b.bp("/dataIntegrations/{Identifier}");
105
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
149
106
  let body;
150
- return new protocol_http_1.HttpRequest({
151
- protocol,
152
- hostname,
153
- port,
154
- method: "GET",
155
- headers,
156
- path: resolvedPath,
157
- body,
158
- });
107
+ b.m("GET").h(headers).b(body);
108
+ return b.build();
159
109
  };
160
110
  exports.se_GetDataIntegrationCommand = se_GetDataIntegrationCommand;
161
111
  const se_GetEventIntegrationCommand = async (input, context) => {
162
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
112
+ const b = (0, core_1.requestBuilder)(input, context);
163
113
  const headers = {};
164
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations/{Name}";
165
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
114
+ b.bp("/eventIntegrations/{Name}");
115
+ b.p("Name", () => input.Name, "{Name}", false);
166
116
  let body;
167
- return new protocol_http_1.HttpRequest({
168
- protocol,
169
- hostname,
170
- port,
171
- method: "GET",
172
- headers,
173
- path: resolvedPath,
174
- body,
175
- });
117
+ b.m("GET").h(headers).b(body);
118
+ return b.build();
176
119
  };
177
120
  exports.se_GetEventIntegrationCommand = se_GetEventIntegrationCommand;
178
121
  const se_ListApplicationsCommand = async (input, context) => {
179
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
122
+ const b = (0, core_1.requestBuilder)(input, context);
180
123
  const headers = {};
181
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
124
+ b.bp("/applications");
182
125
  const query = (0, smithy_client_1.map)({
183
- nextToken: [, input.NextToken],
184
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
126
+ [_nT]: [, input[_NT]],
127
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
185
128
  });
186
129
  let body;
187
- return new protocol_http_1.HttpRequest({
188
- protocol,
189
- hostname,
190
- port,
191
- method: "GET",
192
- headers,
193
- path: resolvedPath,
194
- query,
195
- body,
196
- });
130
+ b.m("GET").h(headers).q(query).b(body);
131
+ return b.build();
197
132
  };
198
133
  exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
199
134
  const se_ListDataIntegrationAssociationsCommand = async (input, context) => {
200
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
135
+ const b = (0, core_1.requestBuilder)(input, context);
201
136
  const headers = {};
202
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
203
- "/dataIntegrations/{DataIntegrationIdentifier}/associations";
204
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
137
+ b.bp("/dataIntegrations/{DataIntegrationIdentifier}/associations");
138
+ b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
205
139
  const query = (0, smithy_client_1.map)({
206
- nextToken: [, input.NextToken],
207
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
140
+ [_nT]: [, input[_NT]],
141
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
208
142
  });
209
143
  let body;
210
- return new protocol_http_1.HttpRequest({
211
- protocol,
212
- hostname,
213
- port,
214
- method: "GET",
215
- headers,
216
- path: resolvedPath,
217
- query,
218
- body,
219
- });
144
+ b.m("GET").h(headers).q(query).b(body);
145
+ return b.build();
220
146
  };
221
147
  exports.se_ListDataIntegrationAssociationsCommand = se_ListDataIntegrationAssociationsCommand;
222
148
  const se_ListDataIntegrationsCommand = async (input, context) => {
223
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
149
+ const b = (0, core_1.requestBuilder)(input, context);
224
150
  const headers = {};
225
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations";
151
+ b.bp("/dataIntegrations");
226
152
  const query = (0, smithy_client_1.map)({
227
- nextToken: [, input.NextToken],
228
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
153
+ [_nT]: [, input[_NT]],
154
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
229
155
  });
230
156
  let body;
231
- return new protocol_http_1.HttpRequest({
232
- protocol,
233
- hostname,
234
- port,
235
- method: "GET",
236
- headers,
237
- path: resolvedPath,
238
- query,
239
- body,
240
- });
157
+ b.m("GET").h(headers).q(query).b(body);
158
+ return b.build();
241
159
  };
242
160
  exports.se_ListDataIntegrationsCommand = se_ListDataIntegrationsCommand;
243
161
  const se_ListEventIntegrationAssociationsCommand = async (input, context) => {
244
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
162
+ const b = (0, core_1.requestBuilder)(input, context);
245
163
  const headers = {};
246
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
247
- "/eventIntegrations/{EventIntegrationName}/associations";
248
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventIntegrationName", () => input.EventIntegrationName, "{EventIntegrationName}", false);
164
+ b.bp("/eventIntegrations/{EventIntegrationName}/associations");
165
+ b.p("EventIntegrationName", () => input.EventIntegrationName, "{EventIntegrationName}", false);
249
166
  const query = (0, smithy_client_1.map)({
250
- nextToken: [, input.NextToken],
251
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
167
+ [_nT]: [, input[_NT]],
168
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
252
169
  });
253
170
  let body;
254
- return new protocol_http_1.HttpRequest({
255
- protocol,
256
- hostname,
257
- port,
258
- method: "GET",
259
- headers,
260
- path: resolvedPath,
261
- query,
262
- body,
263
- });
171
+ b.m("GET").h(headers).q(query).b(body);
172
+ return b.build();
264
173
  };
265
174
  exports.se_ListEventIntegrationAssociationsCommand = se_ListEventIntegrationAssociationsCommand;
266
175
  const se_ListEventIntegrationsCommand = async (input, context) => {
267
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
176
+ const b = (0, core_1.requestBuilder)(input, context);
268
177
  const headers = {};
269
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations";
178
+ b.bp("/eventIntegrations");
270
179
  const query = (0, smithy_client_1.map)({
271
- nextToken: [, input.NextToken],
272
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
180
+ [_nT]: [, input[_NT]],
181
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
273
182
  });
274
183
  let body;
275
- return new protocol_http_1.HttpRequest({
276
- protocol,
277
- hostname,
278
- port,
279
- method: "GET",
280
- headers,
281
- path: resolvedPath,
282
- query,
283
- body,
284
- });
184
+ b.m("GET").h(headers).q(query).b(body);
185
+ return b.build();
285
186
  };
286
187
  exports.se_ListEventIntegrationsCommand = se_ListEventIntegrationsCommand;
287
188
  const se_ListTagsForResourceCommand = async (input, context) => {
288
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
189
+ const b = (0, core_1.requestBuilder)(input, context);
289
190
  const headers = {};
290
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
291
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
191
+ b.bp("/tags/{resourceArn}");
192
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
292
193
  let body;
293
- return new protocol_http_1.HttpRequest({
294
- protocol,
295
- hostname,
296
- port,
297
- method: "GET",
298
- headers,
299
- path: resolvedPath,
300
- body,
301
- });
194
+ b.m("GET").h(headers).b(body);
195
+ return b.build();
302
196
  };
303
197
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
304
198
  const se_TagResourceCommand = async (input, context) => {
305
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
199
+ const b = (0, core_1.requestBuilder)(input, context);
306
200
  const headers = {
307
201
  "content-type": "application/json",
308
202
  };
309
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
310
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
203
+ b.bp("/tags/{resourceArn}");
204
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
311
205
  let body;
312
206
  body = JSON.stringify((0, smithy_client_1.take)(input, {
313
207
  tags: (_) => (0, smithy_client_1._json)(_),
314
208
  }));
315
- return new protocol_http_1.HttpRequest({
316
- protocol,
317
- hostname,
318
- port,
319
- method: "POST",
320
- headers,
321
- path: resolvedPath,
322
- body,
323
- });
209
+ b.m("POST").h(headers).b(body);
210
+ return b.build();
324
211
  };
325
212
  exports.se_TagResourceCommand = se_TagResourceCommand;
326
213
  const se_UntagResourceCommand = async (input, context) => {
327
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
214
+ const b = (0, core_1.requestBuilder)(input, context);
328
215
  const headers = {};
329
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
330
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
216
+ b.bp("/tags/{resourceArn}");
217
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
331
218
  const query = (0, smithy_client_1.map)({
332
- tagKeys: [
219
+ [_tK]: [
333
220
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
334
- () => (input.tagKeys || []).map((_entry) => _entry),
221
+ () => (input[_tK] || []).map((_entry) => _entry),
335
222
  ],
336
223
  });
337
224
  let body;
338
- return new protocol_http_1.HttpRequest({
339
- protocol,
340
- hostname,
341
- port,
342
- method: "DELETE",
343
- headers,
344
- path: resolvedPath,
345
- query,
346
- body,
347
- });
225
+ b.m("DELETE").h(headers).q(query).b(body);
226
+ return b.build();
348
227
  };
349
228
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
350
229
  const se_UpdateApplicationCommand = async (input, context) => {
351
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
230
+ const b = (0, core_1.requestBuilder)(input, context);
352
231
  const headers = {
353
232
  "content-type": "application/json",
354
233
  };
355
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{Arn}";
356
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
234
+ b.bp("/applications/{Arn}");
235
+ b.p("Arn", () => input.Arn, "{Arn}", false);
357
236
  let body;
358
237
  body = JSON.stringify((0, smithy_client_1.take)(input, {
359
238
  ApplicationSourceConfig: (_) => (0, smithy_client_1._json)(_),
@@ -362,60 +241,39 @@ const se_UpdateApplicationCommand = async (input, context) => {
362
241
  Publications: (_) => (0, smithy_client_1._json)(_),
363
242
  Subscriptions: (_) => (0, smithy_client_1._json)(_),
364
243
  }));
365
- return new protocol_http_1.HttpRequest({
366
- protocol,
367
- hostname,
368
- port,
369
- method: "PATCH",
370
- headers,
371
- path: resolvedPath,
372
- body,
373
- });
244
+ b.m("PATCH").h(headers).b(body);
245
+ return b.build();
374
246
  };
375
247
  exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
376
248
  const se_UpdateDataIntegrationCommand = async (input, context) => {
377
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
249
+ const b = (0, core_1.requestBuilder)(input, context);
378
250
  const headers = {
379
251
  "content-type": "application/json",
380
252
  };
381
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations/{Identifier}";
382
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
253
+ b.bp("/dataIntegrations/{Identifier}");
254
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
383
255
  let body;
384
256
  body = JSON.stringify((0, smithy_client_1.take)(input, {
385
257
  Description: [],
386
258
  Name: [],
387
259
  }));
388
- return new protocol_http_1.HttpRequest({
389
- protocol,
390
- hostname,
391
- port,
392
- method: "PATCH",
393
- headers,
394
- path: resolvedPath,
395
- body,
396
- });
260
+ b.m("PATCH").h(headers).b(body);
261
+ return b.build();
397
262
  };
398
263
  exports.se_UpdateDataIntegrationCommand = se_UpdateDataIntegrationCommand;
399
264
  const se_UpdateEventIntegrationCommand = async (input, context) => {
400
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
265
+ const b = (0, core_1.requestBuilder)(input, context);
401
266
  const headers = {
402
267
  "content-type": "application/json",
403
268
  };
404
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations/{Name}";
405
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
269
+ b.bp("/eventIntegrations/{Name}");
270
+ b.p("Name", () => input.Name, "{Name}", false);
406
271
  let body;
407
272
  body = JSON.stringify((0, smithy_client_1.take)(input, {
408
273
  Description: [],
409
274
  }));
410
- return new protocol_http_1.HttpRequest({
411
- protocol,
412
- hostname,
413
- port,
414
- method: "PATCH",
415
- headers,
416
- path: resolvedPath,
417
- body,
418
- });
275
+ b.m("PATCH").h(headers).b(body);
276
+ return b.build();
419
277
  };
420
278
  exports.se_UpdateEventIntegrationCommand = se_UpdateEventIntegrationCommand;
421
279
  const de_CreateApplicationCommand = async (output, context) => {
@@ -1417,6 +1275,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1417
1275
  value !== "" &&
1418
1276
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1419
1277
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1278
+ const _MR = "MaxResults";
1279
+ const _NT = "NextToken";
1280
+ const _mR = "maxResults";
1281
+ const _nT = "nextToken";
1282
+ const _tK = "tagKeys";
1420
1283
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1421
1284
  if (encoded.length) {
1422
1285
  return JSON.parse(encoded);
@@ -1,14 +1,14 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { AppIntegrationsServiceException as __BaseException } from "../models/AppIntegrationsServiceException";
5
5
  import { AccessDeniedException, DuplicateResourceException, InternalServiceError, InvalidRequestException, ResourceNotFoundException, ResourceQuotaExceededException, ThrottlingException, } from "../models/models_0";
6
6
  export const se_CreateApplicationCommand = async (input, context) => {
7
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
+ const b = rb(input, context);
8
8
  const headers = {
9
9
  "content-type": "application/json",
10
10
  };
11
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
11
+ b.bp("/applications");
12
12
  let body;
13
13
  body = JSON.stringify(take(input, {
14
14
  ApplicationSourceConfig: (_) => _json(_),
@@ -20,22 +20,15 @@ export const se_CreateApplicationCommand = async (input, context) => {
20
20
  Subscriptions: (_) => _json(_),
21
21
  Tags: (_) => _json(_),
22
22
  }));
23
- return new __HttpRequest({
24
- protocol,
25
- hostname,
26
- port,
27
- method: "POST",
28
- headers,
29
- path: resolvedPath,
30
- body,
31
- });
23
+ b.m("POST").h(headers).b(body);
24
+ return b.build();
32
25
  };
33
26
  export const se_CreateDataIntegrationCommand = async (input, context) => {
34
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
+ const b = rb(input, context);
35
28
  const headers = {
36
29
  "content-type": "application/json",
37
30
  };
38
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations";
31
+ b.bp("/dataIntegrations");
39
32
  let body;
40
33
  body = JSON.stringify(take(input, {
41
34
  ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -48,22 +41,15 @@ export const se_CreateDataIntegrationCommand = async (input, context) => {
48
41
  SourceURI: [],
49
42
  Tags: (_) => _json(_),
50
43
  }));
51
- return new __HttpRequest({
52
- protocol,
53
- hostname,
54
- port,
55
- method: "POST",
56
- headers,
57
- path: resolvedPath,
58
- body,
59
- });
44
+ b.m("POST").h(headers).b(body);
45
+ return b.build();
60
46
  };
61
47
  export const se_CreateEventIntegrationCommand = async (input, context) => {
62
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
48
+ const b = rb(input, context);
63
49
  const headers = {
64
50
  "content-type": "application/json",
65
51
  };
66
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations";
52
+ b.bp("/eventIntegrations");
67
53
  let body;
68
54
  body = JSON.stringify(take(input, {
69
55
  ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -73,268 +59,161 @@ export const se_CreateEventIntegrationCommand = async (input, context) => {
73
59
  Name: [],
74
60
  Tags: (_) => _json(_),
75
61
  }));
76
- return new __HttpRequest({
77
- protocol,
78
- hostname,
79
- port,
80
- method: "POST",
81
- headers,
82
- path: resolvedPath,
83
- body,
84
- });
62
+ b.m("POST").h(headers).b(body);
63
+ return b.build();
85
64
  };
86
65
  export const se_DeleteDataIntegrationCommand = async (input, context) => {
87
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
66
+ const b = rb(input, context);
88
67
  const headers = {};
89
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
90
- "/dataIntegrations/{DataIntegrationIdentifier}";
91
- resolvedPath = __resolvedPath(resolvedPath, input, "DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
68
+ b.bp("/dataIntegrations/{DataIntegrationIdentifier}");
69
+ b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
92
70
  let body;
93
- return new __HttpRequest({
94
- protocol,
95
- hostname,
96
- port,
97
- method: "DELETE",
98
- headers,
99
- path: resolvedPath,
100
- body,
101
- });
71
+ b.m("DELETE").h(headers).b(body);
72
+ return b.build();
102
73
  };
103
74
  export const se_DeleteEventIntegrationCommand = async (input, context) => {
104
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
75
+ const b = rb(input, context);
105
76
  const headers = {};
106
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations/{Name}";
107
- resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
77
+ b.bp("/eventIntegrations/{Name}");
78
+ b.p("Name", () => input.Name, "{Name}", false);
108
79
  let body;
109
- return new __HttpRequest({
110
- protocol,
111
- hostname,
112
- port,
113
- method: "DELETE",
114
- headers,
115
- path: resolvedPath,
116
- body,
117
- });
80
+ b.m("DELETE").h(headers).b(body);
81
+ return b.build();
118
82
  };
119
83
  export const se_GetApplicationCommand = async (input, context) => {
120
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
84
+ const b = rb(input, context);
121
85
  const headers = {};
122
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{Arn}";
123
- resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
86
+ b.bp("/applications/{Arn}");
87
+ b.p("Arn", () => input.Arn, "{Arn}", false);
124
88
  let body;
125
- return new __HttpRequest({
126
- protocol,
127
- hostname,
128
- port,
129
- method: "GET",
130
- headers,
131
- path: resolvedPath,
132
- body,
133
- });
89
+ b.m("GET").h(headers).b(body);
90
+ return b.build();
134
91
  };
135
92
  export const se_GetDataIntegrationCommand = async (input, context) => {
136
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
93
+ const b = rb(input, context);
137
94
  const headers = {};
138
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations/{Identifier}";
139
- resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
95
+ b.bp("/dataIntegrations/{Identifier}");
96
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
140
97
  let body;
141
- return new __HttpRequest({
142
- protocol,
143
- hostname,
144
- port,
145
- method: "GET",
146
- headers,
147
- path: resolvedPath,
148
- body,
149
- });
98
+ b.m("GET").h(headers).b(body);
99
+ return b.build();
150
100
  };
151
101
  export const se_GetEventIntegrationCommand = async (input, context) => {
152
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
102
+ const b = rb(input, context);
153
103
  const headers = {};
154
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations/{Name}";
155
- resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
104
+ b.bp("/eventIntegrations/{Name}");
105
+ b.p("Name", () => input.Name, "{Name}", false);
156
106
  let body;
157
- return new __HttpRequest({
158
- protocol,
159
- hostname,
160
- port,
161
- method: "GET",
162
- headers,
163
- path: resolvedPath,
164
- body,
165
- });
107
+ b.m("GET").h(headers).b(body);
108
+ return b.build();
166
109
  };
167
110
  export const se_ListApplicationsCommand = async (input, context) => {
168
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
111
+ const b = rb(input, context);
169
112
  const headers = {};
170
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
113
+ b.bp("/applications");
171
114
  const query = map({
172
- nextToken: [, input.NextToken],
173
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
115
+ [_nT]: [, input[_NT]],
116
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
174
117
  });
175
118
  let body;
176
- return new __HttpRequest({
177
- protocol,
178
- hostname,
179
- port,
180
- method: "GET",
181
- headers,
182
- path: resolvedPath,
183
- query,
184
- body,
185
- });
119
+ b.m("GET").h(headers).q(query).b(body);
120
+ return b.build();
186
121
  };
187
122
  export const se_ListDataIntegrationAssociationsCommand = async (input, context) => {
188
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
123
+ const b = rb(input, context);
189
124
  const headers = {};
190
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
191
- "/dataIntegrations/{DataIntegrationIdentifier}/associations";
192
- resolvedPath = __resolvedPath(resolvedPath, input, "DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
125
+ b.bp("/dataIntegrations/{DataIntegrationIdentifier}/associations");
126
+ b.p("DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
193
127
  const query = map({
194
- nextToken: [, input.NextToken],
195
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
128
+ [_nT]: [, input[_NT]],
129
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
196
130
  });
197
131
  let body;
198
- return new __HttpRequest({
199
- protocol,
200
- hostname,
201
- port,
202
- method: "GET",
203
- headers,
204
- path: resolvedPath,
205
- query,
206
- body,
207
- });
132
+ b.m("GET").h(headers).q(query).b(body);
133
+ return b.build();
208
134
  };
209
135
  export const se_ListDataIntegrationsCommand = async (input, context) => {
210
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
136
+ const b = rb(input, context);
211
137
  const headers = {};
212
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations";
138
+ b.bp("/dataIntegrations");
213
139
  const query = map({
214
- nextToken: [, input.NextToken],
215
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
140
+ [_nT]: [, input[_NT]],
141
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
216
142
  });
217
143
  let body;
218
- return new __HttpRequest({
219
- protocol,
220
- hostname,
221
- port,
222
- method: "GET",
223
- headers,
224
- path: resolvedPath,
225
- query,
226
- body,
227
- });
144
+ b.m("GET").h(headers).q(query).b(body);
145
+ return b.build();
228
146
  };
229
147
  export const se_ListEventIntegrationAssociationsCommand = async (input, context) => {
230
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
148
+ const b = rb(input, context);
231
149
  const headers = {};
232
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
233
- "/eventIntegrations/{EventIntegrationName}/associations";
234
- resolvedPath = __resolvedPath(resolvedPath, input, "EventIntegrationName", () => input.EventIntegrationName, "{EventIntegrationName}", false);
150
+ b.bp("/eventIntegrations/{EventIntegrationName}/associations");
151
+ b.p("EventIntegrationName", () => input.EventIntegrationName, "{EventIntegrationName}", false);
235
152
  const query = map({
236
- nextToken: [, input.NextToken],
237
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
153
+ [_nT]: [, input[_NT]],
154
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
238
155
  });
239
156
  let body;
240
- return new __HttpRequest({
241
- protocol,
242
- hostname,
243
- port,
244
- method: "GET",
245
- headers,
246
- path: resolvedPath,
247
- query,
248
- body,
249
- });
157
+ b.m("GET").h(headers).q(query).b(body);
158
+ return b.build();
250
159
  };
251
160
  export const se_ListEventIntegrationsCommand = async (input, context) => {
252
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
161
+ const b = rb(input, context);
253
162
  const headers = {};
254
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations";
163
+ b.bp("/eventIntegrations");
255
164
  const query = map({
256
- nextToken: [, input.NextToken],
257
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
165
+ [_nT]: [, input[_NT]],
166
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
258
167
  });
259
168
  let body;
260
- return new __HttpRequest({
261
- protocol,
262
- hostname,
263
- port,
264
- method: "GET",
265
- headers,
266
- path: resolvedPath,
267
- query,
268
- body,
269
- });
169
+ b.m("GET").h(headers).q(query).b(body);
170
+ return b.build();
270
171
  };
271
172
  export const se_ListTagsForResourceCommand = async (input, context) => {
272
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
173
+ const b = rb(input, context);
273
174
  const headers = {};
274
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
275
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
175
+ b.bp("/tags/{resourceArn}");
176
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
276
177
  let body;
277
- return new __HttpRequest({
278
- protocol,
279
- hostname,
280
- port,
281
- method: "GET",
282
- headers,
283
- path: resolvedPath,
284
- body,
285
- });
178
+ b.m("GET").h(headers).b(body);
179
+ return b.build();
286
180
  };
287
181
  export const se_TagResourceCommand = async (input, context) => {
288
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
182
+ const b = rb(input, context);
289
183
  const headers = {
290
184
  "content-type": "application/json",
291
185
  };
292
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
293
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
186
+ b.bp("/tags/{resourceArn}");
187
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
294
188
  let body;
295
189
  body = JSON.stringify(take(input, {
296
190
  tags: (_) => _json(_),
297
191
  }));
298
- return new __HttpRequest({
299
- protocol,
300
- hostname,
301
- port,
302
- method: "POST",
303
- headers,
304
- path: resolvedPath,
305
- body,
306
- });
192
+ b.m("POST").h(headers).b(body);
193
+ return b.build();
307
194
  };
308
195
  export const se_UntagResourceCommand = async (input, context) => {
309
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
196
+ const b = rb(input, context);
310
197
  const headers = {};
311
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
312
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
198
+ b.bp("/tags/{resourceArn}");
199
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
313
200
  const query = map({
314
- tagKeys: [
201
+ [_tK]: [
315
202
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
316
- () => (input.tagKeys || []).map((_entry) => _entry),
203
+ () => (input[_tK] || []).map((_entry) => _entry),
317
204
  ],
318
205
  });
319
206
  let body;
320
- return new __HttpRequest({
321
- protocol,
322
- hostname,
323
- port,
324
- method: "DELETE",
325
- headers,
326
- path: resolvedPath,
327
- query,
328
- body,
329
- });
207
+ b.m("DELETE").h(headers).q(query).b(body);
208
+ return b.build();
330
209
  };
331
210
  export const se_UpdateApplicationCommand = async (input, context) => {
332
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
211
+ const b = rb(input, context);
333
212
  const headers = {
334
213
  "content-type": "application/json",
335
214
  };
336
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{Arn}";
337
- resolvedPath = __resolvedPath(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
215
+ b.bp("/applications/{Arn}");
216
+ b.p("Arn", () => input.Arn, "{Arn}", false);
338
217
  let body;
339
218
  body = JSON.stringify(take(input, {
340
219
  ApplicationSourceConfig: (_) => _json(_),
@@ -343,58 +222,37 @@ export const se_UpdateApplicationCommand = async (input, context) => {
343
222
  Publications: (_) => _json(_),
344
223
  Subscriptions: (_) => _json(_),
345
224
  }));
346
- return new __HttpRequest({
347
- protocol,
348
- hostname,
349
- port,
350
- method: "PATCH",
351
- headers,
352
- path: resolvedPath,
353
- body,
354
- });
225
+ b.m("PATCH").h(headers).b(body);
226
+ return b.build();
355
227
  };
356
228
  export const se_UpdateDataIntegrationCommand = async (input, context) => {
357
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
229
+ const b = rb(input, context);
358
230
  const headers = {
359
231
  "content-type": "application/json",
360
232
  };
361
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations/{Identifier}";
362
- resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
233
+ b.bp("/dataIntegrations/{Identifier}");
234
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
363
235
  let body;
364
236
  body = JSON.stringify(take(input, {
365
237
  Description: [],
366
238
  Name: [],
367
239
  }));
368
- return new __HttpRequest({
369
- protocol,
370
- hostname,
371
- port,
372
- method: "PATCH",
373
- headers,
374
- path: resolvedPath,
375
- body,
376
- });
240
+ b.m("PATCH").h(headers).b(body);
241
+ return b.build();
377
242
  };
378
243
  export const se_UpdateEventIntegrationCommand = async (input, context) => {
379
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
244
+ const b = rb(input, context);
380
245
  const headers = {
381
246
  "content-type": "application/json",
382
247
  };
383
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations/{Name}";
384
- resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
248
+ b.bp("/eventIntegrations/{Name}");
249
+ b.p("Name", () => input.Name, "{Name}", false);
385
250
  let body;
386
251
  body = JSON.stringify(take(input, {
387
252
  Description: [],
388
253
  }));
389
- return new __HttpRequest({
390
- protocol,
391
- hostname,
392
- port,
393
- method: "PATCH",
394
- headers,
395
- path: resolvedPath,
396
- body,
397
- });
254
+ b.m("PATCH").h(headers).b(body);
255
+ return b.build();
398
256
  };
399
257
  export const de_CreateApplicationCommand = async (output, context) => {
400
258
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1376,6 +1234,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1376
1234
  value !== "" &&
1377
1235
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1378
1236
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1237
+ const _MR = "MaxResults";
1238
+ const _NT = "NextToken";
1239
+ const _mR = "maxResults";
1240
+ const _nT = "nextToken";
1241
+ const _tK = "tagKeys";
1379
1242
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1380
1243
  if (encoded.length) {
1381
1244
  return JSON.parse(encoded);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-appintegrations",
3
3
  "description": "AWS SDK for JavaScript Appintegrations Client for Node.js, Browser and React Native",
4
- "version": "3.474.0",
4
+ "version": "3.477.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.474.0",
24
- "@aws-sdk/core": "3.474.0",
25
- "@aws-sdk/credential-provider-node": "3.474.0",
23
+ "@aws-sdk/client-sts": "3.477.0",
24
+ "@aws-sdk/core": "3.477.0",
25
+ "@aws-sdk/credential-provider-node": "3.477.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
@@ -34,6 +34,7 @@
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",
37
+ "@smithy/core": "^1.2.0",
37
38
  "@smithy/fetch-http-handler": "^2.3.1",
38
39
  "@smithy/hash-node": "^2.0.17",
39
40
  "@smithy/invalid-dependency": "^2.0.15",