@aws-sdk/client-appintegrations 3.476.0 → 3.478.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.
Files changed (23) hide show
  1. package/dist-cjs/pagination/ListApplicationsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListDataIntegrationAssociationsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListDataIntegrationsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListEventIntegrationAssociationsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListEventIntegrationsPaginator.js +2 -24
  6. package/dist-cjs/protocols/Aws_restJson1.js +107 -244
  7. package/dist-es/pagination/ListApplicationsPaginator.js +2 -23
  8. package/dist-es/pagination/ListDataIntegrationAssociationsPaginator.js +2 -23
  9. package/dist-es/pagination/ListDataIntegrationsPaginator.js +2 -23
  10. package/dist-es/pagination/ListEventIntegrationAssociationsPaginator.js +2 -23
  11. package/dist-es/pagination/ListEventIntegrationsPaginator.js +2 -23
  12. package/dist-es/protocols/Aws_restJson1.js +108 -245
  13. package/dist-types/pagination/ListApplicationsPaginator.d.ts +1 -1
  14. package/dist-types/pagination/ListDataIntegrationAssociationsPaginator.d.ts +1 -1
  15. package/dist-types/pagination/ListDataIntegrationsPaginator.d.ts +1 -1
  16. package/dist-types/pagination/ListEventIntegrationAssociationsPaginator.d.ts +1 -1
  17. package/dist-types/pagination/ListEventIntegrationsPaginator.d.ts +1 -1
  18. package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +3 -3
  19. package/dist-types/ts3.4/pagination/ListDataIntegrationAssociationsPaginator.d.ts +3 -3
  20. package/dist-types/ts3.4/pagination/ListDataIntegrationsPaginator.d.ts +3 -3
  21. package/dist-types/ts3.4/pagination/ListEventIntegrationAssociationsPaginator.d.ts +3 -3
  22. package/dist-types/ts3.4/pagination/ListEventIntegrationsPaginator.d.ts +3 -3
  23. package/package.json +7 -6
@@ -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,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { AppIntegrationsClient } from "../AppIntegrationsClient";
2
3
  import { ListApplicationsCommand, } from "../commands/ListApplicationsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListApplicationsCommand(input), ...args);
5
- };
6
- export async function* paginateListApplications(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof AppIntegrationsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected AppIntegrations | AppIntegrationsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListApplications = createPaginator(AppIntegrationsClient, ListApplicationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { AppIntegrationsClient } from "../AppIntegrationsClient";
2
3
  import { ListDataIntegrationAssociationsCommand, } from "../commands/ListDataIntegrationAssociationsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDataIntegrationAssociationsCommand(input), ...args);
5
- };
6
- export async function* paginateListDataIntegrationAssociations(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof AppIntegrationsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected AppIntegrations | AppIntegrationsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListDataIntegrationAssociations = createPaginator(AppIntegrationsClient, ListDataIntegrationAssociationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { AppIntegrationsClient } from "../AppIntegrationsClient";
2
3
  import { ListDataIntegrationsCommand, } from "../commands/ListDataIntegrationsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDataIntegrationsCommand(input), ...args);
5
- };
6
- export async function* paginateListDataIntegrations(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof AppIntegrationsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected AppIntegrations | AppIntegrationsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListDataIntegrations = createPaginator(AppIntegrationsClient, ListDataIntegrationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { AppIntegrationsClient } from "../AppIntegrationsClient";
2
3
  import { ListEventIntegrationAssociationsCommand, } from "../commands/ListEventIntegrationAssociationsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListEventIntegrationAssociationsCommand(input), ...args);
5
- };
6
- export async function* paginateListEventIntegrationAssociations(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof AppIntegrationsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected AppIntegrations | AppIntegrationsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListEventIntegrationAssociations = createPaginator(AppIntegrationsClient, ListEventIntegrationAssociationsCommand, "NextToken", "NextToken", "MaxResults");