@aws-sdk/client-sesv2 3.856.0 → 3.858.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/README.md +103 -7
- package/dist-cjs/index.js +710 -23
- package/dist-es/SESv2.js +24 -0
- package/dist-es/commands/CreateTenantCommand.js +22 -0
- package/dist-es/commands/CreateTenantResourceAssociationCommand.js +22 -0
- package/dist-es/commands/DeleteTenantCommand.js +22 -0
- package/dist-es/commands/DeleteTenantResourceAssociationCommand.js +22 -0
- package/dist-es/commands/GetReputationEntityCommand.js +22 -0
- package/dist-es/commands/GetTenantCommand.js +22 -0
- package/dist-es/commands/ListReputationEntitiesCommand.js +22 -0
- package/dist-es/commands/ListResourceTenantsCommand.js +22 -0
- package/dist-es/commands/ListTenantResourcesCommand.js +22 -0
- package/dist-es/commands/ListTenantsCommand.js +22 -0
- package/dist-es/commands/PutAccountDetailsCommand.js +1 -1
- package/dist-es/commands/UpdateReputationEntityCustomerManagedStatusCommand.js +22 -0
- package/dist-es/commands/UpdateReputationEntityPolicyCommand.js +22 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/models/models_0.js +21 -10
- package/dist-es/models/models_1.js +15 -0
- package/dist-es/pagination/ListReputationEntitiesPaginator.js +4 -0
- package/dist-es/pagination/ListResourceTenantsPaginator.js +4 -0
- package/dist-es/pagination/ListTenantResourcesPaginator.js +4 -0
- package/dist-es/pagination/ListTenantsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +395 -0
- package/dist-types/SESv2.d.ts +86 -0
- package/dist-types/SESv2Client.d.ts +14 -2
- package/dist-types/commands/CreateTenantCommand.d.ts +105 -0
- package/dist-types/commands/CreateTenantResourceAssociationCommand.d.ts +89 -0
- package/dist-types/commands/DeleteTenantCommand.d.ts +81 -0
- package/dist-types/commands/DeleteTenantResourceAssociationCommand.d.ts +83 -0
- package/dist-types/commands/GetReputationEntityCommand.d.ts +105 -0
- package/dist-types/commands/GetTenantCommand.d.ts +94 -0
- package/dist-types/commands/ListRecommendationsCommand.d.ts +1 -1
- package/dist-types/commands/ListReputationEntitiesCommand.d.ts +107 -0
- package/dist-types/commands/ListResourceTenantsCommand.d.ts +94 -0
- package/dist-types/commands/ListSuppressedDestinationsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListTenantResourcesCommand.d.ts +95 -0
- package/dist-types/commands/ListTenantsCommand.d.ts +89 -0
- package/dist-types/commands/PutAccountDedicatedIpWarmupAttributesCommand.d.ts +1 -1
- package/dist-types/commands/PutAccountDetailsCommand.d.ts +1 -1
- package/dist-types/commands/PutAccountSendingAttributesCommand.d.ts +1 -1
- package/dist-types/commands/PutAccountSuppressionAttributesCommand.d.ts +1 -1
- package/dist-types/commands/PutAccountVdmAttributesCommand.d.ts +1 -1
- package/dist-types/commands/PutConfigurationSetArchivingOptionsCommand.d.ts +1 -1
- package/dist-types/commands/PutConfigurationSetDeliveryOptionsCommand.d.ts +1 -1
- package/dist-types/commands/PutConfigurationSetReputationOptionsCommand.d.ts +1 -1
- package/dist-types/commands/PutConfigurationSetSendingOptionsCommand.d.ts +1 -1
- package/dist-types/commands/SendBulkEmailCommand.d.ts +1 -0
- package/dist-types/commands/SendEmailCommand.d.ts +1 -0
- package/dist-types/commands/UpdateReputationEntityCustomerManagedStatusCommand.d.ts +89 -0
- package/dist-types/commands/UpdateReputationEntityPolicyCommand.d.ts +85 -0
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +399 -314
- package/dist-types/models/models_1.d.ts +612 -1
- package/dist-types/pagination/ListReputationEntitiesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListResourceTenantsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTenantResourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTenantsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +108 -0
- package/dist-types/ts3.4/SESv2.d.ts +212 -0
- package/dist-types/ts3.4/SESv2Client.d.ts +74 -2
- package/dist-types/ts3.4/commands/CreateTenantCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateTenantResourceAssociationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteTenantCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteTenantResourceAssociationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetReputationEntityCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetTenantCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListReputationEntitiesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListResourceTenantsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListSuppressedDestinationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTenantResourcesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTenantsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/PutAccountDedicatedIpWarmupAttributesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutAccountDetailsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutAccountSendingAttributesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutAccountSuppressionAttributesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutAccountVdmAttributesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutConfigurationSetArchivingOptionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutConfigurationSetDeliveryOptionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutConfigurationSetReputationOptionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutConfigurationSetSendingOptionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateReputationEntityCustomerManagedStatusCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateReputationEntityPolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/dist-types/ts3.4/models/models_0.d.ts +104 -69
- package/dist-types/ts3.4/models/models_1.d.ts +131 -0
- package/dist-types/ts3.4/pagination/ListReputationEntitiesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListResourceTenantsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTenantResourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTenantsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +144 -0
- package/package.json +12 -12
|
@@ -231,6 +231,34 @@ export const se_CreateMultiRegionEndpointCommand = async (input, context) => {
|
|
|
231
231
|
b.m("POST").h(headers).b(body);
|
|
232
232
|
return b.build();
|
|
233
233
|
};
|
|
234
|
+
export const se_CreateTenantCommand = async (input, context) => {
|
|
235
|
+
const b = rb(input, context);
|
|
236
|
+
const headers = {
|
|
237
|
+
"content-type": "application/json",
|
|
238
|
+
};
|
|
239
|
+
b.bp("/v2/email/tenants");
|
|
240
|
+
let body;
|
|
241
|
+
body = JSON.stringify(take(input, {
|
|
242
|
+
Tags: (_) => _json(_),
|
|
243
|
+
TenantName: [],
|
|
244
|
+
}));
|
|
245
|
+
b.m("POST").h(headers).b(body);
|
|
246
|
+
return b.build();
|
|
247
|
+
};
|
|
248
|
+
export const se_CreateTenantResourceAssociationCommand = async (input, context) => {
|
|
249
|
+
const b = rb(input, context);
|
|
250
|
+
const headers = {
|
|
251
|
+
"content-type": "application/json",
|
|
252
|
+
};
|
|
253
|
+
b.bp("/v2/email/tenants/resources");
|
|
254
|
+
let body;
|
|
255
|
+
body = JSON.stringify(take(input, {
|
|
256
|
+
ResourceArn: [],
|
|
257
|
+
TenantName: [],
|
|
258
|
+
}));
|
|
259
|
+
b.m("POST").h(headers).b(body);
|
|
260
|
+
return b.build();
|
|
261
|
+
};
|
|
234
262
|
export const se_DeleteConfigurationSetCommand = async (input, context) => {
|
|
235
263
|
const b = rb(input, context);
|
|
236
264
|
const headers = {};
|
|
@@ -333,6 +361,33 @@ export const se_DeleteSuppressedDestinationCommand = async (input, context) => {
|
|
|
333
361
|
b.m("DELETE").h(headers).b(body);
|
|
334
362
|
return b.build();
|
|
335
363
|
};
|
|
364
|
+
export const se_DeleteTenantCommand = async (input, context) => {
|
|
365
|
+
const b = rb(input, context);
|
|
366
|
+
const headers = {
|
|
367
|
+
"content-type": "application/json",
|
|
368
|
+
};
|
|
369
|
+
b.bp("/v2/email/tenants/delete");
|
|
370
|
+
let body;
|
|
371
|
+
body = JSON.stringify(take(input, {
|
|
372
|
+
TenantName: [],
|
|
373
|
+
}));
|
|
374
|
+
b.m("POST").h(headers).b(body);
|
|
375
|
+
return b.build();
|
|
376
|
+
};
|
|
377
|
+
export const se_DeleteTenantResourceAssociationCommand = async (input, context) => {
|
|
378
|
+
const b = rb(input, context);
|
|
379
|
+
const headers = {
|
|
380
|
+
"content-type": "application/json",
|
|
381
|
+
};
|
|
382
|
+
b.bp("/v2/email/tenants/resources/delete");
|
|
383
|
+
let body;
|
|
384
|
+
body = JSON.stringify(take(input, {
|
|
385
|
+
ResourceArn: [],
|
|
386
|
+
TenantName: [],
|
|
387
|
+
}));
|
|
388
|
+
b.m("POST").h(headers).b(body);
|
|
389
|
+
return b.build();
|
|
390
|
+
};
|
|
336
391
|
export const se_GetAccountCommand = async (input, context) => {
|
|
337
392
|
const b = rb(input, context);
|
|
338
393
|
const headers = {};
|
|
@@ -531,6 +586,16 @@ export const se_GetMultiRegionEndpointCommand = async (input, context) => {
|
|
|
531
586
|
b.m("GET").h(headers).b(body);
|
|
532
587
|
return b.build();
|
|
533
588
|
};
|
|
589
|
+
export const se_GetReputationEntityCommand = async (input, context) => {
|
|
590
|
+
const b = rb(input, context);
|
|
591
|
+
const headers = {};
|
|
592
|
+
b.bp("/v2/email/reputation/entities/{ReputationEntityType}/{ReputationEntityReference}");
|
|
593
|
+
b.p("ReputationEntityReference", () => input.ReputationEntityReference, "{ReputationEntityReference}", false);
|
|
594
|
+
b.p("ReputationEntityType", () => input.ReputationEntityType, "{ReputationEntityType}", false);
|
|
595
|
+
let body;
|
|
596
|
+
b.m("GET").h(headers).b(body);
|
|
597
|
+
return b.build();
|
|
598
|
+
};
|
|
534
599
|
export const se_GetSuppressedDestinationCommand = async (input, context) => {
|
|
535
600
|
const b = rb(input, context);
|
|
536
601
|
const headers = {};
|
|
@@ -540,6 +605,19 @@ export const se_GetSuppressedDestinationCommand = async (input, context) => {
|
|
|
540
605
|
b.m("GET").h(headers).b(body);
|
|
541
606
|
return b.build();
|
|
542
607
|
};
|
|
608
|
+
export const se_GetTenantCommand = async (input, context) => {
|
|
609
|
+
const b = rb(input, context);
|
|
610
|
+
const headers = {
|
|
611
|
+
"content-type": "application/json",
|
|
612
|
+
};
|
|
613
|
+
b.bp("/v2/email/tenants/get");
|
|
614
|
+
let body;
|
|
615
|
+
body = JSON.stringify(take(input, {
|
|
616
|
+
TenantName: [],
|
|
617
|
+
}));
|
|
618
|
+
b.m("POST").h(headers).b(body);
|
|
619
|
+
return b.build();
|
|
620
|
+
};
|
|
543
621
|
export const se_ListConfigurationSetsCommand = async (input, context) => {
|
|
544
622
|
const b = rb(input, context);
|
|
545
623
|
const headers = {};
|
|
@@ -713,6 +791,36 @@ export const se_ListRecommendationsCommand = async (input, context) => {
|
|
|
713
791
|
b.m("POST").h(headers).b(body);
|
|
714
792
|
return b.build();
|
|
715
793
|
};
|
|
794
|
+
export const se_ListReputationEntitiesCommand = async (input, context) => {
|
|
795
|
+
const b = rb(input, context);
|
|
796
|
+
const headers = {
|
|
797
|
+
"content-type": "application/json",
|
|
798
|
+
};
|
|
799
|
+
b.bp("/v2/email/reputation/entities");
|
|
800
|
+
let body;
|
|
801
|
+
body = JSON.stringify(take(input, {
|
|
802
|
+
Filter: (_) => _json(_),
|
|
803
|
+
NextToken: [],
|
|
804
|
+
PageSize: [],
|
|
805
|
+
}));
|
|
806
|
+
b.m("POST").h(headers).b(body);
|
|
807
|
+
return b.build();
|
|
808
|
+
};
|
|
809
|
+
export const se_ListResourceTenantsCommand = async (input, context) => {
|
|
810
|
+
const b = rb(input, context);
|
|
811
|
+
const headers = {
|
|
812
|
+
"content-type": "application/json",
|
|
813
|
+
};
|
|
814
|
+
b.bp("/v2/email/resources/tenants/list");
|
|
815
|
+
let body;
|
|
816
|
+
body = JSON.stringify(take(input, {
|
|
817
|
+
NextToken: [],
|
|
818
|
+
PageSize: [],
|
|
819
|
+
ResourceArn: [],
|
|
820
|
+
}));
|
|
821
|
+
b.m("POST").h(headers).b(body);
|
|
822
|
+
return b.build();
|
|
823
|
+
};
|
|
716
824
|
export const se_ListSuppressedDestinationsCommand = async (input, context) => {
|
|
717
825
|
const b = rb(input, context);
|
|
718
826
|
const headers = {};
|
|
@@ -739,6 +847,36 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
739
847
|
b.m("GET").h(headers).q(query).b(body);
|
|
740
848
|
return b.build();
|
|
741
849
|
};
|
|
850
|
+
export const se_ListTenantResourcesCommand = async (input, context) => {
|
|
851
|
+
const b = rb(input, context);
|
|
852
|
+
const headers = {
|
|
853
|
+
"content-type": "application/json",
|
|
854
|
+
};
|
|
855
|
+
b.bp("/v2/email/tenants/resources/list");
|
|
856
|
+
let body;
|
|
857
|
+
body = JSON.stringify(take(input, {
|
|
858
|
+
Filter: (_) => _json(_),
|
|
859
|
+
NextToken: [],
|
|
860
|
+
PageSize: [],
|
|
861
|
+
TenantName: [],
|
|
862
|
+
}));
|
|
863
|
+
b.m("POST").h(headers).b(body);
|
|
864
|
+
return b.build();
|
|
865
|
+
};
|
|
866
|
+
export const se_ListTenantsCommand = async (input, context) => {
|
|
867
|
+
const b = rb(input, context);
|
|
868
|
+
const headers = {
|
|
869
|
+
"content-type": "application/json",
|
|
870
|
+
};
|
|
871
|
+
b.bp("/v2/email/tenants/list");
|
|
872
|
+
let body;
|
|
873
|
+
body = JSON.stringify(take(input, {
|
|
874
|
+
NextToken: [],
|
|
875
|
+
PageSize: [],
|
|
876
|
+
}));
|
|
877
|
+
b.m("POST").h(headers).b(body);
|
|
878
|
+
return b.build();
|
|
879
|
+
};
|
|
742
880
|
export const se_PutAccountDedicatedIpWarmupAttributesCommand = async (input, context) => {
|
|
743
881
|
const b = rb(input, context);
|
|
744
882
|
const headers = {
|
|
@@ -1070,6 +1208,7 @@ export const se_SendBulkEmailCommand = async (input, context) => {
|
|
|
1070
1208
|
FromEmailAddress: [],
|
|
1071
1209
|
FromEmailAddressIdentityArn: [],
|
|
1072
1210
|
ReplyToAddresses: (_) => _json(_),
|
|
1211
|
+
TenantName: [],
|
|
1073
1212
|
}));
|
|
1074
1213
|
b.m("POST").h(headers).b(body);
|
|
1075
1214
|
return b.build();
|
|
@@ -1108,6 +1247,7 @@ export const se_SendEmailCommand = async (input, context) => {
|
|
|
1108
1247
|
FromEmailAddressIdentityArn: [],
|
|
1109
1248
|
ListManagementOptions: (_) => _json(_),
|
|
1110
1249
|
ReplyToAddresses: (_) => _json(_),
|
|
1250
|
+
TenantName: [],
|
|
1111
1251
|
}));
|
|
1112
1252
|
b.m("POST").h(headers).b(body);
|
|
1113
1253
|
return b.build();
|
|
@@ -1246,6 +1386,36 @@ export const se_UpdateEmailTemplateCommand = async (input, context) => {
|
|
|
1246
1386
|
b.m("PUT").h(headers).b(body);
|
|
1247
1387
|
return b.build();
|
|
1248
1388
|
};
|
|
1389
|
+
export const se_UpdateReputationEntityCustomerManagedStatusCommand = async (input, context) => {
|
|
1390
|
+
const b = rb(input, context);
|
|
1391
|
+
const headers = {
|
|
1392
|
+
"content-type": "application/json",
|
|
1393
|
+
};
|
|
1394
|
+
b.bp("/v2/email/reputation/entities/{ReputationEntityType}/{ReputationEntityReference}/customer-managed-status");
|
|
1395
|
+
b.p("ReputationEntityType", () => input.ReputationEntityType, "{ReputationEntityType}", false);
|
|
1396
|
+
b.p("ReputationEntityReference", () => input.ReputationEntityReference, "{ReputationEntityReference}", false);
|
|
1397
|
+
let body;
|
|
1398
|
+
body = JSON.stringify(take(input, {
|
|
1399
|
+
SendingStatus: [],
|
|
1400
|
+
}));
|
|
1401
|
+
b.m("PUT").h(headers).b(body);
|
|
1402
|
+
return b.build();
|
|
1403
|
+
};
|
|
1404
|
+
export const se_UpdateReputationEntityPolicyCommand = async (input, context) => {
|
|
1405
|
+
const b = rb(input, context);
|
|
1406
|
+
const headers = {
|
|
1407
|
+
"content-type": "application/json",
|
|
1408
|
+
};
|
|
1409
|
+
b.bp("/v2/email/reputation/entities/{ReputationEntityType}/{ReputationEntityReference}/policy");
|
|
1410
|
+
b.p("ReputationEntityType", () => input.ReputationEntityType, "{ReputationEntityType}", false);
|
|
1411
|
+
b.p("ReputationEntityReference", () => input.ReputationEntityReference, "{ReputationEntityReference}", false);
|
|
1412
|
+
let body;
|
|
1413
|
+
body = JSON.stringify(take(input, {
|
|
1414
|
+
ReputationEntityPolicy: [],
|
|
1415
|
+
}));
|
|
1416
|
+
b.m("PUT").h(headers).b(body);
|
|
1417
|
+
return b.build();
|
|
1418
|
+
};
|
|
1249
1419
|
export const de_BatchGetMetricDataCommand = async (output, context) => {
|
|
1250
1420
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1251
1421
|
return de_CommandError(output, context);
|
|
@@ -1425,6 +1595,35 @@ export const de_CreateMultiRegionEndpointCommand = async (output, context) => {
|
|
|
1425
1595
|
Object.assign(contents, doc);
|
|
1426
1596
|
return contents;
|
|
1427
1597
|
};
|
|
1598
|
+
export const de_CreateTenantCommand = async (output, context) => {
|
|
1599
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1600
|
+
return de_CommandError(output, context);
|
|
1601
|
+
}
|
|
1602
|
+
const contents = map({
|
|
1603
|
+
$metadata: deserializeMetadata(output),
|
|
1604
|
+
});
|
|
1605
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1606
|
+
const doc = take(data, {
|
|
1607
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1608
|
+
SendingStatus: __expectString,
|
|
1609
|
+
Tags: _json,
|
|
1610
|
+
TenantArn: __expectString,
|
|
1611
|
+
TenantId: __expectString,
|
|
1612
|
+
TenantName: __expectString,
|
|
1613
|
+
});
|
|
1614
|
+
Object.assign(contents, doc);
|
|
1615
|
+
return contents;
|
|
1616
|
+
};
|
|
1617
|
+
export const de_CreateTenantResourceAssociationCommand = async (output, context) => {
|
|
1618
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1619
|
+
return de_CommandError(output, context);
|
|
1620
|
+
}
|
|
1621
|
+
const contents = map({
|
|
1622
|
+
$metadata: deserializeMetadata(output),
|
|
1623
|
+
});
|
|
1624
|
+
await collectBody(output.body, context);
|
|
1625
|
+
return contents;
|
|
1626
|
+
};
|
|
1428
1627
|
export const de_DeleteConfigurationSetCommand = async (output, context) => {
|
|
1429
1628
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1430
1629
|
return de_CommandError(output, context);
|
|
@@ -1539,6 +1738,26 @@ export const de_DeleteSuppressedDestinationCommand = async (output, context) =>
|
|
|
1539
1738
|
await collectBody(output.body, context);
|
|
1540
1739
|
return contents;
|
|
1541
1740
|
};
|
|
1741
|
+
export const de_DeleteTenantCommand = async (output, context) => {
|
|
1742
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1743
|
+
return de_CommandError(output, context);
|
|
1744
|
+
}
|
|
1745
|
+
const contents = map({
|
|
1746
|
+
$metadata: deserializeMetadata(output),
|
|
1747
|
+
});
|
|
1748
|
+
await collectBody(output.body, context);
|
|
1749
|
+
return contents;
|
|
1750
|
+
};
|
|
1751
|
+
export const de_DeleteTenantResourceAssociationCommand = async (output, context) => {
|
|
1752
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1753
|
+
return de_CommandError(output, context);
|
|
1754
|
+
}
|
|
1755
|
+
const contents = map({
|
|
1756
|
+
$metadata: deserializeMetadata(output),
|
|
1757
|
+
});
|
|
1758
|
+
await collectBody(output.body, context);
|
|
1759
|
+
return contents;
|
|
1760
|
+
};
|
|
1542
1761
|
export const de_GetAccountCommand = async (output, context) => {
|
|
1543
1762
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1544
1763
|
return de_CommandError(output, context);
|
|
@@ -1910,6 +2129,20 @@ export const de_GetMultiRegionEndpointCommand = async (output, context) => {
|
|
|
1910
2129
|
Object.assign(contents, doc);
|
|
1911
2130
|
return contents;
|
|
1912
2131
|
};
|
|
2132
|
+
export const de_GetReputationEntityCommand = async (output, context) => {
|
|
2133
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2134
|
+
return de_CommandError(output, context);
|
|
2135
|
+
}
|
|
2136
|
+
const contents = map({
|
|
2137
|
+
$metadata: deserializeMetadata(output),
|
|
2138
|
+
});
|
|
2139
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2140
|
+
const doc = take(data, {
|
|
2141
|
+
ReputationEntity: (_) => de_ReputationEntity(_, context),
|
|
2142
|
+
});
|
|
2143
|
+
Object.assign(contents, doc);
|
|
2144
|
+
return contents;
|
|
2145
|
+
};
|
|
1913
2146
|
export const de_GetSuppressedDestinationCommand = async (output, context) => {
|
|
1914
2147
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1915
2148
|
return de_CommandError(output, context);
|
|
@@ -1924,6 +2157,20 @@ export const de_GetSuppressedDestinationCommand = async (output, context) => {
|
|
|
1924
2157
|
Object.assign(contents, doc);
|
|
1925
2158
|
return contents;
|
|
1926
2159
|
};
|
|
2160
|
+
export const de_GetTenantCommand = async (output, context) => {
|
|
2161
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2162
|
+
return de_CommandError(output, context);
|
|
2163
|
+
}
|
|
2164
|
+
const contents = map({
|
|
2165
|
+
$metadata: deserializeMetadata(output),
|
|
2166
|
+
});
|
|
2167
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2168
|
+
const doc = take(data, {
|
|
2169
|
+
Tenant: (_) => de_Tenant(_, context),
|
|
2170
|
+
});
|
|
2171
|
+
Object.assign(contents, doc);
|
|
2172
|
+
return contents;
|
|
2173
|
+
};
|
|
1927
2174
|
export const de_ListConfigurationSetsCommand = async (output, context) => {
|
|
1928
2175
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1929
2176
|
return de_CommandError(output, context);
|
|
@@ -2119,6 +2366,36 @@ export const de_ListRecommendationsCommand = async (output, context) => {
|
|
|
2119
2366
|
Object.assign(contents, doc);
|
|
2120
2367
|
return contents;
|
|
2121
2368
|
};
|
|
2369
|
+
export const de_ListReputationEntitiesCommand = async (output, context) => {
|
|
2370
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2371
|
+
return de_CommandError(output, context);
|
|
2372
|
+
}
|
|
2373
|
+
const contents = map({
|
|
2374
|
+
$metadata: deserializeMetadata(output),
|
|
2375
|
+
});
|
|
2376
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2377
|
+
const doc = take(data, {
|
|
2378
|
+
NextToken: __expectString,
|
|
2379
|
+
ReputationEntities: (_) => de_ReputationEntitiesList(_, context),
|
|
2380
|
+
});
|
|
2381
|
+
Object.assign(contents, doc);
|
|
2382
|
+
return contents;
|
|
2383
|
+
};
|
|
2384
|
+
export const de_ListResourceTenantsCommand = async (output, context) => {
|
|
2385
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2386
|
+
return de_CommandError(output, context);
|
|
2387
|
+
}
|
|
2388
|
+
const contents = map({
|
|
2389
|
+
$metadata: deserializeMetadata(output),
|
|
2390
|
+
});
|
|
2391
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2392
|
+
const doc = take(data, {
|
|
2393
|
+
NextToken: __expectString,
|
|
2394
|
+
ResourceTenants: (_) => de_ResourceTenantMetadataList(_, context),
|
|
2395
|
+
});
|
|
2396
|
+
Object.assign(contents, doc);
|
|
2397
|
+
return contents;
|
|
2398
|
+
};
|
|
2122
2399
|
export const de_ListSuppressedDestinationsCommand = async (output, context) => {
|
|
2123
2400
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2124
2401
|
return de_CommandError(output, context);
|
|
@@ -2148,6 +2425,36 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2148
2425
|
Object.assign(contents, doc);
|
|
2149
2426
|
return contents;
|
|
2150
2427
|
};
|
|
2428
|
+
export const de_ListTenantResourcesCommand = async (output, context) => {
|
|
2429
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2430
|
+
return de_CommandError(output, context);
|
|
2431
|
+
}
|
|
2432
|
+
const contents = map({
|
|
2433
|
+
$metadata: deserializeMetadata(output),
|
|
2434
|
+
});
|
|
2435
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2436
|
+
const doc = take(data, {
|
|
2437
|
+
NextToken: __expectString,
|
|
2438
|
+
TenantResources: _json,
|
|
2439
|
+
});
|
|
2440
|
+
Object.assign(contents, doc);
|
|
2441
|
+
return contents;
|
|
2442
|
+
};
|
|
2443
|
+
export const de_ListTenantsCommand = async (output, context) => {
|
|
2444
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2445
|
+
return de_CommandError(output, context);
|
|
2446
|
+
}
|
|
2447
|
+
const contents = map({
|
|
2448
|
+
$metadata: deserializeMetadata(output),
|
|
2449
|
+
});
|
|
2450
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2451
|
+
const doc = take(data, {
|
|
2452
|
+
NextToken: __expectString,
|
|
2453
|
+
Tenants: (_) => de_TenantInfoList(_, context),
|
|
2454
|
+
});
|
|
2455
|
+
Object.assign(contents, doc);
|
|
2456
|
+
return contents;
|
|
2457
|
+
};
|
|
2151
2458
|
export const de_PutAccountDedicatedIpWarmupAttributesCommand = async (output, context) => {
|
|
2152
2459
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2153
2460
|
return de_CommandError(output, context);
|
|
@@ -2509,6 +2816,26 @@ export const de_UpdateEmailTemplateCommand = async (output, context) => {
|
|
|
2509
2816
|
await collectBody(output.body, context);
|
|
2510
2817
|
return contents;
|
|
2511
2818
|
};
|
|
2819
|
+
export const de_UpdateReputationEntityCustomerManagedStatusCommand = async (output, context) => {
|
|
2820
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2821
|
+
return de_CommandError(output, context);
|
|
2822
|
+
}
|
|
2823
|
+
const contents = map({
|
|
2824
|
+
$metadata: deserializeMetadata(output),
|
|
2825
|
+
});
|
|
2826
|
+
await collectBody(output.body, context);
|
|
2827
|
+
return contents;
|
|
2828
|
+
};
|
|
2829
|
+
export const de_UpdateReputationEntityPolicyCommand = async (output, context) => {
|
|
2830
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2831
|
+
return de_CommandError(output, context);
|
|
2832
|
+
}
|
|
2833
|
+
const contents = map({
|
|
2834
|
+
$metadata: deserializeMetadata(output),
|
|
2835
|
+
});
|
|
2836
|
+
await collectBody(output.body, context);
|
|
2837
|
+
return contents;
|
|
2838
|
+
};
|
|
2512
2839
|
const de_CommandError = async (output, context) => {
|
|
2513
2840
|
const parsedOutput = {
|
|
2514
2841
|
...output,
|
|
@@ -3190,12 +3517,47 @@ const de_RecommendationsList = (output, context) => {
|
|
|
3190
3517
|
});
|
|
3191
3518
|
return retVal;
|
|
3192
3519
|
};
|
|
3520
|
+
const de_ReputationEntitiesList = (output, context) => {
|
|
3521
|
+
const retVal = (output || [])
|
|
3522
|
+
.filter((e) => e != null)
|
|
3523
|
+
.map((entry) => {
|
|
3524
|
+
return de_ReputationEntity(entry, context);
|
|
3525
|
+
});
|
|
3526
|
+
return retVal;
|
|
3527
|
+
};
|
|
3528
|
+
const de_ReputationEntity = (output, context) => {
|
|
3529
|
+
return take(output, {
|
|
3530
|
+
AwsSesManagedStatus: (_) => de_StatusRecord(_, context),
|
|
3531
|
+
CustomerManagedStatus: (_) => de_StatusRecord(_, context),
|
|
3532
|
+
ReputationEntityReference: __expectString,
|
|
3533
|
+
ReputationEntityType: __expectString,
|
|
3534
|
+
ReputationImpact: __expectString,
|
|
3535
|
+
ReputationManagementPolicy: __expectString,
|
|
3536
|
+
SendingStatusAggregate: __expectString,
|
|
3537
|
+
});
|
|
3538
|
+
};
|
|
3193
3539
|
const de_ReputationOptions = (output, context) => {
|
|
3194
3540
|
return take(output, {
|
|
3195
3541
|
LastFreshStart: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3196
3542
|
ReputationMetricsEnabled: __expectBoolean,
|
|
3197
3543
|
});
|
|
3198
3544
|
};
|
|
3545
|
+
const de_ResourceTenantMetadata = (output, context) => {
|
|
3546
|
+
return take(output, {
|
|
3547
|
+
AssociatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3548
|
+
ResourceArn: __expectString,
|
|
3549
|
+
TenantId: __expectString,
|
|
3550
|
+
TenantName: __expectString,
|
|
3551
|
+
});
|
|
3552
|
+
};
|
|
3553
|
+
const de_ResourceTenantMetadataList = (output, context) => {
|
|
3554
|
+
const retVal = (output || [])
|
|
3555
|
+
.filter((e) => e != null)
|
|
3556
|
+
.map((entry) => {
|
|
3557
|
+
return de_ResourceTenantMetadata(entry, context);
|
|
3558
|
+
});
|
|
3559
|
+
return retVal;
|
|
3560
|
+
};
|
|
3199
3561
|
const de_SendQuota = (output, context) => {
|
|
3200
3562
|
return take(output, {
|
|
3201
3563
|
Max24HourSend: __limitedParseDouble,
|
|
@@ -3203,6 +3565,13 @@ const de_SendQuota = (output, context) => {
|
|
|
3203
3565
|
SentLast24Hours: __limitedParseDouble,
|
|
3204
3566
|
});
|
|
3205
3567
|
};
|
|
3568
|
+
const de_StatusRecord = (output, context) => {
|
|
3569
|
+
return take(output, {
|
|
3570
|
+
Cause: __expectString,
|
|
3571
|
+
LastUpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3572
|
+
Status: __expectString,
|
|
3573
|
+
});
|
|
3574
|
+
};
|
|
3206
3575
|
const de_SuppressedDestination = (output, context) => {
|
|
3207
3576
|
return take(output, {
|
|
3208
3577
|
Attributes: _json,
|
|
@@ -3226,6 +3595,32 @@ const de_SuppressedDestinationSummary = (output, context) => {
|
|
|
3226
3595
|
Reason: __expectString,
|
|
3227
3596
|
});
|
|
3228
3597
|
};
|
|
3598
|
+
const de_Tenant = (output, context) => {
|
|
3599
|
+
return take(output, {
|
|
3600
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3601
|
+
SendingStatus: __expectString,
|
|
3602
|
+
Tags: _json,
|
|
3603
|
+
TenantArn: __expectString,
|
|
3604
|
+
TenantId: __expectString,
|
|
3605
|
+
TenantName: __expectString,
|
|
3606
|
+
});
|
|
3607
|
+
};
|
|
3608
|
+
const de_TenantInfo = (output, context) => {
|
|
3609
|
+
return take(output, {
|
|
3610
|
+
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3611
|
+
TenantArn: __expectString,
|
|
3612
|
+
TenantId: __expectString,
|
|
3613
|
+
TenantName: __expectString,
|
|
3614
|
+
});
|
|
3615
|
+
};
|
|
3616
|
+
const de_TenantInfoList = (output, context) => {
|
|
3617
|
+
const retVal = (output || [])
|
|
3618
|
+
.filter((e) => e != null)
|
|
3619
|
+
.map((entry) => {
|
|
3620
|
+
return de_TenantInfo(entry, context);
|
|
3621
|
+
});
|
|
3622
|
+
return retVal;
|
|
3623
|
+
};
|
|
3229
3624
|
const de_TimestampList = (output, context) => {
|
|
3230
3625
|
const retVal = (output || [])
|
|
3231
3626
|
.filter((e) => e != null)
|