@aws-sdk/client-cleanrooms 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.
@@ -4,64 +4,47 @@ exports.se_PreviewPrivacyImpactCommand = exports.se_ListTagsForResourceCommand =
4
4
  exports.de_ListCollaborationPrivacyBudgetTemplatesCommand = exports.de_ListCollaborationPrivacyBudgetsCommand = exports.de_ListCollaborationConfiguredAudienceModelAssociationsCommand = exports.de_ListCollaborationAnalysisTemplatesCommand = exports.de_ListAnalysisTemplatesCommand = exports.de_GetSchemaAnalysisRuleCommand = exports.de_GetSchemaCommand = exports.de_GetProtectedQueryCommand = exports.de_GetPrivacyBudgetTemplateCommand = exports.de_GetMembershipCommand = exports.de_GetConfiguredTableAssociationCommand = exports.de_GetConfiguredTableAnalysisRuleCommand = exports.de_GetConfiguredTableCommand = exports.de_GetConfiguredAudienceModelAssociationCommand = exports.de_GetCollaborationPrivacyBudgetTemplateCommand = exports.de_GetCollaborationConfiguredAudienceModelAssociationCommand = exports.de_GetCollaborationAnalysisTemplateCommand = exports.de_GetCollaborationCommand = exports.de_GetAnalysisTemplateCommand = exports.de_DeletePrivacyBudgetTemplateCommand = exports.de_DeleteMembershipCommand = exports.de_DeleteMemberCommand = exports.de_DeleteConfiguredTableAssociationCommand = exports.de_DeleteConfiguredTableAnalysisRuleCommand = exports.de_DeleteConfiguredTableCommand = exports.de_DeleteConfiguredAudienceModelAssociationCommand = exports.de_DeleteCollaborationCommand = exports.de_DeleteAnalysisTemplateCommand = exports.de_CreatePrivacyBudgetTemplateCommand = exports.de_CreateMembershipCommand = exports.de_CreateConfiguredTableAssociationCommand = exports.de_CreateConfiguredTableAnalysisRuleCommand = exports.de_CreateConfiguredTableCommand = exports.de_CreateConfiguredAudienceModelAssociationCommand = exports.de_CreateCollaborationCommand = exports.de_CreateAnalysisTemplateCommand = exports.de_BatchGetSchemaCommand = exports.de_BatchGetCollaborationAnalysisTemplateCommand = exports.se_UpdateProtectedQueryCommand = exports.se_UpdatePrivacyBudgetTemplateCommand = exports.se_UpdateMembershipCommand = exports.se_UpdateConfiguredTableAssociationCommand = exports.se_UpdateConfiguredTableAnalysisRuleCommand = exports.se_UpdateConfiguredTableCommand = exports.se_UpdateConfiguredAudienceModelAssociationCommand = exports.se_UpdateCollaborationCommand = exports.se_UpdateAnalysisTemplateCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartProtectedQueryCommand = void 0;
5
5
  exports.de_UpdateProtectedQueryCommand = exports.de_UpdatePrivacyBudgetTemplateCommand = exports.de_UpdateMembershipCommand = exports.de_UpdateConfiguredTableAssociationCommand = exports.de_UpdateConfiguredTableAnalysisRuleCommand = exports.de_UpdateConfiguredTableCommand = exports.de_UpdateConfiguredAudienceModelAssociationCommand = exports.de_UpdateCollaborationCommand = exports.de_UpdateAnalysisTemplateCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartProtectedQueryCommand = exports.de_PreviewPrivacyImpactCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSchemasCommand = exports.de_ListProtectedQueriesCommand = exports.de_ListPrivacyBudgetTemplatesCommand = exports.de_ListPrivacyBudgetsCommand = exports.de_ListMembershipsCommand = exports.de_ListMembersCommand = exports.de_ListConfiguredTablesCommand = exports.de_ListConfiguredTableAssociationsCommand = exports.de_ListConfiguredAudienceModelAssociationsCommand = exports.de_ListCollaborationsCommand = void 0;
6
6
  const core_1 = require("@aws-sdk/core");
7
- const protocol_http_1 = require("@smithy/protocol-http");
7
+ const core_2 = require("@smithy/core");
8
8
  const smithy_client_1 = require("@smithy/smithy-client");
9
9
  const CleanRoomsServiceException_1 = require("../models/CleanRoomsServiceException");
10
10
  const models_0_1 = require("../models/models_0");
11
11
  const se_BatchGetCollaborationAnalysisTemplateCommand = async (input, context) => {
12
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
+ const b = (0, core_2.requestBuilder)(input, context);
13
13
  const headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
17
- "/collaborations/{collaborationIdentifier}/batch-analysistemplates";
18
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
16
+ b.bp("/collaborations/{collaborationIdentifier}/batch-analysistemplates");
17
+ b.p("collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
19
18
  let body;
20
19
  body = JSON.stringify((0, smithy_client_1.take)(input, {
21
20
  analysisTemplateArns: (_) => (0, smithy_client_1._json)(_),
22
21
  }));
23
- return new protocol_http_1.HttpRequest({
24
- protocol,
25
- hostname,
26
- port,
27
- method: "POST",
28
- headers,
29
- path: resolvedPath,
30
- body,
31
- });
22
+ b.m("POST").h(headers).b(body);
23
+ return b.build();
32
24
  };
33
25
  exports.se_BatchGetCollaborationAnalysisTemplateCommand = se_BatchGetCollaborationAnalysisTemplateCommand;
34
26
  const se_BatchGetSchemaCommand = async (input, context) => {
35
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
+ const b = (0, core_2.requestBuilder)(input, context);
36
28
  const headers = {
37
29
  "content-type": "application/json",
38
30
  };
39
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
40
- "/collaborations/{collaborationIdentifier}/batch-schema";
41
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
31
+ b.bp("/collaborations/{collaborationIdentifier}/batch-schema");
32
+ b.p("collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
42
33
  let body;
43
34
  body = JSON.stringify((0, smithy_client_1.take)(input, {
44
35
  names: (_) => (0, smithy_client_1._json)(_),
45
36
  }));
46
- return new protocol_http_1.HttpRequest({
47
- protocol,
48
- hostname,
49
- port,
50
- method: "POST",
51
- headers,
52
- path: resolvedPath,
53
- body,
54
- });
37
+ b.m("POST").h(headers).b(body);
38
+ return b.build();
55
39
  };
56
40
  exports.se_BatchGetSchemaCommand = se_BatchGetSchemaCommand;
57
41
  const se_CreateAnalysisTemplateCommand = async (input, context) => {
58
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
42
+ const b = (0, core_2.requestBuilder)(input, context);
59
43
  const headers = {
60
44
  "content-type": "application/json",
61
45
  };
62
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
63
- "/memberships/{membershipIdentifier}/analysistemplates";
64
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
46
+ b.bp("/memberships/{membershipIdentifier}/analysistemplates");
47
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
65
48
  let body;
66
49
  body = JSON.stringify((0, smithy_client_1.take)(input, {
67
50
  analysisParameters: (_) => (0, smithy_client_1._json)(_),
@@ -71,23 +54,16 @@ const se_CreateAnalysisTemplateCommand = async (input, context) => {
71
54
  source: (_) => (0, smithy_client_1._json)(_),
72
55
  tags: (_) => (0, smithy_client_1._json)(_),
73
56
  }));
74
- return new protocol_http_1.HttpRequest({
75
- protocol,
76
- hostname,
77
- port,
78
- method: "POST",
79
- headers,
80
- path: resolvedPath,
81
- body,
82
- });
57
+ b.m("POST").h(headers).b(body);
58
+ return b.build();
83
59
  };
84
60
  exports.se_CreateAnalysisTemplateCommand = se_CreateAnalysisTemplateCommand;
85
61
  const se_CreateCollaborationCommand = async (input, context) => {
86
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
62
+ const b = (0, core_2.requestBuilder)(input, context);
87
63
  const headers = {
88
64
  "content-type": "application/json",
89
65
  };
90
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/collaborations";
66
+ b.bp("/collaborations");
91
67
  let body;
92
68
  body = JSON.stringify((0, smithy_client_1.take)(input, {
93
69
  creatorDisplayName: [],
@@ -100,25 +76,17 @@ const se_CreateCollaborationCommand = async (input, context) => {
100
76
  queryLogStatus: [],
101
77
  tags: (_) => (0, smithy_client_1._json)(_),
102
78
  }));
103
- return new protocol_http_1.HttpRequest({
104
- protocol,
105
- hostname,
106
- port,
107
- method: "POST",
108
- headers,
109
- path: resolvedPath,
110
- body,
111
- });
79
+ b.m("POST").h(headers).b(body);
80
+ return b.build();
112
81
  };
113
82
  exports.se_CreateCollaborationCommand = se_CreateCollaborationCommand;
114
83
  const se_CreateConfiguredAudienceModelAssociationCommand = async (input, context) => {
115
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
84
+ const b = (0, core_2.requestBuilder)(input, context);
116
85
  const headers = {
117
86
  "content-type": "application/json",
118
87
  };
119
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
120
- "/memberships/{membershipIdentifier}/configuredaudiencemodelassociations";
121
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
88
+ b.bp("/memberships/{membershipIdentifier}/configuredaudiencemodelassociations");
89
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
122
90
  let body;
123
91
  body = JSON.stringify((0, smithy_client_1.take)(input, {
124
92
  configuredAudienceModelArn: [],
@@ -127,23 +95,16 @@ const se_CreateConfiguredAudienceModelAssociationCommand = async (input, context
127
95
  manageResourcePolicies: [],
128
96
  tags: (_) => (0, smithy_client_1._json)(_),
129
97
  }));
130
- return new protocol_http_1.HttpRequest({
131
- protocol,
132
- hostname,
133
- port,
134
- method: "POST",
135
- headers,
136
- path: resolvedPath,
137
- body,
138
- });
98
+ b.m("POST").h(headers).b(body);
99
+ return b.build();
139
100
  };
140
101
  exports.se_CreateConfiguredAudienceModelAssociationCommand = se_CreateConfiguredAudienceModelAssociationCommand;
141
102
  const se_CreateConfiguredTableCommand = async (input, context) => {
142
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
103
+ const b = (0, core_2.requestBuilder)(input, context);
143
104
  const headers = {
144
105
  "content-type": "application/json",
145
106
  };
146
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuredTables";
107
+ b.bp("/configuredTables");
147
108
  let body;
148
109
  body = JSON.stringify((0, smithy_client_1.take)(input, {
149
110
  allowedColumns: (_) => (0, smithy_client_1._json)(_),
@@ -153,49 +114,33 @@ const se_CreateConfiguredTableCommand = async (input, context) => {
153
114
  tableReference: (_) => (0, smithy_client_1._json)(_),
154
115
  tags: (_) => (0, smithy_client_1._json)(_),
155
116
  }));
156
- return new protocol_http_1.HttpRequest({
157
- protocol,
158
- hostname,
159
- port,
160
- method: "POST",
161
- headers,
162
- path: resolvedPath,
163
- body,
164
- });
117
+ b.m("POST").h(headers).b(body);
118
+ return b.build();
165
119
  };
166
120
  exports.se_CreateConfiguredTableCommand = se_CreateConfiguredTableCommand;
167
121
  const se_CreateConfiguredTableAnalysisRuleCommand = async (input, context) => {
168
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
122
+ const b = (0, core_2.requestBuilder)(input, context);
169
123
  const headers = {
170
124
  "content-type": "application/json",
171
125
  };
172
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
173
- "/configuredTables/{configuredTableIdentifier}/analysisRule";
174
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
126
+ b.bp("/configuredTables/{configuredTableIdentifier}/analysisRule");
127
+ b.p("configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
175
128
  let body;
176
129
  body = JSON.stringify((0, smithy_client_1.take)(input, {
177
130
  analysisRulePolicy: (_) => (0, smithy_client_1._json)(_),
178
131
  analysisRuleType: [],
179
132
  }));
180
- return new protocol_http_1.HttpRequest({
181
- protocol,
182
- hostname,
183
- port,
184
- method: "POST",
185
- headers,
186
- path: resolvedPath,
187
- body,
188
- });
133
+ b.m("POST").h(headers).b(body);
134
+ return b.build();
189
135
  };
190
136
  exports.se_CreateConfiguredTableAnalysisRuleCommand = se_CreateConfiguredTableAnalysisRuleCommand;
191
137
  const se_CreateConfiguredTableAssociationCommand = async (input, context) => {
192
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
138
+ const b = (0, core_2.requestBuilder)(input, context);
193
139
  const headers = {
194
140
  "content-type": "application/json",
195
141
  };
196
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
197
- "/memberships/{membershipIdentifier}/configuredTableAssociations";
198
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
142
+ b.bp("/memberships/{membershipIdentifier}/configuredTableAssociations");
143
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
199
144
  let body;
200
145
  body = JSON.stringify((0, smithy_client_1.take)(input, {
201
146
  configuredTableIdentifier: [],
@@ -204,23 +149,16 @@ const se_CreateConfiguredTableAssociationCommand = async (input, context) => {
204
149
  roleArn: [],
205
150
  tags: (_) => (0, smithy_client_1._json)(_),
206
151
  }));
207
- return new protocol_http_1.HttpRequest({
208
- protocol,
209
- hostname,
210
- port,
211
- method: "POST",
212
- headers,
213
- path: resolvedPath,
214
- body,
215
- });
152
+ b.m("POST").h(headers).b(body);
153
+ return b.build();
216
154
  };
217
155
  exports.se_CreateConfiguredTableAssociationCommand = se_CreateConfiguredTableAssociationCommand;
218
156
  const se_CreateMembershipCommand = async (input, context) => {
219
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
157
+ const b = (0, core_2.requestBuilder)(input, context);
220
158
  const headers = {
221
159
  "content-type": "application/json",
222
160
  };
223
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/memberships";
161
+ b.bp("/memberships");
224
162
  let body;
225
163
  body = JSON.stringify((0, smithy_client_1.take)(input, {
226
164
  collaborationIdentifier: [],
@@ -229,25 +167,17 @@ const se_CreateMembershipCommand = async (input, context) => {
229
167
  queryLogStatus: [],
230
168
  tags: (_) => (0, smithy_client_1._json)(_),
231
169
  }));
232
- return new protocol_http_1.HttpRequest({
233
- protocol,
234
- hostname,
235
- port,
236
- method: "POST",
237
- headers,
238
- path: resolvedPath,
239
- body,
240
- });
170
+ b.m("POST").h(headers).b(body);
171
+ return b.build();
241
172
  };
242
173
  exports.se_CreateMembershipCommand = se_CreateMembershipCommand;
243
174
  const se_CreatePrivacyBudgetTemplateCommand = async (input, context) => {
244
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
175
+ const b = (0, core_2.requestBuilder)(input, context);
245
176
  const headers = {
246
177
  "content-type": "application/json",
247
178
  };
248
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
249
- "/memberships/{membershipIdentifier}/privacybudgettemplates";
250
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
179
+ b.bp("/memberships/{membershipIdentifier}/privacybudgettemplates");
180
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
251
181
  let body;
252
182
  body = JSON.stringify((0, smithy_client_1.take)(input, {
253
183
  autoRefresh: [],
@@ -255,1116 +185,689 @@ const se_CreatePrivacyBudgetTemplateCommand = async (input, context) => {
255
185
  privacyBudgetType: [],
256
186
  tags: (_) => (0, smithy_client_1._json)(_),
257
187
  }));
258
- return new protocol_http_1.HttpRequest({
259
- protocol,
260
- hostname,
261
- port,
262
- method: "POST",
263
- headers,
264
- path: resolvedPath,
265
- body,
266
- });
188
+ b.m("POST").h(headers).b(body);
189
+ return b.build();
267
190
  };
268
191
  exports.se_CreatePrivacyBudgetTemplateCommand = se_CreatePrivacyBudgetTemplateCommand;
269
192
  const se_DeleteAnalysisTemplateCommand = async (input, context) => {
270
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
193
+ const b = (0, core_2.requestBuilder)(input, context);
271
194
  const headers = {};
272
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
273
- "/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}";
274
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
275
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analysisTemplateIdentifier", () => input.analysisTemplateIdentifier, "{analysisTemplateIdentifier}", false);
195
+ b.bp("/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}");
196
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
197
+ b.p("analysisTemplateIdentifier", () => input.analysisTemplateIdentifier, "{analysisTemplateIdentifier}", false);
276
198
  let body;
277
- return new protocol_http_1.HttpRequest({
278
- protocol,
279
- hostname,
280
- port,
281
- method: "DELETE",
282
- headers,
283
- path: resolvedPath,
284
- body,
285
- });
199
+ b.m("DELETE").h(headers).b(body);
200
+ return b.build();
286
201
  };
287
202
  exports.se_DeleteAnalysisTemplateCommand = se_DeleteAnalysisTemplateCommand;
288
203
  const se_DeleteCollaborationCommand = async (input, context) => {
289
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
204
+ const b = (0, core_2.requestBuilder)(input, context);
290
205
  const headers = {};
291
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/collaborations/{collaborationIdentifier}";
292
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
206
+ b.bp("/collaborations/{collaborationIdentifier}");
207
+ b.p("collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
293
208
  let body;
294
- return new protocol_http_1.HttpRequest({
295
- protocol,
296
- hostname,
297
- port,
298
- method: "DELETE",
299
- headers,
300
- path: resolvedPath,
301
- body,
302
- });
209
+ b.m("DELETE").h(headers).b(body);
210
+ return b.build();
303
211
  };
304
212
  exports.se_DeleteCollaborationCommand = se_DeleteCollaborationCommand;
305
213
  const se_DeleteConfiguredAudienceModelAssociationCommand = async (input, context) => {
306
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
214
+ const b = (0, core_2.requestBuilder)(input, context);
307
215
  const headers = {};
308
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
309
- "/memberships/{membershipIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}";
310
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configuredAudienceModelAssociationIdentifier", () => input.configuredAudienceModelAssociationIdentifier, "{configuredAudienceModelAssociationIdentifier}", false);
311
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
216
+ b.bp("/memberships/{membershipIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}");
217
+ b.p("configuredAudienceModelAssociationIdentifier", () => input.configuredAudienceModelAssociationIdentifier, "{configuredAudienceModelAssociationIdentifier}", false);
218
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
312
219
  let body;
313
- return new protocol_http_1.HttpRequest({
314
- protocol,
315
- hostname,
316
- port,
317
- method: "DELETE",
318
- headers,
319
- path: resolvedPath,
320
- body,
321
- });
220
+ b.m("DELETE").h(headers).b(body);
221
+ return b.build();
322
222
  };
323
223
  exports.se_DeleteConfiguredAudienceModelAssociationCommand = se_DeleteConfiguredAudienceModelAssociationCommand;
324
224
  const se_DeleteConfiguredTableCommand = async (input, context) => {
325
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
225
+ const b = (0, core_2.requestBuilder)(input, context);
326
226
  const headers = {};
327
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
328
- "/configuredTables/{configuredTableIdentifier}";
329
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
227
+ b.bp("/configuredTables/{configuredTableIdentifier}");
228
+ b.p("configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
330
229
  let body;
331
- return new protocol_http_1.HttpRequest({
332
- protocol,
333
- hostname,
334
- port,
335
- method: "DELETE",
336
- headers,
337
- path: resolvedPath,
338
- body,
339
- });
230
+ b.m("DELETE").h(headers).b(body);
231
+ return b.build();
340
232
  };
341
233
  exports.se_DeleteConfiguredTableCommand = se_DeleteConfiguredTableCommand;
342
234
  const se_DeleteConfiguredTableAnalysisRuleCommand = async (input, context) => {
343
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
235
+ const b = (0, core_2.requestBuilder)(input, context);
344
236
  const headers = {};
345
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
346
- "/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}";
347
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
348
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analysisRuleType", () => input.analysisRuleType, "{analysisRuleType}", false);
237
+ b.bp("/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}");
238
+ b.p("configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
239
+ b.p("analysisRuleType", () => input.analysisRuleType, "{analysisRuleType}", false);
349
240
  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
- });
241
+ b.m("DELETE").h(headers).b(body);
242
+ return b.build();
359
243
  };
360
244
  exports.se_DeleteConfiguredTableAnalysisRuleCommand = se_DeleteConfiguredTableAnalysisRuleCommand;
361
245
  const se_DeleteConfiguredTableAssociationCommand = async (input, context) => {
362
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
246
+ const b = (0, core_2.requestBuilder)(input, context);
363
247
  const headers = {};
364
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
365
- "/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}";
366
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configuredTableAssociationIdentifier", () => input.configuredTableAssociationIdentifier, "{configuredTableAssociationIdentifier}", false);
367
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
248
+ b.bp("/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}");
249
+ b.p("configuredTableAssociationIdentifier", () => input.configuredTableAssociationIdentifier, "{configuredTableAssociationIdentifier}", false);
250
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
368
251
  let body;
369
- return new protocol_http_1.HttpRequest({
370
- protocol,
371
- hostname,
372
- port,
373
- method: "DELETE",
374
- headers,
375
- path: resolvedPath,
376
- body,
377
- });
252
+ b.m("DELETE").h(headers).b(body);
253
+ return b.build();
378
254
  };
379
255
  exports.se_DeleteConfiguredTableAssociationCommand = se_DeleteConfiguredTableAssociationCommand;
380
256
  const se_DeleteMemberCommand = async (input, context) => {
381
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
257
+ const b = (0, core_2.requestBuilder)(input, context);
382
258
  const headers = {};
383
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
384
- "/collaborations/{collaborationIdentifier}/member/{accountId}";
385
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
386
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
259
+ b.bp("/collaborations/{collaborationIdentifier}/member/{accountId}");
260
+ b.p("collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
261
+ b.p("accountId", () => input.accountId, "{accountId}", false);
387
262
  let body;
388
- return new protocol_http_1.HttpRequest({
389
- protocol,
390
- hostname,
391
- port,
392
- method: "DELETE",
393
- headers,
394
- path: resolvedPath,
395
- body,
396
- });
263
+ b.m("DELETE").h(headers).b(body);
264
+ return b.build();
397
265
  };
398
266
  exports.se_DeleteMemberCommand = se_DeleteMemberCommand;
399
267
  const se_DeleteMembershipCommand = async (input, context) => {
400
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
268
+ const b = (0, core_2.requestBuilder)(input, context);
401
269
  const headers = {};
402
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/memberships/{membershipIdentifier}";
403
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
270
+ b.bp("/memberships/{membershipIdentifier}");
271
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
404
272
  let body;
405
- return new protocol_http_1.HttpRequest({
406
- protocol,
407
- hostname,
408
- port,
409
- method: "DELETE",
410
- headers,
411
- path: resolvedPath,
412
- body,
413
- });
273
+ b.m("DELETE").h(headers).b(body);
274
+ return b.build();
414
275
  };
415
276
  exports.se_DeleteMembershipCommand = se_DeleteMembershipCommand;
416
277
  const se_DeletePrivacyBudgetTemplateCommand = async (input, context) => {
417
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
278
+ const b = (0, core_2.requestBuilder)(input, context);
418
279
  const headers = {};
419
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
420
- "/memberships/{membershipIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}";
421
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
422
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "privacyBudgetTemplateIdentifier", () => input.privacyBudgetTemplateIdentifier, "{privacyBudgetTemplateIdentifier}", false);
280
+ b.bp("/memberships/{membershipIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}");
281
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
282
+ b.p("privacyBudgetTemplateIdentifier", () => input.privacyBudgetTemplateIdentifier, "{privacyBudgetTemplateIdentifier}", false);
423
283
  let body;
424
- return new protocol_http_1.HttpRequest({
425
- protocol,
426
- hostname,
427
- port,
428
- method: "DELETE",
429
- headers,
430
- path: resolvedPath,
431
- body,
432
- });
284
+ b.m("DELETE").h(headers).b(body);
285
+ return b.build();
433
286
  };
434
287
  exports.se_DeletePrivacyBudgetTemplateCommand = se_DeletePrivacyBudgetTemplateCommand;
435
288
  const se_GetAnalysisTemplateCommand = async (input, context) => {
436
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
289
+ const b = (0, core_2.requestBuilder)(input, context);
437
290
  const headers = {};
438
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
439
- "/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}";
440
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
441
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analysisTemplateIdentifier", () => input.analysisTemplateIdentifier, "{analysisTemplateIdentifier}", false);
291
+ b.bp("/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}");
292
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
293
+ b.p("analysisTemplateIdentifier", () => input.analysisTemplateIdentifier, "{analysisTemplateIdentifier}", false);
442
294
  let body;
443
- return new protocol_http_1.HttpRequest({
444
- protocol,
445
- hostname,
446
- port,
447
- method: "GET",
448
- headers,
449
- path: resolvedPath,
450
- body,
451
- });
295
+ b.m("GET").h(headers).b(body);
296
+ return b.build();
452
297
  };
453
298
  exports.se_GetAnalysisTemplateCommand = se_GetAnalysisTemplateCommand;
454
299
  const se_GetCollaborationCommand = async (input, context) => {
455
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
300
+ const b = (0, core_2.requestBuilder)(input, context);
456
301
  const headers = {};
457
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/collaborations/{collaborationIdentifier}";
458
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
302
+ b.bp("/collaborations/{collaborationIdentifier}");
303
+ b.p("collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
459
304
  let body;
460
- return new protocol_http_1.HttpRequest({
461
- protocol,
462
- hostname,
463
- port,
464
- method: "GET",
465
- headers,
466
- path: resolvedPath,
467
- body,
468
- });
305
+ b.m("GET").h(headers).b(body);
306
+ return b.build();
469
307
  };
470
308
  exports.se_GetCollaborationCommand = se_GetCollaborationCommand;
471
309
  const se_GetCollaborationAnalysisTemplateCommand = async (input, context) => {
472
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
310
+ const b = (0, core_2.requestBuilder)(input, context);
473
311
  const headers = {};
474
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
475
- "/collaborations/{collaborationIdentifier}/analysistemplates/{analysisTemplateArn}";
476
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
477
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analysisTemplateArn", () => input.analysisTemplateArn, "{analysisTemplateArn}", false);
312
+ b.bp("/collaborations/{collaborationIdentifier}/analysistemplates/{analysisTemplateArn}");
313
+ b.p("collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
314
+ b.p("analysisTemplateArn", () => input.analysisTemplateArn, "{analysisTemplateArn}", false);
478
315
  let body;
479
- return new protocol_http_1.HttpRequest({
480
- protocol,
481
- hostname,
482
- port,
483
- method: "GET",
484
- headers,
485
- path: resolvedPath,
486
- body,
487
- });
316
+ b.m("GET").h(headers).b(body);
317
+ return b.build();
488
318
  };
489
319
  exports.se_GetCollaborationAnalysisTemplateCommand = se_GetCollaborationAnalysisTemplateCommand;
490
320
  const se_GetCollaborationConfiguredAudienceModelAssociationCommand = async (input, context) => {
491
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
321
+ const b = (0, core_2.requestBuilder)(input, context);
492
322
  const headers = {};
493
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
494
- "/collaborations/{collaborationIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}";
495
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
496
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configuredAudienceModelAssociationIdentifier", () => input.configuredAudienceModelAssociationIdentifier, "{configuredAudienceModelAssociationIdentifier}", false);
323
+ b.bp("/collaborations/{collaborationIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}");
324
+ b.p("collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
325
+ b.p("configuredAudienceModelAssociationIdentifier", () => input.configuredAudienceModelAssociationIdentifier, "{configuredAudienceModelAssociationIdentifier}", false);
497
326
  let body;
498
- return new protocol_http_1.HttpRequest({
499
- protocol,
500
- hostname,
501
- port,
502
- method: "GET",
503
- headers,
504
- path: resolvedPath,
505
- body,
506
- });
327
+ b.m("GET").h(headers).b(body);
328
+ return b.build();
507
329
  };
508
330
  exports.se_GetCollaborationConfiguredAudienceModelAssociationCommand = se_GetCollaborationConfiguredAudienceModelAssociationCommand;
509
331
  const se_GetCollaborationPrivacyBudgetTemplateCommand = async (input, context) => {
510
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
332
+ const b = (0, core_2.requestBuilder)(input, context);
511
333
  const headers = {};
512
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
513
- "/collaborations/{collaborationIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}";
514
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
515
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "privacyBudgetTemplateIdentifier", () => input.privacyBudgetTemplateIdentifier, "{privacyBudgetTemplateIdentifier}", false);
334
+ b.bp("/collaborations/{collaborationIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}");
335
+ b.p("collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
336
+ b.p("privacyBudgetTemplateIdentifier", () => input.privacyBudgetTemplateIdentifier, "{privacyBudgetTemplateIdentifier}", false);
516
337
  let body;
517
- return new protocol_http_1.HttpRequest({
518
- protocol,
519
- hostname,
520
- port,
521
- method: "GET",
522
- headers,
523
- path: resolvedPath,
524
- body,
525
- });
338
+ b.m("GET").h(headers).b(body);
339
+ return b.build();
526
340
  };
527
341
  exports.se_GetCollaborationPrivacyBudgetTemplateCommand = se_GetCollaborationPrivacyBudgetTemplateCommand;
528
342
  const se_GetConfiguredAudienceModelAssociationCommand = async (input, context) => {
529
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
343
+ const b = (0, core_2.requestBuilder)(input, context);
530
344
  const headers = {};
531
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
532
- "/memberships/{membershipIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}";
533
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configuredAudienceModelAssociationIdentifier", () => input.configuredAudienceModelAssociationIdentifier, "{configuredAudienceModelAssociationIdentifier}", false);
534
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
345
+ b.bp("/memberships/{membershipIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}");
346
+ b.p("configuredAudienceModelAssociationIdentifier", () => input.configuredAudienceModelAssociationIdentifier, "{configuredAudienceModelAssociationIdentifier}", false);
347
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
535
348
  let body;
536
- return new protocol_http_1.HttpRequest({
537
- protocol,
538
- hostname,
539
- port,
540
- method: "GET",
541
- headers,
542
- path: resolvedPath,
543
- body,
544
- });
349
+ b.m("GET").h(headers).b(body);
350
+ return b.build();
545
351
  };
546
352
  exports.se_GetConfiguredAudienceModelAssociationCommand = se_GetConfiguredAudienceModelAssociationCommand;
547
353
  const se_GetConfiguredTableCommand = async (input, context) => {
548
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
354
+ const b = (0, core_2.requestBuilder)(input, context);
549
355
  const headers = {};
550
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
551
- "/configuredTables/{configuredTableIdentifier}";
552
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
356
+ b.bp("/configuredTables/{configuredTableIdentifier}");
357
+ b.p("configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
553
358
  let body;
554
- return new protocol_http_1.HttpRequest({
555
- protocol,
556
- hostname,
557
- port,
558
- method: "GET",
559
- headers,
560
- path: resolvedPath,
561
- body,
562
- });
359
+ b.m("GET").h(headers).b(body);
360
+ return b.build();
563
361
  };
564
362
  exports.se_GetConfiguredTableCommand = se_GetConfiguredTableCommand;
565
363
  const se_GetConfiguredTableAnalysisRuleCommand = async (input, context) => {
566
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
364
+ const b = (0, core_2.requestBuilder)(input, context);
567
365
  const headers = {};
568
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
569
- "/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}";
570
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
571
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analysisRuleType", () => input.analysisRuleType, "{analysisRuleType}", false);
366
+ b.bp("/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}");
367
+ b.p("configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
368
+ b.p("analysisRuleType", () => input.analysisRuleType, "{analysisRuleType}", false);
572
369
  let body;
573
- return new protocol_http_1.HttpRequest({
574
- protocol,
575
- hostname,
576
- port,
577
- method: "GET",
578
- headers,
579
- path: resolvedPath,
580
- body,
581
- });
370
+ b.m("GET").h(headers).b(body);
371
+ return b.build();
582
372
  };
583
373
  exports.se_GetConfiguredTableAnalysisRuleCommand = se_GetConfiguredTableAnalysisRuleCommand;
584
374
  const se_GetConfiguredTableAssociationCommand = async (input, context) => {
585
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
375
+ const b = (0, core_2.requestBuilder)(input, context);
586
376
  const headers = {};
587
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
588
- "/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}";
589
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configuredTableAssociationIdentifier", () => input.configuredTableAssociationIdentifier, "{configuredTableAssociationIdentifier}", false);
590
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
377
+ b.bp("/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}");
378
+ b.p("configuredTableAssociationIdentifier", () => input.configuredTableAssociationIdentifier, "{configuredTableAssociationIdentifier}", false);
379
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
591
380
  let body;
592
- return new protocol_http_1.HttpRequest({
593
- protocol,
594
- hostname,
595
- port,
596
- method: "GET",
597
- headers,
598
- path: resolvedPath,
599
- body,
600
- });
381
+ b.m("GET").h(headers).b(body);
382
+ return b.build();
601
383
  };
602
384
  exports.se_GetConfiguredTableAssociationCommand = se_GetConfiguredTableAssociationCommand;
603
385
  const se_GetMembershipCommand = async (input, context) => {
604
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
386
+ const b = (0, core_2.requestBuilder)(input, context);
605
387
  const headers = {};
606
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/memberships/{membershipIdentifier}";
607
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
388
+ b.bp("/memberships/{membershipIdentifier}");
389
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
608
390
  let body;
609
- return new protocol_http_1.HttpRequest({
610
- protocol,
611
- hostname,
612
- port,
613
- method: "GET",
614
- headers,
615
- path: resolvedPath,
616
- body,
617
- });
391
+ b.m("GET").h(headers).b(body);
392
+ return b.build();
618
393
  };
619
394
  exports.se_GetMembershipCommand = se_GetMembershipCommand;
620
395
  const se_GetPrivacyBudgetTemplateCommand = async (input, context) => {
621
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
396
+ const b = (0, core_2.requestBuilder)(input, context);
622
397
  const headers = {};
623
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
624
- "/memberships/{membershipIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}";
625
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
626
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "privacyBudgetTemplateIdentifier", () => input.privacyBudgetTemplateIdentifier, "{privacyBudgetTemplateIdentifier}", false);
398
+ b.bp("/memberships/{membershipIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}");
399
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
400
+ b.p("privacyBudgetTemplateIdentifier", () => input.privacyBudgetTemplateIdentifier, "{privacyBudgetTemplateIdentifier}", false);
627
401
  let body;
628
- return new protocol_http_1.HttpRequest({
629
- protocol,
630
- hostname,
631
- port,
632
- method: "GET",
633
- headers,
634
- path: resolvedPath,
635
- body,
636
- });
402
+ b.m("GET").h(headers).b(body);
403
+ return b.build();
637
404
  };
638
405
  exports.se_GetPrivacyBudgetTemplateCommand = se_GetPrivacyBudgetTemplateCommand;
639
406
  const se_GetProtectedQueryCommand = async (input, context) => {
640
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
407
+ const b = (0, core_2.requestBuilder)(input, context);
641
408
  const headers = {};
642
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
643
- "/memberships/{membershipIdentifier}/protectedQueries/{protectedQueryIdentifier}";
644
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
645
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "protectedQueryIdentifier", () => input.protectedQueryIdentifier, "{protectedQueryIdentifier}", false);
409
+ b.bp("/memberships/{membershipIdentifier}/protectedQueries/{protectedQueryIdentifier}");
410
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
411
+ b.p("protectedQueryIdentifier", () => input.protectedQueryIdentifier, "{protectedQueryIdentifier}", false);
646
412
  let body;
647
- return new protocol_http_1.HttpRequest({
648
- protocol,
649
- hostname,
650
- port,
651
- method: "GET",
652
- headers,
653
- path: resolvedPath,
654
- body,
655
- });
413
+ b.m("GET").h(headers).b(body);
414
+ return b.build();
656
415
  };
657
416
  exports.se_GetProtectedQueryCommand = se_GetProtectedQueryCommand;
658
417
  const se_GetSchemaCommand = async (input, context) => {
659
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
418
+ const b = (0, core_2.requestBuilder)(input, context);
660
419
  const headers = {};
661
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
662
- "/collaborations/{collaborationIdentifier}/schemas/{name}";
663
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
664
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
420
+ b.bp("/collaborations/{collaborationIdentifier}/schemas/{name}");
421
+ b.p("collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
422
+ b.p("name", () => input.name, "{name}", false);
665
423
  let body;
666
- return new protocol_http_1.HttpRequest({
667
- protocol,
668
- hostname,
669
- port,
670
- method: "GET",
671
- headers,
672
- path: resolvedPath,
673
- body,
674
- });
424
+ b.m("GET").h(headers).b(body);
425
+ return b.build();
675
426
  };
676
427
  exports.se_GetSchemaCommand = se_GetSchemaCommand;
677
428
  const se_GetSchemaAnalysisRuleCommand = async (input, context) => {
678
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
429
+ const b = (0, core_2.requestBuilder)(input, context);
679
430
  const headers = {};
680
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
681
- "/collaborations/{collaborationIdentifier}/schemas/{name}/analysisRule/{type}";
682
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
683
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
684
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "type", () => input.type, "{type}", false);
431
+ b.bp("/collaborations/{collaborationIdentifier}/schemas/{name}/analysisRule/{type}");
432
+ b.p("collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
433
+ b.p("name", () => input.name, "{name}", false);
434
+ b.p("type", () => input.type, "{type}", false);
685
435
  let body;
686
- return new protocol_http_1.HttpRequest({
687
- protocol,
688
- hostname,
689
- port,
690
- method: "GET",
691
- headers,
692
- path: resolvedPath,
693
- body,
694
- });
436
+ b.m("GET").h(headers).b(body);
437
+ return b.build();
695
438
  };
696
439
  exports.se_GetSchemaAnalysisRuleCommand = se_GetSchemaAnalysisRuleCommand;
697
440
  const se_ListAnalysisTemplatesCommand = async (input, context) => {
698
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
441
+ const b = (0, core_2.requestBuilder)(input, context);
699
442
  const headers = {};
700
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
701
- "/memberships/{membershipIdentifier}/analysistemplates";
702
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
443
+ b.bp("/memberships/{membershipIdentifier}/analysistemplates");
444
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
703
445
  const query = (0, smithy_client_1.map)({
704
- nextToken: [, input.nextToken],
705
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
446
+ [_nT]: [, input[_nT]],
447
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
706
448
  });
707
449
  let body;
708
- return new protocol_http_1.HttpRequest({
709
- protocol,
710
- hostname,
711
- port,
712
- method: "GET",
713
- headers,
714
- path: resolvedPath,
715
- query,
716
- body,
717
- });
450
+ b.m("GET").h(headers).q(query).b(body);
451
+ return b.build();
718
452
  };
719
453
  exports.se_ListAnalysisTemplatesCommand = se_ListAnalysisTemplatesCommand;
720
454
  const se_ListCollaborationAnalysisTemplatesCommand = async (input, context) => {
721
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
455
+ const b = (0, core_2.requestBuilder)(input, context);
722
456
  const headers = {};
723
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
724
- "/collaborations/{collaborationIdentifier}/analysistemplates";
725
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
457
+ b.bp("/collaborations/{collaborationIdentifier}/analysistemplates");
458
+ b.p("collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
726
459
  const query = (0, smithy_client_1.map)({
727
- nextToken: [, input.nextToken],
728
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
460
+ [_nT]: [, input[_nT]],
461
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
729
462
  });
730
463
  let body;
731
- return new protocol_http_1.HttpRequest({
732
- protocol,
733
- hostname,
734
- port,
735
- method: "GET",
736
- headers,
737
- path: resolvedPath,
738
- query,
739
- body,
740
- });
464
+ b.m("GET").h(headers).q(query).b(body);
465
+ return b.build();
741
466
  };
742
467
  exports.se_ListCollaborationAnalysisTemplatesCommand = se_ListCollaborationAnalysisTemplatesCommand;
743
468
  const se_ListCollaborationConfiguredAudienceModelAssociationsCommand = async (input, context) => {
744
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
469
+ const b = (0, core_2.requestBuilder)(input, context);
745
470
  const headers = {};
746
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
747
- "/collaborations/{collaborationIdentifier}/configuredaudiencemodelassociations";
748
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
471
+ b.bp("/collaborations/{collaborationIdentifier}/configuredaudiencemodelassociations");
472
+ b.p("collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
749
473
  const query = (0, smithy_client_1.map)({
750
- nextToken: [, input.nextToken],
751
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
474
+ [_nT]: [, input[_nT]],
475
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
752
476
  });
753
477
  let body;
754
- return new protocol_http_1.HttpRequest({
755
- protocol,
756
- hostname,
757
- port,
758
- method: "GET",
759
- headers,
760
- path: resolvedPath,
761
- query,
762
- body,
763
- });
478
+ b.m("GET").h(headers).q(query).b(body);
479
+ return b.build();
764
480
  };
765
481
  exports.se_ListCollaborationConfiguredAudienceModelAssociationsCommand = se_ListCollaborationConfiguredAudienceModelAssociationsCommand;
766
482
  const se_ListCollaborationPrivacyBudgetsCommand = async (input, context) => {
767
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
483
+ const b = (0, core_2.requestBuilder)(input, context);
768
484
  const headers = {};
769
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
770
- "/collaborations/{collaborationIdentifier}/privacybudgets";
771
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
485
+ b.bp("/collaborations/{collaborationIdentifier}/privacybudgets");
486
+ b.p("collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
772
487
  const query = (0, smithy_client_1.map)({
773
- privacyBudgetType: [, (0, smithy_client_1.expectNonNull)(input.privacyBudgetType, `privacyBudgetType`)],
774
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
775
- nextToken: [, input.nextToken],
488
+ [_pBT]: [, (0, smithy_client_1.expectNonNull)(input[_pBT], `privacyBudgetType`)],
489
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
490
+ [_nT]: [, input[_nT]],
776
491
  });
777
492
  let body;
778
- return new protocol_http_1.HttpRequest({
779
- protocol,
780
- hostname,
781
- port,
782
- method: "GET",
783
- headers,
784
- path: resolvedPath,
785
- query,
786
- body,
787
- });
493
+ b.m("GET").h(headers).q(query).b(body);
494
+ return b.build();
788
495
  };
789
496
  exports.se_ListCollaborationPrivacyBudgetsCommand = se_ListCollaborationPrivacyBudgetsCommand;
790
497
  const se_ListCollaborationPrivacyBudgetTemplatesCommand = async (input, context) => {
791
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
498
+ const b = (0, core_2.requestBuilder)(input, context);
792
499
  const headers = {};
793
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
794
- "/collaborations/{collaborationIdentifier}/privacybudgettemplates";
795
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
500
+ b.bp("/collaborations/{collaborationIdentifier}/privacybudgettemplates");
501
+ b.p("collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
796
502
  const query = (0, smithy_client_1.map)({
797
- nextToken: [, input.nextToken],
798
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
503
+ [_nT]: [, input[_nT]],
504
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
799
505
  });
800
506
  let body;
801
- return new protocol_http_1.HttpRequest({
802
- protocol,
803
- hostname,
804
- port,
805
- method: "GET",
806
- headers,
807
- path: resolvedPath,
808
- query,
809
- body,
810
- });
507
+ b.m("GET").h(headers).q(query).b(body);
508
+ return b.build();
811
509
  };
812
510
  exports.se_ListCollaborationPrivacyBudgetTemplatesCommand = se_ListCollaborationPrivacyBudgetTemplatesCommand;
813
511
  const se_ListCollaborationsCommand = async (input, context) => {
814
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
512
+ const b = (0, core_2.requestBuilder)(input, context);
815
513
  const headers = {};
816
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/collaborations";
514
+ b.bp("/collaborations");
817
515
  const query = (0, smithy_client_1.map)({
818
- nextToken: [, input.nextToken],
819
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
820
- memberStatus: [, input.memberStatus],
516
+ [_nT]: [, input[_nT]],
517
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
518
+ [_mS]: [, input[_mS]],
821
519
  });
822
520
  let body;
823
- return new protocol_http_1.HttpRequest({
824
- protocol,
825
- hostname,
826
- port,
827
- method: "GET",
828
- headers,
829
- path: resolvedPath,
830
- query,
831
- body,
832
- });
521
+ b.m("GET").h(headers).q(query).b(body);
522
+ return b.build();
833
523
  };
834
524
  exports.se_ListCollaborationsCommand = se_ListCollaborationsCommand;
835
525
  const se_ListConfiguredAudienceModelAssociationsCommand = async (input, context) => {
836
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
526
+ const b = (0, core_2.requestBuilder)(input, context);
837
527
  const headers = {};
838
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
839
- "/memberships/{membershipIdentifier}/configuredaudiencemodelassociations";
840
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
528
+ b.bp("/memberships/{membershipIdentifier}/configuredaudiencemodelassociations");
529
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
841
530
  const query = (0, smithy_client_1.map)({
842
- nextToken: [, input.nextToken],
843
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
531
+ [_nT]: [, input[_nT]],
532
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
844
533
  });
845
534
  let body;
846
- return new protocol_http_1.HttpRequest({
847
- protocol,
848
- hostname,
849
- port,
850
- method: "GET",
851
- headers,
852
- path: resolvedPath,
853
- query,
854
- body,
855
- });
535
+ b.m("GET").h(headers).q(query).b(body);
536
+ return b.build();
856
537
  };
857
538
  exports.se_ListConfiguredAudienceModelAssociationsCommand = se_ListConfiguredAudienceModelAssociationsCommand;
858
539
  const se_ListConfiguredTableAssociationsCommand = async (input, context) => {
859
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
540
+ const b = (0, core_2.requestBuilder)(input, context);
860
541
  const headers = {};
861
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
862
- "/memberships/{membershipIdentifier}/configuredTableAssociations";
863
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
542
+ b.bp("/memberships/{membershipIdentifier}/configuredTableAssociations");
543
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
864
544
  const query = (0, smithy_client_1.map)({
865
- nextToken: [, input.nextToken],
866
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
545
+ [_nT]: [, input[_nT]],
546
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
867
547
  });
868
548
  let body;
869
- return new protocol_http_1.HttpRequest({
870
- protocol,
871
- hostname,
872
- port,
873
- method: "GET",
874
- headers,
875
- path: resolvedPath,
876
- query,
877
- body,
878
- });
549
+ b.m("GET").h(headers).q(query).b(body);
550
+ return b.build();
879
551
  };
880
552
  exports.se_ListConfiguredTableAssociationsCommand = se_ListConfiguredTableAssociationsCommand;
881
553
  const se_ListConfiguredTablesCommand = async (input, context) => {
882
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
554
+ const b = (0, core_2.requestBuilder)(input, context);
883
555
  const headers = {};
884
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuredTables";
556
+ b.bp("/configuredTables");
885
557
  const query = (0, smithy_client_1.map)({
886
- nextToken: [, input.nextToken],
887
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
558
+ [_nT]: [, input[_nT]],
559
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
888
560
  });
889
561
  let body;
890
- return new protocol_http_1.HttpRequest({
891
- protocol,
892
- hostname,
893
- port,
894
- method: "GET",
895
- headers,
896
- path: resolvedPath,
897
- query,
898
- body,
899
- });
562
+ b.m("GET").h(headers).q(query).b(body);
563
+ return b.build();
900
564
  };
901
565
  exports.se_ListConfiguredTablesCommand = se_ListConfiguredTablesCommand;
902
566
  const se_ListMembersCommand = async (input, context) => {
903
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
567
+ const b = (0, core_2.requestBuilder)(input, context);
904
568
  const headers = {};
905
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
906
- "/collaborations/{collaborationIdentifier}/members";
907
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
569
+ b.bp("/collaborations/{collaborationIdentifier}/members");
570
+ b.p("collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
908
571
  const query = (0, smithy_client_1.map)({
909
- nextToken: [, input.nextToken],
910
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
572
+ [_nT]: [, input[_nT]],
573
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
911
574
  });
912
575
  let body;
913
- return new protocol_http_1.HttpRequest({
914
- protocol,
915
- hostname,
916
- port,
917
- method: "GET",
918
- headers,
919
- path: resolvedPath,
920
- query,
921
- body,
922
- });
576
+ b.m("GET").h(headers).q(query).b(body);
577
+ return b.build();
923
578
  };
924
579
  exports.se_ListMembersCommand = se_ListMembersCommand;
925
580
  const se_ListMembershipsCommand = async (input, context) => {
926
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
581
+ const b = (0, core_2.requestBuilder)(input, context);
927
582
  const headers = {};
928
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/memberships";
583
+ b.bp("/memberships");
929
584
  const query = (0, smithy_client_1.map)({
930
- nextToken: [, input.nextToken],
931
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
932
- status: [, input.status],
585
+ [_nT]: [, input[_nT]],
586
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
587
+ [_s]: [, input[_s]],
933
588
  });
934
589
  let body;
935
- return new protocol_http_1.HttpRequest({
936
- protocol,
937
- hostname,
938
- port,
939
- method: "GET",
940
- headers,
941
- path: resolvedPath,
942
- query,
943
- body,
944
- });
590
+ b.m("GET").h(headers).q(query).b(body);
591
+ return b.build();
945
592
  };
946
593
  exports.se_ListMembershipsCommand = se_ListMembershipsCommand;
947
594
  const se_ListPrivacyBudgetsCommand = async (input, context) => {
948
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
595
+ const b = (0, core_2.requestBuilder)(input, context);
949
596
  const headers = {};
950
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
951
- "/memberships/{membershipIdentifier}/privacybudgets";
952
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
597
+ b.bp("/memberships/{membershipIdentifier}/privacybudgets");
598
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
953
599
  const query = (0, smithy_client_1.map)({
954
- privacyBudgetType: [, (0, smithy_client_1.expectNonNull)(input.privacyBudgetType, `privacyBudgetType`)],
955
- nextToken: [, input.nextToken],
956
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
600
+ [_pBT]: [, (0, smithy_client_1.expectNonNull)(input[_pBT], `privacyBudgetType`)],
601
+ [_nT]: [, input[_nT]],
602
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
957
603
  });
958
604
  let body;
959
- return new protocol_http_1.HttpRequest({
960
- protocol,
961
- hostname,
962
- port,
963
- method: "GET",
964
- headers,
965
- path: resolvedPath,
966
- query,
967
- body,
968
- });
605
+ b.m("GET").h(headers).q(query).b(body);
606
+ return b.build();
969
607
  };
970
608
  exports.se_ListPrivacyBudgetsCommand = se_ListPrivacyBudgetsCommand;
971
609
  const se_ListPrivacyBudgetTemplatesCommand = async (input, context) => {
972
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
610
+ const b = (0, core_2.requestBuilder)(input, context);
973
611
  const headers = {};
974
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
975
- "/memberships/{membershipIdentifier}/privacybudgettemplates";
976
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
612
+ b.bp("/memberships/{membershipIdentifier}/privacybudgettemplates");
613
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
977
614
  const query = (0, smithy_client_1.map)({
978
- nextToken: [, input.nextToken],
979
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
615
+ [_nT]: [, input[_nT]],
616
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
980
617
  });
981
618
  let body;
982
- return new protocol_http_1.HttpRequest({
983
- protocol,
984
- hostname,
985
- port,
986
- method: "GET",
987
- headers,
988
- path: resolvedPath,
989
- query,
990
- body,
991
- });
619
+ b.m("GET").h(headers).q(query).b(body);
620
+ return b.build();
992
621
  };
993
622
  exports.se_ListPrivacyBudgetTemplatesCommand = se_ListPrivacyBudgetTemplatesCommand;
994
623
  const se_ListProtectedQueriesCommand = async (input, context) => {
995
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
624
+ const b = (0, core_2.requestBuilder)(input, context);
996
625
  const headers = {};
997
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
998
- "/memberships/{membershipIdentifier}/protectedQueries";
999
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
626
+ b.bp("/memberships/{membershipIdentifier}/protectedQueries");
627
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
1000
628
  const query = (0, smithy_client_1.map)({
1001
- status: [, input.status],
1002
- nextToken: [, input.nextToken],
1003
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
629
+ [_s]: [, input[_s]],
630
+ [_nT]: [, input[_nT]],
631
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1004
632
  });
1005
633
  let body;
1006
- return new protocol_http_1.HttpRequest({
1007
- protocol,
1008
- hostname,
1009
- port,
1010
- method: "GET",
1011
- headers,
1012
- path: resolvedPath,
1013
- query,
1014
- body,
1015
- });
634
+ b.m("GET").h(headers).q(query).b(body);
635
+ return b.build();
1016
636
  };
1017
637
  exports.se_ListProtectedQueriesCommand = se_ListProtectedQueriesCommand;
1018
638
  const se_ListSchemasCommand = async (input, context) => {
1019
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
639
+ const b = (0, core_2.requestBuilder)(input, context);
1020
640
  const headers = {};
1021
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1022
- "/collaborations/{collaborationIdentifier}/schemas";
1023
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
641
+ b.bp("/collaborations/{collaborationIdentifier}/schemas");
642
+ b.p("collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
1024
643
  const query = (0, smithy_client_1.map)({
1025
- schemaType: [, input.schemaType],
1026
- nextToken: [, input.nextToken],
1027
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
644
+ [_sT]: [, input[_sT]],
645
+ [_nT]: [, input[_nT]],
646
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1028
647
  });
1029
648
  let body;
1030
- return new protocol_http_1.HttpRequest({
1031
- protocol,
1032
- hostname,
1033
- port,
1034
- method: "GET",
1035
- headers,
1036
- path: resolvedPath,
1037
- query,
1038
- body,
1039
- });
649
+ b.m("GET").h(headers).q(query).b(body);
650
+ return b.build();
1040
651
  };
1041
652
  exports.se_ListSchemasCommand = se_ListSchemasCommand;
1042
653
  const se_ListTagsForResourceCommand = async (input, context) => {
1043
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
654
+ const b = (0, core_2.requestBuilder)(input, context);
1044
655
  const headers = {};
1045
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1046
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
656
+ b.bp("/tags/{resourceArn}");
657
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1047
658
  let body;
1048
- return new protocol_http_1.HttpRequest({
1049
- protocol,
1050
- hostname,
1051
- port,
1052
- method: "GET",
1053
- headers,
1054
- path: resolvedPath,
1055
- body,
1056
- });
659
+ b.m("GET").h(headers).b(body);
660
+ return b.build();
1057
661
  };
1058
662
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
1059
663
  const se_PreviewPrivacyImpactCommand = async (input, context) => {
1060
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
664
+ const b = (0, core_2.requestBuilder)(input, context);
1061
665
  const headers = {
1062
666
  "content-type": "application/json",
1063
667
  };
1064
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1065
- "/memberships/{membershipIdentifier}/previewprivacyimpact";
1066
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
668
+ b.bp("/memberships/{membershipIdentifier}/previewprivacyimpact");
669
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
1067
670
  let body;
1068
671
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1069
672
  parameters: (_) => (0, smithy_client_1._json)(_),
1070
673
  }));
1071
- return new protocol_http_1.HttpRequest({
1072
- protocol,
1073
- hostname,
1074
- port,
1075
- method: "POST",
1076
- headers,
1077
- path: resolvedPath,
1078
- body,
1079
- });
674
+ b.m("POST").h(headers).b(body);
675
+ return b.build();
1080
676
  };
1081
677
  exports.se_PreviewPrivacyImpactCommand = se_PreviewPrivacyImpactCommand;
1082
678
  const se_StartProtectedQueryCommand = async (input, context) => {
1083
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
679
+ const b = (0, core_2.requestBuilder)(input, context);
1084
680
  const headers = {
1085
681
  "content-type": "application/json",
1086
682
  };
1087
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1088
- "/memberships/{membershipIdentifier}/protectedQueries";
1089
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
683
+ b.bp("/memberships/{membershipIdentifier}/protectedQueries");
684
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
1090
685
  let body;
1091
686
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1092
687
  resultConfiguration: (_) => (0, smithy_client_1._json)(_),
1093
688
  sqlParameters: (_) => (0, smithy_client_1._json)(_),
1094
689
  type: [],
1095
690
  }));
1096
- return new protocol_http_1.HttpRequest({
1097
- protocol,
1098
- hostname,
1099
- port,
1100
- method: "POST",
1101
- headers,
1102
- path: resolvedPath,
1103
- body,
1104
- });
691
+ b.m("POST").h(headers).b(body);
692
+ return b.build();
1105
693
  };
1106
694
  exports.se_StartProtectedQueryCommand = se_StartProtectedQueryCommand;
1107
695
  const se_TagResourceCommand = async (input, context) => {
1108
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
696
+ const b = (0, core_2.requestBuilder)(input, context);
1109
697
  const headers = {
1110
698
  "content-type": "application/json",
1111
699
  };
1112
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1113
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
700
+ b.bp("/tags/{resourceArn}");
701
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1114
702
  let body;
1115
703
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1116
704
  tags: (_) => (0, smithy_client_1._json)(_),
1117
705
  }));
1118
- return new protocol_http_1.HttpRequest({
1119
- protocol,
1120
- hostname,
1121
- port,
1122
- method: "POST",
1123
- headers,
1124
- path: resolvedPath,
1125
- body,
1126
- });
706
+ b.m("POST").h(headers).b(body);
707
+ return b.build();
1127
708
  };
1128
709
  exports.se_TagResourceCommand = se_TagResourceCommand;
1129
710
  const se_UntagResourceCommand = async (input, context) => {
1130
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
711
+ const b = (0, core_2.requestBuilder)(input, context);
1131
712
  const headers = {};
1132
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1133
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
713
+ b.bp("/tags/{resourceArn}");
714
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
1134
715
  const query = (0, smithy_client_1.map)({
1135
- tagKeys: [
716
+ [_tK]: [
1136
717
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
1137
- () => (input.tagKeys || []).map((_entry) => _entry),
718
+ () => (input[_tK] || []).map((_entry) => _entry),
1138
719
  ],
1139
720
  });
1140
721
  let body;
1141
- return new protocol_http_1.HttpRequest({
1142
- protocol,
1143
- hostname,
1144
- port,
1145
- method: "DELETE",
1146
- headers,
1147
- path: resolvedPath,
1148
- query,
1149
- body,
1150
- });
722
+ b.m("DELETE").h(headers).q(query).b(body);
723
+ return b.build();
1151
724
  };
1152
725
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
1153
726
  const se_UpdateAnalysisTemplateCommand = async (input, context) => {
1154
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
727
+ const b = (0, core_2.requestBuilder)(input, context);
1155
728
  const headers = {
1156
729
  "content-type": "application/json",
1157
730
  };
1158
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1159
- "/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}";
1160
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
1161
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analysisTemplateIdentifier", () => input.analysisTemplateIdentifier, "{analysisTemplateIdentifier}", false);
731
+ b.bp("/memberships/{membershipIdentifier}/analysistemplates/{analysisTemplateIdentifier}");
732
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
733
+ b.p("analysisTemplateIdentifier", () => input.analysisTemplateIdentifier, "{analysisTemplateIdentifier}", false);
1162
734
  let body;
1163
735
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1164
736
  description: [],
1165
737
  }));
1166
- return new protocol_http_1.HttpRequest({
1167
- protocol,
1168
- hostname,
1169
- port,
1170
- method: "PATCH",
1171
- headers,
1172
- path: resolvedPath,
1173
- body,
1174
- });
738
+ b.m("PATCH").h(headers).b(body);
739
+ return b.build();
1175
740
  };
1176
741
  exports.se_UpdateAnalysisTemplateCommand = se_UpdateAnalysisTemplateCommand;
1177
742
  const se_UpdateCollaborationCommand = async (input, context) => {
1178
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
743
+ const b = (0, core_2.requestBuilder)(input, context);
1179
744
  const headers = {
1180
745
  "content-type": "application/json",
1181
746
  };
1182
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/collaborations/{collaborationIdentifier}";
1183
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
747
+ b.bp("/collaborations/{collaborationIdentifier}");
748
+ b.p("collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
1184
749
  let body;
1185
750
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1186
751
  description: [],
1187
752
  name: [],
1188
753
  }));
1189
- return new protocol_http_1.HttpRequest({
1190
- protocol,
1191
- hostname,
1192
- port,
1193
- method: "PATCH",
1194
- headers,
1195
- path: resolvedPath,
1196
- body,
1197
- });
754
+ b.m("PATCH").h(headers).b(body);
755
+ return b.build();
1198
756
  };
1199
757
  exports.se_UpdateCollaborationCommand = se_UpdateCollaborationCommand;
1200
758
  const se_UpdateConfiguredAudienceModelAssociationCommand = async (input, context) => {
1201
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
759
+ const b = (0, core_2.requestBuilder)(input, context);
1202
760
  const headers = {
1203
761
  "content-type": "application/json",
1204
762
  };
1205
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1206
- "/memberships/{membershipIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}";
1207
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configuredAudienceModelAssociationIdentifier", () => input.configuredAudienceModelAssociationIdentifier, "{configuredAudienceModelAssociationIdentifier}", false);
1208
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
763
+ b.bp("/memberships/{membershipIdentifier}/configuredaudiencemodelassociations/{configuredAudienceModelAssociationIdentifier}");
764
+ b.p("configuredAudienceModelAssociationIdentifier", () => input.configuredAudienceModelAssociationIdentifier, "{configuredAudienceModelAssociationIdentifier}", false);
765
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
1209
766
  let body;
1210
767
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1211
768
  description: [],
1212
769
  name: [],
1213
770
  }));
1214
- return new protocol_http_1.HttpRequest({
1215
- protocol,
1216
- hostname,
1217
- port,
1218
- method: "PATCH",
1219
- headers,
1220
- path: resolvedPath,
1221
- body,
1222
- });
771
+ b.m("PATCH").h(headers).b(body);
772
+ return b.build();
1223
773
  };
1224
774
  exports.se_UpdateConfiguredAudienceModelAssociationCommand = se_UpdateConfiguredAudienceModelAssociationCommand;
1225
775
  const se_UpdateConfiguredTableCommand = async (input, context) => {
1226
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
776
+ const b = (0, core_2.requestBuilder)(input, context);
1227
777
  const headers = {
1228
778
  "content-type": "application/json",
1229
779
  };
1230
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1231
- "/configuredTables/{configuredTableIdentifier}";
1232
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
780
+ b.bp("/configuredTables/{configuredTableIdentifier}");
781
+ b.p("configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
1233
782
  let body;
1234
783
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1235
784
  description: [],
1236
785
  name: [],
1237
786
  }));
1238
- return new protocol_http_1.HttpRequest({
1239
- protocol,
1240
- hostname,
1241
- port,
1242
- method: "PATCH",
1243
- headers,
1244
- path: resolvedPath,
1245
- body,
1246
- });
787
+ b.m("PATCH").h(headers).b(body);
788
+ return b.build();
1247
789
  };
1248
790
  exports.se_UpdateConfiguredTableCommand = se_UpdateConfiguredTableCommand;
1249
791
  const se_UpdateConfiguredTableAnalysisRuleCommand = async (input, context) => {
1250
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
792
+ const b = (0, core_2.requestBuilder)(input, context);
1251
793
  const headers = {
1252
794
  "content-type": "application/json",
1253
795
  };
1254
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1255
- "/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}";
1256
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
1257
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analysisRuleType", () => input.analysisRuleType, "{analysisRuleType}", false);
796
+ b.bp("/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}");
797
+ b.p("configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
798
+ b.p("analysisRuleType", () => input.analysisRuleType, "{analysisRuleType}", false);
1258
799
  let body;
1259
800
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1260
801
  analysisRulePolicy: (_) => (0, smithy_client_1._json)(_),
1261
802
  }));
1262
- return new protocol_http_1.HttpRequest({
1263
- protocol,
1264
- hostname,
1265
- port,
1266
- method: "PATCH",
1267
- headers,
1268
- path: resolvedPath,
1269
- body,
1270
- });
803
+ b.m("PATCH").h(headers).b(body);
804
+ return b.build();
1271
805
  };
1272
806
  exports.se_UpdateConfiguredTableAnalysisRuleCommand = se_UpdateConfiguredTableAnalysisRuleCommand;
1273
807
  const se_UpdateConfiguredTableAssociationCommand = async (input, context) => {
1274
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
808
+ const b = (0, core_2.requestBuilder)(input, context);
1275
809
  const headers = {
1276
810
  "content-type": "application/json",
1277
811
  };
1278
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1279
- "/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}";
1280
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configuredTableAssociationIdentifier", () => input.configuredTableAssociationIdentifier, "{configuredTableAssociationIdentifier}", false);
1281
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
812
+ b.bp("/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}");
813
+ b.p("configuredTableAssociationIdentifier", () => input.configuredTableAssociationIdentifier, "{configuredTableAssociationIdentifier}", false);
814
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
1282
815
  let body;
1283
816
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1284
817
  description: [],
1285
818
  roleArn: [],
1286
819
  }));
1287
- return new protocol_http_1.HttpRequest({
1288
- protocol,
1289
- hostname,
1290
- port,
1291
- method: "PATCH",
1292
- headers,
1293
- path: resolvedPath,
1294
- body,
1295
- });
820
+ b.m("PATCH").h(headers).b(body);
821
+ return b.build();
1296
822
  };
1297
823
  exports.se_UpdateConfiguredTableAssociationCommand = se_UpdateConfiguredTableAssociationCommand;
1298
824
  const se_UpdateMembershipCommand = async (input, context) => {
1299
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
825
+ const b = (0, core_2.requestBuilder)(input, context);
1300
826
  const headers = {
1301
827
  "content-type": "application/json",
1302
828
  };
1303
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/memberships/{membershipIdentifier}";
1304
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
829
+ b.bp("/memberships/{membershipIdentifier}");
830
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
1305
831
  let body;
1306
832
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1307
833
  defaultResultConfiguration: (_) => (0, smithy_client_1._json)(_),
1308
834
  queryLogStatus: [],
1309
835
  }));
1310
- return new protocol_http_1.HttpRequest({
1311
- protocol,
1312
- hostname,
1313
- port,
1314
- method: "PATCH",
1315
- headers,
1316
- path: resolvedPath,
1317
- body,
1318
- });
836
+ b.m("PATCH").h(headers).b(body);
837
+ return b.build();
1319
838
  };
1320
839
  exports.se_UpdateMembershipCommand = se_UpdateMembershipCommand;
1321
840
  const se_UpdatePrivacyBudgetTemplateCommand = async (input, context) => {
1322
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
841
+ const b = (0, core_2.requestBuilder)(input, context);
1323
842
  const headers = {
1324
843
  "content-type": "application/json",
1325
844
  };
1326
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1327
- "/memberships/{membershipIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}";
1328
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
1329
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "privacyBudgetTemplateIdentifier", () => input.privacyBudgetTemplateIdentifier, "{privacyBudgetTemplateIdentifier}", false);
845
+ b.bp("/memberships/{membershipIdentifier}/privacybudgettemplates/{privacyBudgetTemplateIdentifier}");
846
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
847
+ b.p("privacyBudgetTemplateIdentifier", () => input.privacyBudgetTemplateIdentifier, "{privacyBudgetTemplateIdentifier}", false);
1330
848
  let body;
1331
849
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1332
850
  parameters: (_) => (0, smithy_client_1._json)(_),
1333
851
  privacyBudgetType: [],
1334
852
  }));
1335
- return new protocol_http_1.HttpRequest({
1336
- protocol,
1337
- hostname,
1338
- port,
1339
- method: "PATCH",
1340
- headers,
1341
- path: resolvedPath,
1342
- body,
1343
- });
853
+ b.m("PATCH").h(headers).b(body);
854
+ return b.build();
1344
855
  };
1345
856
  exports.se_UpdatePrivacyBudgetTemplateCommand = se_UpdatePrivacyBudgetTemplateCommand;
1346
857
  const se_UpdateProtectedQueryCommand = async (input, context) => {
1347
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
858
+ const b = (0, core_2.requestBuilder)(input, context);
1348
859
  const headers = {
1349
860
  "content-type": "application/json",
1350
861
  };
1351
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1352
- "/memberships/{membershipIdentifier}/protectedQueries/{protectedQueryIdentifier}";
1353
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
1354
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "protectedQueryIdentifier", () => input.protectedQueryIdentifier, "{protectedQueryIdentifier}", false);
862
+ b.bp("/memberships/{membershipIdentifier}/protectedQueries/{protectedQueryIdentifier}");
863
+ b.p("membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
864
+ b.p("protectedQueryIdentifier", () => input.protectedQueryIdentifier, "{protectedQueryIdentifier}", false);
1355
865
  let body;
1356
866
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1357
867
  targetStatus: [],
1358
868
  }));
1359
- return new protocol_http_1.HttpRequest({
1360
- protocol,
1361
- hostname,
1362
- port,
1363
- method: "PATCH",
1364
- headers,
1365
- path: resolvedPath,
1366
- body,
1367
- });
869
+ b.m("PATCH").h(headers).b(body);
870
+ return b.build();
1368
871
  };
1369
872
  exports.se_UpdateProtectedQueryCommand = se_UpdateProtectedQueryCommand;
1370
873
  const de_BatchGetCollaborationAnalysisTemplateCommand = async (output, context) => {
@@ -4897,6 +4400,13 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
4897
4400
  value !== "" &&
4898
4401
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
4899
4402
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
4403
+ const _mR = "maxResults";
4404
+ const _mS = "memberStatus";
4405
+ const _nT = "nextToken";
4406
+ const _pBT = "privacyBudgetType";
4407
+ const _s = "status";
4408
+ const _sT = "schemaType";
4409
+ const _tK = "tagKeys";
4900
4410
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4901
4411
  if (encoded.length) {
4902
4412
  return JSON.parse(encoded);