@aws-sdk/client-appfabric 3.476.0 → 3.477.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,61 +1,45 @@
1
1
  import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
2
+ import { requestBuilder as rb } from "@smithy/core";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { AppFabricServiceException as __BaseException } from "../models/AppFabricServiceException";
6
6
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
7
7
  export const se_BatchGetUserAccessTasksCommand = async (input, context) => {
8
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
+ const b = rb(input, context);
9
9
  const headers = {
10
10
  "content-type": "application/json",
11
11
  };
12
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/useraccess/batchget";
12
+ b.bp("/useraccess/batchget");
13
13
  let body;
14
14
  body = JSON.stringify(take(input, {
15
15
  appBundleIdentifier: [],
16
16
  taskIdList: (_) => _json(_),
17
17
  }));
18
- return new __HttpRequest({
19
- protocol,
20
- hostname,
21
- port,
22
- method: "POST",
23
- headers,
24
- path: resolvedPath,
25
- body,
26
- });
18
+ b.m("POST").h(headers).b(body);
19
+ return b.build();
27
20
  };
28
21
  export const se_ConnectAppAuthorizationCommand = async (input, context) => {
29
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
22
+ const b = rb(input, context);
30
23
  const headers = {
31
24
  "content-type": "application/json",
32
25
  };
33
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
34
- "/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}/connect";
35
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
36
- resolvedPath = __resolvedPath(resolvedPath, input, "appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
26
+ b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}/connect");
27
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
28
+ b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
37
29
  let body;
38
30
  body = JSON.stringify(take(input, {
39
31
  authRequest: (_) => _json(_),
40
32
  }));
41
- return new __HttpRequest({
42
- protocol,
43
- hostname,
44
- port,
45
- method: "POST",
46
- headers,
47
- path: resolvedPath,
48
- body,
49
- });
33
+ b.m("POST").h(headers).b(body);
34
+ return b.build();
50
35
  };
51
36
  export const se_CreateAppAuthorizationCommand = async (input, context) => {
52
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
37
+ const b = rb(input, context);
53
38
  const headers = {
54
39
  "content-type": "application/json",
55
40
  };
56
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
57
- "/appbundles/{appBundleIdentifier}/appauthorizations";
58
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
41
+ b.bp("/appbundles/{appBundleIdentifier}/appauthorizations");
42
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
59
43
  let body;
60
44
  body = JSON.stringify(take(input, {
61
45
  app: [],
@@ -65,46 +49,31 @@ export const se_CreateAppAuthorizationCommand = async (input, context) => {
65
49
  tags: (_) => _json(_),
66
50
  tenant: (_) => _json(_),
67
51
  }));
68
- return new __HttpRequest({
69
- protocol,
70
- hostname,
71
- port,
72
- method: "POST",
73
- headers,
74
- path: resolvedPath,
75
- body,
76
- });
52
+ b.m("POST").h(headers).b(body);
53
+ return b.build();
77
54
  };
78
55
  export const se_CreateAppBundleCommand = async (input, context) => {
79
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
56
+ const b = rb(input, context);
80
57
  const headers = {
81
58
  "content-type": "application/json",
82
59
  };
83
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appbundles";
60
+ b.bp("/appbundles");
84
61
  let body;
85
62
  body = JSON.stringify(take(input, {
86
63
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
87
64
  customerManagedKeyIdentifier: [],
88
65
  tags: (_) => _json(_),
89
66
  }));
90
- return new __HttpRequest({
91
- protocol,
92
- hostname,
93
- port,
94
- method: "POST",
95
- headers,
96
- path: resolvedPath,
97
- body,
98
- });
67
+ b.m("POST").h(headers).b(body);
68
+ return b.build();
99
69
  };
100
70
  export const se_CreateIngestionCommand = async (input, context) => {
101
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
71
+ const b = rb(input, context);
102
72
  const headers = {
103
73
  "content-type": "application/json",
104
74
  };
105
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
106
- "/appbundles/{appBundleIdentifier}/ingestions";
107
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
75
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions");
76
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
108
77
  let body;
109
78
  body = JSON.stringify(take(input, {
110
79
  app: [],
@@ -113,25 +82,17 @@ export const se_CreateIngestionCommand = async (input, context) => {
113
82
  tags: (_) => _json(_),
114
83
  tenantId: [],
115
84
  }));
116
- return new __HttpRequest({
117
- protocol,
118
- hostname,
119
- port,
120
- method: "POST",
121
- headers,
122
- path: resolvedPath,
123
- body,
124
- });
85
+ b.m("POST").h(headers).b(body);
86
+ return b.build();
125
87
  };
126
88
  export const se_CreateIngestionDestinationCommand = async (input, context) => {
127
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
89
+ const b = rb(input, context);
128
90
  const headers = {
129
91
  "content-type": "application/json",
130
92
  };
131
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
132
- "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations";
133
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
134
- resolvedPath = __resolvedPath(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
93
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations");
94
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
95
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
135
96
  let body;
136
97
  body = JSON.stringify(take(input, {
137
98
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -139,409 +100,244 @@ export const se_CreateIngestionDestinationCommand = async (input, context) => {
139
100
  processingConfiguration: (_) => _json(_),
140
101
  tags: (_) => _json(_),
141
102
  }));
142
- return new __HttpRequest({
143
- protocol,
144
- hostname,
145
- port,
146
- method: "POST",
147
- headers,
148
- path: resolvedPath,
149
- body,
150
- });
103
+ b.m("POST").h(headers).b(body);
104
+ return b.build();
151
105
  };
152
106
  export const se_DeleteAppAuthorizationCommand = async (input, context) => {
153
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
107
+ const b = rb(input, context);
154
108
  const headers = {};
155
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
156
- "/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}";
157
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
158
- resolvedPath = __resolvedPath(resolvedPath, input, "appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
109
+ b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}");
110
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
111
+ b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
159
112
  let body;
160
- return new __HttpRequest({
161
- protocol,
162
- hostname,
163
- port,
164
- method: "DELETE",
165
- headers,
166
- path: resolvedPath,
167
- body,
168
- });
113
+ b.m("DELETE").h(headers).b(body);
114
+ return b.build();
169
115
  };
170
116
  export const se_DeleteAppBundleCommand = async (input, context) => {
171
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
117
+ const b = rb(input, context);
172
118
  const headers = {};
173
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appbundles/{appBundleIdentifier}";
174
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
119
+ b.bp("/appbundles/{appBundleIdentifier}");
120
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
175
121
  let body;
176
- return new __HttpRequest({
177
- protocol,
178
- hostname,
179
- port,
180
- method: "DELETE",
181
- headers,
182
- path: resolvedPath,
183
- body,
184
- });
122
+ b.m("DELETE").h(headers).b(body);
123
+ return b.build();
185
124
  };
186
125
  export const se_DeleteIngestionCommand = async (input, context) => {
187
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
126
+ const b = rb(input, context);
188
127
  const headers = {};
189
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
190
- "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}";
191
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
192
- resolvedPath = __resolvedPath(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
128
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}");
129
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
130
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
193
131
  let body;
194
- return new __HttpRequest({
195
- protocol,
196
- hostname,
197
- port,
198
- method: "DELETE",
199
- headers,
200
- path: resolvedPath,
201
- body,
202
- });
132
+ b.m("DELETE").h(headers).b(body);
133
+ return b.build();
203
134
  };
204
135
  export const se_DeleteIngestionDestinationCommand = async (input, context) => {
205
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
136
+ const b = rb(input, context);
206
137
  const headers = {};
207
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
208
- "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}";
209
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
210
- resolvedPath = __resolvedPath(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
211
- resolvedPath = __resolvedPath(resolvedPath, input, "ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier, "{ingestionDestinationIdentifier}", false);
138
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}");
139
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
140
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
141
+ b.p("ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier, "{ingestionDestinationIdentifier}", false);
212
142
  let body;
213
- return new __HttpRequest({
214
- protocol,
215
- hostname,
216
- port,
217
- method: "DELETE",
218
- headers,
219
- path: resolvedPath,
220
- body,
221
- });
143
+ b.m("DELETE").h(headers).b(body);
144
+ return b.build();
222
145
  };
223
146
  export const se_GetAppAuthorizationCommand = async (input, context) => {
224
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
147
+ const b = rb(input, context);
225
148
  const headers = {};
226
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
227
- "/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}";
228
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
229
- resolvedPath = __resolvedPath(resolvedPath, input, "appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
149
+ b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}");
150
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
151
+ b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
230
152
  let body;
231
- return new __HttpRequest({
232
- protocol,
233
- hostname,
234
- port,
235
- method: "GET",
236
- headers,
237
- path: resolvedPath,
238
- body,
239
- });
153
+ b.m("GET").h(headers).b(body);
154
+ return b.build();
240
155
  };
241
156
  export const se_GetAppBundleCommand = async (input, context) => {
242
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
157
+ const b = rb(input, context);
243
158
  const headers = {};
244
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appbundles/{appBundleIdentifier}";
245
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
159
+ b.bp("/appbundles/{appBundleIdentifier}");
160
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
246
161
  let body;
247
- return new __HttpRequest({
248
- protocol,
249
- hostname,
250
- port,
251
- method: "GET",
252
- headers,
253
- path: resolvedPath,
254
- body,
255
- });
162
+ b.m("GET").h(headers).b(body);
163
+ return b.build();
256
164
  };
257
165
  export const se_GetIngestionCommand = async (input, context) => {
258
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
166
+ const b = rb(input, context);
259
167
  const headers = {};
260
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
261
- "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}";
262
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
263
- resolvedPath = __resolvedPath(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
168
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}");
169
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
170
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
264
171
  let body;
265
- return new __HttpRequest({
266
- protocol,
267
- hostname,
268
- port,
269
- method: "GET",
270
- headers,
271
- path: resolvedPath,
272
- body,
273
- });
172
+ b.m("GET").h(headers).b(body);
173
+ return b.build();
274
174
  };
275
175
  export const se_GetIngestionDestinationCommand = async (input, context) => {
276
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
176
+ const b = rb(input, context);
277
177
  const headers = {};
278
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
279
- "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}";
280
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
281
- resolvedPath = __resolvedPath(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
282
- resolvedPath = __resolvedPath(resolvedPath, input, "ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier, "{ingestionDestinationIdentifier}", false);
178
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}");
179
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
180
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
181
+ b.p("ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier, "{ingestionDestinationIdentifier}", false);
283
182
  let body;
284
- return new __HttpRequest({
285
- protocol,
286
- hostname,
287
- port,
288
- method: "GET",
289
- headers,
290
- path: resolvedPath,
291
- body,
292
- });
183
+ b.m("GET").h(headers).b(body);
184
+ return b.build();
293
185
  };
294
186
  export const se_ListAppAuthorizationsCommand = async (input, context) => {
295
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
187
+ const b = rb(input, context);
296
188
  const headers = {};
297
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
298
- "/appbundles/{appBundleIdentifier}/appauthorizations";
299
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
189
+ b.bp("/appbundles/{appBundleIdentifier}/appauthorizations");
190
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
300
191
  const query = map({
301
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
302
- nextToken: [, input.nextToken],
192
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
193
+ [_nT]: [, input[_nT]],
303
194
  });
304
195
  let body;
305
- return new __HttpRequest({
306
- protocol,
307
- hostname,
308
- port,
309
- method: "GET",
310
- headers,
311
- path: resolvedPath,
312
- query,
313
- body,
314
- });
196
+ b.m("GET").h(headers).q(query).b(body);
197
+ return b.build();
315
198
  };
316
199
  export const se_ListAppBundlesCommand = async (input, context) => {
317
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
200
+ const b = rb(input, context);
318
201
  const headers = {};
319
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/appbundles";
202
+ b.bp("/appbundles");
320
203
  const query = map({
321
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
322
- nextToken: [, input.nextToken],
204
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
205
+ [_nT]: [, input[_nT]],
323
206
  });
324
207
  let body;
325
- return new __HttpRequest({
326
- protocol,
327
- hostname,
328
- port,
329
- method: "GET",
330
- headers,
331
- path: resolvedPath,
332
- query,
333
- body,
334
- });
208
+ b.m("GET").h(headers).q(query).b(body);
209
+ return b.build();
335
210
  };
336
211
  export const se_ListIngestionDestinationsCommand = async (input, context) => {
337
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
212
+ const b = rb(input, context);
338
213
  const headers = {};
339
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
340
- "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations";
341
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
342
- resolvedPath = __resolvedPath(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
214
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations");
215
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
216
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
343
217
  const query = map({
344
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
345
- nextToken: [, input.nextToken],
218
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
219
+ [_nT]: [, input[_nT]],
346
220
  });
347
221
  let body;
348
- return new __HttpRequest({
349
- protocol,
350
- hostname,
351
- port,
352
- method: "GET",
353
- headers,
354
- path: resolvedPath,
355
- query,
356
- body,
357
- });
222
+ b.m("GET").h(headers).q(query).b(body);
223
+ return b.build();
358
224
  };
359
225
  export const se_ListIngestionsCommand = async (input, context) => {
360
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
226
+ const b = rb(input, context);
361
227
  const headers = {};
362
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
363
- "/appbundles/{appBundleIdentifier}/ingestions";
364
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
228
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions");
229
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
365
230
  const query = map({
366
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
367
- nextToken: [, input.nextToken],
231
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
232
+ [_nT]: [, input[_nT]],
368
233
  });
369
234
  let body;
370
- return new __HttpRequest({
371
- protocol,
372
- hostname,
373
- port,
374
- method: "GET",
375
- headers,
376
- path: resolvedPath,
377
- query,
378
- body,
379
- });
235
+ b.m("GET").h(headers).q(query).b(body);
236
+ return b.build();
380
237
  };
381
238
  export const se_ListTagsForResourceCommand = async (input, context) => {
382
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
239
+ const b = rb(input, context);
383
240
  const headers = {};
384
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
385
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
241
+ b.bp("/tags/{resourceArn}");
242
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
386
243
  let body;
387
- return new __HttpRequest({
388
- protocol,
389
- hostname,
390
- port,
391
- method: "GET",
392
- headers,
393
- path: resolvedPath,
394
- body,
395
- });
244
+ b.m("GET").h(headers).b(body);
245
+ return b.build();
396
246
  };
397
247
  export const se_StartIngestionCommand = async (input, context) => {
398
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
248
+ const b = rb(input, context);
399
249
  const headers = {};
400
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
401
- "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/start";
402
- resolvedPath = __resolvedPath(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
403
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
250
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/start");
251
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
252
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
404
253
  let body;
405
- return new __HttpRequest({
406
- protocol,
407
- hostname,
408
- port,
409
- method: "POST",
410
- headers,
411
- path: resolvedPath,
412
- body,
413
- });
254
+ b.m("POST").h(headers).b(body);
255
+ return b.build();
414
256
  };
415
257
  export const se_StartUserAccessTasksCommand = async (input, context) => {
416
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
258
+ const b = rb(input, context);
417
259
  const headers = {
418
260
  "content-type": "application/json",
419
261
  };
420
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/useraccess/start";
262
+ b.bp("/useraccess/start");
421
263
  let body;
422
264
  body = JSON.stringify(take(input, {
423
265
  appBundleIdentifier: [],
424
266
  email: [],
425
267
  }));
426
- return new __HttpRequest({
427
- protocol,
428
- hostname,
429
- port,
430
- method: "POST",
431
- headers,
432
- path: resolvedPath,
433
- body,
434
- });
268
+ b.m("POST").h(headers).b(body);
269
+ return b.build();
435
270
  };
436
271
  export const se_StopIngestionCommand = async (input, context) => {
437
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
272
+ const b = rb(input, context);
438
273
  const headers = {};
439
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
440
- "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/stop";
441
- resolvedPath = __resolvedPath(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
442
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
274
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/stop");
275
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
276
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
443
277
  let body;
444
- return new __HttpRequest({
445
- protocol,
446
- hostname,
447
- port,
448
- method: "POST",
449
- headers,
450
- path: resolvedPath,
451
- body,
452
- });
278
+ b.m("POST").h(headers).b(body);
279
+ return b.build();
453
280
  };
454
281
  export const se_TagResourceCommand = async (input, context) => {
455
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
282
+ const b = rb(input, context);
456
283
  const headers = {
457
284
  "content-type": "application/json",
458
285
  };
459
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
460
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
286
+ b.bp("/tags/{resourceArn}");
287
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
461
288
  let body;
462
289
  body = JSON.stringify(take(input, {
463
290
  tags: (_) => _json(_),
464
291
  }));
465
- return new __HttpRequest({
466
- protocol,
467
- hostname,
468
- port,
469
- method: "POST",
470
- headers,
471
- path: resolvedPath,
472
- body,
473
- });
292
+ b.m("POST").h(headers).b(body);
293
+ return b.build();
474
294
  };
475
295
  export const se_UntagResourceCommand = async (input, context) => {
476
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
296
+ const b = rb(input, context);
477
297
  const headers = {};
478
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
479
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
298
+ b.bp("/tags/{resourceArn}");
299
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
480
300
  const query = map({
481
- tagKeys: [
301
+ [_tK]: [
482
302
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
483
- () => (input.tagKeys || []).map((_entry) => _entry),
303
+ () => (input[_tK] || []).map((_entry) => _entry),
484
304
  ],
485
305
  });
486
306
  let body;
487
- return new __HttpRequest({
488
- protocol,
489
- hostname,
490
- port,
491
- method: "DELETE",
492
- headers,
493
- path: resolvedPath,
494
- query,
495
- body,
496
- });
307
+ b.m("DELETE").h(headers).q(query).b(body);
308
+ return b.build();
497
309
  };
498
310
  export const se_UpdateAppAuthorizationCommand = async (input, context) => {
499
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
311
+ const b = rb(input, context);
500
312
  const headers = {
501
313
  "content-type": "application/json",
502
314
  };
503
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
504
- "/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}";
505
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
506
- resolvedPath = __resolvedPath(resolvedPath, input, "appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
315
+ b.bp("/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}");
316
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
317
+ b.p("appAuthorizationIdentifier", () => input.appAuthorizationIdentifier, "{appAuthorizationIdentifier}", false);
507
318
  let body;
508
319
  body = JSON.stringify(take(input, {
509
320
  credential: (_) => _json(_),
510
321
  tenant: (_) => _json(_),
511
322
  }));
512
- return new __HttpRequest({
513
- protocol,
514
- hostname,
515
- port,
516
- method: "PATCH",
517
- headers,
518
- path: resolvedPath,
519
- body,
520
- });
323
+ b.m("PATCH").h(headers).b(body);
324
+ return b.build();
521
325
  };
522
326
  export const se_UpdateIngestionDestinationCommand = async (input, context) => {
523
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
327
+ const b = rb(input, context);
524
328
  const headers = {
525
329
  "content-type": "application/json",
526
330
  };
527
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
528
- "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}";
529
- resolvedPath = __resolvedPath(resolvedPath, input, "appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
530
- resolvedPath = __resolvedPath(resolvedPath, input, "ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
531
- resolvedPath = __resolvedPath(resolvedPath, input, "ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier, "{ingestionDestinationIdentifier}", false);
331
+ b.bp("/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}");
332
+ b.p("appBundleIdentifier", () => input.appBundleIdentifier, "{appBundleIdentifier}", false);
333
+ b.p("ingestionIdentifier", () => input.ingestionIdentifier, "{ingestionIdentifier}", false);
334
+ b.p("ingestionDestinationIdentifier", () => input.ingestionDestinationIdentifier, "{ingestionDestinationIdentifier}", false);
532
335
  let body;
533
336
  body = JSON.stringify(take(input, {
534
337
  destinationConfiguration: (_) => _json(_),
535
338
  }));
536
- return new __HttpRequest({
537
- protocol,
538
- hostname,
539
- port,
540
- method: "PATCH",
541
- headers,
542
- path: resolvedPath,
543
- body,
544
- });
339
+ b.m("PATCH").h(headers).b(body);
340
+ return b.build();
545
341
  };
546
342
  export const de_BatchGetUserAccessTasksCommand = async (output, context) => {
547
343
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1740,10 +1536,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1740
1536
  };
1741
1537
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1742
1538
  const contents = map({
1743
- retryAfterSeconds: [
1744
- () => void 0 !== parsedOutput.headers["retry-after"],
1745
- () => __strictParseInt32(parsedOutput.headers["retry-after"]),
1746
- ],
1539
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
1747
1540
  });
1748
1541
  const data = parsedOutput.body;
1749
1542
  const doc = take(data, {
@@ -1790,10 +1583,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1790
1583
  };
1791
1584
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1792
1585
  const contents = map({
1793
- retryAfterSeconds: [
1794
- () => void 0 !== parsedOutput.headers["retry-after"],
1795
- () => __strictParseInt32(parsedOutput.headers["retry-after"]),
1796
- ],
1586
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
1797
1587
  });
1798
1588
  const data = parsedOutput.body;
1799
1589
  const doc = take(data, {
@@ -1891,6 +1681,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1891
1681
  value !== "" &&
1892
1682
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1893
1683
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1684
+ const _mR = "maxResults";
1685
+ const _nT = "nextToken";
1686
+ const _rAS = "retryAfterSeconds";
1687
+ const _ra = "retry-after";
1688
+ const _tK = "tagKeys";
1894
1689
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1895
1690
  if (encoded.length) {
1896
1691
  return JSON.parse(encoded);