@aws-sdk/client-sesv2 3.476.0 → 3.477.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,54 +4,40 @@ exports.se_ListDedicatedIpPoolsCommand = exports.se_ListCustomVerificationEmailT
4
4
  exports.de_CreateDedicatedIpPoolCommand = exports.de_CreateCustomVerificationEmailTemplateCommand = exports.de_CreateContactListCommand = exports.de_CreateContactCommand = exports.de_CreateConfigurationSetEventDestinationCommand = exports.de_CreateConfigurationSetCommand = exports.de_CancelExportJobCommand = exports.de_BatchGetMetricDataCommand = exports.se_UpdateEmailTemplateCommand = exports.se_UpdateEmailIdentityPolicyCommand = exports.se_UpdateCustomVerificationEmailTemplateCommand = exports.se_UpdateContactListCommand = exports.se_UpdateContactCommand = exports.se_UpdateConfigurationSetEventDestinationCommand = exports.se_UntagResourceCommand = exports.se_TestRenderEmailTemplateCommand = exports.se_TagResourceCommand = exports.se_SendEmailCommand = exports.se_SendCustomVerificationEmailCommand = exports.se_SendBulkEmailCommand = exports.se_PutSuppressedDestinationCommand = exports.se_PutEmailIdentityMailFromAttributesCommand = exports.se_PutEmailIdentityFeedbackAttributesCommand = exports.se_PutEmailIdentityDkimSigningAttributesCommand = exports.se_PutEmailIdentityDkimAttributesCommand = exports.se_PutEmailIdentityConfigurationSetAttributesCommand = exports.se_PutDeliverabilityDashboardOptionCommand = exports.se_PutDedicatedIpWarmupAttributesCommand = exports.se_PutDedicatedIpPoolScalingAttributesCommand = exports.se_PutDedicatedIpInPoolCommand = exports.se_PutConfigurationSetVdmOptionsCommand = exports.se_PutConfigurationSetTrackingOptionsCommand = exports.se_PutConfigurationSetSuppressionOptionsCommand = exports.se_PutConfigurationSetSendingOptionsCommand = exports.se_PutConfigurationSetReputationOptionsCommand = exports.se_PutConfigurationSetDeliveryOptionsCommand = exports.se_PutAccountVdmAttributesCommand = exports.se_PutAccountSuppressionAttributesCommand = exports.se_PutAccountSendingAttributesCommand = exports.se_PutAccountDetailsCommand = exports.se_PutAccountDedicatedIpWarmupAttributesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSuppressedDestinationsCommand = exports.se_ListRecommendationsCommand = exports.se_ListImportJobsCommand = exports.se_ListExportJobsCommand = exports.se_ListEmailTemplatesCommand = exports.se_ListEmailIdentitiesCommand = exports.se_ListDomainDeliverabilityCampaignsCommand = exports.se_ListDeliverabilityTestReportsCommand = void 0;
5
5
  exports.de_ListSuppressedDestinationsCommand = exports.de_ListRecommendationsCommand = exports.de_ListImportJobsCommand = exports.de_ListExportJobsCommand = exports.de_ListEmailTemplatesCommand = exports.de_ListEmailIdentitiesCommand = exports.de_ListDomainDeliverabilityCampaignsCommand = exports.de_ListDeliverabilityTestReportsCommand = exports.de_ListDedicatedIpPoolsCommand = exports.de_ListCustomVerificationEmailTemplatesCommand = exports.de_ListContactsCommand = exports.de_ListContactListsCommand = exports.de_ListConfigurationSetsCommand = exports.de_GetSuppressedDestinationCommand = exports.de_GetMessageInsightsCommand = exports.de_GetImportJobCommand = exports.de_GetExportJobCommand = exports.de_GetEmailTemplateCommand = exports.de_GetEmailIdentityPoliciesCommand = exports.de_GetEmailIdentityCommand = exports.de_GetDomainStatisticsReportCommand = exports.de_GetDomainDeliverabilityCampaignCommand = exports.de_GetDeliverabilityTestReportCommand = exports.de_GetDeliverabilityDashboardOptionsCommand = exports.de_GetDedicatedIpsCommand = exports.de_GetDedicatedIpPoolCommand = exports.de_GetDedicatedIpCommand = exports.de_GetCustomVerificationEmailTemplateCommand = exports.de_GetContactListCommand = exports.de_GetContactCommand = exports.de_GetConfigurationSetEventDestinationsCommand = exports.de_GetConfigurationSetCommand = exports.de_GetBlacklistReportsCommand = exports.de_GetAccountCommand = exports.de_DeleteSuppressedDestinationCommand = exports.de_DeleteEmailTemplateCommand = exports.de_DeleteEmailIdentityPolicyCommand = exports.de_DeleteEmailIdentityCommand = exports.de_DeleteDedicatedIpPoolCommand = exports.de_DeleteCustomVerificationEmailTemplateCommand = exports.de_DeleteContactListCommand = exports.de_DeleteContactCommand = exports.de_DeleteConfigurationSetEventDestinationCommand = exports.de_DeleteConfigurationSetCommand = exports.de_CreateImportJobCommand = exports.de_CreateExportJobCommand = exports.de_CreateEmailTemplateCommand = exports.de_CreateEmailIdentityPolicyCommand = exports.de_CreateEmailIdentityCommand = exports.de_CreateDeliverabilityTestReportCommand = void 0;
6
6
  exports.de_UpdateEmailTemplateCommand = exports.de_UpdateEmailIdentityPolicyCommand = exports.de_UpdateCustomVerificationEmailTemplateCommand = exports.de_UpdateContactListCommand = exports.de_UpdateContactCommand = exports.de_UpdateConfigurationSetEventDestinationCommand = exports.de_UntagResourceCommand = exports.de_TestRenderEmailTemplateCommand = exports.de_TagResourceCommand = exports.de_SendEmailCommand = exports.de_SendCustomVerificationEmailCommand = exports.de_SendBulkEmailCommand = exports.de_PutSuppressedDestinationCommand = exports.de_PutEmailIdentityMailFromAttributesCommand = exports.de_PutEmailIdentityFeedbackAttributesCommand = exports.de_PutEmailIdentityDkimSigningAttributesCommand = exports.de_PutEmailIdentityDkimAttributesCommand = exports.de_PutEmailIdentityConfigurationSetAttributesCommand = exports.de_PutDeliverabilityDashboardOptionCommand = exports.de_PutDedicatedIpWarmupAttributesCommand = exports.de_PutDedicatedIpPoolScalingAttributesCommand = exports.de_PutDedicatedIpInPoolCommand = exports.de_PutConfigurationSetVdmOptionsCommand = exports.de_PutConfigurationSetTrackingOptionsCommand = exports.de_PutConfigurationSetSuppressionOptionsCommand = exports.de_PutConfigurationSetSendingOptionsCommand = exports.de_PutConfigurationSetReputationOptionsCommand = exports.de_PutConfigurationSetDeliveryOptionsCommand = exports.de_PutAccountVdmAttributesCommand = exports.de_PutAccountSuppressionAttributesCommand = exports.de_PutAccountSendingAttributesCommand = exports.de_PutAccountDetailsCommand = exports.de_PutAccountDedicatedIpWarmupAttributesCommand = exports.de_ListTagsForResourceCommand = void 0;
7
- const protocol_http_1 = require("@smithy/protocol-http");
7
+ const core_1 = require("@smithy/core");
8
8
  const smithy_client_1 = require("@smithy/smithy-client");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const SESv2ServiceException_1 = require("../models/SESv2ServiceException");
11
11
  const se_BatchGetMetricDataCommand = async (input, context) => {
12
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
+ const b = (0, core_1.requestBuilder)(input, context);
13
13
  const headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/metrics/batch";
16
+ b.bp("/v2/email/metrics/batch");
17
17
  let body;
18
18
  body = JSON.stringify((0, smithy_client_1.take)(input, {
19
19
  Queries: (_) => se_BatchGetMetricDataQueries(_, context),
20
20
  }));
21
- return new protocol_http_1.HttpRequest({
22
- protocol,
23
- hostname,
24
- port,
25
- method: "POST",
26
- headers,
27
- path: resolvedPath,
28
- body,
29
- });
21
+ b.m("POST").h(headers).b(body);
22
+ return b.build();
30
23
  };
31
24
  exports.se_BatchGetMetricDataCommand = se_BatchGetMetricDataCommand;
32
25
  const se_CancelExportJobCommand = async (input, context) => {
33
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
26
+ const b = (0, core_1.requestBuilder)(input, context);
34
27
  const headers = {};
35
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/export-jobs/{JobId}/cancel";
36
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
28
+ b.bp("/v2/email/export-jobs/{JobId}/cancel");
29
+ b.p("JobId", () => input.JobId, "{JobId}", false);
37
30
  let body;
38
- return new protocol_http_1.HttpRequest({
39
- protocol,
40
- hostname,
41
- port,
42
- method: "PUT",
43
- headers,
44
- path: resolvedPath,
45
- body,
46
- });
31
+ b.m("PUT").h(headers).b(body);
32
+ return b.build();
47
33
  };
48
34
  exports.se_CancelExportJobCommand = se_CancelExportJobCommand;
49
35
  const se_CreateConfigurationSetCommand = async (input, context) => {
50
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
36
+ const b = (0, core_1.requestBuilder)(input, context);
51
37
  const headers = {
52
38
  "content-type": "application/json",
53
39
  };
54
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/configuration-sets";
40
+ b.bp("/v2/email/configuration-sets");
55
41
  let body;
56
42
  body = JSON.stringify((0, smithy_client_1.take)(input, {
57
43
  ConfigurationSetName: [],
@@ -63,49 +49,33 @@ const se_CreateConfigurationSetCommand = async (input, context) => {
63
49
  TrackingOptions: (_) => (0, smithy_client_1._json)(_),
64
50
  VdmOptions: (_) => (0, smithy_client_1._json)(_),
65
51
  }));
66
- return new protocol_http_1.HttpRequest({
67
- protocol,
68
- hostname,
69
- port,
70
- method: "POST",
71
- headers,
72
- path: resolvedPath,
73
- body,
74
- });
52
+ b.m("POST").h(headers).b(body);
53
+ return b.build();
75
54
  };
76
55
  exports.se_CreateConfigurationSetCommand = se_CreateConfigurationSetCommand;
77
56
  const se_CreateConfigurationSetEventDestinationCommand = async (input, context) => {
78
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
57
+ const b = (0, core_1.requestBuilder)(input, context);
79
58
  const headers = {
80
59
  "content-type": "application/json",
81
60
  };
82
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
83
- "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations";
84
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
61
+ b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations");
62
+ b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
85
63
  let body;
86
64
  body = JSON.stringify((0, smithy_client_1.take)(input, {
87
65
  EventDestination: (_) => (0, smithy_client_1._json)(_),
88
66
  EventDestinationName: [],
89
67
  }));
90
- return new protocol_http_1.HttpRequest({
91
- protocol,
92
- hostname,
93
- port,
94
- method: "POST",
95
- headers,
96
- path: resolvedPath,
97
- body,
98
- });
68
+ b.m("POST").h(headers).b(body);
69
+ return b.build();
99
70
  };
100
71
  exports.se_CreateConfigurationSetEventDestinationCommand = se_CreateConfigurationSetEventDestinationCommand;
101
72
  const se_CreateContactCommand = async (input, context) => {
102
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
+ const b = (0, core_1.requestBuilder)(input, context);
103
74
  const headers = {
104
75
  "content-type": "application/json",
105
76
  };
106
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
107
- "/v2/email/contact-lists/{ContactListName}/contacts";
108
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactListName", () => input.ContactListName, "{ContactListName}", false);
77
+ b.bp("/v2/email/contact-lists/{ContactListName}/contacts");
78
+ b.p("ContactListName", () => input.ContactListName, "{ContactListName}", false);
109
79
  let body;
110
80
  body = JSON.stringify((0, smithy_client_1.take)(input, {
111
81
  AttributesData: [],
@@ -113,23 +83,16 @@ const se_CreateContactCommand = async (input, context) => {
113
83
  TopicPreferences: (_) => (0, smithy_client_1._json)(_),
114
84
  UnsubscribeAll: [],
115
85
  }));
116
- return new protocol_http_1.HttpRequest({
117
- protocol,
118
- hostname,
119
- port,
120
- method: "POST",
121
- headers,
122
- path: resolvedPath,
123
- body,
124
- });
86
+ b.m("POST").h(headers).b(body);
87
+ return b.build();
125
88
  };
126
89
  exports.se_CreateContactCommand = se_CreateContactCommand;
127
90
  const se_CreateContactListCommand = async (input, context) => {
128
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
91
+ const b = (0, core_1.requestBuilder)(input, context);
129
92
  const headers = {
130
93
  "content-type": "application/json",
131
94
  };
132
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists";
95
+ b.bp("/v2/email/contact-lists");
133
96
  let body;
134
97
  body = JSON.stringify((0, smithy_client_1.take)(input, {
135
98
  ContactListName: [],
@@ -137,24 +100,16 @@ const se_CreateContactListCommand = async (input, context) => {
137
100
  Tags: (_) => (0, smithy_client_1._json)(_),
138
101
  Topics: (_) => (0, smithy_client_1._json)(_),
139
102
  }));
140
- return new protocol_http_1.HttpRequest({
141
- protocol,
142
- hostname,
143
- port,
144
- method: "POST",
145
- headers,
146
- path: resolvedPath,
147
- body,
148
- });
103
+ b.m("POST").h(headers).b(body);
104
+ return b.build();
149
105
  };
150
106
  exports.se_CreateContactListCommand = se_CreateContactListCommand;
151
107
  const se_CreateCustomVerificationEmailTemplateCommand = async (input, context) => {
152
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
108
+ const b = (0, core_1.requestBuilder)(input, context);
153
109
  const headers = {
154
110
  "content-type": "application/json",
155
111
  };
156
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
157
- "/v2/email/custom-verification-email-templates";
112
+ b.bp("/v2/email/custom-verification-email-templates");
158
113
  let body;
159
114
  body = JSON.stringify((0, smithy_client_1.take)(input, {
160
115
  FailureRedirectionURL: [],
@@ -164,46 +119,32 @@ const se_CreateCustomVerificationEmailTemplateCommand = async (input, context) =
164
119
  TemplateName: [],
165
120
  TemplateSubject: [],
166
121
  }));
167
- return new protocol_http_1.HttpRequest({
168
- protocol,
169
- hostname,
170
- port,
171
- method: "POST",
172
- headers,
173
- path: resolvedPath,
174
- body,
175
- });
122
+ b.m("POST").h(headers).b(body);
123
+ return b.build();
176
124
  };
177
125
  exports.se_CreateCustomVerificationEmailTemplateCommand = se_CreateCustomVerificationEmailTemplateCommand;
178
126
  const se_CreateDedicatedIpPoolCommand = async (input, context) => {
179
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
127
+ const b = (0, core_1.requestBuilder)(input, context);
180
128
  const headers = {
181
129
  "content-type": "application/json",
182
130
  };
183
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ip-pools";
131
+ b.bp("/v2/email/dedicated-ip-pools");
184
132
  let body;
185
133
  body = JSON.stringify((0, smithy_client_1.take)(input, {
186
134
  PoolName: [],
187
135
  ScalingMode: [],
188
136
  Tags: (_) => (0, smithy_client_1._json)(_),
189
137
  }));
190
- return new protocol_http_1.HttpRequest({
191
- protocol,
192
- hostname,
193
- port,
194
- method: "POST",
195
- headers,
196
- path: resolvedPath,
197
- body,
198
- });
138
+ b.m("POST").h(headers).b(body);
139
+ return b.build();
199
140
  };
200
141
  exports.se_CreateDedicatedIpPoolCommand = se_CreateDedicatedIpPoolCommand;
201
142
  const se_CreateDeliverabilityTestReportCommand = async (input, context) => {
202
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
143
+ const b = (0, core_1.requestBuilder)(input, context);
203
144
  const headers = {
204
145
  "content-type": "application/json",
205
146
  };
206
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/deliverability-dashboard/test";
147
+ b.bp("/v2/email/deliverability-dashboard/test");
207
148
  let body;
208
149
  body = JSON.stringify((0, smithy_client_1.take)(input, {
209
150
  Content: (_) => se_EmailContent(_, context),
@@ -211,23 +152,16 @@ const se_CreateDeliverabilityTestReportCommand = async (input, context) => {
211
152
  ReportName: [],
212
153
  Tags: (_) => (0, smithy_client_1._json)(_),
213
154
  }));
214
- return new protocol_http_1.HttpRequest({
215
- protocol,
216
- hostname,
217
- port,
218
- method: "POST",
219
- headers,
220
- path: resolvedPath,
221
- body,
222
- });
155
+ b.m("POST").h(headers).b(body);
156
+ return b.build();
223
157
  };
224
158
  exports.se_CreateDeliverabilityTestReportCommand = se_CreateDeliverabilityTestReportCommand;
225
159
  const se_CreateEmailIdentityCommand = async (input, context) => {
226
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
160
+ const b = (0, core_1.requestBuilder)(input, context);
227
161
  const headers = {
228
162
  "content-type": "application/json",
229
163
  };
230
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities";
164
+ b.bp("/v2/email/identities");
231
165
  let body;
232
166
  body = JSON.stringify((0, smithy_client_1.take)(input, {
233
167
  ConfigurationSetName: [],
@@ -235,894 +169,546 @@ const se_CreateEmailIdentityCommand = async (input, context) => {
235
169
  EmailIdentity: [],
236
170
  Tags: (_) => (0, smithy_client_1._json)(_),
237
171
  }));
238
- return new protocol_http_1.HttpRequest({
239
- protocol,
240
- hostname,
241
- port,
242
- method: "POST",
243
- headers,
244
- path: resolvedPath,
245
- body,
246
- });
172
+ b.m("POST").h(headers).b(body);
173
+ return b.build();
247
174
  };
248
175
  exports.se_CreateEmailIdentityCommand = se_CreateEmailIdentityCommand;
249
176
  const se_CreateEmailIdentityPolicyCommand = async (input, context) => {
250
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
177
+ const b = (0, core_1.requestBuilder)(input, context);
251
178
  const headers = {
252
179
  "content-type": "application/json",
253
180
  };
254
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
255
- "/v2/email/identities/{EmailIdentity}/policies/{PolicyName}";
256
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
257
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyName", () => input.PolicyName, "{PolicyName}", false);
181
+ b.bp("/v2/email/identities/{EmailIdentity}/policies/{PolicyName}");
182
+ b.p("EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
183
+ b.p("PolicyName", () => input.PolicyName, "{PolicyName}", false);
258
184
  let body;
259
185
  body = JSON.stringify((0, smithy_client_1.take)(input, {
260
186
  Policy: [],
261
187
  }));
262
- return new protocol_http_1.HttpRequest({
263
- protocol,
264
- hostname,
265
- port,
266
- method: "POST",
267
- headers,
268
- path: resolvedPath,
269
- body,
270
- });
188
+ b.m("POST").h(headers).b(body);
189
+ return b.build();
271
190
  };
272
191
  exports.se_CreateEmailIdentityPolicyCommand = se_CreateEmailIdentityPolicyCommand;
273
192
  const se_CreateEmailTemplateCommand = async (input, context) => {
274
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
193
+ const b = (0, core_1.requestBuilder)(input, context);
275
194
  const headers = {
276
195
  "content-type": "application/json",
277
196
  };
278
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates";
197
+ b.bp("/v2/email/templates");
279
198
  let body;
280
199
  body = JSON.stringify((0, smithy_client_1.take)(input, {
281
200
  TemplateContent: (_) => (0, smithy_client_1._json)(_),
282
201
  TemplateName: [],
283
202
  }));
284
- return new protocol_http_1.HttpRequest({
285
- protocol,
286
- hostname,
287
- port,
288
- method: "POST",
289
- headers,
290
- path: resolvedPath,
291
- body,
292
- });
203
+ b.m("POST").h(headers).b(body);
204
+ return b.build();
293
205
  };
294
206
  exports.se_CreateEmailTemplateCommand = se_CreateEmailTemplateCommand;
295
207
  const se_CreateExportJobCommand = async (input, context) => {
296
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
208
+ const b = (0, core_1.requestBuilder)(input, context);
297
209
  const headers = {
298
210
  "content-type": "application/json",
299
211
  };
300
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/export-jobs";
212
+ b.bp("/v2/email/export-jobs");
301
213
  let body;
302
214
  body = JSON.stringify((0, smithy_client_1.take)(input, {
303
215
  ExportDataSource: (_) => se_ExportDataSource(_, context),
304
216
  ExportDestination: (_) => (0, smithy_client_1._json)(_),
305
217
  }));
306
- return new protocol_http_1.HttpRequest({
307
- protocol,
308
- hostname,
309
- port,
310
- method: "POST",
311
- headers,
312
- path: resolvedPath,
313
- body,
314
- });
218
+ b.m("POST").h(headers).b(body);
219
+ return b.build();
315
220
  };
316
221
  exports.se_CreateExportJobCommand = se_CreateExportJobCommand;
317
222
  const se_CreateImportJobCommand = async (input, context) => {
318
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
223
+ const b = (0, core_1.requestBuilder)(input, context);
319
224
  const headers = {
320
225
  "content-type": "application/json",
321
226
  };
322
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/import-jobs";
227
+ b.bp("/v2/email/import-jobs");
323
228
  let body;
324
229
  body = JSON.stringify((0, smithy_client_1.take)(input, {
325
230
  ImportDataSource: (_) => (0, smithy_client_1._json)(_),
326
231
  ImportDestination: (_) => (0, smithy_client_1._json)(_),
327
232
  }));
328
- return new protocol_http_1.HttpRequest({
329
- protocol,
330
- hostname,
331
- port,
332
- method: "POST",
333
- headers,
334
- path: resolvedPath,
335
- body,
336
- });
233
+ b.m("POST").h(headers).b(body);
234
+ return b.build();
337
235
  };
338
236
  exports.se_CreateImportJobCommand = se_CreateImportJobCommand;
339
237
  const se_DeleteConfigurationSetCommand = async (input, context) => {
340
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
238
+ const b = (0, core_1.requestBuilder)(input, context);
341
239
  const headers = {};
342
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
343
- "/v2/email/configuration-sets/{ConfigurationSetName}";
344
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
240
+ b.bp("/v2/email/configuration-sets/{ConfigurationSetName}");
241
+ b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
345
242
  let body;
346
- return new protocol_http_1.HttpRequest({
347
- protocol,
348
- hostname,
349
- port,
350
- method: "DELETE",
351
- headers,
352
- path: resolvedPath,
353
- body,
354
- });
243
+ b.m("DELETE").h(headers).b(body);
244
+ return b.build();
355
245
  };
356
246
  exports.se_DeleteConfigurationSetCommand = se_DeleteConfigurationSetCommand;
357
247
  const se_DeleteConfigurationSetEventDestinationCommand = async (input, context) => {
358
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
248
+ const b = (0, core_1.requestBuilder)(input, context);
359
249
  const headers = {};
360
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
361
- "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}";
362
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
363
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventDestinationName", () => input.EventDestinationName, "{EventDestinationName}", false);
250
+ b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}");
251
+ b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
252
+ b.p("EventDestinationName", () => input.EventDestinationName, "{EventDestinationName}", false);
364
253
  let body;
365
- return new protocol_http_1.HttpRequest({
366
- protocol,
367
- hostname,
368
- port,
369
- method: "DELETE",
370
- headers,
371
- path: resolvedPath,
372
- body,
373
- });
254
+ b.m("DELETE").h(headers).b(body);
255
+ return b.build();
374
256
  };
375
257
  exports.se_DeleteConfigurationSetEventDestinationCommand = se_DeleteConfigurationSetEventDestinationCommand;
376
258
  const se_DeleteContactCommand = async (input, context) => {
377
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
259
+ const b = (0, core_1.requestBuilder)(input, context);
378
260
  const headers = {};
379
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
380
- "/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}";
381
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactListName", () => input.ContactListName, "{ContactListName}", false);
382
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailAddress", () => input.EmailAddress, "{EmailAddress}", false);
261
+ b.bp("/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}");
262
+ b.p("ContactListName", () => input.ContactListName, "{ContactListName}", false);
263
+ b.p("EmailAddress", () => input.EmailAddress, "{EmailAddress}", false);
383
264
  let body;
384
- return new protocol_http_1.HttpRequest({
385
- protocol,
386
- hostname,
387
- port,
388
- method: "DELETE",
389
- headers,
390
- path: resolvedPath,
391
- body,
392
- });
265
+ b.m("DELETE").h(headers).b(body);
266
+ return b.build();
393
267
  };
394
268
  exports.se_DeleteContactCommand = se_DeleteContactCommand;
395
269
  const se_DeleteContactListCommand = async (input, context) => {
396
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
270
+ const b = (0, core_1.requestBuilder)(input, context);
397
271
  const headers = {};
398
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists/{ContactListName}";
399
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactListName", () => input.ContactListName, "{ContactListName}", false);
272
+ b.bp("/v2/email/contact-lists/{ContactListName}");
273
+ b.p("ContactListName", () => input.ContactListName, "{ContactListName}", false);
400
274
  let body;
401
- return new protocol_http_1.HttpRequest({
402
- protocol,
403
- hostname,
404
- port,
405
- method: "DELETE",
406
- headers,
407
- path: resolvedPath,
408
- body,
409
- });
275
+ b.m("DELETE").h(headers).b(body);
276
+ return b.build();
410
277
  };
411
278
  exports.se_DeleteContactListCommand = se_DeleteContactListCommand;
412
279
  const se_DeleteCustomVerificationEmailTemplateCommand = async (input, context) => {
413
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
280
+ const b = (0, core_1.requestBuilder)(input, context);
414
281
  const headers = {};
415
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
416
- "/v2/email/custom-verification-email-templates/{TemplateName}";
417
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
282
+ b.bp("/v2/email/custom-verification-email-templates/{TemplateName}");
283
+ b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
418
284
  let body;
419
- return new protocol_http_1.HttpRequest({
420
- protocol,
421
- hostname,
422
- port,
423
- method: "DELETE",
424
- headers,
425
- path: resolvedPath,
426
- body,
427
- });
285
+ b.m("DELETE").h(headers).b(body);
286
+ return b.build();
428
287
  };
429
288
  exports.se_DeleteCustomVerificationEmailTemplateCommand = se_DeleteCustomVerificationEmailTemplateCommand;
430
289
  const se_DeleteDedicatedIpPoolCommand = async (input, context) => {
431
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
290
+ const b = (0, core_1.requestBuilder)(input, context);
432
291
  const headers = {};
433
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ip-pools/{PoolName}";
434
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PoolName", () => input.PoolName, "{PoolName}", false);
292
+ b.bp("/v2/email/dedicated-ip-pools/{PoolName}");
293
+ b.p("PoolName", () => input.PoolName, "{PoolName}", false);
435
294
  let body;
436
- return new protocol_http_1.HttpRequest({
437
- protocol,
438
- hostname,
439
- port,
440
- method: "DELETE",
441
- headers,
442
- path: resolvedPath,
443
- body,
444
- });
295
+ b.m("DELETE").h(headers).b(body);
296
+ return b.build();
445
297
  };
446
298
  exports.se_DeleteDedicatedIpPoolCommand = se_DeleteDedicatedIpPoolCommand;
447
299
  const se_DeleteEmailIdentityCommand = async (input, context) => {
448
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
300
+ const b = (0, core_1.requestBuilder)(input, context);
449
301
  const headers = {};
450
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities/{EmailIdentity}";
451
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
302
+ b.bp("/v2/email/identities/{EmailIdentity}");
303
+ b.p("EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
452
304
  let body;
453
- return new protocol_http_1.HttpRequest({
454
- protocol,
455
- hostname,
456
- port,
457
- method: "DELETE",
458
- headers,
459
- path: resolvedPath,
460
- body,
461
- });
305
+ b.m("DELETE").h(headers).b(body);
306
+ return b.build();
462
307
  };
463
308
  exports.se_DeleteEmailIdentityCommand = se_DeleteEmailIdentityCommand;
464
309
  const se_DeleteEmailIdentityPolicyCommand = async (input, context) => {
465
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
310
+ const b = (0, core_1.requestBuilder)(input, context);
466
311
  const headers = {};
467
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
468
- "/v2/email/identities/{EmailIdentity}/policies/{PolicyName}";
469
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
470
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyName", () => input.PolicyName, "{PolicyName}", false);
312
+ b.bp("/v2/email/identities/{EmailIdentity}/policies/{PolicyName}");
313
+ b.p("EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
314
+ b.p("PolicyName", () => input.PolicyName, "{PolicyName}", false);
471
315
  let body;
472
- return new protocol_http_1.HttpRequest({
473
- protocol,
474
- hostname,
475
- port,
476
- method: "DELETE",
477
- headers,
478
- path: resolvedPath,
479
- body,
480
- });
316
+ b.m("DELETE").h(headers).b(body);
317
+ return b.build();
481
318
  };
482
319
  exports.se_DeleteEmailIdentityPolicyCommand = se_DeleteEmailIdentityPolicyCommand;
483
320
  const se_DeleteEmailTemplateCommand = async (input, context) => {
484
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
321
+ const b = (0, core_1.requestBuilder)(input, context);
485
322
  const headers = {};
486
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates/{TemplateName}";
487
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
323
+ b.bp("/v2/email/templates/{TemplateName}");
324
+ b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
488
325
  let body;
489
- return new protocol_http_1.HttpRequest({
490
- protocol,
491
- hostname,
492
- port,
493
- method: "DELETE",
494
- headers,
495
- path: resolvedPath,
496
- body,
497
- });
326
+ b.m("DELETE").h(headers).b(body);
327
+ return b.build();
498
328
  };
499
329
  exports.se_DeleteEmailTemplateCommand = se_DeleteEmailTemplateCommand;
500
330
  const se_DeleteSuppressedDestinationCommand = async (input, context) => {
501
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
331
+ const b = (0, core_1.requestBuilder)(input, context);
502
332
  const headers = {};
503
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
504
- "/v2/email/suppression/addresses/{EmailAddress}";
505
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailAddress", () => input.EmailAddress, "{EmailAddress}", false);
333
+ b.bp("/v2/email/suppression/addresses/{EmailAddress}");
334
+ b.p("EmailAddress", () => input.EmailAddress, "{EmailAddress}", false);
506
335
  let body;
507
- return new protocol_http_1.HttpRequest({
508
- protocol,
509
- hostname,
510
- port,
511
- method: "DELETE",
512
- headers,
513
- path: resolvedPath,
514
- body,
515
- });
336
+ b.m("DELETE").h(headers).b(body);
337
+ return b.build();
516
338
  };
517
339
  exports.se_DeleteSuppressedDestinationCommand = se_DeleteSuppressedDestinationCommand;
518
340
  const se_GetAccountCommand = async (input, context) => {
519
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
341
+ const b = (0, core_1.requestBuilder)(input, context);
520
342
  const headers = {
521
343
  "content-type": "application/json",
522
344
  };
523
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account";
345
+ b.bp("/v2/email/account");
524
346
  let body;
525
347
  body = "";
526
- return new protocol_http_1.HttpRequest({
527
- protocol,
528
- hostname,
529
- port,
530
- method: "GET",
531
- headers,
532
- path: resolvedPath,
533
- body,
534
- });
348
+ b.m("GET").h(headers).b(body);
349
+ return b.build();
535
350
  };
536
351
  exports.se_GetAccountCommand = se_GetAccountCommand;
537
352
  const se_GetBlacklistReportsCommand = async (input, context) => {
538
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
353
+ const b = (0, core_1.requestBuilder)(input, context);
539
354
  const headers = {};
540
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
541
- "/v2/email/deliverability-dashboard/blacklist-report";
355
+ b.bp("/v2/email/deliverability-dashboard/blacklist-report");
542
356
  const query = (0, smithy_client_1.map)({
543
- BlacklistItemNames: [
357
+ [_BIN]: [
544
358
  (0, smithy_client_1.expectNonNull)(input.BlacklistItemNames, `BlacklistItemNames`) != null,
545
- () => (input.BlacklistItemNames || []).map((_entry) => _entry),
359
+ () => (input[_BIN] || []).map((_entry) => _entry),
546
360
  ],
547
361
  });
548
362
  let body;
549
- return new protocol_http_1.HttpRequest({
550
- protocol,
551
- hostname,
552
- port,
553
- method: "GET",
554
- headers,
555
- path: resolvedPath,
556
- query,
557
- body,
558
- });
363
+ b.m("GET").h(headers).q(query).b(body);
364
+ return b.build();
559
365
  };
560
366
  exports.se_GetBlacklistReportsCommand = se_GetBlacklistReportsCommand;
561
367
  const se_GetConfigurationSetCommand = async (input, context) => {
562
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
368
+ const b = (0, core_1.requestBuilder)(input, context);
563
369
  const headers = {};
564
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
565
- "/v2/email/configuration-sets/{ConfigurationSetName}";
566
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
370
+ b.bp("/v2/email/configuration-sets/{ConfigurationSetName}");
371
+ b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
567
372
  let body;
568
- return new protocol_http_1.HttpRequest({
569
- protocol,
570
- hostname,
571
- port,
572
- method: "GET",
573
- headers,
574
- path: resolvedPath,
575
- body,
576
- });
373
+ b.m("GET").h(headers).b(body);
374
+ return b.build();
577
375
  };
578
376
  exports.se_GetConfigurationSetCommand = se_GetConfigurationSetCommand;
579
377
  const se_GetConfigurationSetEventDestinationsCommand = async (input, context) => {
580
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
378
+ const b = (0, core_1.requestBuilder)(input, context);
581
379
  const headers = {};
582
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
583
- "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations";
584
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
380
+ b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations");
381
+ b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
585
382
  let body;
586
- return new protocol_http_1.HttpRequest({
587
- protocol,
588
- hostname,
589
- port,
590
- method: "GET",
591
- headers,
592
- path: resolvedPath,
593
- body,
594
- });
383
+ b.m("GET").h(headers).b(body);
384
+ return b.build();
595
385
  };
596
386
  exports.se_GetConfigurationSetEventDestinationsCommand = se_GetConfigurationSetEventDestinationsCommand;
597
387
  const se_GetContactCommand = async (input, context) => {
598
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
388
+ const b = (0, core_1.requestBuilder)(input, context);
599
389
  const headers = {};
600
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
601
- "/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}";
602
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactListName", () => input.ContactListName, "{ContactListName}", false);
603
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailAddress", () => input.EmailAddress, "{EmailAddress}", false);
390
+ b.bp("/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}");
391
+ b.p("ContactListName", () => input.ContactListName, "{ContactListName}", false);
392
+ b.p("EmailAddress", () => input.EmailAddress, "{EmailAddress}", false);
604
393
  let body;
605
- return new protocol_http_1.HttpRequest({
606
- protocol,
607
- hostname,
608
- port,
609
- method: "GET",
610
- headers,
611
- path: resolvedPath,
612
- body,
613
- });
394
+ b.m("GET").h(headers).b(body);
395
+ return b.build();
614
396
  };
615
397
  exports.se_GetContactCommand = se_GetContactCommand;
616
398
  const se_GetContactListCommand = async (input, context) => {
617
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
399
+ const b = (0, core_1.requestBuilder)(input, context);
618
400
  const headers = {};
619
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists/{ContactListName}";
620
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactListName", () => input.ContactListName, "{ContactListName}", false);
401
+ b.bp("/v2/email/contact-lists/{ContactListName}");
402
+ b.p("ContactListName", () => input.ContactListName, "{ContactListName}", false);
621
403
  let body;
622
- return new protocol_http_1.HttpRequest({
623
- protocol,
624
- hostname,
625
- port,
626
- method: "GET",
627
- headers,
628
- path: resolvedPath,
629
- body,
630
- });
404
+ b.m("GET").h(headers).b(body);
405
+ return b.build();
631
406
  };
632
407
  exports.se_GetContactListCommand = se_GetContactListCommand;
633
408
  const se_GetCustomVerificationEmailTemplateCommand = async (input, context) => {
634
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
409
+ const b = (0, core_1.requestBuilder)(input, context);
635
410
  const headers = {};
636
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
637
- "/v2/email/custom-verification-email-templates/{TemplateName}";
638
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
411
+ b.bp("/v2/email/custom-verification-email-templates/{TemplateName}");
412
+ b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
639
413
  let body;
640
- return new protocol_http_1.HttpRequest({
641
- protocol,
642
- hostname,
643
- port,
644
- method: "GET",
645
- headers,
646
- path: resolvedPath,
647
- body,
648
- });
414
+ b.m("GET").h(headers).b(body);
415
+ return b.build();
649
416
  };
650
417
  exports.se_GetCustomVerificationEmailTemplateCommand = se_GetCustomVerificationEmailTemplateCommand;
651
418
  const se_GetDedicatedIpCommand = async (input, context) => {
652
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
419
+ const b = (0, core_1.requestBuilder)(input, context);
653
420
  const headers = {};
654
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ips/{Ip}";
655
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Ip", () => input.Ip, "{Ip}", false);
421
+ b.bp("/v2/email/dedicated-ips/{Ip}");
422
+ b.p("Ip", () => input.Ip, "{Ip}", false);
656
423
  let body;
657
- return new protocol_http_1.HttpRequest({
658
- protocol,
659
- hostname,
660
- port,
661
- method: "GET",
662
- headers,
663
- path: resolvedPath,
664
- body,
665
- });
424
+ b.m("GET").h(headers).b(body);
425
+ return b.build();
666
426
  };
667
427
  exports.se_GetDedicatedIpCommand = se_GetDedicatedIpCommand;
668
428
  const se_GetDedicatedIpPoolCommand = async (input, context) => {
669
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
429
+ const b = (0, core_1.requestBuilder)(input, context);
670
430
  const headers = {};
671
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ip-pools/{PoolName}";
672
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PoolName", () => input.PoolName, "{PoolName}", false);
431
+ b.bp("/v2/email/dedicated-ip-pools/{PoolName}");
432
+ b.p("PoolName", () => input.PoolName, "{PoolName}", false);
673
433
  let body;
674
- return new protocol_http_1.HttpRequest({
675
- protocol,
676
- hostname,
677
- port,
678
- method: "GET",
679
- headers,
680
- path: resolvedPath,
681
- body,
682
- });
434
+ b.m("GET").h(headers).b(body);
435
+ return b.build();
683
436
  };
684
437
  exports.se_GetDedicatedIpPoolCommand = se_GetDedicatedIpPoolCommand;
685
438
  const se_GetDedicatedIpsCommand = async (input, context) => {
686
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
439
+ const b = (0, core_1.requestBuilder)(input, context);
687
440
  const headers = {};
688
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ips";
441
+ b.bp("/v2/email/dedicated-ips");
689
442
  const query = (0, smithy_client_1.map)({
690
- PoolName: [, input.PoolName],
691
- NextToken: [, input.NextToken],
692
- PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
443
+ [_PN]: [, input[_PN]],
444
+ [_NT]: [, input[_NT]],
445
+ [_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
693
446
  });
694
447
  let body;
695
- return new protocol_http_1.HttpRequest({
696
- protocol,
697
- hostname,
698
- port,
699
- method: "GET",
700
- headers,
701
- path: resolvedPath,
702
- query,
703
- body,
704
- });
448
+ b.m("GET").h(headers).q(query).b(body);
449
+ return b.build();
705
450
  };
706
451
  exports.se_GetDedicatedIpsCommand = se_GetDedicatedIpsCommand;
707
452
  const se_GetDeliverabilityDashboardOptionsCommand = async (input, context) => {
708
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
453
+ const b = (0, core_1.requestBuilder)(input, context);
709
454
  const headers = {
710
455
  "content-type": "application/json",
711
456
  };
712
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/deliverability-dashboard";
457
+ b.bp("/v2/email/deliverability-dashboard");
713
458
  let body;
714
459
  body = "";
715
- return new protocol_http_1.HttpRequest({
716
- protocol,
717
- hostname,
718
- port,
719
- method: "GET",
720
- headers,
721
- path: resolvedPath,
722
- body,
723
- });
460
+ b.m("GET").h(headers).b(body);
461
+ return b.build();
724
462
  };
725
463
  exports.se_GetDeliverabilityDashboardOptionsCommand = se_GetDeliverabilityDashboardOptionsCommand;
726
464
  const se_GetDeliverabilityTestReportCommand = async (input, context) => {
727
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
465
+ const b = (0, core_1.requestBuilder)(input, context);
728
466
  const headers = {};
729
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
730
- "/v2/email/deliverability-dashboard/test-reports/{ReportId}";
731
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReportId", () => input.ReportId, "{ReportId}", false);
467
+ b.bp("/v2/email/deliverability-dashboard/test-reports/{ReportId}");
468
+ b.p("ReportId", () => input.ReportId, "{ReportId}", false);
732
469
  let body;
733
- return new protocol_http_1.HttpRequest({
734
- protocol,
735
- hostname,
736
- port,
737
- method: "GET",
738
- headers,
739
- path: resolvedPath,
740
- body,
741
- });
470
+ b.m("GET").h(headers).b(body);
471
+ return b.build();
742
472
  };
743
473
  exports.se_GetDeliverabilityTestReportCommand = se_GetDeliverabilityTestReportCommand;
744
474
  const se_GetDomainDeliverabilityCampaignCommand = async (input, context) => {
745
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
475
+ const b = (0, core_1.requestBuilder)(input, context);
746
476
  const headers = {};
747
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
748
- "/v2/email/deliverability-dashboard/campaigns/{CampaignId}";
749
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CampaignId", () => input.CampaignId, "{CampaignId}", false);
477
+ b.bp("/v2/email/deliverability-dashboard/campaigns/{CampaignId}");
478
+ b.p("CampaignId", () => input.CampaignId, "{CampaignId}", false);
750
479
  let body;
751
- return new protocol_http_1.HttpRequest({
752
- protocol,
753
- hostname,
754
- port,
755
- method: "GET",
756
- headers,
757
- path: resolvedPath,
758
- body,
759
- });
480
+ b.m("GET").h(headers).b(body);
481
+ return b.build();
760
482
  };
761
483
  exports.se_GetDomainDeliverabilityCampaignCommand = se_GetDomainDeliverabilityCampaignCommand;
762
484
  const se_GetDomainStatisticsReportCommand = async (input, context) => {
763
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
485
+ const b = (0, core_1.requestBuilder)(input, context);
764
486
  const headers = {};
765
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
766
- "/v2/email/deliverability-dashboard/statistics-report/{Domain}";
767
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Domain", () => input.Domain, "{Domain}", false);
487
+ b.bp("/v2/email/deliverability-dashboard/statistics-report/{Domain}");
488
+ b.p("Domain", () => input.Domain, "{Domain}", false);
768
489
  const query = (0, smithy_client_1.map)({
769
- StartDate: [
490
+ [_SD]: [
770
491
  (0, smithy_client_1.expectNonNull)(input.StartDate, `StartDate`) != null,
771
- () => (input.StartDate.toISOString().split(".")[0] + "Z").toString(),
492
+ () => (input[_SD].toISOString().split(".")[0] + "Z").toString(),
772
493
  ],
773
- EndDate: [
494
+ [_ED]: [
774
495
  (0, smithy_client_1.expectNonNull)(input.EndDate, `EndDate`) != null,
775
- () => (input.EndDate.toISOString().split(".")[0] + "Z").toString(),
496
+ () => (input[_ED].toISOString().split(".")[0] + "Z").toString(),
776
497
  ],
777
498
  });
778
499
  let body;
779
- return new protocol_http_1.HttpRequest({
780
- protocol,
781
- hostname,
782
- port,
783
- method: "GET",
784
- headers,
785
- path: resolvedPath,
786
- query,
787
- body,
788
- });
500
+ b.m("GET").h(headers).q(query).b(body);
501
+ return b.build();
789
502
  };
790
503
  exports.se_GetDomainStatisticsReportCommand = se_GetDomainStatisticsReportCommand;
791
504
  const se_GetEmailIdentityCommand = async (input, context) => {
792
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
505
+ const b = (0, core_1.requestBuilder)(input, context);
793
506
  const headers = {};
794
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities/{EmailIdentity}";
795
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
507
+ b.bp("/v2/email/identities/{EmailIdentity}");
508
+ b.p("EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
796
509
  let body;
797
- return new protocol_http_1.HttpRequest({
798
- protocol,
799
- hostname,
800
- port,
801
- method: "GET",
802
- headers,
803
- path: resolvedPath,
804
- body,
805
- });
510
+ b.m("GET").h(headers).b(body);
511
+ return b.build();
806
512
  };
807
513
  exports.se_GetEmailIdentityCommand = se_GetEmailIdentityCommand;
808
514
  const se_GetEmailIdentityPoliciesCommand = async (input, context) => {
809
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
515
+ const b = (0, core_1.requestBuilder)(input, context);
810
516
  const headers = {};
811
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
812
- "/v2/email/identities/{EmailIdentity}/policies";
813
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
517
+ b.bp("/v2/email/identities/{EmailIdentity}/policies");
518
+ b.p("EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
814
519
  let body;
815
- return new protocol_http_1.HttpRequest({
816
- protocol,
817
- hostname,
818
- port,
819
- method: "GET",
820
- headers,
821
- path: resolvedPath,
822
- body,
823
- });
520
+ b.m("GET").h(headers).b(body);
521
+ return b.build();
824
522
  };
825
523
  exports.se_GetEmailIdentityPoliciesCommand = se_GetEmailIdentityPoliciesCommand;
826
524
  const se_GetEmailTemplateCommand = async (input, context) => {
827
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
525
+ const b = (0, core_1.requestBuilder)(input, context);
828
526
  const headers = {};
829
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates/{TemplateName}";
830
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
527
+ b.bp("/v2/email/templates/{TemplateName}");
528
+ b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
831
529
  let body;
832
- return new protocol_http_1.HttpRequest({
833
- protocol,
834
- hostname,
835
- port,
836
- method: "GET",
837
- headers,
838
- path: resolvedPath,
839
- body,
840
- });
530
+ b.m("GET").h(headers).b(body);
531
+ return b.build();
841
532
  };
842
533
  exports.se_GetEmailTemplateCommand = se_GetEmailTemplateCommand;
843
534
  const se_GetExportJobCommand = async (input, context) => {
844
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
535
+ const b = (0, core_1.requestBuilder)(input, context);
845
536
  const headers = {};
846
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/export-jobs/{JobId}";
847
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
537
+ b.bp("/v2/email/export-jobs/{JobId}");
538
+ b.p("JobId", () => input.JobId, "{JobId}", false);
848
539
  let body;
849
- return new protocol_http_1.HttpRequest({
850
- protocol,
851
- hostname,
852
- port,
853
- method: "GET",
854
- headers,
855
- path: resolvedPath,
856
- body,
857
- });
540
+ b.m("GET").h(headers).b(body);
541
+ return b.build();
858
542
  };
859
543
  exports.se_GetExportJobCommand = se_GetExportJobCommand;
860
544
  const se_GetImportJobCommand = async (input, context) => {
861
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
545
+ const b = (0, core_1.requestBuilder)(input, context);
862
546
  const headers = {};
863
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/import-jobs/{JobId}";
864
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
547
+ b.bp("/v2/email/import-jobs/{JobId}");
548
+ b.p("JobId", () => input.JobId, "{JobId}", false);
865
549
  let body;
866
- return new protocol_http_1.HttpRequest({
867
- protocol,
868
- hostname,
869
- port,
870
- method: "GET",
871
- headers,
872
- path: resolvedPath,
873
- body,
874
- });
550
+ b.m("GET").h(headers).b(body);
551
+ return b.build();
875
552
  };
876
553
  exports.se_GetImportJobCommand = se_GetImportJobCommand;
877
554
  const se_GetMessageInsightsCommand = async (input, context) => {
878
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
555
+ const b = (0, core_1.requestBuilder)(input, context);
879
556
  const headers = {};
880
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/insights/{MessageId}";
881
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MessageId", () => input.MessageId, "{MessageId}", false);
557
+ b.bp("/v2/email/insights/{MessageId}");
558
+ b.p("MessageId", () => input.MessageId, "{MessageId}", false);
882
559
  let body;
883
- return new protocol_http_1.HttpRequest({
884
- protocol,
885
- hostname,
886
- port,
887
- method: "GET",
888
- headers,
889
- path: resolvedPath,
890
- body,
891
- });
560
+ b.m("GET").h(headers).b(body);
561
+ return b.build();
892
562
  };
893
563
  exports.se_GetMessageInsightsCommand = se_GetMessageInsightsCommand;
894
564
  const se_GetSuppressedDestinationCommand = async (input, context) => {
895
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
565
+ const b = (0, core_1.requestBuilder)(input, context);
896
566
  const headers = {};
897
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
898
- "/v2/email/suppression/addresses/{EmailAddress}";
899
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailAddress", () => input.EmailAddress, "{EmailAddress}", false);
567
+ b.bp("/v2/email/suppression/addresses/{EmailAddress}");
568
+ b.p("EmailAddress", () => input.EmailAddress, "{EmailAddress}", false);
900
569
  let body;
901
- return new protocol_http_1.HttpRequest({
902
- protocol,
903
- hostname,
904
- port,
905
- method: "GET",
906
- headers,
907
- path: resolvedPath,
908
- body,
909
- });
570
+ b.m("GET").h(headers).b(body);
571
+ return b.build();
910
572
  };
911
573
  exports.se_GetSuppressedDestinationCommand = se_GetSuppressedDestinationCommand;
912
574
  const se_ListConfigurationSetsCommand = async (input, context) => {
913
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
575
+ const b = (0, core_1.requestBuilder)(input, context);
914
576
  const headers = {};
915
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/configuration-sets";
577
+ b.bp("/v2/email/configuration-sets");
916
578
  const query = (0, smithy_client_1.map)({
917
- NextToken: [, input.NextToken],
918
- PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
579
+ [_NT]: [, input[_NT]],
580
+ [_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
919
581
  });
920
582
  let body;
921
- return new protocol_http_1.HttpRequest({
922
- protocol,
923
- hostname,
924
- port,
925
- method: "GET",
926
- headers,
927
- path: resolvedPath,
928
- query,
929
- body,
930
- });
583
+ b.m("GET").h(headers).q(query).b(body);
584
+ return b.build();
931
585
  };
932
586
  exports.se_ListConfigurationSetsCommand = se_ListConfigurationSetsCommand;
933
587
  const se_ListContactListsCommand = async (input, context) => {
934
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
588
+ const b = (0, core_1.requestBuilder)(input, context);
935
589
  const headers = {};
936
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists";
590
+ b.bp("/v2/email/contact-lists");
937
591
  const query = (0, smithy_client_1.map)({
938
- PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
939
- NextToken: [, input.NextToken],
592
+ [_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
593
+ [_NT]: [, input[_NT]],
940
594
  });
941
595
  let body;
942
- return new protocol_http_1.HttpRequest({
943
- protocol,
944
- hostname,
945
- port,
946
- method: "GET",
947
- headers,
948
- path: resolvedPath,
949
- query,
950
- body,
951
- });
596
+ b.m("GET").h(headers).q(query).b(body);
597
+ return b.build();
952
598
  };
953
599
  exports.se_ListContactListsCommand = se_ListContactListsCommand;
954
600
  const se_ListContactsCommand = async (input, context) => {
955
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
601
+ const b = (0, core_1.requestBuilder)(input, context);
956
602
  const headers = {
957
603
  "content-type": "application/json",
958
604
  };
959
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
960
- "/v2/email/contact-lists/{ContactListName}/contacts";
961
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactListName", () => input.ContactListName, "{ContactListName}", false);
605
+ b.bp("/v2/email/contact-lists/{ContactListName}/contacts");
606
+ b.p("ContactListName", () => input.ContactListName, "{ContactListName}", false);
962
607
  const query = (0, smithy_client_1.map)({
963
- PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
964
- NextToken: [, input.NextToken],
608
+ [_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
609
+ [_NT]: [, input[_NT]],
965
610
  });
966
611
  let body;
967
612
  body = JSON.stringify((0, smithy_client_1.take)(input, {
968
613
  Filter: (_) => (0, smithy_client_1._json)(_),
969
614
  }));
970
- return new protocol_http_1.HttpRequest({
971
- protocol,
972
- hostname,
973
- port,
974
- method: "GET",
975
- headers,
976
- path: resolvedPath,
977
- query,
978
- body,
979
- });
615
+ b.m("GET").h(headers).q(query).b(body);
616
+ return b.build();
980
617
  };
981
618
  exports.se_ListContactsCommand = se_ListContactsCommand;
982
619
  const se_ListCustomVerificationEmailTemplatesCommand = async (input, context) => {
983
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
620
+ const b = (0, core_1.requestBuilder)(input, context);
984
621
  const headers = {};
985
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
986
- "/v2/email/custom-verification-email-templates";
622
+ b.bp("/v2/email/custom-verification-email-templates");
987
623
  const query = (0, smithy_client_1.map)({
988
- NextToken: [, input.NextToken],
989
- PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
624
+ [_NT]: [, input[_NT]],
625
+ [_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
990
626
  });
991
627
  let body;
992
- return new protocol_http_1.HttpRequest({
993
- protocol,
994
- hostname,
995
- port,
996
- method: "GET",
997
- headers,
998
- path: resolvedPath,
999
- query,
1000
- body,
1001
- });
628
+ b.m("GET").h(headers).q(query).b(body);
629
+ return b.build();
1002
630
  };
1003
631
  exports.se_ListCustomVerificationEmailTemplatesCommand = se_ListCustomVerificationEmailTemplatesCommand;
1004
632
  const se_ListDedicatedIpPoolsCommand = async (input, context) => {
1005
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
633
+ const b = (0, core_1.requestBuilder)(input, context);
1006
634
  const headers = {};
1007
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ip-pools";
635
+ b.bp("/v2/email/dedicated-ip-pools");
1008
636
  const query = (0, smithy_client_1.map)({
1009
- NextToken: [, input.NextToken],
1010
- PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
637
+ [_NT]: [, input[_NT]],
638
+ [_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
1011
639
  });
1012
640
  let body;
1013
- return new protocol_http_1.HttpRequest({
1014
- protocol,
1015
- hostname,
1016
- port,
1017
- method: "GET",
1018
- headers,
1019
- path: resolvedPath,
1020
- query,
1021
- body,
1022
- });
641
+ b.m("GET").h(headers).q(query).b(body);
642
+ return b.build();
1023
643
  };
1024
644
  exports.se_ListDedicatedIpPoolsCommand = se_ListDedicatedIpPoolsCommand;
1025
645
  const se_ListDeliverabilityTestReportsCommand = async (input, context) => {
1026
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
646
+ const b = (0, core_1.requestBuilder)(input, context);
1027
647
  const headers = {};
1028
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1029
- "/v2/email/deliverability-dashboard/test-reports";
648
+ b.bp("/v2/email/deliverability-dashboard/test-reports");
1030
649
  const query = (0, smithy_client_1.map)({
1031
- NextToken: [, input.NextToken],
1032
- PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
650
+ [_NT]: [, input[_NT]],
651
+ [_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
1033
652
  });
1034
653
  let body;
1035
- return new protocol_http_1.HttpRequest({
1036
- protocol,
1037
- hostname,
1038
- port,
1039
- method: "GET",
1040
- headers,
1041
- path: resolvedPath,
1042
- query,
1043
- body,
1044
- });
654
+ b.m("GET").h(headers).q(query).b(body);
655
+ return b.build();
1045
656
  };
1046
657
  exports.se_ListDeliverabilityTestReportsCommand = se_ListDeliverabilityTestReportsCommand;
1047
658
  const se_ListDomainDeliverabilityCampaignsCommand = async (input, context) => {
1048
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
659
+ const b = (0, core_1.requestBuilder)(input, context);
1049
660
  const headers = {};
1050
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1051
- "/v2/email/deliverability-dashboard/domains/{SubscribedDomain}/campaigns";
1052
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SubscribedDomain", () => input.SubscribedDomain, "{SubscribedDomain}", false);
661
+ b.bp("/v2/email/deliverability-dashboard/domains/{SubscribedDomain}/campaigns");
662
+ b.p("SubscribedDomain", () => input.SubscribedDomain, "{SubscribedDomain}", false);
1053
663
  const query = (0, smithy_client_1.map)({
1054
- StartDate: [
664
+ [_SD]: [
1055
665
  (0, smithy_client_1.expectNonNull)(input.StartDate, `StartDate`) != null,
1056
- () => (input.StartDate.toISOString().split(".")[0] + "Z").toString(),
666
+ () => (input[_SD].toISOString().split(".")[0] + "Z").toString(),
1057
667
  ],
1058
- EndDate: [
668
+ [_ED]: [
1059
669
  (0, smithy_client_1.expectNonNull)(input.EndDate, `EndDate`) != null,
1060
- () => (input.EndDate.toISOString().split(".")[0] + "Z").toString(),
670
+ () => (input[_ED].toISOString().split(".")[0] + "Z").toString(),
1061
671
  ],
1062
- NextToken: [, input.NextToken],
1063
- PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
672
+ [_NT]: [, input[_NT]],
673
+ [_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
1064
674
  });
1065
675
  let body;
1066
- return new protocol_http_1.HttpRequest({
1067
- protocol,
1068
- hostname,
1069
- port,
1070
- method: "GET",
1071
- headers,
1072
- path: resolvedPath,
1073
- query,
1074
- body,
1075
- });
676
+ b.m("GET").h(headers).q(query).b(body);
677
+ return b.build();
1076
678
  };
1077
679
  exports.se_ListDomainDeliverabilityCampaignsCommand = se_ListDomainDeliverabilityCampaignsCommand;
1078
680
  const se_ListEmailIdentitiesCommand = async (input, context) => {
1079
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
681
+ const b = (0, core_1.requestBuilder)(input, context);
1080
682
  const headers = {};
1081
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities";
683
+ b.bp("/v2/email/identities");
1082
684
  const query = (0, smithy_client_1.map)({
1083
- NextToken: [, input.NextToken],
1084
- PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
685
+ [_NT]: [, input[_NT]],
686
+ [_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
1085
687
  });
1086
688
  let body;
1087
- return new protocol_http_1.HttpRequest({
1088
- protocol,
1089
- hostname,
1090
- port,
1091
- method: "GET",
1092
- headers,
1093
- path: resolvedPath,
1094
- query,
1095
- body,
1096
- });
689
+ b.m("GET").h(headers).q(query).b(body);
690
+ return b.build();
1097
691
  };
1098
692
  exports.se_ListEmailIdentitiesCommand = se_ListEmailIdentitiesCommand;
1099
693
  const se_ListEmailTemplatesCommand = async (input, context) => {
1100
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
694
+ const b = (0, core_1.requestBuilder)(input, context);
1101
695
  const headers = {};
1102
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates";
696
+ b.bp("/v2/email/templates");
1103
697
  const query = (0, smithy_client_1.map)({
1104
- NextToken: [, input.NextToken],
1105
- PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
698
+ [_NT]: [, input[_NT]],
699
+ [_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
1106
700
  });
1107
701
  let body;
1108
- return new protocol_http_1.HttpRequest({
1109
- protocol,
1110
- hostname,
1111
- port,
1112
- method: "GET",
1113
- headers,
1114
- path: resolvedPath,
1115
- query,
1116
- body,
1117
- });
702
+ b.m("GET").h(headers).q(query).b(body);
703
+ return b.build();
1118
704
  };
1119
705
  exports.se_ListEmailTemplatesCommand = se_ListEmailTemplatesCommand;
1120
706
  const se_ListExportJobsCommand = async (input, context) => {
1121
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
707
+ const b = (0, core_1.requestBuilder)(input, context);
1122
708
  const headers = {
1123
709
  "content-type": "application/json",
1124
710
  };
1125
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/list-export-jobs";
711
+ b.bp("/v2/email/list-export-jobs");
1126
712
  let body;
1127
713
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1128
714
  ExportSourceType: [],
@@ -1130,140 +716,92 @@ const se_ListExportJobsCommand = async (input, context) => {
1130
716
  NextToken: [],
1131
717
  PageSize: [],
1132
718
  }));
1133
- return new protocol_http_1.HttpRequest({
1134
- protocol,
1135
- hostname,
1136
- port,
1137
- method: "POST",
1138
- headers,
1139
- path: resolvedPath,
1140
- body,
1141
- });
719
+ b.m("POST").h(headers).b(body);
720
+ return b.build();
1142
721
  };
1143
722
  exports.se_ListExportJobsCommand = se_ListExportJobsCommand;
1144
723
  const se_ListImportJobsCommand = async (input, context) => {
1145
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
724
+ const b = (0, core_1.requestBuilder)(input, context);
1146
725
  const headers = {
1147
726
  "content-type": "application/json",
1148
727
  };
1149
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/import-jobs";
728
+ b.bp("/v2/email/import-jobs");
1150
729
  const query = (0, smithy_client_1.map)({
1151
- NextToken: [, input.NextToken],
1152
- PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
730
+ [_NT]: [, input[_NT]],
731
+ [_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
1153
732
  });
1154
733
  let body;
1155
734
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1156
735
  ImportDestinationType: [],
1157
736
  }));
1158
- return new protocol_http_1.HttpRequest({
1159
- protocol,
1160
- hostname,
1161
- port,
1162
- method: "GET",
1163
- headers,
1164
- path: resolvedPath,
1165
- query,
1166
- body,
1167
- });
737
+ b.m("GET").h(headers).q(query).b(body);
738
+ return b.build();
1168
739
  };
1169
740
  exports.se_ListImportJobsCommand = se_ListImportJobsCommand;
1170
741
  const se_ListRecommendationsCommand = async (input, context) => {
1171
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
742
+ const b = (0, core_1.requestBuilder)(input, context);
1172
743
  const headers = {
1173
744
  "content-type": "application/json",
1174
745
  };
1175
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/vdm/recommendations";
746
+ b.bp("/v2/email/vdm/recommendations");
1176
747
  let body;
1177
748
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1178
749
  Filter: (_) => (0, smithy_client_1._json)(_),
1179
750
  NextToken: [],
1180
751
  PageSize: [],
1181
752
  }));
1182
- return new protocol_http_1.HttpRequest({
1183
- protocol,
1184
- hostname,
1185
- port,
1186
- method: "POST",
1187
- headers,
1188
- path: resolvedPath,
1189
- body,
1190
- });
753
+ b.m("POST").h(headers).b(body);
754
+ return b.build();
1191
755
  };
1192
756
  exports.se_ListRecommendationsCommand = se_ListRecommendationsCommand;
1193
757
  const se_ListSuppressedDestinationsCommand = async (input, context) => {
1194
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
758
+ const b = (0, core_1.requestBuilder)(input, context);
1195
759
  const headers = {};
1196
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/suppression/addresses";
760
+ b.bp("/v2/email/suppression/addresses");
1197
761
  const query = (0, smithy_client_1.map)({
1198
- Reason: [() => input.Reasons !== void 0, () => (input.Reasons || []).map((_entry) => _entry)],
1199
- StartDate: [
1200
- () => input.StartDate !== void 0,
1201
- () => (input.StartDate.toISOString().split(".")[0] + "Z").toString(),
1202
- ],
1203
- EndDate: [() => input.EndDate !== void 0, () => (input.EndDate.toISOString().split(".")[0] + "Z").toString()],
1204
- NextToken: [, input.NextToken],
1205
- PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
762
+ [_Re]: [() => input.Reasons !== void 0, () => (input[_R] || []).map((_entry) => _entry)],
763
+ [_SD]: [() => input.StartDate !== void 0, () => (input[_SD].toISOString().split(".")[0] + "Z").toString()],
764
+ [_ED]: [() => input.EndDate !== void 0, () => (input[_ED].toISOString().split(".")[0] + "Z").toString()],
765
+ [_NT]: [, input[_NT]],
766
+ [_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
1206
767
  });
1207
768
  let body;
1208
- return new protocol_http_1.HttpRequest({
1209
- protocol,
1210
- hostname,
1211
- port,
1212
- method: "GET",
1213
- headers,
1214
- path: resolvedPath,
1215
- query,
1216
- body,
1217
- });
769
+ b.m("GET").h(headers).q(query).b(body);
770
+ return b.build();
1218
771
  };
1219
772
  exports.se_ListSuppressedDestinationsCommand = se_ListSuppressedDestinationsCommand;
1220
773
  const se_ListTagsForResourceCommand = async (input, context) => {
1221
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
774
+ const b = (0, core_1.requestBuilder)(input, context);
1222
775
  const headers = {};
1223
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/tags";
776
+ b.bp("/v2/email/tags");
1224
777
  const query = (0, smithy_client_1.map)({
1225
- ResourceArn: [, (0, smithy_client_1.expectNonNull)(input.ResourceArn, `ResourceArn`)],
778
+ [_RA]: [, (0, smithy_client_1.expectNonNull)(input[_RA], `ResourceArn`)],
1226
779
  });
1227
780
  let body;
1228
- return new protocol_http_1.HttpRequest({
1229
- protocol,
1230
- hostname,
1231
- port,
1232
- method: "GET",
1233
- headers,
1234
- path: resolvedPath,
1235
- query,
1236
- body,
1237
- });
781
+ b.m("GET").h(headers).q(query).b(body);
782
+ return b.build();
1238
783
  };
1239
784
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
1240
785
  const se_PutAccountDedicatedIpWarmupAttributesCommand = async (input, context) => {
1241
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
786
+ const b = (0, core_1.requestBuilder)(input, context);
1242
787
  const headers = {
1243
788
  "content-type": "application/json",
1244
789
  };
1245
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/dedicated-ips/warmup";
790
+ b.bp("/v2/email/account/dedicated-ips/warmup");
1246
791
  let body;
1247
792
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1248
793
  AutoWarmupEnabled: [],
1249
794
  }));
1250
- return new protocol_http_1.HttpRequest({
1251
- protocol,
1252
- hostname,
1253
- port,
1254
- method: "PUT",
1255
- headers,
1256
- path: resolvedPath,
1257
- body,
1258
- });
795
+ b.m("PUT").h(headers).b(body);
796
+ return b.build();
1259
797
  };
1260
798
  exports.se_PutAccountDedicatedIpWarmupAttributesCommand = se_PutAccountDedicatedIpWarmupAttributesCommand;
1261
799
  const se_PutAccountDetailsCommand = async (input, context) => {
1262
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
800
+ const b = (0, core_1.requestBuilder)(input, context);
1263
801
  const headers = {
1264
802
  "content-type": "application/json",
1265
803
  };
1266
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/details";
804
+ b.bp("/v2/email/account/details");
1267
805
  let body;
1268
806
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1269
807
  AdditionalContactEmailAddresses: (_) => (0, smithy_client_1._json)(_),
@@ -1273,452 +811,301 @@ const se_PutAccountDetailsCommand = async (input, context) => {
1273
811
  UseCaseDescription: [],
1274
812
  WebsiteURL: [],
1275
813
  }));
1276
- return new protocol_http_1.HttpRequest({
1277
- protocol,
1278
- hostname,
1279
- port,
1280
- method: "POST",
1281
- headers,
1282
- path: resolvedPath,
1283
- body,
1284
- });
814
+ b.m("POST").h(headers).b(body);
815
+ return b.build();
1285
816
  };
1286
817
  exports.se_PutAccountDetailsCommand = se_PutAccountDetailsCommand;
1287
818
  const se_PutAccountSendingAttributesCommand = async (input, context) => {
1288
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
819
+ const b = (0, core_1.requestBuilder)(input, context);
1289
820
  const headers = {
1290
821
  "content-type": "application/json",
1291
822
  };
1292
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/sending";
823
+ b.bp("/v2/email/account/sending");
1293
824
  let body;
1294
825
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1295
826
  SendingEnabled: [],
1296
827
  }));
1297
- return new protocol_http_1.HttpRequest({
1298
- protocol,
1299
- hostname,
1300
- port,
1301
- method: "PUT",
1302
- headers,
1303
- path: resolvedPath,
1304
- body,
1305
- });
828
+ b.m("PUT").h(headers).b(body);
829
+ return b.build();
1306
830
  };
1307
831
  exports.se_PutAccountSendingAttributesCommand = se_PutAccountSendingAttributesCommand;
1308
832
  const se_PutAccountSuppressionAttributesCommand = async (input, context) => {
1309
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
833
+ const b = (0, core_1.requestBuilder)(input, context);
1310
834
  const headers = {
1311
835
  "content-type": "application/json",
1312
836
  };
1313
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/suppression";
837
+ b.bp("/v2/email/account/suppression");
1314
838
  let body;
1315
839
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1316
840
  SuppressedReasons: (_) => (0, smithy_client_1._json)(_),
1317
841
  }));
1318
- return new protocol_http_1.HttpRequest({
1319
- protocol,
1320
- hostname,
1321
- port,
1322
- method: "PUT",
1323
- headers,
1324
- path: resolvedPath,
1325
- body,
1326
- });
842
+ b.m("PUT").h(headers).b(body);
843
+ return b.build();
1327
844
  };
1328
845
  exports.se_PutAccountSuppressionAttributesCommand = se_PutAccountSuppressionAttributesCommand;
1329
846
  const se_PutAccountVdmAttributesCommand = async (input, context) => {
1330
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
847
+ const b = (0, core_1.requestBuilder)(input, context);
1331
848
  const headers = {
1332
849
  "content-type": "application/json",
1333
850
  };
1334
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/vdm";
851
+ b.bp("/v2/email/account/vdm");
1335
852
  let body;
1336
853
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1337
854
  VdmAttributes: (_) => (0, smithy_client_1._json)(_),
1338
855
  }));
1339
- return new protocol_http_1.HttpRequest({
1340
- protocol,
1341
- hostname,
1342
- port,
1343
- method: "PUT",
1344
- headers,
1345
- path: resolvedPath,
1346
- body,
1347
- });
856
+ b.m("PUT").h(headers).b(body);
857
+ return b.build();
1348
858
  };
1349
859
  exports.se_PutAccountVdmAttributesCommand = se_PutAccountVdmAttributesCommand;
1350
860
  const se_PutConfigurationSetDeliveryOptionsCommand = async (input, context) => {
1351
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
861
+ const b = (0, core_1.requestBuilder)(input, context);
1352
862
  const headers = {
1353
863
  "content-type": "application/json",
1354
864
  };
1355
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1356
- "/v2/email/configuration-sets/{ConfigurationSetName}/delivery-options";
1357
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
865
+ b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/delivery-options");
866
+ b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
1358
867
  let body;
1359
868
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1360
869
  SendingPoolName: [],
1361
870
  TlsPolicy: [],
1362
871
  }));
1363
- return new protocol_http_1.HttpRequest({
1364
- protocol,
1365
- hostname,
1366
- port,
1367
- method: "PUT",
1368
- headers,
1369
- path: resolvedPath,
1370
- body,
1371
- });
872
+ b.m("PUT").h(headers).b(body);
873
+ return b.build();
1372
874
  };
1373
875
  exports.se_PutConfigurationSetDeliveryOptionsCommand = se_PutConfigurationSetDeliveryOptionsCommand;
1374
876
  const se_PutConfigurationSetReputationOptionsCommand = async (input, context) => {
1375
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
877
+ const b = (0, core_1.requestBuilder)(input, context);
1376
878
  const headers = {
1377
879
  "content-type": "application/json",
1378
880
  };
1379
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1380
- "/v2/email/configuration-sets/{ConfigurationSetName}/reputation-options";
1381
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
881
+ b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/reputation-options");
882
+ b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
1382
883
  let body;
1383
884
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1384
885
  ReputationMetricsEnabled: [],
1385
886
  }));
1386
- return new protocol_http_1.HttpRequest({
1387
- protocol,
1388
- hostname,
1389
- port,
1390
- method: "PUT",
1391
- headers,
1392
- path: resolvedPath,
1393
- body,
1394
- });
887
+ b.m("PUT").h(headers).b(body);
888
+ return b.build();
1395
889
  };
1396
890
  exports.se_PutConfigurationSetReputationOptionsCommand = se_PutConfigurationSetReputationOptionsCommand;
1397
891
  const se_PutConfigurationSetSendingOptionsCommand = async (input, context) => {
1398
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
892
+ const b = (0, core_1.requestBuilder)(input, context);
1399
893
  const headers = {
1400
894
  "content-type": "application/json",
1401
895
  };
1402
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1403
- "/v2/email/configuration-sets/{ConfigurationSetName}/sending";
1404
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
896
+ b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/sending");
897
+ b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
1405
898
  let body;
1406
899
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1407
900
  SendingEnabled: [],
1408
901
  }));
1409
- return new protocol_http_1.HttpRequest({
1410
- protocol,
1411
- hostname,
1412
- port,
1413
- method: "PUT",
1414
- headers,
1415
- path: resolvedPath,
1416
- body,
1417
- });
902
+ b.m("PUT").h(headers).b(body);
903
+ return b.build();
1418
904
  };
1419
905
  exports.se_PutConfigurationSetSendingOptionsCommand = se_PutConfigurationSetSendingOptionsCommand;
1420
906
  const se_PutConfigurationSetSuppressionOptionsCommand = async (input, context) => {
1421
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
907
+ const b = (0, core_1.requestBuilder)(input, context);
1422
908
  const headers = {
1423
909
  "content-type": "application/json",
1424
910
  };
1425
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1426
- "/v2/email/configuration-sets/{ConfigurationSetName}/suppression-options";
1427
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
911
+ b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/suppression-options");
912
+ b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
1428
913
  let body;
1429
914
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1430
915
  SuppressedReasons: (_) => (0, smithy_client_1._json)(_),
1431
916
  }));
1432
- return new protocol_http_1.HttpRequest({
1433
- protocol,
1434
- hostname,
1435
- port,
1436
- method: "PUT",
1437
- headers,
1438
- path: resolvedPath,
1439
- body,
1440
- });
917
+ b.m("PUT").h(headers).b(body);
918
+ return b.build();
1441
919
  };
1442
920
  exports.se_PutConfigurationSetSuppressionOptionsCommand = se_PutConfigurationSetSuppressionOptionsCommand;
1443
921
  const se_PutConfigurationSetTrackingOptionsCommand = async (input, context) => {
1444
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
922
+ const b = (0, core_1.requestBuilder)(input, context);
1445
923
  const headers = {
1446
924
  "content-type": "application/json",
1447
925
  };
1448
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1449
- "/v2/email/configuration-sets/{ConfigurationSetName}/tracking-options";
1450
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
926
+ b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/tracking-options");
927
+ b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
1451
928
  let body;
1452
929
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1453
930
  CustomRedirectDomain: [],
1454
931
  }));
1455
- return new protocol_http_1.HttpRequest({
1456
- protocol,
1457
- hostname,
1458
- port,
1459
- method: "PUT",
1460
- headers,
1461
- path: resolvedPath,
1462
- body,
1463
- });
932
+ b.m("PUT").h(headers).b(body);
933
+ return b.build();
1464
934
  };
1465
935
  exports.se_PutConfigurationSetTrackingOptionsCommand = se_PutConfigurationSetTrackingOptionsCommand;
1466
936
  const se_PutConfigurationSetVdmOptionsCommand = async (input, context) => {
1467
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
937
+ const b = (0, core_1.requestBuilder)(input, context);
1468
938
  const headers = {
1469
939
  "content-type": "application/json",
1470
940
  };
1471
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1472
- "/v2/email/configuration-sets/{ConfigurationSetName}/vdm-options";
1473
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
941
+ b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/vdm-options");
942
+ b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
1474
943
  let body;
1475
944
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1476
945
  VdmOptions: (_) => (0, smithy_client_1._json)(_),
1477
946
  }));
1478
- return new protocol_http_1.HttpRequest({
1479
- protocol,
1480
- hostname,
1481
- port,
1482
- method: "PUT",
1483
- headers,
1484
- path: resolvedPath,
1485
- body,
1486
- });
947
+ b.m("PUT").h(headers).b(body);
948
+ return b.build();
1487
949
  };
1488
950
  exports.se_PutConfigurationSetVdmOptionsCommand = se_PutConfigurationSetVdmOptionsCommand;
1489
951
  const se_PutDedicatedIpInPoolCommand = async (input, context) => {
1490
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
952
+ const b = (0, core_1.requestBuilder)(input, context);
1491
953
  const headers = {
1492
954
  "content-type": "application/json",
1493
955
  };
1494
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ips/{Ip}/pool";
1495
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Ip", () => input.Ip, "{Ip}", false);
956
+ b.bp("/v2/email/dedicated-ips/{Ip}/pool");
957
+ b.p("Ip", () => input.Ip, "{Ip}", false);
1496
958
  let body;
1497
959
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1498
960
  DestinationPoolName: [],
1499
961
  }));
1500
- return new protocol_http_1.HttpRequest({
1501
- protocol,
1502
- hostname,
1503
- port,
1504
- method: "PUT",
1505
- headers,
1506
- path: resolvedPath,
1507
- body,
1508
- });
962
+ b.m("PUT").h(headers).b(body);
963
+ return b.build();
1509
964
  };
1510
965
  exports.se_PutDedicatedIpInPoolCommand = se_PutDedicatedIpInPoolCommand;
1511
966
  const se_PutDedicatedIpPoolScalingAttributesCommand = async (input, context) => {
1512
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
967
+ const b = (0, core_1.requestBuilder)(input, context);
1513
968
  const headers = {
1514
969
  "content-type": "application/json",
1515
970
  };
1516
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1517
- "/v2/email/dedicated-ip-pools/{PoolName}/scaling";
1518
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PoolName", () => input.PoolName, "{PoolName}", false);
971
+ b.bp("/v2/email/dedicated-ip-pools/{PoolName}/scaling");
972
+ b.p("PoolName", () => input.PoolName, "{PoolName}", false);
1519
973
  let body;
1520
974
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1521
975
  ScalingMode: [],
1522
976
  }));
1523
- return new protocol_http_1.HttpRequest({
1524
- protocol,
1525
- hostname,
1526
- port,
1527
- method: "PUT",
1528
- headers,
1529
- path: resolvedPath,
1530
- body,
1531
- });
977
+ b.m("PUT").h(headers).b(body);
978
+ return b.build();
1532
979
  };
1533
980
  exports.se_PutDedicatedIpPoolScalingAttributesCommand = se_PutDedicatedIpPoolScalingAttributesCommand;
1534
981
  const se_PutDedicatedIpWarmupAttributesCommand = async (input, context) => {
1535
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
982
+ const b = (0, core_1.requestBuilder)(input, context);
1536
983
  const headers = {
1537
984
  "content-type": "application/json",
1538
985
  };
1539
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/dedicated-ips/{Ip}/warmup";
1540
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Ip", () => input.Ip, "{Ip}", false);
986
+ b.bp("/v2/email/dedicated-ips/{Ip}/warmup");
987
+ b.p("Ip", () => input.Ip, "{Ip}", false);
1541
988
  let body;
1542
989
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1543
990
  WarmupPercentage: [],
1544
991
  }));
1545
- return new protocol_http_1.HttpRequest({
1546
- protocol,
1547
- hostname,
1548
- port,
1549
- method: "PUT",
1550
- headers,
1551
- path: resolvedPath,
1552
- body,
1553
- });
992
+ b.m("PUT").h(headers).b(body);
993
+ return b.build();
1554
994
  };
1555
995
  exports.se_PutDedicatedIpWarmupAttributesCommand = se_PutDedicatedIpWarmupAttributesCommand;
1556
996
  const se_PutDeliverabilityDashboardOptionCommand = async (input, context) => {
1557
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
997
+ const b = (0, core_1.requestBuilder)(input, context);
1558
998
  const headers = {
1559
999
  "content-type": "application/json",
1560
1000
  };
1561
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/deliverability-dashboard";
1001
+ b.bp("/v2/email/deliverability-dashboard");
1562
1002
  let body;
1563
1003
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1564
1004
  DashboardEnabled: [],
1565
1005
  SubscribedDomains: (_) => se_DomainDeliverabilityTrackingOptions(_, context),
1566
1006
  }));
1567
- return new protocol_http_1.HttpRequest({
1568
- protocol,
1569
- hostname,
1570
- port,
1571
- method: "PUT",
1572
- headers,
1573
- path: resolvedPath,
1574
- body,
1575
- });
1007
+ b.m("PUT").h(headers).b(body);
1008
+ return b.build();
1576
1009
  };
1577
1010
  exports.se_PutDeliverabilityDashboardOptionCommand = se_PutDeliverabilityDashboardOptionCommand;
1578
1011
  const se_PutEmailIdentityConfigurationSetAttributesCommand = async (input, context) => {
1579
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1012
+ const b = (0, core_1.requestBuilder)(input, context);
1580
1013
  const headers = {
1581
1014
  "content-type": "application/json",
1582
1015
  };
1583
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1584
- "/v2/email/identities/{EmailIdentity}/configuration-set";
1585
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
1016
+ b.bp("/v2/email/identities/{EmailIdentity}/configuration-set");
1017
+ b.p("EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
1586
1018
  let body;
1587
1019
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1588
1020
  ConfigurationSetName: [],
1589
1021
  }));
1590
- return new protocol_http_1.HttpRequest({
1591
- protocol,
1592
- hostname,
1593
- port,
1594
- method: "PUT",
1595
- headers,
1596
- path: resolvedPath,
1597
- body,
1598
- });
1022
+ b.m("PUT").h(headers).b(body);
1023
+ return b.build();
1599
1024
  };
1600
1025
  exports.se_PutEmailIdentityConfigurationSetAttributesCommand = se_PutEmailIdentityConfigurationSetAttributesCommand;
1601
1026
  const se_PutEmailIdentityDkimAttributesCommand = async (input, context) => {
1602
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1027
+ const b = (0, core_1.requestBuilder)(input, context);
1603
1028
  const headers = {
1604
1029
  "content-type": "application/json",
1605
1030
  };
1606
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/identities/{EmailIdentity}/dkim";
1607
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
1031
+ b.bp("/v2/email/identities/{EmailIdentity}/dkim");
1032
+ b.p("EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
1608
1033
  let body;
1609
1034
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1610
1035
  SigningEnabled: [],
1611
1036
  }));
1612
- return new protocol_http_1.HttpRequest({
1613
- protocol,
1614
- hostname,
1615
- port,
1616
- method: "PUT",
1617
- headers,
1618
- path: resolvedPath,
1619
- body,
1620
- });
1037
+ b.m("PUT").h(headers).b(body);
1038
+ return b.build();
1621
1039
  };
1622
1040
  exports.se_PutEmailIdentityDkimAttributesCommand = se_PutEmailIdentityDkimAttributesCommand;
1623
1041
  const se_PutEmailIdentityDkimSigningAttributesCommand = async (input, context) => {
1624
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1042
+ const b = (0, core_1.requestBuilder)(input, context);
1625
1043
  const headers = {
1626
1044
  "content-type": "application/json",
1627
1045
  };
1628
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1629
- "/v1/email/identities/{EmailIdentity}/dkim/signing";
1630
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
1046
+ b.bp("/v1/email/identities/{EmailIdentity}/dkim/signing");
1047
+ b.p("EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
1631
1048
  let body;
1632
1049
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1633
1050
  SigningAttributes: (_) => (0, smithy_client_1._json)(_),
1634
1051
  SigningAttributesOrigin: [],
1635
1052
  }));
1636
- return new protocol_http_1.HttpRequest({
1637
- protocol,
1638
- hostname,
1639
- port,
1640
- method: "PUT",
1641
- headers,
1642
- path: resolvedPath,
1643
- body,
1644
- });
1053
+ b.m("PUT").h(headers).b(body);
1054
+ return b.build();
1645
1055
  };
1646
1056
  exports.se_PutEmailIdentityDkimSigningAttributesCommand = se_PutEmailIdentityDkimSigningAttributesCommand;
1647
1057
  const se_PutEmailIdentityFeedbackAttributesCommand = async (input, context) => {
1648
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1058
+ const b = (0, core_1.requestBuilder)(input, context);
1649
1059
  const headers = {
1650
1060
  "content-type": "application/json",
1651
1061
  };
1652
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1653
- "/v2/email/identities/{EmailIdentity}/feedback";
1654
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
1062
+ b.bp("/v2/email/identities/{EmailIdentity}/feedback");
1063
+ b.p("EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
1655
1064
  let body;
1656
1065
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1657
1066
  EmailForwardingEnabled: [],
1658
1067
  }));
1659
- return new protocol_http_1.HttpRequest({
1660
- protocol,
1661
- hostname,
1662
- port,
1663
- method: "PUT",
1664
- headers,
1665
- path: resolvedPath,
1666
- body,
1667
- });
1068
+ b.m("PUT").h(headers).b(body);
1069
+ return b.build();
1668
1070
  };
1669
1071
  exports.se_PutEmailIdentityFeedbackAttributesCommand = se_PutEmailIdentityFeedbackAttributesCommand;
1670
1072
  const se_PutEmailIdentityMailFromAttributesCommand = async (input, context) => {
1671
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1073
+ const b = (0, core_1.requestBuilder)(input, context);
1672
1074
  const headers = {
1673
1075
  "content-type": "application/json",
1674
1076
  };
1675
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1676
- "/v2/email/identities/{EmailIdentity}/mail-from";
1677
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
1077
+ b.bp("/v2/email/identities/{EmailIdentity}/mail-from");
1078
+ b.p("EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
1678
1079
  let body;
1679
1080
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1680
1081
  BehaviorOnMxFailure: [],
1681
1082
  MailFromDomain: [],
1682
1083
  }));
1683
- return new protocol_http_1.HttpRequest({
1684
- protocol,
1685
- hostname,
1686
- port,
1687
- method: "PUT",
1688
- headers,
1689
- path: resolvedPath,
1690
- body,
1691
- });
1084
+ b.m("PUT").h(headers).b(body);
1085
+ return b.build();
1692
1086
  };
1693
1087
  exports.se_PutEmailIdentityMailFromAttributesCommand = se_PutEmailIdentityMailFromAttributesCommand;
1694
1088
  const se_PutSuppressedDestinationCommand = async (input, context) => {
1695
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1089
+ const b = (0, core_1.requestBuilder)(input, context);
1696
1090
  const headers = {
1697
1091
  "content-type": "application/json",
1698
1092
  };
1699
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/suppression/addresses";
1093
+ b.bp("/v2/email/suppression/addresses");
1700
1094
  let body;
1701
1095
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1702
1096
  EmailAddress: [],
1703
1097
  Reason: [],
1704
1098
  }));
1705
- return new protocol_http_1.HttpRequest({
1706
- protocol,
1707
- hostname,
1708
- port,
1709
- method: "PUT",
1710
- headers,
1711
- path: resolvedPath,
1712
- body,
1713
- });
1099
+ b.m("PUT").h(headers).b(body);
1100
+ return b.build();
1714
1101
  };
1715
1102
  exports.se_PutSuppressedDestinationCommand = se_PutSuppressedDestinationCommand;
1716
1103
  const se_SendBulkEmailCommand = async (input, context) => {
1717
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1104
+ const b = (0, core_1.requestBuilder)(input, context);
1718
1105
  const headers = {
1719
1106
  "content-type": "application/json",
1720
1107
  };
1721
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/outbound-bulk-emails";
1108
+ b.bp("/v2/email/outbound-bulk-emails");
1722
1109
  let body;
1723
1110
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1724
1111
  BulkEmailEntries: (_) => (0, smithy_client_1._json)(_),
@@ -1731,47 +1118,32 @@ const se_SendBulkEmailCommand = async (input, context) => {
1731
1118
  FromEmailAddressIdentityArn: [],
1732
1119
  ReplyToAddresses: (_) => (0, smithy_client_1._json)(_),
1733
1120
  }));
1734
- return new protocol_http_1.HttpRequest({
1735
- protocol,
1736
- hostname,
1737
- port,
1738
- method: "POST",
1739
- headers,
1740
- path: resolvedPath,
1741
- body,
1742
- });
1121
+ b.m("POST").h(headers).b(body);
1122
+ return b.build();
1743
1123
  };
1744
1124
  exports.se_SendBulkEmailCommand = se_SendBulkEmailCommand;
1745
1125
  const se_SendCustomVerificationEmailCommand = async (input, context) => {
1746
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1126
+ const b = (0, core_1.requestBuilder)(input, context);
1747
1127
  const headers = {
1748
1128
  "content-type": "application/json",
1749
1129
  };
1750
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1751
- "/v2/email/outbound-custom-verification-emails";
1130
+ b.bp("/v2/email/outbound-custom-verification-emails");
1752
1131
  let body;
1753
1132
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1754
1133
  ConfigurationSetName: [],
1755
1134
  EmailAddress: [],
1756
1135
  TemplateName: [],
1757
1136
  }));
1758
- return new protocol_http_1.HttpRequest({
1759
- protocol,
1760
- hostname,
1761
- port,
1762
- method: "POST",
1763
- headers,
1764
- path: resolvedPath,
1765
- body,
1766
- });
1137
+ b.m("POST").h(headers).b(body);
1138
+ return b.build();
1767
1139
  };
1768
1140
  exports.se_SendCustomVerificationEmailCommand = se_SendCustomVerificationEmailCommand;
1769
1141
  const se_SendEmailCommand = async (input, context) => {
1770
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1142
+ const b = (0, core_1.requestBuilder)(input, context);
1771
1143
  const headers = {
1772
1144
  "content-type": "application/json",
1773
1145
  };
1774
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/outbound-emails";
1146
+ b.bp("/v2/email/outbound-emails");
1775
1147
  let body;
1776
1148
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1777
1149
  ConfigurationSetName: [],
@@ -1785,166 +1157,113 @@ const se_SendEmailCommand = async (input, context) => {
1785
1157
  ListManagementOptions: (_) => (0, smithy_client_1._json)(_),
1786
1158
  ReplyToAddresses: (_) => (0, smithy_client_1._json)(_),
1787
1159
  }));
1788
- return new protocol_http_1.HttpRequest({
1789
- protocol,
1790
- hostname,
1791
- port,
1792
- method: "POST",
1793
- headers,
1794
- path: resolvedPath,
1795
- body,
1796
- });
1160
+ b.m("POST").h(headers).b(body);
1161
+ return b.build();
1797
1162
  };
1798
1163
  exports.se_SendEmailCommand = se_SendEmailCommand;
1799
1164
  const se_TagResourceCommand = async (input, context) => {
1800
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1165
+ const b = (0, core_1.requestBuilder)(input, context);
1801
1166
  const headers = {
1802
1167
  "content-type": "application/json",
1803
1168
  };
1804
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/tags";
1169
+ b.bp("/v2/email/tags");
1805
1170
  let body;
1806
1171
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1807
1172
  ResourceArn: [],
1808
1173
  Tags: (_) => (0, smithy_client_1._json)(_),
1809
1174
  }));
1810
- return new protocol_http_1.HttpRequest({
1811
- protocol,
1812
- hostname,
1813
- port,
1814
- method: "POST",
1815
- headers,
1816
- path: resolvedPath,
1817
- body,
1818
- });
1175
+ b.m("POST").h(headers).b(body);
1176
+ return b.build();
1819
1177
  };
1820
1178
  exports.se_TagResourceCommand = se_TagResourceCommand;
1821
1179
  const se_TestRenderEmailTemplateCommand = async (input, context) => {
1822
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1180
+ const b = (0, core_1.requestBuilder)(input, context);
1823
1181
  const headers = {
1824
1182
  "content-type": "application/json",
1825
1183
  };
1826
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates/{TemplateName}/render";
1827
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
1184
+ b.bp("/v2/email/templates/{TemplateName}/render");
1185
+ b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
1828
1186
  let body;
1829
1187
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1830
1188
  TemplateData: [],
1831
1189
  }));
1832
- return new protocol_http_1.HttpRequest({
1833
- protocol,
1834
- hostname,
1835
- port,
1836
- method: "POST",
1837
- headers,
1838
- path: resolvedPath,
1839
- body,
1840
- });
1190
+ b.m("POST").h(headers).b(body);
1191
+ return b.build();
1841
1192
  };
1842
1193
  exports.se_TestRenderEmailTemplateCommand = se_TestRenderEmailTemplateCommand;
1843
1194
  const se_UntagResourceCommand = async (input, context) => {
1844
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1195
+ const b = (0, core_1.requestBuilder)(input, context);
1845
1196
  const headers = {};
1846
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/tags";
1197
+ b.bp("/v2/email/tags");
1847
1198
  const query = (0, smithy_client_1.map)({
1848
- ResourceArn: [, (0, smithy_client_1.expectNonNull)(input.ResourceArn, `ResourceArn`)],
1849
- TagKeys: [
1199
+ [_RA]: [, (0, smithy_client_1.expectNonNull)(input[_RA], `ResourceArn`)],
1200
+ [_TK]: [
1850
1201
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
1851
- () => (input.TagKeys || []).map((_entry) => _entry),
1202
+ () => (input[_TK] || []).map((_entry) => _entry),
1852
1203
  ],
1853
1204
  });
1854
1205
  let body;
1855
- return new protocol_http_1.HttpRequest({
1856
- protocol,
1857
- hostname,
1858
- port,
1859
- method: "DELETE",
1860
- headers,
1861
- path: resolvedPath,
1862
- query,
1863
- body,
1864
- });
1206
+ b.m("DELETE").h(headers).q(query).b(body);
1207
+ return b.build();
1865
1208
  };
1866
1209
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
1867
1210
  const se_UpdateConfigurationSetEventDestinationCommand = async (input, context) => {
1868
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1211
+ const b = (0, core_1.requestBuilder)(input, context);
1869
1212
  const headers = {
1870
1213
  "content-type": "application/json",
1871
1214
  };
1872
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1873
- "/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}";
1874
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
1875
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventDestinationName", () => input.EventDestinationName, "{EventDestinationName}", false);
1215
+ b.bp("/v2/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}");
1216
+ b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
1217
+ b.p("EventDestinationName", () => input.EventDestinationName, "{EventDestinationName}", false);
1876
1218
  let body;
1877
1219
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1878
1220
  EventDestination: (_) => (0, smithy_client_1._json)(_),
1879
1221
  }));
1880
- return new protocol_http_1.HttpRequest({
1881
- protocol,
1882
- hostname,
1883
- port,
1884
- method: "PUT",
1885
- headers,
1886
- path: resolvedPath,
1887
- body,
1888
- });
1222
+ b.m("PUT").h(headers).b(body);
1223
+ return b.build();
1889
1224
  };
1890
1225
  exports.se_UpdateConfigurationSetEventDestinationCommand = se_UpdateConfigurationSetEventDestinationCommand;
1891
1226
  const se_UpdateContactCommand = async (input, context) => {
1892
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1227
+ const b = (0, core_1.requestBuilder)(input, context);
1893
1228
  const headers = {
1894
1229
  "content-type": "application/json",
1895
1230
  };
1896
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1897
- "/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}";
1898
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactListName", () => input.ContactListName, "{ContactListName}", false);
1899
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailAddress", () => input.EmailAddress, "{EmailAddress}", false);
1231
+ b.bp("/v2/email/contact-lists/{ContactListName}/contacts/{EmailAddress}");
1232
+ b.p("ContactListName", () => input.ContactListName, "{ContactListName}", false);
1233
+ b.p("EmailAddress", () => input.EmailAddress, "{EmailAddress}", false);
1900
1234
  let body;
1901
1235
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1902
1236
  AttributesData: [],
1903
1237
  TopicPreferences: (_) => (0, smithy_client_1._json)(_),
1904
1238
  UnsubscribeAll: [],
1905
1239
  }));
1906
- return new protocol_http_1.HttpRequest({
1907
- protocol,
1908
- hostname,
1909
- port,
1910
- method: "PUT",
1911
- headers,
1912
- path: resolvedPath,
1913
- body,
1914
- });
1240
+ b.m("PUT").h(headers).b(body);
1241
+ return b.build();
1915
1242
  };
1916
1243
  exports.se_UpdateContactCommand = se_UpdateContactCommand;
1917
1244
  const se_UpdateContactListCommand = async (input, context) => {
1918
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1245
+ const b = (0, core_1.requestBuilder)(input, context);
1919
1246
  const headers = {
1920
1247
  "content-type": "application/json",
1921
1248
  };
1922
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/contact-lists/{ContactListName}";
1923
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactListName", () => input.ContactListName, "{ContactListName}", false);
1249
+ b.bp("/v2/email/contact-lists/{ContactListName}");
1250
+ b.p("ContactListName", () => input.ContactListName, "{ContactListName}", false);
1924
1251
  let body;
1925
1252
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1926
1253
  Description: [],
1927
1254
  Topics: (_) => (0, smithy_client_1._json)(_),
1928
1255
  }));
1929
- return new protocol_http_1.HttpRequest({
1930
- protocol,
1931
- hostname,
1932
- port,
1933
- method: "PUT",
1934
- headers,
1935
- path: resolvedPath,
1936
- body,
1937
- });
1256
+ b.m("PUT").h(headers).b(body);
1257
+ return b.build();
1938
1258
  };
1939
1259
  exports.se_UpdateContactListCommand = se_UpdateContactListCommand;
1940
1260
  const se_UpdateCustomVerificationEmailTemplateCommand = async (input, context) => {
1941
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1261
+ const b = (0, core_1.requestBuilder)(input, context);
1942
1262
  const headers = {
1943
1263
  "content-type": "application/json",
1944
1264
  };
1945
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1946
- "/v2/email/custom-verification-email-templates/{TemplateName}";
1947
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
1265
+ b.bp("/v2/email/custom-verification-email-templates/{TemplateName}");
1266
+ b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
1948
1267
  let body;
1949
1268
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1950
1269
  FailureRedirectionURL: [],
@@ -1953,61 +1272,39 @@ const se_UpdateCustomVerificationEmailTemplateCommand = async (input, context) =
1953
1272
  TemplateContent: [],
1954
1273
  TemplateSubject: [],
1955
1274
  }));
1956
- return new protocol_http_1.HttpRequest({
1957
- protocol,
1958
- hostname,
1959
- port,
1960
- method: "PUT",
1961
- headers,
1962
- path: resolvedPath,
1963
- body,
1964
- });
1275
+ b.m("PUT").h(headers).b(body);
1276
+ return b.build();
1965
1277
  };
1966
1278
  exports.se_UpdateCustomVerificationEmailTemplateCommand = se_UpdateCustomVerificationEmailTemplateCommand;
1967
1279
  const se_UpdateEmailIdentityPolicyCommand = async (input, context) => {
1968
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1280
+ const b = (0, core_1.requestBuilder)(input, context);
1969
1281
  const headers = {
1970
1282
  "content-type": "application/json",
1971
1283
  };
1972
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1973
- "/v2/email/identities/{EmailIdentity}/policies/{PolicyName}";
1974
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
1975
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyName", () => input.PolicyName, "{PolicyName}", false);
1284
+ b.bp("/v2/email/identities/{EmailIdentity}/policies/{PolicyName}");
1285
+ b.p("EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
1286
+ b.p("PolicyName", () => input.PolicyName, "{PolicyName}", false);
1976
1287
  let body;
1977
1288
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1978
1289
  Policy: [],
1979
1290
  }));
1980
- return new protocol_http_1.HttpRequest({
1981
- protocol,
1982
- hostname,
1983
- port,
1984
- method: "PUT",
1985
- headers,
1986
- path: resolvedPath,
1987
- body,
1988
- });
1291
+ b.m("PUT").h(headers).b(body);
1292
+ return b.build();
1989
1293
  };
1990
1294
  exports.se_UpdateEmailIdentityPolicyCommand = se_UpdateEmailIdentityPolicyCommand;
1991
1295
  const se_UpdateEmailTemplateCommand = async (input, context) => {
1992
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1296
+ const b = (0, core_1.requestBuilder)(input, context);
1993
1297
  const headers = {
1994
1298
  "content-type": "application/json",
1995
1299
  };
1996
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/templates/{TemplateName}";
1997
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateName", () => input.TemplateName, "{TemplateName}", false);
1300
+ b.bp("/v2/email/templates/{TemplateName}");
1301
+ b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
1998
1302
  let body;
1999
1303
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2000
1304
  TemplateContent: (_) => (0, smithy_client_1._json)(_),
2001
1305
  }));
2002
- return new protocol_http_1.HttpRequest({
2003
- protocol,
2004
- hostname,
2005
- port,
2006
- method: "PUT",
2007
- headers,
2008
- path: resolvedPath,
2009
- body,
2010
- });
1306
+ b.m("PUT").h(headers).b(body);
1307
+ return b.build();
2011
1308
  };
2012
1309
  exports.se_UpdateEmailTemplateCommand = se_UpdateEmailTemplateCommand;
2013
1310
  const de_BatchGetMetricDataCommand = async (output, context) => {
@@ -6330,6 +5627,16 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
6330
5627
  value !== "" &&
6331
5628
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
6332
5629
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
5630
+ const _BIN = "BlacklistItemNames";
5631
+ const _ED = "EndDate";
5632
+ const _NT = "NextToken";
5633
+ const _PN = "PoolName";
5634
+ const _PS = "PageSize";
5635
+ const _R = "Reasons";
5636
+ const _RA = "ResourceArn";
5637
+ const _Re = "Reason";
5638
+ const _SD = "StartDate";
5639
+ const _TK = "TagKeys";
6333
5640
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
6334
5641
  if (encoded.length) {
6335
5642
  return JSON.parse(encoded);