@aws-sdk/client-appsync 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.
Files changed (73) hide show
  1. package/README.md +2 -2
  2. package/dist-cjs/models/models_0.js +5 -1
  3. package/dist-cjs/protocols/Aws_restJson1.js +376 -828
  4. package/dist-es/models/models_0.js +4 -0
  5. package/dist-es/protocols/Aws_restJson1.js +377 -829
  6. package/dist-types/AppSync.d.ts +2 -2
  7. package/dist-types/AppSyncClient.d.ts +2 -2
  8. package/dist-types/commands/AssociateApiCommand.d.ts +3 -4
  9. package/dist-types/commands/AssociateMergedGraphqlApiCommand.d.ts +5 -6
  10. package/dist-types/commands/AssociateSourceGraphqlApiCommand.d.ts +5 -6
  11. package/dist-types/commands/CreateApiCacheCommand.d.ts +5 -6
  12. package/dist-types/commands/CreateApiKeyCommand.d.ts +3 -4
  13. package/dist-types/commands/CreateDataSourceCommand.d.ts +5 -6
  14. package/dist-types/commands/CreateDomainNameCommand.d.ts +2 -2
  15. package/dist-types/commands/CreateFunctionCommand.d.ts +4 -6
  16. package/dist-types/commands/CreateGraphqlApiCommand.d.ts +10 -4
  17. package/dist-types/commands/CreateResolverCommand.d.ts +7 -8
  18. package/dist-types/commands/CreateTypeCommand.d.ts +5 -6
  19. package/dist-types/commands/DeleteApiCacheCommand.d.ts +5 -6
  20. package/dist-types/commands/DeleteApiKeyCommand.d.ts +3 -4
  21. package/dist-types/commands/DeleteDataSourceCommand.d.ts +5 -6
  22. package/dist-types/commands/DeleteDomainNameCommand.d.ts +5 -6
  23. package/dist-types/commands/DeleteFunctionCommand.d.ts +3 -4
  24. package/dist-types/commands/DeleteGraphqlApiCommand.d.ts +5 -6
  25. package/dist-types/commands/DeleteResolverCommand.d.ts +5 -6
  26. package/dist-types/commands/DeleteTypeCommand.d.ts +5 -6
  27. package/dist-types/commands/DisassociateApiCommand.d.ts +5 -6
  28. package/dist-types/commands/DisassociateMergedGraphqlApiCommand.d.ts +5 -6
  29. package/dist-types/commands/DisassociateSourceGraphqlApiCommand.d.ts +5 -6
  30. package/dist-types/commands/EvaluateCodeCommand.d.ts +7 -8
  31. package/dist-types/commands/EvaluateMappingTemplateCommand.d.ts +7 -8
  32. package/dist-types/commands/FlushApiCacheCommand.d.ts +5 -6
  33. package/dist-types/commands/GetApiAssociationCommand.d.ts +3 -4
  34. package/dist-types/commands/GetApiCacheCommand.d.ts +5 -6
  35. package/dist-types/commands/GetDataSourceCommand.d.ts +5 -6
  36. package/dist-types/commands/GetDataSourceIntrospectionCommand.d.ts +3 -4
  37. package/dist-types/commands/GetDomainNameCommand.d.ts +3 -4
  38. package/dist-types/commands/GetFunctionCommand.d.ts +3 -4
  39. package/dist-types/commands/GetGraphqlApiCommand.d.ts +6 -4
  40. package/dist-types/commands/GetIntrospectionSchemaCommand.d.ts +1 -2
  41. package/dist-types/commands/GetResolverCommand.d.ts +3 -4
  42. package/dist-types/commands/GetSchemaCreationStatusCommand.d.ts +3 -4
  43. package/dist-types/commands/GetSourceApiAssociationCommand.d.ts +3 -4
  44. package/dist-types/commands/GetTypeCommand.d.ts +5 -6
  45. package/dist-types/commands/ListApiKeysCommand.d.ts +6 -8
  46. package/dist-types/commands/ListDataSourcesCommand.d.ts +3 -4
  47. package/dist-types/commands/ListDomainNamesCommand.d.ts +2 -2
  48. package/dist-types/commands/ListFunctionsCommand.d.ts +3 -4
  49. package/dist-types/commands/ListGraphqlApisCommand.d.ts +5 -2
  50. package/dist-types/commands/ListResolversByFunctionCommand.d.ts +3 -4
  51. package/dist-types/commands/ListResolversCommand.d.ts +3 -4
  52. package/dist-types/commands/ListSourceApiAssociationsCommand.d.ts +3 -4
  53. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -4
  54. package/dist-types/commands/ListTypesByAssociationCommand.d.ts +5 -6
  55. package/dist-types/commands/ListTypesCommand.d.ts +5 -6
  56. package/dist-types/commands/StartDataSourceIntrospectionCommand.d.ts +3 -4
  57. package/dist-types/commands/StartSchemaCreationCommand.d.ts +7 -8
  58. package/dist-types/commands/StartSchemaMergeCommand.d.ts +5 -6
  59. package/dist-types/commands/TagResourceCommand.d.ts +3 -4
  60. package/dist-types/commands/UntagResourceCommand.d.ts +3 -4
  61. package/dist-types/commands/UpdateApiCacheCommand.d.ts +5 -6
  62. package/dist-types/commands/UpdateApiKeyCommand.d.ts +3 -4
  63. package/dist-types/commands/UpdateDataSourceCommand.d.ts +5 -6
  64. package/dist-types/commands/UpdateDomainNameCommand.d.ts +5 -6
  65. package/dist-types/commands/UpdateFunctionCommand.d.ts +3 -4
  66. package/dist-types/commands/UpdateGraphqlApiCommand.d.ts +11 -6
  67. package/dist-types/commands/UpdateResolverCommand.d.ts +5 -6
  68. package/dist-types/commands/UpdateSourceApiAssociationCommand.d.ts +5 -6
  69. package/dist-types/commands/UpdateTypeCommand.d.ts +5 -6
  70. package/dist-types/index.d.ts +2 -2
  71. package/dist-types/models/models_0.d.ts +431 -383
  72. package/dist-types/ts3.4/models/models_0.d.ts +15 -0
  73. package/package.json +5 -4
@@ -1,84 +1,60 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, 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, expectLong as __expectLong, 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 { AppSyncServiceException as __BaseException } from "../models/AppSyncServiceException";
4
4
  import { AccessDeniedException, ApiKeyLimitExceededException, ApiKeyValidityOutOfBoundsException, ApiLimitExceededException, BadRequestException, ConcurrentModificationException, GraphQLSchemaException, InternalFailureException, LimitExceededException, NotFoundException, UnauthorizedException, } from "../models/models_0";
5
5
  export const se_AssociateApiCommand = async (input, context) => {
6
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6
+ const b = rb(input, context);
7
7
  const headers = {
8
8
  "content-type": "application/json",
9
9
  };
10
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
11
- "/v1/domainnames/{domainName}/apiassociation";
12
- resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
10
+ b.bp("/v1/domainnames/{domainName}/apiassociation");
11
+ b.p("domainName", () => input.domainName, "{domainName}", false);
13
12
  let body;
14
13
  body = JSON.stringify(take(input, {
15
14
  apiId: [],
16
15
  }));
17
- return new __HttpRequest({
18
- protocol,
19
- hostname,
20
- port,
21
- method: "POST",
22
- headers,
23
- path: resolvedPath,
24
- body,
25
- });
16
+ b.m("POST").h(headers).b(body);
17
+ return b.build();
26
18
  };
27
19
  export const se_AssociateMergedGraphqlApiCommand = async (input, context) => {
28
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
20
+ const b = rb(input, context);
29
21
  const headers = {
30
22
  "content-type": "application/json",
31
23
  };
32
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
33
- "/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations";
34
- resolvedPath = __resolvedPath(resolvedPath, input, "sourceApiIdentifier", () => input.sourceApiIdentifier, "{sourceApiIdentifier}", false);
24
+ b.bp("/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations");
25
+ b.p("sourceApiIdentifier", () => input.sourceApiIdentifier, "{sourceApiIdentifier}", false);
35
26
  let body;
36
27
  body = JSON.stringify(take(input, {
37
28
  description: [],
38
29
  mergedApiIdentifier: [],
39
30
  sourceApiAssociationConfig: (_) => _json(_),
40
31
  }));
41
- return new __HttpRequest({
42
- protocol,
43
- hostname,
44
- port,
45
- method: "POST",
46
- headers,
47
- path: resolvedPath,
48
- body,
49
- });
32
+ b.m("POST").h(headers).b(body);
33
+ return b.build();
50
34
  };
51
35
  export const se_AssociateSourceGraphqlApiCommand = async (input, context) => {
52
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
36
+ const b = rb(input, context);
53
37
  const headers = {
54
38
  "content-type": "application/json",
55
39
  };
56
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
57
- "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations";
58
- resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
40
+ b.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations");
41
+ b.p("mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
59
42
  let body;
60
43
  body = JSON.stringify(take(input, {
61
44
  description: [],
62
45
  sourceApiAssociationConfig: (_) => _json(_),
63
46
  sourceApiIdentifier: [],
64
47
  }));
65
- return new __HttpRequest({
66
- protocol,
67
- hostname,
68
- port,
69
- method: "POST",
70
- headers,
71
- path: resolvedPath,
72
- body,
73
- });
48
+ b.m("POST").h(headers).b(body);
49
+ return b.build();
74
50
  };
75
51
  export const se_CreateApiCacheCommand = async (input, context) => {
76
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
52
+ const b = rb(input, context);
77
53
  const headers = {
78
54
  "content-type": "application/json",
79
55
  };
80
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/ApiCaches";
81
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
56
+ b.bp("/v1/apis/{apiId}/ApiCaches");
57
+ b.p("apiId", () => input.apiId, "{apiId}", false);
82
58
  let body;
83
59
  body = JSON.stringify(take(input, {
84
60
  apiCachingBehavior: [],
@@ -87,45 +63,31 @@ export const se_CreateApiCacheCommand = async (input, context) => {
87
63
  ttl: [],
88
64
  type: [],
89
65
  }));
90
- return new __HttpRequest({
91
- protocol,
92
- hostname,
93
- port,
94
- method: "POST",
95
- headers,
96
- path: resolvedPath,
97
- body,
98
- });
66
+ b.m("POST").h(headers).b(body);
67
+ return b.build();
99
68
  };
100
69
  export const se_CreateApiKeyCommand = async (input, context) => {
101
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
70
+ const b = rb(input, context);
102
71
  const headers = {
103
72
  "content-type": "application/json",
104
73
  };
105
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/apikeys";
106
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
74
+ b.bp("/v1/apis/{apiId}/apikeys");
75
+ b.p("apiId", () => input.apiId, "{apiId}", false);
107
76
  let body;
108
77
  body = JSON.stringify(take(input, {
109
78
  description: [],
110
79
  expires: [],
111
80
  }));
112
- return new __HttpRequest({
113
- protocol,
114
- hostname,
115
- port,
116
- method: "POST",
117
- headers,
118
- path: resolvedPath,
119
- body,
120
- });
81
+ b.m("POST").h(headers).b(body);
82
+ return b.build();
121
83
  };
122
84
  export const se_CreateDataSourceCommand = async (input, context) => {
123
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
85
+ const b = rb(input, context);
124
86
  const headers = {
125
87
  "content-type": "application/json",
126
88
  };
127
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources";
128
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
89
+ b.bp("/v1/apis/{apiId}/datasources");
90
+ b.p("apiId", () => input.apiId, "{apiId}", false);
129
91
  let body;
130
92
  body = JSON.stringify(take(input, {
131
93
  description: [],
@@ -140,45 +102,31 @@ export const se_CreateDataSourceCommand = async (input, context) => {
140
102
  serviceRoleArn: [],
141
103
  type: [],
142
104
  }));
143
- return new __HttpRequest({
144
- protocol,
145
- hostname,
146
- port,
147
- method: "POST",
148
- headers,
149
- path: resolvedPath,
150
- body,
151
- });
105
+ b.m("POST").h(headers).b(body);
106
+ return b.build();
152
107
  };
153
108
  export const se_CreateDomainNameCommand = async (input, context) => {
154
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
109
+ const b = rb(input, context);
155
110
  const headers = {
156
111
  "content-type": "application/json",
157
112
  };
158
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames";
113
+ b.bp("/v1/domainnames");
159
114
  let body;
160
115
  body = JSON.stringify(take(input, {
161
116
  certificateArn: [],
162
117
  description: [],
163
118
  domainName: [],
164
119
  }));
165
- return new __HttpRequest({
166
- protocol,
167
- hostname,
168
- port,
169
- method: "POST",
170
- headers,
171
- path: resolvedPath,
172
- body,
173
- });
120
+ b.m("POST").h(headers).b(body);
121
+ return b.build();
174
122
  };
175
123
  export const se_CreateFunctionCommand = async (input, context) => {
176
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
124
+ const b = rb(input, context);
177
125
  const headers = {
178
126
  "content-type": "application/json",
179
127
  };
180
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions";
181
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
128
+ b.bp("/v1/apis/{apiId}/functions");
129
+ b.p("apiId", () => input.apiId, "{apiId}", false);
182
130
  let body;
183
131
  body = JSON.stringify(take(input, {
184
132
  code: [],
@@ -192,57 +140,45 @@ export const se_CreateFunctionCommand = async (input, context) => {
192
140
  runtime: (_) => _json(_),
193
141
  syncConfig: (_) => _json(_),
194
142
  }));
195
- return new __HttpRequest({
196
- protocol,
197
- hostname,
198
- port,
199
- method: "POST",
200
- headers,
201
- path: resolvedPath,
202
- body,
203
- });
143
+ b.m("POST").h(headers).b(body);
144
+ return b.build();
204
145
  };
205
146
  export const se_CreateGraphqlApiCommand = async (input, context) => {
206
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
147
+ const b = rb(input, context);
207
148
  const headers = {
208
149
  "content-type": "application/json",
209
150
  };
210
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis";
151
+ b.bp("/v1/apis");
211
152
  let body;
212
153
  body = JSON.stringify(take(input, {
213
154
  additionalAuthenticationProviders: (_) => _json(_),
214
155
  apiType: [],
215
156
  authenticationType: [],
157
+ introspectionConfig: [],
216
158
  lambdaAuthorizerConfig: (_) => _json(_),
217
159
  logConfig: (_) => _json(_),
218
160
  mergedApiExecutionRoleArn: [],
219
161
  name: [],
220
162
  openIDConnectConfig: (_) => _json(_),
221
163
  ownerContact: [],
164
+ queryDepthLimit: [],
165
+ resolverCountLimit: [],
222
166
  tags: (_) => _json(_),
223
167
  userPoolConfig: (_) => _json(_),
224
168
  visibility: [],
225
169
  xrayEnabled: [],
226
170
  }));
227
- return new __HttpRequest({
228
- protocol,
229
- hostname,
230
- port,
231
- method: "POST",
232
- headers,
233
- path: resolvedPath,
234
- body,
235
- });
171
+ b.m("POST").h(headers).b(body);
172
+ return b.build();
236
173
  };
237
174
  export const se_CreateResolverCommand = async (input, context) => {
238
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
175
+ const b = rb(input, context);
239
176
  const headers = {
240
177
  "content-type": "application/json",
241
178
  };
242
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
243
- "/v1/apis/{apiId}/types/{typeName}/resolvers";
244
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
245
- resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
179
+ b.bp("/v1/apis/{apiId}/types/{typeName}/resolvers");
180
+ b.p("apiId", () => input.apiId, "{apiId}", false);
181
+ b.p("typeName", () => input.typeName, "{typeName}", false);
246
182
  let body;
247
183
  body = JSON.stringify(take(input, {
248
184
  cachingConfig: (_) => _json(_),
@@ -257,232 +193,137 @@ export const se_CreateResolverCommand = async (input, context) => {
257
193
  runtime: (_) => _json(_),
258
194
  syncConfig: (_) => _json(_),
259
195
  }));
260
- return new __HttpRequest({
261
- protocol,
262
- hostname,
263
- port,
264
- method: "POST",
265
- headers,
266
- path: resolvedPath,
267
- body,
268
- });
196
+ b.m("POST").h(headers).b(body);
197
+ return b.build();
269
198
  };
270
199
  export const se_CreateTypeCommand = async (input, context) => {
271
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
200
+ const b = rb(input, context);
272
201
  const headers = {
273
202
  "content-type": "application/json",
274
203
  };
275
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types";
276
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
204
+ b.bp("/v1/apis/{apiId}/types");
205
+ b.p("apiId", () => input.apiId, "{apiId}", false);
277
206
  let body;
278
207
  body = JSON.stringify(take(input, {
279
208
  definition: [],
280
209
  format: [],
281
210
  }));
282
- return new __HttpRequest({
283
- protocol,
284
- hostname,
285
- port,
286
- method: "POST",
287
- headers,
288
- path: resolvedPath,
289
- body,
290
- });
211
+ b.m("POST").h(headers).b(body);
212
+ return b.build();
291
213
  };
292
214
  export const se_DeleteApiCacheCommand = async (input, context) => {
293
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
215
+ const b = rb(input, context);
294
216
  const headers = {};
295
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/ApiCaches";
296
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
217
+ b.bp("/v1/apis/{apiId}/ApiCaches");
218
+ b.p("apiId", () => input.apiId, "{apiId}", false);
297
219
  let body;
298
- return new __HttpRequest({
299
- protocol,
300
- hostname,
301
- port,
302
- method: "DELETE",
303
- headers,
304
- path: resolvedPath,
305
- body,
306
- });
220
+ b.m("DELETE").h(headers).b(body);
221
+ return b.build();
307
222
  };
308
223
  export const se_DeleteApiKeyCommand = async (input, context) => {
309
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
224
+ const b = rb(input, context);
310
225
  const headers = {};
311
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/apikeys/{id}";
312
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
313
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
226
+ b.bp("/v1/apis/{apiId}/apikeys/{id}");
227
+ b.p("apiId", () => input.apiId, "{apiId}", false);
228
+ b.p("id", () => input.id, "{id}", false);
314
229
  let body;
315
- return new __HttpRequest({
316
- protocol,
317
- hostname,
318
- port,
319
- method: "DELETE",
320
- headers,
321
- path: resolvedPath,
322
- body,
323
- });
230
+ b.m("DELETE").h(headers).b(body);
231
+ return b.build();
324
232
  };
325
233
  export const se_DeleteDataSourceCommand = async (input, context) => {
326
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
234
+ const b = rb(input, context);
327
235
  const headers = {};
328
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources/{name}";
329
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
330
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
236
+ b.bp("/v1/apis/{apiId}/datasources/{name}");
237
+ b.p("apiId", () => input.apiId, "{apiId}", false);
238
+ b.p("name", () => input.name, "{name}", false);
331
239
  let body;
332
- return new __HttpRequest({
333
- protocol,
334
- hostname,
335
- port,
336
- method: "DELETE",
337
- headers,
338
- path: resolvedPath,
339
- body,
340
- });
240
+ b.m("DELETE").h(headers).b(body);
241
+ return b.build();
341
242
  };
342
243
  export const se_DeleteDomainNameCommand = async (input, context) => {
343
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
244
+ const b = rb(input, context);
344
245
  const headers = {};
345
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames/{domainName}";
346
- resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
246
+ b.bp("/v1/domainnames/{domainName}");
247
+ b.p("domainName", () => input.domainName, "{domainName}", false);
347
248
  let body;
348
- return new __HttpRequest({
349
- protocol,
350
- hostname,
351
- port,
352
- method: "DELETE",
353
- headers,
354
- path: resolvedPath,
355
- body,
356
- });
249
+ b.m("DELETE").h(headers).b(body);
250
+ return b.build();
357
251
  };
358
252
  export const se_DeleteFunctionCommand = async (input, context) => {
359
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
253
+ const b = rb(input, context);
360
254
  const headers = {};
361
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions/{functionId}";
362
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
363
- resolvedPath = __resolvedPath(resolvedPath, input, "functionId", () => input.functionId, "{functionId}", false);
255
+ b.bp("/v1/apis/{apiId}/functions/{functionId}");
256
+ b.p("apiId", () => input.apiId, "{apiId}", false);
257
+ b.p("functionId", () => input.functionId, "{functionId}", false);
364
258
  let body;
365
- return new __HttpRequest({
366
- protocol,
367
- hostname,
368
- port,
369
- method: "DELETE",
370
- headers,
371
- path: resolvedPath,
372
- body,
373
- });
259
+ b.m("DELETE").h(headers).b(body);
260
+ return b.build();
374
261
  };
375
262
  export const se_DeleteGraphqlApiCommand = async (input, context) => {
376
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
263
+ const b = rb(input, context);
377
264
  const headers = {};
378
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}";
379
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
265
+ b.bp("/v1/apis/{apiId}");
266
+ b.p("apiId", () => input.apiId, "{apiId}", false);
380
267
  let body;
381
- return new __HttpRequest({
382
- protocol,
383
- hostname,
384
- port,
385
- method: "DELETE",
386
- headers,
387
- path: resolvedPath,
388
- body,
389
- });
268
+ b.m("DELETE").h(headers).b(body);
269
+ return b.build();
390
270
  };
391
271
  export const se_DeleteResolverCommand = async (input, context) => {
392
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
272
+ const b = rb(input, context);
393
273
  const headers = {};
394
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
395
- "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}";
396
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
397
- resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
398
- resolvedPath = __resolvedPath(resolvedPath, input, "fieldName", () => input.fieldName, "{fieldName}", false);
274
+ b.bp("/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}");
275
+ b.p("apiId", () => input.apiId, "{apiId}", false);
276
+ b.p("typeName", () => input.typeName, "{typeName}", false);
277
+ b.p("fieldName", () => input.fieldName, "{fieldName}", false);
399
278
  let body;
400
- return new __HttpRequest({
401
- protocol,
402
- hostname,
403
- port,
404
- method: "DELETE",
405
- headers,
406
- path: resolvedPath,
407
- body,
408
- });
279
+ b.m("DELETE").h(headers).b(body);
280
+ return b.build();
409
281
  };
410
282
  export const se_DeleteTypeCommand = async (input, context) => {
411
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
283
+ const b = rb(input, context);
412
284
  const headers = {};
413
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types/{typeName}";
414
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
415
- resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
285
+ b.bp("/v1/apis/{apiId}/types/{typeName}");
286
+ b.p("apiId", () => input.apiId, "{apiId}", false);
287
+ b.p("typeName", () => input.typeName, "{typeName}", false);
416
288
  let body;
417
- return new __HttpRequest({
418
- protocol,
419
- hostname,
420
- port,
421
- method: "DELETE",
422
- headers,
423
- path: resolvedPath,
424
- body,
425
- });
289
+ b.m("DELETE").h(headers).b(body);
290
+ return b.build();
426
291
  };
427
292
  export const se_DisassociateApiCommand = async (input, context) => {
428
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
293
+ const b = rb(input, context);
429
294
  const headers = {};
430
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
431
- "/v1/domainnames/{domainName}/apiassociation";
432
- resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
295
+ b.bp("/v1/domainnames/{domainName}/apiassociation");
296
+ b.p("domainName", () => input.domainName, "{domainName}", false);
433
297
  let body;
434
- return new __HttpRequest({
435
- protocol,
436
- hostname,
437
- port,
438
- method: "DELETE",
439
- headers,
440
- path: resolvedPath,
441
- body,
442
- });
298
+ b.m("DELETE").h(headers).b(body);
299
+ return b.build();
443
300
  };
444
301
  export const se_DisassociateMergedGraphqlApiCommand = async (input, context) => {
445
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
302
+ const b = rb(input, context);
446
303
  const headers = {};
447
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
448
- "/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations/{associationId}";
449
- resolvedPath = __resolvedPath(resolvedPath, input, "sourceApiIdentifier", () => input.sourceApiIdentifier, "{sourceApiIdentifier}", false);
450
- resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
304
+ b.bp("/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations/{associationId}");
305
+ b.p("sourceApiIdentifier", () => input.sourceApiIdentifier, "{sourceApiIdentifier}", false);
306
+ b.p("associationId", () => input.associationId, "{associationId}", false);
451
307
  let body;
452
- return new __HttpRequest({
453
- protocol,
454
- hostname,
455
- port,
456
- method: "DELETE",
457
- headers,
458
- path: resolvedPath,
459
- body,
460
- });
308
+ b.m("DELETE").h(headers).b(body);
309
+ return b.build();
461
310
  };
462
311
  export const se_DisassociateSourceGraphqlApiCommand = async (input, context) => {
463
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
312
+ const b = rb(input, context);
464
313
  const headers = {};
465
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
466
- "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}";
467
- resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
468
- resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
314
+ b.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}");
315
+ b.p("mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
316
+ b.p("associationId", () => input.associationId, "{associationId}", false);
469
317
  let body;
470
- return new __HttpRequest({
471
- protocol,
472
- hostname,
473
- port,
474
- method: "DELETE",
475
- headers,
476
- path: resolvedPath,
477
- body,
478
- });
318
+ b.m("DELETE").h(headers).b(body);
319
+ return b.build();
479
320
  };
480
321
  export const se_EvaluateCodeCommand = async (input, context) => {
481
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
322
+ const b = rb(input, context);
482
323
  const headers = {
483
324
  "content-type": "application/json",
484
325
  };
485
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/dataplane-evaluatecode";
326
+ b.bp("/v1/dataplane-evaluatecode");
486
327
  let body;
487
328
  body = JSON.stringify(take(input, {
488
329
  code: [],
@@ -490,661 +331,408 @@ export const se_EvaluateCodeCommand = async (input, context) => {
490
331
  function: [],
491
332
  runtime: (_) => _json(_),
492
333
  }));
493
- return new __HttpRequest({
494
- protocol,
495
- hostname,
496
- port,
497
- method: "POST",
498
- headers,
499
- path: resolvedPath,
500
- body,
501
- });
334
+ b.m("POST").h(headers).b(body);
335
+ return b.build();
502
336
  };
503
337
  export const se_EvaluateMappingTemplateCommand = async (input, context) => {
504
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
338
+ const b = rb(input, context);
505
339
  const headers = {
506
340
  "content-type": "application/json",
507
341
  };
508
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/dataplane-evaluatetemplate";
342
+ b.bp("/v1/dataplane-evaluatetemplate");
509
343
  let body;
510
344
  body = JSON.stringify(take(input, {
511
345
  context: [],
512
346
  template: [],
513
347
  }));
514
- return new __HttpRequest({
515
- protocol,
516
- hostname,
517
- port,
518
- method: "POST",
519
- headers,
520
- path: resolvedPath,
521
- body,
522
- });
348
+ b.m("POST").h(headers).b(body);
349
+ return b.build();
523
350
  };
524
351
  export const se_FlushApiCacheCommand = async (input, context) => {
525
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
352
+ const b = rb(input, context);
526
353
  const headers = {};
527
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/FlushCache";
528
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
354
+ b.bp("/v1/apis/{apiId}/FlushCache");
355
+ b.p("apiId", () => input.apiId, "{apiId}", false);
529
356
  let body;
530
- return new __HttpRequest({
531
- protocol,
532
- hostname,
533
- port,
534
- method: "DELETE",
535
- headers,
536
- path: resolvedPath,
537
- body,
538
- });
357
+ b.m("DELETE").h(headers).b(body);
358
+ return b.build();
539
359
  };
540
360
  export const se_GetApiAssociationCommand = async (input, context) => {
541
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
361
+ const b = rb(input, context);
542
362
  const headers = {};
543
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
544
- "/v1/domainnames/{domainName}/apiassociation";
545
- resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
363
+ b.bp("/v1/domainnames/{domainName}/apiassociation");
364
+ b.p("domainName", () => input.domainName, "{domainName}", false);
546
365
  let body;
547
- return new __HttpRequest({
548
- protocol,
549
- hostname,
550
- port,
551
- method: "GET",
552
- headers,
553
- path: resolvedPath,
554
- body,
555
- });
366
+ b.m("GET").h(headers).b(body);
367
+ return b.build();
556
368
  };
557
369
  export const se_GetApiCacheCommand = async (input, context) => {
558
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
370
+ const b = rb(input, context);
559
371
  const headers = {};
560
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/ApiCaches";
561
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
372
+ b.bp("/v1/apis/{apiId}/ApiCaches");
373
+ b.p("apiId", () => input.apiId, "{apiId}", false);
562
374
  let body;
563
- return new __HttpRequest({
564
- protocol,
565
- hostname,
566
- port,
567
- method: "GET",
568
- headers,
569
- path: resolvedPath,
570
- body,
571
- });
375
+ b.m("GET").h(headers).b(body);
376
+ return b.build();
572
377
  };
573
378
  export const se_GetDataSourceCommand = async (input, context) => {
574
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
379
+ const b = rb(input, context);
575
380
  const headers = {};
576
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources/{name}";
577
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
578
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
381
+ b.bp("/v1/apis/{apiId}/datasources/{name}");
382
+ b.p("apiId", () => input.apiId, "{apiId}", false);
383
+ b.p("name", () => input.name, "{name}", false);
579
384
  let body;
580
- return new __HttpRequest({
581
- protocol,
582
- hostname,
583
- port,
584
- method: "GET",
585
- headers,
586
- path: resolvedPath,
587
- body,
588
- });
385
+ b.m("GET").h(headers).b(body);
386
+ return b.build();
589
387
  };
590
388
  export const se_GetDataSourceIntrospectionCommand = async (input, context) => {
591
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
389
+ const b = rb(input, context);
592
390
  const headers = {};
593
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
594
- "/v1/datasources/introspections/{introspectionId}";
595
- resolvedPath = __resolvedPath(resolvedPath, input, "introspectionId", () => input.introspectionId, "{introspectionId}", false);
391
+ b.bp("/v1/datasources/introspections/{introspectionId}");
392
+ b.p("introspectionId", () => input.introspectionId, "{introspectionId}", false);
596
393
  const query = map({
597
- includeModelsSDL: [() => input.includeModelsSDL !== void 0, () => input.includeModelsSDL.toString()],
598
- nextToken: [, input.nextToken],
599
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
394
+ [_iMSDL]: [() => input.includeModelsSDL !== void 0, () => input[_iMSDL].toString()],
395
+ [_nT]: [, input[_nT]],
396
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
600
397
  });
601
398
  let body;
602
- return new __HttpRequest({
603
- protocol,
604
- hostname,
605
- port,
606
- method: "GET",
607
- headers,
608
- path: resolvedPath,
609
- query,
610
- body,
611
- });
399
+ b.m("GET").h(headers).q(query).b(body);
400
+ return b.build();
612
401
  };
613
402
  export const se_GetDomainNameCommand = async (input, context) => {
614
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
403
+ const b = rb(input, context);
615
404
  const headers = {};
616
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames/{domainName}";
617
- resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
405
+ b.bp("/v1/domainnames/{domainName}");
406
+ b.p("domainName", () => input.domainName, "{domainName}", false);
618
407
  let body;
619
- return new __HttpRequest({
620
- protocol,
621
- hostname,
622
- port,
623
- method: "GET",
624
- headers,
625
- path: resolvedPath,
626
- body,
627
- });
408
+ b.m("GET").h(headers).b(body);
409
+ return b.build();
628
410
  };
629
411
  export const se_GetFunctionCommand = async (input, context) => {
630
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
412
+ const b = rb(input, context);
631
413
  const headers = {};
632
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions/{functionId}";
633
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
634
- resolvedPath = __resolvedPath(resolvedPath, input, "functionId", () => input.functionId, "{functionId}", false);
414
+ b.bp("/v1/apis/{apiId}/functions/{functionId}");
415
+ b.p("apiId", () => input.apiId, "{apiId}", false);
416
+ b.p("functionId", () => input.functionId, "{functionId}", false);
635
417
  let body;
636
- return new __HttpRequest({
637
- protocol,
638
- hostname,
639
- port,
640
- method: "GET",
641
- headers,
642
- path: resolvedPath,
643
- body,
644
- });
418
+ b.m("GET").h(headers).b(body);
419
+ return b.build();
645
420
  };
646
421
  export const se_GetGraphqlApiCommand = async (input, context) => {
647
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
422
+ const b = rb(input, context);
648
423
  const headers = {};
649
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}";
650
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
424
+ b.bp("/v1/apis/{apiId}");
425
+ b.p("apiId", () => input.apiId, "{apiId}", false);
651
426
  let body;
652
- return new __HttpRequest({
653
- protocol,
654
- hostname,
655
- port,
656
- method: "GET",
657
- headers,
658
- path: resolvedPath,
659
- body,
660
- });
427
+ b.m("GET").h(headers).b(body);
428
+ return b.build();
661
429
  };
662
430
  export const se_GetIntrospectionSchemaCommand = async (input, context) => {
663
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
431
+ const b = rb(input, context);
664
432
  const headers = {};
665
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/schema";
666
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
433
+ b.bp("/v1/apis/{apiId}/schema");
434
+ b.p("apiId", () => input.apiId, "{apiId}", false);
667
435
  const query = map({
668
- format: [, __expectNonNull(input.format, `format`)],
669
- includeDirectives: [() => input.includeDirectives !== void 0, () => input.includeDirectives.toString()],
436
+ [_f]: [, __expectNonNull(input[_f], `format`)],
437
+ [_iD]: [() => input.includeDirectives !== void 0, () => input[_iD].toString()],
670
438
  });
671
439
  let body;
672
- return new __HttpRequest({
673
- protocol,
674
- hostname,
675
- port,
676
- method: "GET",
677
- headers,
678
- path: resolvedPath,
679
- query,
680
- body,
681
- });
440
+ b.m("GET").h(headers).q(query).b(body);
441
+ return b.build();
682
442
  };
683
443
  export const se_GetResolverCommand = async (input, context) => {
684
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
444
+ const b = rb(input, context);
685
445
  const headers = {};
686
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
687
- "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}";
688
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
689
- resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
690
- resolvedPath = __resolvedPath(resolvedPath, input, "fieldName", () => input.fieldName, "{fieldName}", false);
446
+ b.bp("/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}");
447
+ b.p("apiId", () => input.apiId, "{apiId}", false);
448
+ b.p("typeName", () => input.typeName, "{typeName}", false);
449
+ b.p("fieldName", () => input.fieldName, "{fieldName}", false);
691
450
  let body;
692
- return new __HttpRequest({
693
- protocol,
694
- hostname,
695
- port,
696
- method: "GET",
697
- headers,
698
- path: resolvedPath,
699
- body,
700
- });
451
+ b.m("GET").h(headers).b(body);
452
+ return b.build();
701
453
  };
702
454
  export const se_GetSchemaCreationStatusCommand = async (input, context) => {
703
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
455
+ const b = rb(input, context);
704
456
  const headers = {};
705
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/schemacreation";
706
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
457
+ b.bp("/v1/apis/{apiId}/schemacreation");
458
+ b.p("apiId", () => input.apiId, "{apiId}", false);
707
459
  let body;
708
- return new __HttpRequest({
709
- protocol,
710
- hostname,
711
- port,
712
- method: "GET",
713
- headers,
714
- path: resolvedPath,
715
- body,
716
- });
460
+ b.m("GET").h(headers).b(body);
461
+ return b.build();
717
462
  };
718
463
  export const se_GetSourceApiAssociationCommand = async (input, context) => {
719
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
464
+ const b = rb(input, context);
720
465
  const headers = {};
721
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
722
- "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}";
723
- resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
724
- resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
466
+ b.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}");
467
+ b.p("mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
468
+ b.p("associationId", () => input.associationId, "{associationId}", false);
725
469
  let body;
726
- return new __HttpRequest({
727
- protocol,
728
- hostname,
729
- port,
730
- method: "GET",
731
- headers,
732
- path: resolvedPath,
733
- body,
734
- });
470
+ b.m("GET").h(headers).b(body);
471
+ return b.build();
735
472
  };
736
473
  export const se_GetTypeCommand = async (input, context) => {
737
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
474
+ const b = rb(input, context);
738
475
  const headers = {};
739
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types/{typeName}";
740
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
741
- resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
476
+ b.bp("/v1/apis/{apiId}/types/{typeName}");
477
+ b.p("apiId", () => input.apiId, "{apiId}", false);
478
+ b.p("typeName", () => input.typeName, "{typeName}", false);
742
479
  const query = map({
743
- format: [, __expectNonNull(input.format, `format`)],
480
+ [_f]: [, __expectNonNull(input[_f], `format`)],
744
481
  });
745
482
  let body;
746
- return new __HttpRequest({
747
- protocol,
748
- hostname,
749
- port,
750
- method: "GET",
751
- headers,
752
- path: resolvedPath,
753
- query,
754
- body,
755
- });
483
+ b.m("GET").h(headers).q(query).b(body);
484
+ return b.build();
756
485
  };
757
486
  export const se_ListApiKeysCommand = async (input, context) => {
758
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
487
+ const b = rb(input, context);
759
488
  const headers = {};
760
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/apikeys";
761
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
489
+ b.bp("/v1/apis/{apiId}/apikeys");
490
+ b.p("apiId", () => input.apiId, "{apiId}", false);
762
491
  const query = map({
763
- nextToken: [, input.nextToken],
764
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
492
+ [_nT]: [, input[_nT]],
493
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
765
494
  });
766
495
  let body;
767
- return new __HttpRequest({
768
- protocol,
769
- hostname,
770
- port,
771
- method: "GET",
772
- headers,
773
- path: resolvedPath,
774
- query,
775
- body,
776
- });
496
+ b.m("GET").h(headers).q(query).b(body);
497
+ return b.build();
777
498
  };
778
499
  export const se_ListDataSourcesCommand = async (input, context) => {
779
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
500
+ const b = rb(input, context);
780
501
  const headers = {};
781
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources";
782
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
502
+ b.bp("/v1/apis/{apiId}/datasources");
503
+ b.p("apiId", () => input.apiId, "{apiId}", false);
783
504
  const query = map({
784
- nextToken: [, input.nextToken],
785
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
505
+ [_nT]: [, input[_nT]],
506
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
786
507
  });
787
508
  let body;
788
- return new __HttpRequest({
789
- protocol,
790
- hostname,
791
- port,
792
- method: "GET",
793
- headers,
794
- path: resolvedPath,
795
- query,
796
- body,
797
- });
509
+ b.m("GET").h(headers).q(query).b(body);
510
+ return b.build();
798
511
  };
799
512
  export const se_ListDomainNamesCommand = async (input, context) => {
800
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
513
+ const b = rb(input, context);
801
514
  const headers = {};
802
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames";
515
+ b.bp("/v1/domainnames");
803
516
  const query = map({
804
- nextToken: [, input.nextToken],
805
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
517
+ [_nT]: [, input[_nT]],
518
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
806
519
  });
807
520
  let body;
808
- return new __HttpRequest({
809
- protocol,
810
- hostname,
811
- port,
812
- method: "GET",
813
- headers,
814
- path: resolvedPath,
815
- query,
816
- body,
817
- });
521
+ b.m("GET").h(headers).q(query).b(body);
522
+ return b.build();
818
523
  };
819
524
  export const se_ListFunctionsCommand = async (input, context) => {
820
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
525
+ const b = rb(input, context);
821
526
  const headers = {};
822
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions";
823
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
527
+ b.bp("/v1/apis/{apiId}/functions");
528
+ b.p("apiId", () => input.apiId, "{apiId}", false);
824
529
  const query = map({
825
- nextToken: [, input.nextToken],
826
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
530
+ [_nT]: [, input[_nT]],
531
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
827
532
  });
828
533
  let body;
829
- return new __HttpRequest({
830
- protocol,
831
- hostname,
832
- port,
833
- method: "GET",
834
- headers,
835
- path: resolvedPath,
836
- query,
837
- body,
838
- });
534
+ b.m("GET").h(headers).q(query).b(body);
535
+ return b.build();
839
536
  };
840
537
  export const se_ListGraphqlApisCommand = async (input, context) => {
841
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
538
+ const b = rb(input, context);
842
539
  const headers = {};
843
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis";
540
+ b.bp("/v1/apis");
844
541
  const query = map({
845
- nextToken: [, input.nextToken],
846
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
847
- apiType: [, input.apiType],
848
- owner: [, input.owner],
542
+ [_nT]: [, input[_nT]],
543
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
544
+ [_aT]: [, input[_aT]],
545
+ [_o]: [, input[_o]],
849
546
  });
850
547
  let body;
851
- return new __HttpRequest({
852
- protocol,
853
- hostname,
854
- port,
855
- method: "GET",
856
- headers,
857
- path: resolvedPath,
858
- query,
859
- body,
860
- });
548
+ b.m("GET").h(headers).q(query).b(body);
549
+ return b.build();
861
550
  };
862
551
  export const se_ListResolversCommand = async (input, context) => {
863
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
552
+ const b = rb(input, context);
864
553
  const headers = {};
865
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
866
- "/v1/apis/{apiId}/types/{typeName}/resolvers";
867
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
868
- resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
554
+ b.bp("/v1/apis/{apiId}/types/{typeName}/resolvers");
555
+ b.p("apiId", () => input.apiId, "{apiId}", false);
556
+ b.p("typeName", () => input.typeName, "{typeName}", false);
869
557
  const query = map({
870
- nextToken: [, input.nextToken],
871
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
558
+ [_nT]: [, input[_nT]],
559
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
872
560
  });
873
561
  let body;
874
- return new __HttpRequest({
875
- protocol,
876
- hostname,
877
- port,
878
- method: "GET",
879
- headers,
880
- path: resolvedPath,
881
- query,
882
- body,
883
- });
562
+ b.m("GET").h(headers).q(query).b(body);
563
+ return b.build();
884
564
  };
885
565
  export const se_ListResolversByFunctionCommand = async (input, context) => {
886
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
566
+ const b = rb(input, context);
887
567
  const headers = {};
888
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
889
- "/v1/apis/{apiId}/functions/{functionId}/resolvers";
890
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
891
- resolvedPath = __resolvedPath(resolvedPath, input, "functionId", () => input.functionId, "{functionId}", false);
568
+ b.bp("/v1/apis/{apiId}/functions/{functionId}/resolvers");
569
+ b.p("apiId", () => input.apiId, "{apiId}", false);
570
+ b.p("functionId", () => input.functionId, "{functionId}", false);
892
571
  const query = map({
893
- nextToken: [, input.nextToken],
894
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
572
+ [_nT]: [, input[_nT]],
573
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
895
574
  });
896
575
  let body;
897
- return new __HttpRequest({
898
- protocol,
899
- hostname,
900
- port,
901
- method: "GET",
902
- headers,
903
- path: resolvedPath,
904
- query,
905
- body,
906
- });
576
+ b.m("GET").h(headers).q(query).b(body);
577
+ return b.build();
907
578
  };
908
579
  export const se_ListSourceApiAssociationsCommand = async (input, context) => {
909
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
580
+ const b = rb(input, context);
910
581
  const headers = {};
911
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/sourceApiAssociations";
912
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
582
+ b.bp("/v1/apis/{apiId}/sourceApiAssociations");
583
+ b.p("apiId", () => input.apiId, "{apiId}", false);
913
584
  const query = map({
914
- nextToken: [, input.nextToken],
915
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
585
+ [_nT]: [, input[_nT]],
586
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
916
587
  });
917
588
  let body;
918
- return new __HttpRequest({
919
- protocol,
920
- hostname,
921
- port,
922
- method: "GET",
923
- headers,
924
- path: resolvedPath,
925
- query,
926
- body,
927
- });
589
+ b.m("GET").h(headers).q(query).b(body);
590
+ return b.build();
928
591
  };
929
592
  export const se_ListTagsForResourceCommand = async (input, context) => {
930
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
593
+ const b = rb(input, context);
931
594
  const headers = {};
932
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
933
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
595
+ b.bp("/v1/tags/{resourceArn}");
596
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
934
597
  let body;
935
- return new __HttpRequest({
936
- protocol,
937
- hostname,
938
- port,
939
- method: "GET",
940
- headers,
941
- path: resolvedPath,
942
- body,
943
- });
598
+ b.m("GET").h(headers).b(body);
599
+ return b.build();
944
600
  };
945
601
  export const se_ListTypesCommand = async (input, context) => {
946
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
602
+ const b = rb(input, context);
947
603
  const headers = {};
948
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types";
949
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
604
+ b.bp("/v1/apis/{apiId}/types");
605
+ b.p("apiId", () => input.apiId, "{apiId}", false);
950
606
  const query = map({
951
- format: [, __expectNonNull(input.format, `format`)],
952
- nextToken: [, input.nextToken],
953
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
607
+ [_f]: [, __expectNonNull(input[_f], `format`)],
608
+ [_nT]: [, input[_nT]],
609
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
954
610
  });
955
611
  let body;
956
- return new __HttpRequest({
957
- protocol,
958
- hostname,
959
- port,
960
- method: "GET",
961
- headers,
962
- path: resolvedPath,
963
- query,
964
- body,
965
- });
612
+ b.m("GET").h(headers).q(query).b(body);
613
+ return b.build();
966
614
  };
967
615
  export const se_ListTypesByAssociationCommand = async (input, context) => {
968
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
616
+ const b = rb(input, context);
969
617
  const headers = {};
970
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
971
- "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/types";
972
- resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
973
- resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
618
+ b.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/types");
619
+ b.p("mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
620
+ b.p("associationId", () => input.associationId, "{associationId}", false);
974
621
  const query = map({
975
- format: [, __expectNonNull(input.format, `format`)],
976
- nextToken: [, input.nextToken],
977
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
622
+ [_f]: [, __expectNonNull(input[_f], `format`)],
623
+ [_nT]: [, input[_nT]],
624
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
978
625
  });
979
626
  let body;
980
- return new __HttpRequest({
981
- protocol,
982
- hostname,
983
- port,
984
- method: "GET",
985
- headers,
986
- path: resolvedPath,
987
- query,
988
- body,
989
- });
627
+ b.m("GET").h(headers).q(query).b(body);
628
+ return b.build();
990
629
  };
991
630
  export const se_StartDataSourceIntrospectionCommand = async (input, context) => {
992
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
631
+ const b = rb(input, context);
993
632
  const headers = {
994
633
  "content-type": "application/json",
995
634
  };
996
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datasources/introspections";
635
+ b.bp("/v1/datasources/introspections");
997
636
  let body;
998
637
  body = JSON.stringify(take(input, {
999
638
  rdsDataApiConfig: (_) => _json(_),
1000
639
  }));
1001
- return new __HttpRequest({
1002
- protocol,
1003
- hostname,
1004
- port,
1005
- method: "POST",
1006
- headers,
1007
- path: resolvedPath,
1008
- body,
1009
- });
640
+ b.m("POST").h(headers).b(body);
641
+ return b.build();
1010
642
  };
1011
643
  export const se_StartSchemaCreationCommand = async (input, context) => {
1012
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
644
+ const b = rb(input, context);
1013
645
  const headers = {
1014
646
  "content-type": "application/json",
1015
647
  };
1016
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/schemacreation";
1017
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
648
+ b.bp("/v1/apis/{apiId}/schemacreation");
649
+ b.p("apiId", () => input.apiId, "{apiId}", false);
1018
650
  let body;
1019
651
  body = JSON.stringify(take(input, {
1020
652
  definition: (_) => context.base64Encoder(_),
1021
653
  }));
1022
- return new __HttpRequest({
1023
- protocol,
1024
- hostname,
1025
- port,
1026
- method: "POST",
1027
- headers,
1028
- path: resolvedPath,
1029
- body,
1030
- });
654
+ b.m("POST").h(headers).b(body);
655
+ return b.build();
1031
656
  };
1032
657
  export const se_StartSchemaMergeCommand = async (input, context) => {
1033
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
658
+ const b = rb(input, context);
1034
659
  const headers = {};
1035
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1036
- "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/merge";
1037
- resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
1038
- resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
660
+ b.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/merge");
661
+ b.p("associationId", () => input.associationId, "{associationId}", false);
662
+ b.p("mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
1039
663
  let body;
1040
- return new __HttpRequest({
1041
- protocol,
1042
- hostname,
1043
- port,
1044
- method: "POST",
1045
- headers,
1046
- path: resolvedPath,
1047
- body,
1048
- });
664
+ b.m("POST").h(headers).b(body);
665
+ return b.build();
1049
666
  };
1050
667
  export const se_TagResourceCommand = async (input, context) => {
1051
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
668
+ const b = rb(input, context);
1052
669
  const headers = {
1053
670
  "content-type": "application/json",
1054
671
  };
1055
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
1056
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
672
+ b.bp("/v1/tags/{resourceArn}");
673
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1057
674
  let body;
1058
675
  body = JSON.stringify(take(input, {
1059
676
  tags: (_) => _json(_),
1060
677
  }));
1061
- return new __HttpRequest({
1062
- protocol,
1063
- hostname,
1064
- port,
1065
- method: "POST",
1066
- headers,
1067
- path: resolvedPath,
1068
- body,
1069
- });
678
+ b.m("POST").h(headers).b(body);
679
+ return b.build();
1070
680
  };
1071
681
  export const se_UntagResourceCommand = async (input, context) => {
1072
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
682
+ const b = rb(input, context);
1073
683
  const headers = {};
1074
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
1075
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
684
+ b.bp("/v1/tags/{resourceArn}");
685
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1076
686
  const query = map({
1077
- tagKeys: [
687
+ [_tK]: [
1078
688
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
1079
- () => (input.tagKeys || []).map((_entry) => _entry),
689
+ () => (input[_tK] || []).map((_entry) => _entry),
1080
690
  ],
1081
691
  });
1082
692
  let body;
1083
- return new __HttpRequest({
1084
- protocol,
1085
- hostname,
1086
- port,
1087
- method: "DELETE",
1088
- headers,
1089
- path: resolvedPath,
1090
- query,
1091
- body,
1092
- });
693
+ b.m("DELETE").h(headers).q(query).b(body);
694
+ return b.build();
1093
695
  };
1094
696
  export const se_UpdateApiCacheCommand = async (input, context) => {
1095
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
697
+ const b = rb(input, context);
1096
698
  const headers = {
1097
699
  "content-type": "application/json",
1098
700
  };
1099
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/ApiCaches/update";
1100
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
701
+ b.bp("/v1/apis/{apiId}/ApiCaches/update");
702
+ b.p("apiId", () => input.apiId, "{apiId}", false);
1101
703
  let body;
1102
704
  body = JSON.stringify(take(input, {
1103
705
  apiCachingBehavior: [],
1104
706
  ttl: [],
1105
707
  type: [],
1106
708
  }));
1107
- return new __HttpRequest({
1108
- protocol,
1109
- hostname,
1110
- port,
1111
- method: "POST",
1112
- headers,
1113
- path: resolvedPath,
1114
- body,
1115
- });
709
+ b.m("POST").h(headers).b(body);
710
+ return b.build();
1116
711
  };
1117
712
  export const se_UpdateApiKeyCommand = async (input, context) => {
1118
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
713
+ const b = rb(input, context);
1119
714
  const headers = {
1120
715
  "content-type": "application/json",
1121
716
  };
1122
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/apikeys/{id}";
1123
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
1124
- resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
717
+ b.bp("/v1/apis/{apiId}/apikeys/{id}");
718
+ b.p("apiId", () => input.apiId, "{apiId}", false);
719
+ b.p("id", () => input.id, "{id}", false);
1125
720
  let body;
1126
721
  body = JSON.stringify(take(input, {
1127
722
  description: [],
1128
723
  expires: [],
1129
724
  }));
1130
- return new __HttpRequest({
1131
- protocol,
1132
- hostname,
1133
- port,
1134
- method: "POST",
1135
- headers,
1136
- path: resolvedPath,
1137
- body,
1138
- });
725
+ b.m("POST").h(headers).b(body);
726
+ return b.build();
1139
727
  };
1140
728
  export const se_UpdateDataSourceCommand = async (input, context) => {
1141
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
729
+ const b = rb(input, context);
1142
730
  const headers = {
1143
731
  "content-type": "application/json",
1144
732
  };
1145
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources/{name}";
1146
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
1147
- resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
733
+ b.bp("/v1/apis/{apiId}/datasources/{name}");
734
+ b.p("apiId", () => input.apiId, "{apiId}", false);
735
+ b.p("name", () => input.name, "{name}", false);
1148
736
  let body;
1149
737
  body = JSON.stringify(take(input, {
1150
738
  description: [],
@@ -1158,45 +746,31 @@ export const se_UpdateDataSourceCommand = async (input, context) => {
1158
746
  serviceRoleArn: [],
1159
747
  type: [],
1160
748
  }));
1161
- return new __HttpRequest({
1162
- protocol,
1163
- hostname,
1164
- port,
1165
- method: "POST",
1166
- headers,
1167
- path: resolvedPath,
1168
- body,
1169
- });
749
+ b.m("POST").h(headers).b(body);
750
+ return b.build();
1170
751
  };
1171
752
  export const se_UpdateDomainNameCommand = async (input, context) => {
1172
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
753
+ const b = rb(input, context);
1173
754
  const headers = {
1174
755
  "content-type": "application/json",
1175
756
  };
1176
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames/{domainName}";
1177
- resolvedPath = __resolvedPath(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
757
+ b.bp("/v1/domainnames/{domainName}");
758
+ b.p("domainName", () => input.domainName, "{domainName}", false);
1178
759
  let body;
1179
760
  body = JSON.stringify(take(input, {
1180
761
  description: [],
1181
762
  }));
1182
- return new __HttpRequest({
1183
- protocol,
1184
- hostname,
1185
- port,
1186
- method: "POST",
1187
- headers,
1188
- path: resolvedPath,
1189
- body,
1190
- });
763
+ b.m("POST").h(headers).b(body);
764
+ return b.build();
1191
765
  };
1192
766
  export const se_UpdateFunctionCommand = async (input, context) => {
1193
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
767
+ const b = rb(input, context);
1194
768
  const headers = {
1195
769
  "content-type": "application/json",
1196
770
  };
1197
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions/{functionId}";
1198
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
1199
- resolvedPath = __resolvedPath(resolvedPath, input, "functionId", () => input.functionId, "{functionId}", false);
771
+ b.bp("/v1/apis/{apiId}/functions/{functionId}");
772
+ b.p("apiId", () => input.apiId, "{apiId}", false);
773
+ b.p("functionId", () => input.functionId, "{functionId}", false);
1200
774
  let body;
1201
775
  body = JSON.stringify(take(input, {
1202
776
  code: [],
@@ -1210,56 +784,44 @@ export const se_UpdateFunctionCommand = async (input, context) => {
1210
784
  runtime: (_) => _json(_),
1211
785
  syncConfig: (_) => _json(_),
1212
786
  }));
1213
- return new __HttpRequest({
1214
- protocol,
1215
- hostname,
1216
- port,
1217
- method: "POST",
1218
- headers,
1219
- path: resolvedPath,
1220
- body,
1221
- });
787
+ b.m("POST").h(headers).b(body);
788
+ return b.build();
1222
789
  };
1223
790
  export const se_UpdateGraphqlApiCommand = async (input, context) => {
1224
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
791
+ const b = rb(input, context);
1225
792
  const headers = {
1226
793
  "content-type": "application/json",
1227
794
  };
1228
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}";
1229
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
795
+ b.bp("/v1/apis/{apiId}");
796
+ b.p("apiId", () => input.apiId, "{apiId}", false);
1230
797
  let body;
1231
798
  body = JSON.stringify(take(input, {
1232
799
  additionalAuthenticationProviders: (_) => _json(_),
1233
800
  authenticationType: [],
801
+ introspectionConfig: [],
1234
802
  lambdaAuthorizerConfig: (_) => _json(_),
1235
803
  logConfig: (_) => _json(_),
1236
804
  mergedApiExecutionRoleArn: [],
1237
805
  name: [],
1238
806
  openIDConnectConfig: (_) => _json(_),
1239
807
  ownerContact: [],
808
+ queryDepthLimit: [],
809
+ resolverCountLimit: [],
1240
810
  userPoolConfig: (_) => _json(_),
1241
811
  xrayEnabled: [],
1242
812
  }));
1243
- return new __HttpRequest({
1244
- protocol,
1245
- hostname,
1246
- port,
1247
- method: "POST",
1248
- headers,
1249
- path: resolvedPath,
1250
- body,
1251
- });
813
+ b.m("POST").h(headers).b(body);
814
+ return b.build();
1252
815
  };
1253
816
  export const se_UpdateResolverCommand = async (input, context) => {
1254
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
817
+ const b = rb(input, context);
1255
818
  const headers = {
1256
819
  "content-type": "application/json",
1257
820
  };
1258
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1259
- "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}";
1260
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
1261
- resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
1262
- resolvedPath = __resolvedPath(resolvedPath, input, "fieldName", () => input.fieldName, "{fieldName}", false);
821
+ b.bp("/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}");
822
+ b.p("apiId", () => input.apiId, "{apiId}", false);
823
+ b.p("typeName", () => input.typeName, "{typeName}", false);
824
+ b.p("fieldName", () => input.fieldName, "{fieldName}", false);
1263
825
  let body;
1264
826
  body = JSON.stringify(take(input, {
1265
827
  cachingConfig: (_) => _json(_),
@@ -1273,62 +835,40 @@ export const se_UpdateResolverCommand = async (input, context) => {
1273
835
  runtime: (_) => _json(_),
1274
836
  syncConfig: (_) => _json(_),
1275
837
  }));
1276
- return new __HttpRequest({
1277
- protocol,
1278
- hostname,
1279
- port,
1280
- method: "POST",
1281
- headers,
1282
- path: resolvedPath,
1283
- body,
1284
- });
838
+ b.m("POST").h(headers).b(body);
839
+ return b.build();
1285
840
  };
1286
841
  export const se_UpdateSourceApiAssociationCommand = async (input, context) => {
1287
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
842
+ const b = rb(input, context);
1288
843
  const headers = {
1289
844
  "content-type": "application/json",
1290
845
  };
1291
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1292
- "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}";
1293
- resolvedPath = __resolvedPath(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
1294
- resolvedPath = __resolvedPath(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
846
+ b.bp("/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}");
847
+ b.p("associationId", () => input.associationId, "{associationId}", false);
848
+ b.p("mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
1295
849
  let body;
1296
850
  body = JSON.stringify(take(input, {
1297
851
  description: [],
1298
852
  sourceApiAssociationConfig: (_) => _json(_),
1299
853
  }));
1300
- return new __HttpRequest({
1301
- protocol,
1302
- hostname,
1303
- port,
1304
- method: "POST",
1305
- headers,
1306
- path: resolvedPath,
1307
- body,
1308
- });
854
+ b.m("POST").h(headers).b(body);
855
+ return b.build();
1309
856
  };
1310
857
  export const se_UpdateTypeCommand = async (input, context) => {
1311
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
858
+ const b = rb(input, context);
1312
859
  const headers = {
1313
860
  "content-type": "application/json",
1314
861
  };
1315
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types/{typeName}";
1316
- resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
1317
- resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
862
+ b.bp("/v1/apis/{apiId}/types/{typeName}");
863
+ b.p("apiId", () => input.apiId, "{apiId}", false);
864
+ b.p("typeName", () => input.typeName, "{typeName}", false);
1318
865
  let body;
1319
866
  body = JSON.stringify(take(input, {
1320
867
  definition: [],
1321
868
  format: [],
1322
869
  }));
1323
- return new __HttpRequest({
1324
- protocol,
1325
- hostname,
1326
- port,
1327
- method: "POST",
1328
- headers,
1329
- path: resolvedPath,
1330
- body,
1331
- });
870
+ b.m("POST").h(headers).b(body);
871
+ return b.build();
1332
872
  };
1333
873
  export const de_AssociateApiCommand = async (output, context) => {
1334
874
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -4242,6 +3782,14 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
4242
3782
  value !== "" &&
4243
3783
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
4244
3784
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
3785
+ const _aT = "apiType";
3786
+ const _f = "format";
3787
+ const _iD = "includeDirectives";
3788
+ const _iMSDL = "includeModelsSDL";
3789
+ const _mR = "maxResults";
3790
+ const _nT = "nextToken";
3791
+ const _o = "owner";
3792
+ const _tK = "tagKeys";
4245
3793
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4246
3794
  if (encoded.length) {
4247
3795
  return JSON.parse(encoded);