@aws-sdk/client-appsync 3.474.0 → 3.477.0

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