@aws-sdk/client-pinpoint-email 3.474.0 → 3.477.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +229 -543
- package/dist-es/protocols/Aws_restJson1.js +230 -544
- package/package.json +5 -4
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_DeleteDedicatedIpPoolCommand = exports.de_DeleteConfigurationSetEventDestinationCommand = exports.de_DeleteConfigurationSetCommand = exports.de_CreateEmailIdentityCommand = exports.de_CreateDeliverabilityTestReportCommand = exports.de_CreateDedicatedIpPoolCommand = exports.de_CreateConfigurationSetEventDestinationCommand = exports.de_CreateConfigurationSetCommand = exports.se_UpdateConfigurationSetEventDestinationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SendEmailCommand = exports.se_PutEmailIdentityMailFromAttributesCommand = exports.se_PutEmailIdentityFeedbackAttributesCommand = exports.se_PutEmailIdentityDkimAttributesCommand = exports.se_PutDeliverabilityDashboardOptionCommand = exports.se_PutDedicatedIpWarmupAttributesCommand = exports.se_PutDedicatedIpInPoolCommand = exports.se_PutConfigurationSetTrackingOptionsCommand = exports.se_PutConfigurationSetSendingOptionsCommand = exports.se_PutConfigurationSetReputationOptionsCommand = exports.se_PutConfigurationSetDeliveryOptionsCommand = exports.se_PutAccountSendingAttributesCommand = exports.se_PutAccountDedicatedIpWarmupAttributesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListEmailIdentitiesCommand = exports.se_ListDomainDeliverabilityCampaignsCommand = exports.se_ListDeliverabilityTestReportsCommand = exports.se_ListDedicatedIpPoolsCommand = exports.se_ListConfigurationSetsCommand = exports.se_GetEmailIdentityCommand = exports.se_GetDomainStatisticsReportCommand = exports.se_GetDomainDeliverabilityCampaignCommand = exports.se_GetDeliverabilityTestReportCommand = exports.se_GetDeliverabilityDashboardOptionsCommand = exports.se_GetDedicatedIpsCommand = exports.se_GetDedicatedIpCommand = exports.se_GetConfigurationSetEventDestinationsCommand = exports.se_GetConfigurationSetCommand = exports.se_GetBlacklistReportsCommand = exports.se_GetAccountCommand = exports.se_DeleteEmailIdentityCommand = exports.se_DeleteDedicatedIpPoolCommand = exports.se_DeleteConfigurationSetEventDestinationCommand = exports.se_DeleteConfigurationSetCommand = exports.se_CreateEmailIdentityCommand = exports.se_CreateDeliverabilityTestReportCommand = exports.se_CreateDedicatedIpPoolCommand = exports.se_CreateConfigurationSetEventDestinationCommand = exports.se_CreateConfigurationSetCommand = void 0;
|
|
4
4
|
exports.de_UpdateConfigurationSetEventDestinationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SendEmailCommand = exports.de_PutEmailIdentityMailFromAttributesCommand = exports.de_PutEmailIdentityFeedbackAttributesCommand = exports.de_PutEmailIdentityDkimAttributesCommand = exports.de_PutDeliverabilityDashboardOptionCommand = exports.de_PutDedicatedIpWarmupAttributesCommand = exports.de_PutDedicatedIpInPoolCommand = exports.de_PutConfigurationSetTrackingOptionsCommand = exports.de_PutConfigurationSetSendingOptionsCommand = exports.de_PutConfigurationSetReputationOptionsCommand = exports.de_PutConfigurationSetDeliveryOptionsCommand = exports.de_PutAccountSendingAttributesCommand = exports.de_PutAccountDedicatedIpWarmupAttributesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListEmailIdentitiesCommand = exports.de_ListDomainDeliverabilityCampaignsCommand = exports.de_ListDeliverabilityTestReportsCommand = exports.de_ListDedicatedIpPoolsCommand = exports.de_ListConfigurationSetsCommand = exports.de_GetEmailIdentityCommand = exports.de_GetDomainStatisticsReportCommand = exports.de_GetDomainDeliverabilityCampaignCommand = exports.de_GetDeliverabilityTestReportCommand = exports.de_GetDeliverabilityDashboardOptionsCommand = exports.de_GetDedicatedIpsCommand = exports.de_GetDedicatedIpCommand = exports.de_GetConfigurationSetEventDestinationsCommand = exports.de_GetConfigurationSetCommand = exports.de_GetBlacklistReportsCommand = exports.de_GetAccountCommand = exports.de_DeleteEmailIdentityCommand = void 0;
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const PinpointEmailServiceException_1 = require("../models/PinpointEmailServiceException");
|
|
9
9
|
const se_CreateConfigurationSetCommand = async (input, context) => {
|
|
10
|
-
const
|
|
10
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
b.bp("/v1/email/configuration-sets");
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
17
|
ConfigurationSetName: [],
|
|
@@ -21,69 +21,47 @@ const se_CreateConfigurationSetCommand = async (input, context) => {
|
|
|
21
21
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
22
22
|
TrackingOptions: (_) => (0, smithy_client_1._json)(_),
|
|
23
23
|
}));
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
hostname,
|
|
27
|
-
port,
|
|
28
|
-
method: "POST",
|
|
29
|
-
headers,
|
|
30
|
-
path: resolvedPath,
|
|
31
|
-
body,
|
|
32
|
-
});
|
|
24
|
+
b.m("POST").h(headers).b(body);
|
|
25
|
+
return b.build();
|
|
33
26
|
};
|
|
34
27
|
exports.se_CreateConfigurationSetCommand = se_CreateConfigurationSetCommand;
|
|
35
28
|
const se_CreateConfigurationSetEventDestinationCommand = async (input, context) => {
|
|
36
|
-
const
|
|
29
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
37
30
|
const headers = {
|
|
38
31
|
"content-type": "application/json",
|
|
39
32
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
33
|
+
b.bp("/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations");
|
|
34
|
+
b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
43
35
|
let body;
|
|
44
36
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
45
37
|
EventDestination: (_) => (0, smithy_client_1._json)(_),
|
|
46
38
|
EventDestinationName: [],
|
|
47
39
|
}));
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
hostname,
|
|
51
|
-
port,
|
|
52
|
-
method: "POST",
|
|
53
|
-
headers,
|
|
54
|
-
path: resolvedPath,
|
|
55
|
-
body,
|
|
56
|
-
});
|
|
40
|
+
b.m("POST").h(headers).b(body);
|
|
41
|
+
return b.build();
|
|
57
42
|
};
|
|
58
43
|
exports.se_CreateConfigurationSetEventDestinationCommand = se_CreateConfigurationSetEventDestinationCommand;
|
|
59
44
|
const se_CreateDedicatedIpPoolCommand = async (input, context) => {
|
|
60
|
-
const
|
|
45
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
61
46
|
const headers = {
|
|
62
47
|
"content-type": "application/json",
|
|
63
48
|
};
|
|
64
|
-
|
|
49
|
+
b.bp("/v1/email/dedicated-ip-pools");
|
|
65
50
|
let body;
|
|
66
51
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
67
52
|
PoolName: [],
|
|
68
53
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
69
54
|
}));
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
hostname,
|
|
73
|
-
port,
|
|
74
|
-
method: "POST",
|
|
75
|
-
headers,
|
|
76
|
-
path: resolvedPath,
|
|
77
|
-
body,
|
|
78
|
-
});
|
|
55
|
+
b.m("POST").h(headers).b(body);
|
|
56
|
+
return b.build();
|
|
79
57
|
};
|
|
80
58
|
exports.se_CreateDedicatedIpPoolCommand = se_CreateDedicatedIpPoolCommand;
|
|
81
59
|
const se_CreateDeliverabilityTestReportCommand = async (input, context) => {
|
|
82
|
-
const
|
|
60
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
83
61
|
const headers = {
|
|
84
62
|
"content-type": "application/json",
|
|
85
63
|
};
|
|
86
|
-
|
|
64
|
+
b.bp("/v1/email/deliverability-dashboard/test");
|
|
87
65
|
let body;
|
|
88
66
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
89
67
|
Content: (_) => se_EmailContent(_, context),
|
|
@@ -91,741 +69,471 @@ const se_CreateDeliverabilityTestReportCommand = async (input, context) => {
|
|
|
91
69
|
ReportName: [],
|
|
92
70
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
93
71
|
}));
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
hostname,
|
|
97
|
-
port,
|
|
98
|
-
method: "POST",
|
|
99
|
-
headers,
|
|
100
|
-
path: resolvedPath,
|
|
101
|
-
body,
|
|
102
|
-
});
|
|
72
|
+
b.m("POST").h(headers).b(body);
|
|
73
|
+
return b.build();
|
|
103
74
|
};
|
|
104
75
|
exports.se_CreateDeliverabilityTestReportCommand = se_CreateDeliverabilityTestReportCommand;
|
|
105
76
|
const se_CreateEmailIdentityCommand = async (input, context) => {
|
|
106
|
-
const
|
|
77
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
107
78
|
const headers = {
|
|
108
79
|
"content-type": "application/json",
|
|
109
80
|
};
|
|
110
|
-
|
|
81
|
+
b.bp("/v1/email/identities");
|
|
111
82
|
let body;
|
|
112
83
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
113
84
|
EmailIdentity: [],
|
|
114
85
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
115
86
|
}));
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
hostname,
|
|
119
|
-
port,
|
|
120
|
-
method: "POST",
|
|
121
|
-
headers,
|
|
122
|
-
path: resolvedPath,
|
|
123
|
-
body,
|
|
124
|
-
});
|
|
87
|
+
b.m("POST").h(headers).b(body);
|
|
88
|
+
return b.build();
|
|
125
89
|
};
|
|
126
90
|
exports.se_CreateEmailIdentityCommand = se_CreateEmailIdentityCommand;
|
|
127
91
|
const se_DeleteConfigurationSetCommand = async (input, context) => {
|
|
128
|
-
const
|
|
92
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
129
93
|
const headers = {};
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
94
|
+
b.bp("/v1/email/configuration-sets/{ConfigurationSetName}");
|
|
95
|
+
b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
133
96
|
let body;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
hostname,
|
|
137
|
-
port,
|
|
138
|
-
method: "DELETE",
|
|
139
|
-
headers,
|
|
140
|
-
path: resolvedPath,
|
|
141
|
-
body,
|
|
142
|
-
});
|
|
97
|
+
b.m("DELETE").h(headers).b(body);
|
|
98
|
+
return b.build();
|
|
143
99
|
};
|
|
144
100
|
exports.se_DeleteConfigurationSetCommand = se_DeleteConfigurationSetCommand;
|
|
145
101
|
const se_DeleteConfigurationSetEventDestinationCommand = async (input, context) => {
|
|
146
|
-
const
|
|
102
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
147
103
|
const headers = {};
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventDestinationName", () => input.EventDestinationName, "{EventDestinationName}", false);
|
|
104
|
+
b.bp("/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}");
|
|
105
|
+
b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
106
|
+
b.p("EventDestinationName", () => input.EventDestinationName, "{EventDestinationName}", false);
|
|
152
107
|
let body;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
hostname,
|
|
156
|
-
port,
|
|
157
|
-
method: "DELETE",
|
|
158
|
-
headers,
|
|
159
|
-
path: resolvedPath,
|
|
160
|
-
body,
|
|
161
|
-
});
|
|
108
|
+
b.m("DELETE").h(headers).b(body);
|
|
109
|
+
return b.build();
|
|
162
110
|
};
|
|
163
111
|
exports.se_DeleteConfigurationSetEventDestinationCommand = se_DeleteConfigurationSetEventDestinationCommand;
|
|
164
112
|
const se_DeleteDedicatedIpPoolCommand = async (input, context) => {
|
|
165
|
-
const
|
|
113
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
166
114
|
const headers = {};
|
|
167
|
-
|
|
168
|
-
|
|
115
|
+
b.bp("/v1/email/dedicated-ip-pools/{PoolName}");
|
|
116
|
+
b.p("PoolName", () => input.PoolName, "{PoolName}", false);
|
|
169
117
|
let body;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
hostname,
|
|
173
|
-
port,
|
|
174
|
-
method: "DELETE",
|
|
175
|
-
headers,
|
|
176
|
-
path: resolvedPath,
|
|
177
|
-
body,
|
|
178
|
-
});
|
|
118
|
+
b.m("DELETE").h(headers).b(body);
|
|
119
|
+
return b.build();
|
|
179
120
|
};
|
|
180
121
|
exports.se_DeleteDedicatedIpPoolCommand = se_DeleteDedicatedIpPoolCommand;
|
|
181
122
|
const se_DeleteEmailIdentityCommand = async (input, context) => {
|
|
182
|
-
const
|
|
123
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
183
124
|
const headers = {};
|
|
184
|
-
|
|
185
|
-
|
|
125
|
+
b.bp("/v1/email/identities/{EmailIdentity}");
|
|
126
|
+
b.p("EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
|
|
186
127
|
let body;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
hostname,
|
|
190
|
-
port,
|
|
191
|
-
method: "DELETE",
|
|
192
|
-
headers,
|
|
193
|
-
path: resolvedPath,
|
|
194
|
-
body,
|
|
195
|
-
});
|
|
128
|
+
b.m("DELETE").h(headers).b(body);
|
|
129
|
+
return b.build();
|
|
196
130
|
};
|
|
197
131
|
exports.se_DeleteEmailIdentityCommand = se_DeleteEmailIdentityCommand;
|
|
198
132
|
const se_GetAccountCommand = async (input, context) => {
|
|
199
|
-
const
|
|
133
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
200
134
|
const headers = {
|
|
201
135
|
"content-type": "application/json",
|
|
202
136
|
};
|
|
203
|
-
|
|
137
|
+
b.bp("/v1/email/account");
|
|
204
138
|
let body;
|
|
205
139
|
body = "";
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
hostname,
|
|
209
|
-
port,
|
|
210
|
-
method: "GET",
|
|
211
|
-
headers,
|
|
212
|
-
path: resolvedPath,
|
|
213
|
-
body,
|
|
214
|
-
});
|
|
140
|
+
b.m("GET").h(headers).b(body);
|
|
141
|
+
return b.build();
|
|
215
142
|
};
|
|
216
143
|
exports.se_GetAccountCommand = se_GetAccountCommand;
|
|
217
144
|
const se_GetBlacklistReportsCommand = async (input, context) => {
|
|
218
|
-
const
|
|
145
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
219
146
|
const headers = {};
|
|
220
|
-
|
|
221
|
-
"/v1/email/deliverability-dashboard/blacklist-report";
|
|
147
|
+
b.bp("/v1/email/deliverability-dashboard/blacklist-report");
|
|
222
148
|
const query = (0, smithy_client_1.map)({
|
|
223
|
-
|
|
149
|
+
[_BIN]: [
|
|
224
150
|
(0, smithy_client_1.expectNonNull)(input.BlacklistItemNames, `BlacklistItemNames`) != null,
|
|
225
|
-
() => (input
|
|
151
|
+
() => (input[_BIN] || []).map((_entry) => _entry),
|
|
226
152
|
],
|
|
227
153
|
});
|
|
228
154
|
let body;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
hostname,
|
|
232
|
-
port,
|
|
233
|
-
method: "GET",
|
|
234
|
-
headers,
|
|
235
|
-
path: resolvedPath,
|
|
236
|
-
query,
|
|
237
|
-
body,
|
|
238
|
-
});
|
|
155
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
156
|
+
return b.build();
|
|
239
157
|
};
|
|
240
158
|
exports.se_GetBlacklistReportsCommand = se_GetBlacklistReportsCommand;
|
|
241
159
|
const se_GetConfigurationSetCommand = async (input, context) => {
|
|
242
|
-
const
|
|
160
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
243
161
|
const headers = {};
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
162
|
+
b.bp("/v1/email/configuration-sets/{ConfigurationSetName}");
|
|
163
|
+
b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
247
164
|
let body;
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
hostname,
|
|
251
|
-
port,
|
|
252
|
-
method: "GET",
|
|
253
|
-
headers,
|
|
254
|
-
path: resolvedPath,
|
|
255
|
-
body,
|
|
256
|
-
});
|
|
165
|
+
b.m("GET").h(headers).b(body);
|
|
166
|
+
return b.build();
|
|
257
167
|
};
|
|
258
168
|
exports.se_GetConfigurationSetCommand = se_GetConfigurationSetCommand;
|
|
259
169
|
const se_GetConfigurationSetEventDestinationsCommand = async (input, context) => {
|
|
260
|
-
const
|
|
170
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
261
171
|
const headers = {};
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
172
|
+
b.bp("/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations");
|
|
173
|
+
b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
265
174
|
let body;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
hostname,
|
|
269
|
-
port,
|
|
270
|
-
method: "GET",
|
|
271
|
-
headers,
|
|
272
|
-
path: resolvedPath,
|
|
273
|
-
body,
|
|
274
|
-
});
|
|
175
|
+
b.m("GET").h(headers).b(body);
|
|
176
|
+
return b.build();
|
|
275
177
|
};
|
|
276
178
|
exports.se_GetConfigurationSetEventDestinationsCommand = se_GetConfigurationSetEventDestinationsCommand;
|
|
277
179
|
const se_GetDedicatedIpCommand = async (input, context) => {
|
|
278
|
-
const
|
|
180
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
279
181
|
const headers = {};
|
|
280
|
-
|
|
281
|
-
|
|
182
|
+
b.bp("/v1/email/dedicated-ips/{Ip}");
|
|
183
|
+
b.p("Ip", () => input.Ip, "{Ip}", false);
|
|
282
184
|
let body;
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
hostname,
|
|
286
|
-
port,
|
|
287
|
-
method: "GET",
|
|
288
|
-
headers,
|
|
289
|
-
path: resolvedPath,
|
|
290
|
-
body,
|
|
291
|
-
});
|
|
185
|
+
b.m("GET").h(headers).b(body);
|
|
186
|
+
return b.build();
|
|
292
187
|
};
|
|
293
188
|
exports.se_GetDedicatedIpCommand = se_GetDedicatedIpCommand;
|
|
294
189
|
const se_GetDedicatedIpsCommand = async (input, context) => {
|
|
295
|
-
const
|
|
190
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
296
191
|
const headers = {};
|
|
297
|
-
|
|
192
|
+
b.bp("/v1/email/dedicated-ips");
|
|
298
193
|
const query = (0, smithy_client_1.map)({
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
194
|
+
[_PN]: [, input[_PN]],
|
|
195
|
+
[_NT]: [, input[_NT]],
|
|
196
|
+
[_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
|
|
302
197
|
});
|
|
303
198
|
let body;
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
hostname,
|
|
307
|
-
port,
|
|
308
|
-
method: "GET",
|
|
309
|
-
headers,
|
|
310
|
-
path: resolvedPath,
|
|
311
|
-
query,
|
|
312
|
-
body,
|
|
313
|
-
});
|
|
199
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
200
|
+
return b.build();
|
|
314
201
|
};
|
|
315
202
|
exports.se_GetDedicatedIpsCommand = se_GetDedicatedIpsCommand;
|
|
316
203
|
const se_GetDeliverabilityDashboardOptionsCommand = async (input, context) => {
|
|
317
|
-
const
|
|
204
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
318
205
|
const headers = {
|
|
319
206
|
"content-type": "application/json",
|
|
320
207
|
};
|
|
321
|
-
|
|
208
|
+
b.bp("/v1/email/deliverability-dashboard");
|
|
322
209
|
let body;
|
|
323
210
|
body = "";
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
hostname,
|
|
327
|
-
port,
|
|
328
|
-
method: "GET",
|
|
329
|
-
headers,
|
|
330
|
-
path: resolvedPath,
|
|
331
|
-
body,
|
|
332
|
-
});
|
|
211
|
+
b.m("GET").h(headers).b(body);
|
|
212
|
+
return b.build();
|
|
333
213
|
};
|
|
334
214
|
exports.se_GetDeliverabilityDashboardOptionsCommand = se_GetDeliverabilityDashboardOptionsCommand;
|
|
335
215
|
const se_GetDeliverabilityTestReportCommand = async (input, context) => {
|
|
336
|
-
const
|
|
216
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
337
217
|
const headers = {};
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReportId", () => input.ReportId, "{ReportId}", false);
|
|
218
|
+
b.bp("/v1/email/deliverability-dashboard/test-reports/{ReportId}");
|
|
219
|
+
b.p("ReportId", () => input.ReportId, "{ReportId}", false);
|
|
341
220
|
let body;
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
hostname,
|
|
345
|
-
port,
|
|
346
|
-
method: "GET",
|
|
347
|
-
headers,
|
|
348
|
-
path: resolvedPath,
|
|
349
|
-
body,
|
|
350
|
-
});
|
|
221
|
+
b.m("GET").h(headers).b(body);
|
|
222
|
+
return b.build();
|
|
351
223
|
};
|
|
352
224
|
exports.se_GetDeliverabilityTestReportCommand = se_GetDeliverabilityTestReportCommand;
|
|
353
225
|
const se_GetDomainDeliverabilityCampaignCommand = async (input, context) => {
|
|
354
|
-
const
|
|
226
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
355
227
|
const headers = {};
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
228
|
+
b.bp("/v1/email/deliverability-dashboard/campaigns/{CampaignId}");
|
|
229
|
+
b.p("CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
359
230
|
let body;
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
hostname,
|
|
363
|
-
port,
|
|
364
|
-
method: "GET",
|
|
365
|
-
headers,
|
|
366
|
-
path: resolvedPath,
|
|
367
|
-
body,
|
|
368
|
-
});
|
|
231
|
+
b.m("GET").h(headers).b(body);
|
|
232
|
+
return b.build();
|
|
369
233
|
};
|
|
370
234
|
exports.se_GetDomainDeliverabilityCampaignCommand = se_GetDomainDeliverabilityCampaignCommand;
|
|
371
235
|
const se_GetDomainStatisticsReportCommand = async (input, context) => {
|
|
372
|
-
const
|
|
236
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
373
237
|
const headers = {};
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Domain", () => input.Domain, "{Domain}", false);
|
|
238
|
+
b.bp("/v1/email/deliverability-dashboard/statistics-report/{Domain}");
|
|
239
|
+
b.p("Domain", () => input.Domain, "{Domain}", false);
|
|
377
240
|
const query = (0, smithy_client_1.map)({
|
|
378
|
-
|
|
241
|
+
[_SD]: [
|
|
379
242
|
(0, smithy_client_1.expectNonNull)(input.StartDate, `StartDate`) != null,
|
|
380
|
-
() => (input.
|
|
243
|
+
() => (input[_SD].toISOString().split(".")[0] + "Z").toString(),
|
|
381
244
|
],
|
|
382
|
-
|
|
245
|
+
[_ED]: [
|
|
383
246
|
(0, smithy_client_1.expectNonNull)(input.EndDate, `EndDate`) != null,
|
|
384
|
-
() => (input.
|
|
247
|
+
() => (input[_ED].toISOString().split(".")[0] + "Z").toString(),
|
|
385
248
|
],
|
|
386
249
|
});
|
|
387
250
|
let body;
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
hostname,
|
|
391
|
-
port,
|
|
392
|
-
method: "GET",
|
|
393
|
-
headers,
|
|
394
|
-
path: resolvedPath,
|
|
395
|
-
query,
|
|
396
|
-
body,
|
|
397
|
-
});
|
|
251
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
252
|
+
return b.build();
|
|
398
253
|
};
|
|
399
254
|
exports.se_GetDomainStatisticsReportCommand = se_GetDomainStatisticsReportCommand;
|
|
400
255
|
const se_GetEmailIdentityCommand = async (input, context) => {
|
|
401
|
-
const
|
|
256
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
402
257
|
const headers = {};
|
|
403
|
-
|
|
404
|
-
|
|
258
|
+
b.bp("/v1/email/identities/{EmailIdentity}");
|
|
259
|
+
b.p("EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
|
|
405
260
|
let body;
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
hostname,
|
|
409
|
-
port,
|
|
410
|
-
method: "GET",
|
|
411
|
-
headers,
|
|
412
|
-
path: resolvedPath,
|
|
413
|
-
body,
|
|
414
|
-
});
|
|
261
|
+
b.m("GET").h(headers).b(body);
|
|
262
|
+
return b.build();
|
|
415
263
|
};
|
|
416
264
|
exports.se_GetEmailIdentityCommand = se_GetEmailIdentityCommand;
|
|
417
265
|
const se_ListConfigurationSetsCommand = async (input, context) => {
|
|
418
|
-
const
|
|
266
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
419
267
|
const headers = {};
|
|
420
|
-
|
|
268
|
+
b.bp("/v1/email/configuration-sets");
|
|
421
269
|
const query = (0, smithy_client_1.map)({
|
|
422
|
-
|
|
423
|
-
|
|
270
|
+
[_NT]: [, input[_NT]],
|
|
271
|
+
[_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
|
|
424
272
|
});
|
|
425
273
|
let body;
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
hostname,
|
|
429
|
-
port,
|
|
430
|
-
method: "GET",
|
|
431
|
-
headers,
|
|
432
|
-
path: resolvedPath,
|
|
433
|
-
query,
|
|
434
|
-
body,
|
|
435
|
-
});
|
|
274
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
275
|
+
return b.build();
|
|
436
276
|
};
|
|
437
277
|
exports.se_ListConfigurationSetsCommand = se_ListConfigurationSetsCommand;
|
|
438
278
|
const se_ListDedicatedIpPoolsCommand = async (input, context) => {
|
|
439
|
-
const
|
|
279
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
440
280
|
const headers = {};
|
|
441
|
-
|
|
281
|
+
b.bp("/v1/email/dedicated-ip-pools");
|
|
442
282
|
const query = (0, smithy_client_1.map)({
|
|
443
|
-
|
|
444
|
-
|
|
283
|
+
[_NT]: [, input[_NT]],
|
|
284
|
+
[_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
|
|
445
285
|
});
|
|
446
286
|
let body;
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
hostname,
|
|
450
|
-
port,
|
|
451
|
-
method: "GET",
|
|
452
|
-
headers,
|
|
453
|
-
path: resolvedPath,
|
|
454
|
-
query,
|
|
455
|
-
body,
|
|
456
|
-
});
|
|
287
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
288
|
+
return b.build();
|
|
457
289
|
};
|
|
458
290
|
exports.se_ListDedicatedIpPoolsCommand = se_ListDedicatedIpPoolsCommand;
|
|
459
291
|
const se_ListDeliverabilityTestReportsCommand = async (input, context) => {
|
|
460
|
-
const
|
|
292
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
461
293
|
const headers = {};
|
|
462
|
-
|
|
463
|
-
"/v1/email/deliverability-dashboard/test-reports";
|
|
294
|
+
b.bp("/v1/email/deliverability-dashboard/test-reports");
|
|
464
295
|
const query = (0, smithy_client_1.map)({
|
|
465
|
-
|
|
466
|
-
|
|
296
|
+
[_NT]: [, input[_NT]],
|
|
297
|
+
[_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
|
|
467
298
|
});
|
|
468
299
|
let body;
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
hostname,
|
|
472
|
-
port,
|
|
473
|
-
method: "GET",
|
|
474
|
-
headers,
|
|
475
|
-
path: resolvedPath,
|
|
476
|
-
query,
|
|
477
|
-
body,
|
|
478
|
-
});
|
|
300
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
301
|
+
return b.build();
|
|
479
302
|
};
|
|
480
303
|
exports.se_ListDeliverabilityTestReportsCommand = se_ListDeliverabilityTestReportsCommand;
|
|
481
304
|
const se_ListDomainDeliverabilityCampaignsCommand = async (input, context) => {
|
|
482
|
-
const
|
|
305
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
483
306
|
const headers = {};
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SubscribedDomain", () => input.SubscribedDomain, "{SubscribedDomain}", false);
|
|
307
|
+
b.bp("/v1/email/deliverability-dashboard/domains/{SubscribedDomain}/campaigns");
|
|
308
|
+
b.p("SubscribedDomain", () => input.SubscribedDomain, "{SubscribedDomain}", false);
|
|
487
309
|
const query = (0, smithy_client_1.map)({
|
|
488
|
-
|
|
310
|
+
[_SD]: [
|
|
489
311
|
(0, smithy_client_1.expectNonNull)(input.StartDate, `StartDate`) != null,
|
|
490
|
-
() => (input.
|
|
312
|
+
() => (input[_SD].toISOString().split(".")[0] + "Z").toString(),
|
|
491
313
|
],
|
|
492
|
-
|
|
314
|
+
[_ED]: [
|
|
493
315
|
(0, smithy_client_1.expectNonNull)(input.EndDate, `EndDate`) != null,
|
|
494
|
-
() => (input.
|
|
316
|
+
() => (input[_ED].toISOString().split(".")[0] + "Z").toString(),
|
|
495
317
|
],
|
|
496
|
-
|
|
497
|
-
|
|
318
|
+
[_NT]: [, input[_NT]],
|
|
319
|
+
[_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
|
|
498
320
|
});
|
|
499
321
|
let body;
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
hostname,
|
|
503
|
-
port,
|
|
504
|
-
method: "GET",
|
|
505
|
-
headers,
|
|
506
|
-
path: resolvedPath,
|
|
507
|
-
query,
|
|
508
|
-
body,
|
|
509
|
-
});
|
|
322
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
323
|
+
return b.build();
|
|
510
324
|
};
|
|
511
325
|
exports.se_ListDomainDeliverabilityCampaignsCommand = se_ListDomainDeliverabilityCampaignsCommand;
|
|
512
326
|
const se_ListEmailIdentitiesCommand = async (input, context) => {
|
|
513
|
-
const
|
|
327
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
514
328
|
const headers = {};
|
|
515
|
-
|
|
329
|
+
b.bp("/v1/email/identities");
|
|
516
330
|
const query = (0, smithy_client_1.map)({
|
|
517
|
-
|
|
518
|
-
|
|
331
|
+
[_NT]: [, input[_NT]],
|
|
332
|
+
[_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
|
|
519
333
|
});
|
|
520
334
|
let body;
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
hostname,
|
|
524
|
-
port,
|
|
525
|
-
method: "GET",
|
|
526
|
-
headers,
|
|
527
|
-
path: resolvedPath,
|
|
528
|
-
query,
|
|
529
|
-
body,
|
|
530
|
-
});
|
|
335
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
336
|
+
return b.build();
|
|
531
337
|
};
|
|
532
338
|
exports.se_ListEmailIdentitiesCommand = se_ListEmailIdentitiesCommand;
|
|
533
339
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
534
|
-
const
|
|
340
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
535
341
|
const headers = {};
|
|
536
|
-
|
|
342
|
+
b.bp("/v1/email/tags");
|
|
537
343
|
const query = (0, smithy_client_1.map)({
|
|
538
|
-
|
|
344
|
+
[_RA]: [, (0, smithy_client_1.expectNonNull)(input[_RA], `ResourceArn`)],
|
|
539
345
|
});
|
|
540
346
|
let body;
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
hostname,
|
|
544
|
-
port,
|
|
545
|
-
method: "GET",
|
|
546
|
-
headers,
|
|
547
|
-
path: resolvedPath,
|
|
548
|
-
query,
|
|
549
|
-
body,
|
|
550
|
-
});
|
|
347
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
348
|
+
return b.build();
|
|
551
349
|
};
|
|
552
350
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
553
351
|
const se_PutAccountDedicatedIpWarmupAttributesCommand = async (input, context) => {
|
|
554
|
-
const
|
|
352
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
555
353
|
const headers = {
|
|
556
354
|
"content-type": "application/json",
|
|
557
355
|
};
|
|
558
|
-
|
|
356
|
+
b.bp("/v1/email/account/dedicated-ips/warmup");
|
|
559
357
|
let body;
|
|
560
358
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
561
359
|
AutoWarmupEnabled: [],
|
|
562
360
|
}));
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
hostname,
|
|
566
|
-
port,
|
|
567
|
-
method: "PUT",
|
|
568
|
-
headers,
|
|
569
|
-
path: resolvedPath,
|
|
570
|
-
body,
|
|
571
|
-
});
|
|
361
|
+
b.m("PUT").h(headers).b(body);
|
|
362
|
+
return b.build();
|
|
572
363
|
};
|
|
573
364
|
exports.se_PutAccountDedicatedIpWarmupAttributesCommand = se_PutAccountDedicatedIpWarmupAttributesCommand;
|
|
574
365
|
const se_PutAccountSendingAttributesCommand = async (input, context) => {
|
|
575
|
-
const
|
|
366
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
576
367
|
const headers = {
|
|
577
368
|
"content-type": "application/json",
|
|
578
369
|
};
|
|
579
|
-
|
|
370
|
+
b.bp("/v1/email/account/sending");
|
|
580
371
|
let body;
|
|
581
372
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
582
373
|
SendingEnabled: [],
|
|
583
374
|
}));
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
hostname,
|
|
587
|
-
port,
|
|
588
|
-
method: "PUT",
|
|
589
|
-
headers,
|
|
590
|
-
path: resolvedPath,
|
|
591
|
-
body,
|
|
592
|
-
});
|
|
375
|
+
b.m("PUT").h(headers).b(body);
|
|
376
|
+
return b.build();
|
|
593
377
|
};
|
|
594
378
|
exports.se_PutAccountSendingAttributesCommand = se_PutAccountSendingAttributesCommand;
|
|
595
379
|
const se_PutConfigurationSetDeliveryOptionsCommand = async (input, context) => {
|
|
596
|
-
const
|
|
380
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
597
381
|
const headers = {
|
|
598
382
|
"content-type": "application/json",
|
|
599
383
|
};
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
384
|
+
b.bp("/v1/email/configuration-sets/{ConfigurationSetName}/delivery-options");
|
|
385
|
+
b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
603
386
|
let body;
|
|
604
387
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
605
388
|
SendingPoolName: [],
|
|
606
389
|
TlsPolicy: [],
|
|
607
390
|
}));
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
hostname,
|
|
611
|
-
port,
|
|
612
|
-
method: "PUT",
|
|
613
|
-
headers,
|
|
614
|
-
path: resolvedPath,
|
|
615
|
-
body,
|
|
616
|
-
});
|
|
391
|
+
b.m("PUT").h(headers).b(body);
|
|
392
|
+
return b.build();
|
|
617
393
|
};
|
|
618
394
|
exports.se_PutConfigurationSetDeliveryOptionsCommand = se_PutConfigurationSetDeliveryOptionsCommand;
|
|
619
395
|
const se_PutConfigurationSetReputationOptionsCommand = async (input, context) => {
|
|
620
|
-
const
|
|
396
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
621
397
|
const headers = {
|
|
622
398
|
"content-type": "application/json",
|
|
623
399
|
};
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
400
|
+
b.bp("/v1/email/configuration-sets/{ConfigurationSetName}/reputation-options");
|
|
401
|
+
b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
627
402
|
let body;
|
|
628
403
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
629
404
|
ReputationMetricsEnabled: [],
|
|
630
405
|
}));
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
hostname,
|
|
634
|
-
port,
|
|
635
|
-
method: "PUT",
|
|
636
|
-
headers,
|
|
637
|
-
path: resolvedPath,
|
|
638
|
-
body,
|
|
639
|
-
});
|
|
406
|
+
b.m("PUT").h(headers).b(body);
|
|
407
|
+
return b.build();
|
|
640
408
|
};
|
|
641
409
|
exports.se_PutConfigurationSetReputationOptionsCommand = se_PutConfigurationSetReputationOptionsCommand;
|
|
642
410
|
const se_PutConfigurationSetSendingOptionsCommand = async (input, context) => {
|
|
643
|
-
const
|
|
411
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
644
412
|
const headers = {
|
|
645
413
|
"content-type": "application/json",
|
|
646
414
|
};
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
415
|
+
b.bp("/v1/email/configuration-sets/{ConfigurationSetName}/sending");
|
|
416
|
+
b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
650
417
|
let body;
|
|
651
418
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
652
419
|
SendingEnabled: [],
|
|
653
420
|
}));
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
hostname,
|
|
657
|
-
port,
|
|
658
|
-
method: "PUT",
|
|
659
|
-
headers,
|
|
660
|
-
path: resolvedPath,
|
|
661
|
-
body,
|
|
662
|
-
});
|
|
421
|
+
b.m("PUT").h(headers).b(body);
|
|
422
|
+
return b.build();
|
|
663
423
|
};
|
|
664
424
|
exports.se_PutConfigurationSetSendingOptionsCommand = se_PutConfigurationSetSendingOptionsCommand;
|
|
665
425
|
const se_PutConfigurationSetTrackingOptionsCommand = async (input, context) => {
|
|
666
|
-
const
|
|
426
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
667
427
|
const headers = {
|
|
668
428
|
"content-type": "application/json",
|
|
669
429
|
};
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
430
|
+
b.bp("/v1/email/configuration-sets/{ConfigurationSetName}/tracking-options");
|
|
431
|
+
b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
673
432
|
let body;
|
|
674
433
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
675
434
|
CustomRedirectDomain: [],
|
|
676
435
|
}));
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
hostname,
|
|
680
|
-
port,
|
|
681
|
-
method: "PUT",
|
|
682
|
-
headers,
|
|
683
|
-
path: resolvedPath,
|
|
684
|
-
body,
|
|
685
|
-
});
|
|
436
|
+
b.m("PUT").h(headers).b(body);
|
|
437
|
+
return b.build();
|
|
686
438
|
};
|
|
687
439
|
exports.se_PutConfigurationSetTrackingOptionsCommand = se_PutConfigurationSetTrackingOptionsCommand;
|
|
688
440
|
const se_PutDedicatedIpInPoolCommand = async (input, context) => {
|
|
689
|
-
const
|
|
441
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
690
442
|
const headers = {
|
|
691
443
|
"content-type": "application/json",
|
|
692
444
|
};
|
|
693
|
-
|
|
694
|
-
|
|
445
|
+
b.bp("/v1/email/dedicated-ips/{Ip}/pool");
|
|
446
|
+
b.p("Ip", () => input.Ip, "{Ip}", false);
|
|
695
447
|
let body;
|
|
696
448
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
697
449
|
DestinationPoolName: [],
|
|
698
450
|
}));
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
hostname,
|
|
702
|
-
port,
|
|
703
|
-
method: "PUT",
|
|
704
|
-
headers,
|
|
705
|
-
path: resolvedPath,
|
|
706
|
-
body,
|
|
707
|
-
});
|
|
451
|
+
b.m("PUT").h(headers).b(body);
|
|
452
|
+
return b.build();
|
|
708
453
|
};
|
|
709
454
|
exports.se_PutDedicatedIpInPoolCommand = se_PutDedicatedIpInPoolCommand;
|
|
710
455
|
const se_PutDedicatedIpWarmupAttributesCommand = async (input, context) => {
|
|
711
|
-
const
|
|
456
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
712
457
|
const headers = {
|
|
713
458
|
"content-type": "application/json",
|
|
714
459
|
};
|
|
715
|
-
|
|
716
|
-
|
|
460
|
+
b.bp("/v1/email/dedicated-ips/{Ip}/warmup");
|
|
461
|
+
b.p("Ip", () => input.Ip, "{Ip}", false);
|
|
717
462
|
let body;
|
|
718
463
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
719
464
|
WarmupPercentage: [],
|
|
720
465
|
}));
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
hostname,
|
|
724
|
-
port,
|
|
725
|
-
method: "PUT",
|
|
726
|
-
headers,
|
|
727
|
-
path: resolvedPath,
|
|
728
|
-
body,
|
|
729
|
-
});
|
|
466
|
+
b.m("PUT").h(headers).b(body);
|
|
467
|
+
return b.build();
|
|
730
468
|
};
|
|
731
469
|
exports.se_PutDedicatedIpWarmupAttributesCommand = se_PutDedicatedIpWarmupAttributesCommand;
|
|
732
470
|
const se_PutDeliverabilityDashboardOptionCommand = async (input, context) => {
|
|
733
|
-
const
|
|
471
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
734
472
|
const headers = {
|
|
735
473
|
"content-type": "application/json",
|
|
736
474
|
};
|
|
737
|
-
|
|
475
|
+
b.bp("/v1/email/deliverability-dashboard");
|
|
738
476
|
let body;
|
|
739
477
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
740
478
|
DashboardEnabled: [],
|
|
741
479
|
SubscribedDomains: (_) => se_DomainDeliverabilityTrackingOptions(_, context),
|
|
742
480
|
}));
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
hostname,
|
|
746
|
-
port,
|
|
747
|
-
method: "PUT",
|
|
748
|
-
headers,
|
|
749
|
-
path: resolvedPath,
|
|
750
|
-
body,
|
|
751
|
-
});
|
|
481
|
+
b.m("PUT").h(headers).b(body);
|
|
482
|
+
return b.build();
|
|
752
483
|
};
|
|
753
484
|
exports.se_PutDeliverabilityDashboardOptionCommand = se_PutDeliverabilityDashboardOptionCommand;
|
|
754
485
|
const se_PutEmailIdentityDkimAttributesCommand = async (input, context) => {
|
|
755
|
-
const
|
|
486
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
756
487
|
const headers = {
|
|
757
488
|
"content-type": "application/json",
|
|
758
489
|
};
|
|
759
|
-
|
|
760
|
-
|
|
490
|
+
b.bp("/v1/email/identities/{EmailIdentity}/dkim");
|
|
491
|
+
b.p("EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
|
|
761
492
|
let body;
|
|
762
493
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
763
494
|
SigningEnabled: [],
|
|
764
495
|
}));
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
hostname,
|
|
768
|
-
port,
|
|
769
|
-
method: "PUT",
|
|
770
|
-
headers,
|
|
771
|
-
path: resolvedPath,
|
|
772
|
-
body,
|
|
773
|
-
});
|
|
496
|
+
b.m("PUT").h(headers).b(body);
|
|
497
|
+
return b.build();
|
|
774
498
|
};
|
|
775
499
|
exports.se_PutEmailIdentityDkimAttributesCommand = se_PutEmailIdentityDkimAttributesCommand;
|
|
776
500
|
const se_PutEmailIdentityFeedbackAttributesCommand = async (input, context) => {
|
|
777
|
-
const
|
|
501
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
778
502
|
const headers = {
|
|
779
503
|
"content-type": "application/json",
|
|
780
504
|
};
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
|
|
505
|
+
b.bp("/v1/email/identities/{EmailIdentity}/feedback");
|
|
506
|
+
b.p("EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
|
|
784
507
|
let body;
|
|
785
508
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
786
509
|
EmailForwardingEnabled: [],
|
|
787
510
|
}));
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
hostname,
|
|
791
|
-
port,
|
|
792
|
-
method: "PUT",
|
|
793
|
-
headers,
|
|
794
|
-
path: resolvedPath,
|
|
795
|
-
body,
|
|
796
|
-
});
|
|
511
|
+
b.m("PUT").h(headers).b(body);
|
|
512
|
+
return b.build();
|
|
797
513
|
};
|
|
798
514
|
exports.se_PutEmailIdentityFeedbackAttributesCommand = se_PutEmailIdentityFeedbackAttributesCommand;
|
|
799
515
|
const se_PutEmailIdentityMailFromAttributesCommand = async (input, context) => {
|
|
800
|
-
const
|
|
516
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
801
517
|
const headers = {
|
|
802
518
|
"content-type": "application/json",
|
|
803
519
|
};
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
|
|
520
|
+
b.bp("/v1/email/identities/{EmailIdentity}/mail-from");
|
|
521
|
+
b.p("EmailIdentity", () => input.EmailIdentity, "{EmailIdentity}", false);
|
|
807
522
|
let body;
|
|
808
523
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
809
524
|
BehaviorOnMxFailure: [],
|
|
810
525
|
MailFromDomain: [],
|
|
811
526
|
}));
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
hostname,
|
|
815
|
-
port,
|
|
816
|
-
method: "PUT",
|
|
817
|
-
headers,
|
|
818
|
-
path: resolvedPath,
|
|
819
|
-
body,
|
|
820
|
-
});
|
|
527
|
+
b.m("PUT").h(headers).b(body);
|
|
528
|
+
return b.build();
|
|
821
529
|
};
|
|
822
530
|
exports.se_PutEmailIdentityMailFromAttributesCommand = se_PutEmailIdentityMailFromAttributesCommand;
|
|
823
531
|
const se_SendEmailCommand = async (input, context) => {
|
|
824
|
-
const
|
|
532
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
825
533
|
const headers = {
|
|
826
534
|
"content-type": "application/json",
|
|
827
535
|
};
|
|
828
|
-
|
|
536
|
+
b.bp("/v1/email/outbound-emails");
|
|
829
537
|
let body;
|
|
830
538
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
831
539
|
ConfigurationSetName: [],
|
|
@@ -836,85 +544,55 @@ const se_SendEmailCommand = async (input, context) => {
|
|
|
836
544
|
FromEmailAddress: [],
|
|
837
545
|
ReplyToAddresses: (_) => (0, smithy_client_1._json)(_),
|
|
838
546
|
}));
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
hostname,
|
|
842
|
-
port,
|
|
843
|
-
method: "POST",
|
|
844
|
-
headers,
|
|
845
|
-
path: resolvedPath,
|
|
846
|
-
body,
|
|
847
|
-
});
|
|
547
|
+
b.m("POST").h(headers).b(body);
|
|
548
|
+
return b.build();
|
|
848
549
|
};
|
|
849
550
|
exports.se_SendEmailCommand = se_SendEmailCommand;
|
|
850
551
|
const se_TagResourceCommand = async (input, context) => {
|
|
851
|
-
const
|
|
552
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
852
553
|
const headers = {
|
|
853
554
|
"content-type": "application/json",
|
|
854
555
|
};
|
|
855
|
-
|
|
556
|
+
b.bp("/v1/email/tags");
|
|
856
557
|
let body;
|
|
857
558
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
858
559
|
ResourceArn: [],
|
|
859
560
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
860
561
|
}));
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
hostname,
|
|
864
|
-
port,
|
|
865
|
-
method: "POST",
|
|
866
|
-
headers,
|
|
867
|
-
path: resolvedPath,
|
|
868
|
-
body,
|
|
869
|
-
});
|
|
562
|
+
b.m("POST").h(headers).b(body);
|
|
563
|
+
return b.build();
|
|
870
564
|
};
|
|
871
565
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
872
566
|
const se_UntagResourceCommand = async (input, context) => {
|
|
873
|
-
const
|
|
567
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
874
568
|
const headers = {};
|
|
875
|
-
|
|
569
|
+
b.bp("/v1/email/tags");
|
|
876
570
|
const query = (0, smithy_client_1.map)({
|
|
877
|
-
|
|
878
|
-
|
|
571
|
+
[_RA]: [, (0, smithy_client_1.expectNonNull)(input[_RA], `ResourceArn`)],
|
|
572
|
+
[_TK]: [
|
|
879
573
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
880
|
-
() => (input
|
|
574
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
881
575
|
],
|
|
882
576
|
});
|
|
883
577
|
let body;
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
hostname,
|
|
887
|
-
port,
|
|
888
|
-
method: "DELETE",
|
|
889
|
-
headers,
|
|
890
|
-
path: resolvedPath,
|
|
891
|
-
query,
|
|
892
|
-
body,
|
|
893
|
-
});
|
|
578
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
579
|
+
return b.build();
|
|
894
580
|
};
|
|
895
581
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
896
582
|
const se_UpdateConfigurationSetEventDestinationCommand = async (input, context) => {
|
|
897
|
-
const
|
|
583
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
898
584
|
const headers = {
|
|
899
585
|
"content-type": "application/json",
|
|
900
586
|
};
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventDestinationName", () => input.EventDestinationName, "{EventDestinationName}", false);
|
|
587
|
+
b.bp("/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}");
|
|
588
|
+
b.p("ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
|
|
589
|
+
b.p("EventDestinationName", () => input.EventDestinationName, "{EventDestinationName}", false);
|
|
905
590
|
let body;
|
|
906
591
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
907
592
|
EventDestination: (_) => (0, smithy_client_1._json)(_),
|
|
908
593
|
}));
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
hostname,
|
|
912
|
-
port,
|
|
913
|
-
method: "PUT",
|
|
914
|
-
headers,
|
|
915
|
-
path: resolvedPath,
|
|
916
|
-
body,
|
|
917
|
-
});
|
|
594
|
+
b.m("PUT").h(headers).b(body);
|
|
595
|
+
return b.build();
|
|
918
596
|
};
|
|
919
597
|
exports.se_UpdateConfigurationSetEventDestinationCommand = se_UpdateConfigurationSetEventDestinationCommand;
|
|
920
598
|
const de_CreateConfigurationSetCommand = async (output, context) => {
|
|
@@ -2934,6 +2612,14 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
2934
2612
|
value !== "" &&
|
|
2935
2613
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2936
2614
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2615
|
+
const _BIN = "BlacklistItemNames";
|
|
2616
|
+
const _ED = "EndDate";
|
|
2617
|
+
const _NT = "NextToken";
|
|
2618
|
+
const _PN = "PoolName";
|
|
2619
|
+
const _PS = "PageSize";
|
|
2620
|
+
const _RA = "ResourceArn";
|
|
2621
|
+
const _SD = "StartDate";
|
|
2622
|
+
const _TK = "TagKeys";
|
|
2937
2623
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2938
2624
|
if (encoded.length) {
|
|
2939
2625
|
return JSON.parse(encoded);
|