@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,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { AppIntegrationsClient } from "../AppIntegrationsClient";
2
3
  import { ListEventIntegrationsCommand, } from "../commands/ListEventIntegrationsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListEventIntegrationsCommand(input), ...args);
5
- };
6
- export async function* paginateListEventIntegrations(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 paginateListEventIntegrations = createPaginator(AppIntegrationsClient, ListEventIntegrationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -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);
@@ -4,4 +4,4 @@ import { AppIntegrationsPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListApplications(config: AppIntegrationsPaginationConfiguration, input: ListApplicationsCommandInput, ...additionalArguments: any): Paginator<ListApplicationsCommandOutput>;
7
+ export declare const paginateListApplications: (config: AppIntegrationsPaginationConfiguration, input: ListApplicationsCommandInput, ...rest: any[]) => Paginator<ListApplicationsCommandOutput>;
@@ -4,4 +4,4 @@ import { AppIntegrationsPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListDataIntegrationAssociations(config: AppIntegrationsPaginationConfiguration, input: ListDataIntegrationAssociationsCommandInput, ...additionalArguments: any): Paginator<ListDataIntegrationAssociationsCommandOutput>;
7
+ export declare const paginateListDataIntegrationAssociations: (config: AppIntegrationsPaginationConfiguration, input: ListDataIntegrationAssociationsCommandInput, ...rest: any[]) => Paginator<ListDataIntegrationAssociationsCommandOutput>;
@@ -4,4 +4,4 @@ import { AppIntegrationsPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListDataIntegrations(config: AppIntegrationsPaginationConfiguration, input: ListDataIntegrationsCommandInput, ...additionalArguments: any): Paginator<ListDataIntegrationsCommandOutput>;
7
+ export declare const paginateListDataIntegrations: (config: AppIntegrationsPaginationConfiguration, input: ListDataIntegrationsCommandInput, ...rest: any[]) => Paginator<ListDataIntegrationsCommandOutput>;
@@ -4,4 +4,4 @@ import { AppIntegrationsPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListEventIntegrationAssociations(config: AppIntegrationsPaginationConfiguration, input: ListEventIntegrationAssociationsCommandInput, ...additionalArguments: any): Paginator<ListEventIntegrationAssociationsCommandOutput>;
7
+ export declare const paginateListEventIntegrationAssociations: (config: AppIntegrationsPaginationConfiguration, input: ListEventIntegrationAssociationsCommandInput, ...rest: any[]) => Paginator<ListEventIntegrationAssociationsCommandOutput>;
@@ -4,4 +4,4 @@ import { AppIntegrationsPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListEventIntegrations(config: AppIntegrationsPaginationConfiguration, input: ListEventIntegrationsCommandInput, ...additionalArguments: any): Paginator<ListEventIntegrationsCommandOutput>;
7
+ export declare const paginateListEventIntegrations: (config: AppIntegrationsPaginationConfiguration, input: ListEventIntegrationsCommandInput, ...rest: any[]) => Paginator<ListEventIntegrationsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListApplicationsCommandOutput,
5
5
  } from "../commands/ListApplicationsCommand";
6
6
  import { AppIntegrationsPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListApplications(
7
+ export declare const paginateListApplications: (
8
8
  config: AppIntegrationsPaginationConfiguration,
9
9
  input: ListApplicationsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListApplicationsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListApplicationsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListDataIntegrationAssociationsCommandOutput,
5
5
  } from "../commands/ListDataIntegrationAssociationsCommand";
6
6
  import { AppIntegrationsPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListDataIntegrationAssociations(
7
+ export declare const paginateListDataIntegrationAssociations: (
8
8
  config: AppIntegrationsPaginationConfiguration,
9
9
  input: ListDataIntegrationAssociationsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListDataIntegrationAssociationsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListDataIntegrationAssociationsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListDataIntegrationsCommandOutput,
5
5
  } from "../commands/ListDataIntegrationsCommand";
6
6
  import { AppIntegrationsPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListDataIntegrations(
7
+ export declare const paginateListDataIntegrations: (
8
8
  config: AppIntegrationsPaginationConfiguration,
9
9
  input: ListDataIntegrationsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListDataIntegrationsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListDataIntegrationsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListEventIntegrationAssociationsCommandOutput,
5
5
  } from "../commands/ListEventIntegrationAssociationsCommand";
6
6
  import { AppIntegrationsPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListEventIntegrationAssociations(
7
+ export declare const paginateListEventIntegrationAssociations: (
8
8
  config: AppIntegrationsPaginationConfiguration,
9
9
  input: ListEventIntegrationAssociationsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListEventIntegrationAssociationsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListEventIntegrationAssociationsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListEventIntegrationsCommandOutput,
5
5
  } from "../commands/ListEventIntegrationsCommand";
6
6
  import { AppIntegrationsPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListEventIntegrations(
7
+ export declare const paginateListEventIntegrations: (
8
8
  config: AppIntegrationsPaginationConfiguration,
9
9
  input: ListEventIntegrationsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListEventIntegrationsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListEventIntegrationsCommandOutput>;