@aws-sdk/client-sesv2 3.199.0 → 3.200.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/SESv2.js +60 -0
  4. package/dist-cjs/commands/BatchGetMetricDataCommand.js +46 -0
  5. package/dist-cjs/commands/ListRecommendationsCommand.js +46 -0
  6. package/dist-cjs/commands/PutAccountVdmAttributesCommand.js +46 -0
  7. package/dist-cjs/commands/PutConfigurationSetVdmOptionsCommand.js +46 -0
  8. package/dist-cjs/commands/index.js +4 -0
  9. package/dist-cjs/endpoint/ruleset.js +1 -1
  10. package/dist-cjs/models/models_0.js +173 -32
  11. package/dist-cjs/pagination/ListRecommendationsPaginator.js +36 -0
  12. package/dist-cjs/pagination/index.js +1 -0
  13. package/dist-cjs/protocols/Aws_restJson1.js +478 -4
  14. package/dist-es/SESv2.js +60 -0
  15. package/dist-es/commands/BatchGetMetricDataCommand.js +42 -0
  16. package/dist-es/commands/ListRecommendationsCommand.js +42 -0
  17. package/dist-es/commands/PutAccountVdmAttributesCommand.js +42 -0
  18. package/dist-es/commands/PutConfigurationSetVdmOptionsCommand.js +42 -0
  19. package/dist-es/commands/index.js +4 -0
  20. package/dist-es/endpoint/ruleset.js +1 -1
  21. package/dist-es/models/models_0.js +146 -24
  22. package/dist-es/pagination/ListRecommendationsPaginator.js +32 -0
  23. package/dist-es/pagination/index.js +1 -0
  24. package/dist-es/protocols/Aws_restJson1.js +467 -1
  25. package/dist-types/SESv2.d.ts +33 -0
  26. package/dist-types/SESv2Client.d.ts +6 -2
  27. package/dist-types/commands/BatchGetMetricDataCommand.d.ts +39 -0
  28. package/dist-types/commands/ListRecommendationsCommand.d.ts +38 -0
  29. package/dist-types/commands/PutAccountVdmAttributesCommand.d.ts +38 -0
  30. package/dist-types/commands/PutConfigurationSetVdmOptionsCommand.d.ts +38 -0
  31. package/dist-types/commands/index.d.ts +4 -0
  32. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  33. package/dist-types/models/models_0.d.ts +552 -22
  34. package/dist-types/pagination/ListRecommendationsPaginator.d.ts +4 -0
  35. package/dist-types/pagination/index.d.ts +1 -0
  36. package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
  37. package/dist-types/ts3.4/SESv2.d.ts +68 -0
  38. package/dist-types/ts3.4/SESv2Client.d.ts +24 -0
  39. package/dist-types/ts3.4/commands/BatchGetMetricDataCommand.d.ts +38 -0
  40. package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +38 -0
  41. package/dist-types/ts3.4/commands/PutAccountVdmAttributesCommand.d.ts +41 -0
  42. package/dist-types/ts3.4/commands/PutConfigurationSetVdmOptionsCommand.d.ts +41 -0
  43. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  44. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  45. package/dist-types/ts3.4/models/models_0.d.ts +194 -12
  46. package/dist-types/ts3.4/pagination/ListRecommendationsPaginator.d.ts +11 -0
  47. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  48. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  49. package/package.json +28 -28
@@ -1,13 +1,34 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_restJson1ListImportJobsCommand = exports.serializeAws_restJson1ListEmailTemplatesCommand = exports.serializeAws_restJson1ListEmailIdentitiesCommand = exports.serializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = exports.serializeAws_restJson1ListDeliverabilityTestReportsCommand = exports.serializeAws_restJson1ListDedicatedIpPoolsCommand = exports.serializeAws_restJson1ListCustomVerificationEmailTemplatesCommand = exports.serializeAws_restJson1ListContactsCommand = exports.serializeAws_restJson1ListContactListsCommand = exports.serializeAws_restJson1ListConfigurationSetsCommand = exports.serializeAws_restJson1GetSuppressedDestinationCommand = exports.serializeAws_restJson1GetImportJobCommand = exports.serializeAws_restJson1GetEmailTemplateCommand = exports.serializeAws_restJson1GetEmailIdentityPoliciesCommand = exports.serializeAws_restJson1GetEmailIdentityCommand = exports.serializeAws_restJson1GetDomainStatisticsReportCommand = exports.serializeAws_restJson1GetDomainDeliverabilityCampaignCommand = exports.serializeAws_restJson1GetDeliverabilityTestReportCommand = exports.serializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = exports.serializeAws_restJson1GetDedicatedIpsCommand = exports.serializeAws_restJson1GetDedicatedIpPoolCommand = exports.serializeAws_restJson1GetDedicatedIpCommand = exports.serializeAws_restJson1GetCustomVerificationEmailTemplateCommand = exports.serializeAws_restJson1GetContactListCommand = exports.serializeAws_restJson1GetContactCommand = exports.serializeAws_restJson1GetConfigurationSetEventDestinationsCommand = exports.serializeAws_restJson1GetConfigurationSetCommand = exports.serializeAws_restJson1GetBlacklistReportsCommand = exports.serializeAws_restJson1GetAccountCommand = exports.serializeAws_restJson1DeleteSuppressedDestinationCommand = exports.serializeAws_restJson1DeleteEmailTemplateCommand = exports.serializeAws_restJson1DeleteEmailIdentityPolicyCommand = exports.serializeAws_restJson1DeleteEmailIdentityCommand = exports.serializeAws_restJson1DeleteDedicatedIpPoolCommand = exports.serializeAws_restJson1DeleteCustomVerificationEmailTemplateCommand = exports.serializeAws_restJson1DeleteContactListCommand = exports.serializeAws_restJson1DeleteContactCommand = exports.serializeAws_restJson1DeleteConfigurationSetEventDestinationCommand = exports.serializeAws_restJson1DeleteConfigurationSetCommand = exports.serializeAws_restJson1CreateImportJobCommand = exports.serializeAws_restJson1CreateEmailTemplateCommand = exports.serializeAws_restJson1CreateEmailIdentityPolicyCommand = exports.serializeAws_restJson1CreateEmailIdentityCommand = exports.serializeAws_restJson1CreateDeliverabilityTestReportCommand = exports.serializeAws_restJson1CreateDedicatedIpPoolCommand = exports.serializeAws_restJson1CreateCustomVerificationEmailTemplateCommand = exports.serializeAws_restJson1CreateContactListCommand = exports.serializeAws_restJson1CreateContactCommand = exports.serializeAws_restJson1CreateConfigurationSetEventDestinationCommand = exports.serializeAws_restJson1CreateConfigurationSetCommand = void 0;
4
- exports.deserializeAws_restJson1DeleteEmailIdentityCommand = exports.deserializeAws_restJson1DeleteDedicatedIpPoolCommand = exports.deserializeAws_restJson1DeleteCustomVerificationEmailTemplateCommand = exports.deserializeAws_restJson1DeleteContactListCommand = exports.deserializeAws_restJson1DeleteContactCommand = exports.deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommand = exports.deserializeAws_restJson1DeleteConfigurationSetCommand = exports.deserializeAws_restJson1CreateImportJobCommand = exports.deserializeAws_restJson1CreateEmailTemplateCommand = exports.deserializeAws_restJson1CreateEmailIdentityPolicyCommand = exports.deserializeAws_restJson1CreateEmailIdentityCommand = exports.deserializeAws_restJson1CreateDeliverabilityTestReportCommand = exports.deserializeAws_restJson1CreateDedicatedIpPoolCommand = exports.deserializeAws_restJson1CreateCustomVerificationEmailTemplateCommand = exports.deserializeAws_restJson1CreateContactListCommand = exports.deserializeAws_restJson1CreateContactCommand = exports.deserializeAws_restJson1CreateConfigurationSetEventDestinationCommand = exports.deserializeAws_restJson1CreateConfigurationSetCommand = exports.serializeAws_restJson1UpdateEmailTemplateCommand = exports.serializeAws_restJson1UpdateEmailIdentityPolicyCommand = exports.serializeAws_restJson1UpdateCustomVerificationEmailTemplateCommand = exports.serializeAws_restJson1UpdateContactListCommand = exports.serializeAws_restJson1UpdateContactCommand = exports.serializeAws_restJson1UpdateConfigurationSetEventDestinationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TestRenderEmailTemplateCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SendEmailCommand = exports.serializeAws_restJson1SendCustomVerificationEmailCommand = exports.serializeAws_restJson1SendBulkEmailCommand = exports.serializeAws_restJson1PutSuppressedDestinationCommand = exports.serializeAws_restJson1PutEmailIdentityMailFromAttributesCommand = exports.serializeAws_restJson1PutEmailIdentityFeedbackAttributesCommand = exports.serializeAws_restJson1PutEmailIdentityDkimSigningAttributesCommand = exports.serializeAws_restJson1PutEmailIdentityDkimAttributesCommand = exports.serializeAws_restJson1PutEmailIdentityConfigurationSetAttributesCommand = exports.serializeAws_restJson1PutDeliverabilityDashboardOptionCommand = exports.serializeAws_restJson1PutDedicatedIpWarmupAttributesCommand = exports.serializeAws_restJson1PutDedicatedIpInPoolCommand = exports.serializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = exports.serializeAws_restJson1PutConfigurationSetSuppressionOptionsCommand = exports.serializeAws_restJson1PutConfigurationSetSendingOptionsCommand = exports.serializeAws_restJson1PutConfigurationSetReputationOptionsCommand = exports.serializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = exports.serializeAws_restJson1PutAccountSuppressionAttributesCommand = exports.serializeAws_restJson1PutAccountSendingAttributesCommand = exports.serializeAws_restJson1PutAccountDetailsCommand = exports.serializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSuppressedDestinationsCommand = void 0;
5
- exports.deserializeAws_restJson1PutEmailIdentityFeedbackAttributesCommand = exports.deserializeAws_restJson1PutEmailIdentityDkimSigningAttributesCommand = exports.deserializeAws_restJson1PutEmailIdentityDkimAttributesCommand = exports.deserializeAws_restJson1PutEmailIdentityConfigurationSetAttributesCommand = exports.deserializeAws_restJson1PutDeliverabilityDashboardOptionCommand = exports.deserializeAws_restJson1PutDedicatedIpWarmupAttributesCommand = exports.deserializeAws_restJson1PutDedicatedIpInPoolCommand = exports.deserializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = exports.deserializeAws_restJson1PutConfigurationSetSuppressionOptionsCommand = exports.deserializeAws_restJson1PutConfigurationSetSendingOptionsCommand = exports.deserializeAws_restJson1PutConfigurationSetReputationOptionsCommand = exports.deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = exports.deserializeAws_restJson1PutAccountSuppressionAttributesCommand = exports.deserializeAws_restJson1PutAccountSendingAttributesCommand = exports.deserializeAws_restJson1PutAccountDetailsCommand = exports.deserializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSuppressedDestinationsCommand = exports.deserializeAws_restJson1ListImportJobsCommand = exports.deserializeAws_restJson1ListEmailTemplatesCommand = exports.deserializeAws_restJson1ListEmailIdentitiesCommand = exports.deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = exports.deserializeAws_restJson1ListDeliverabilityTestReportsCommand = exports.deserializeAws_restJson1ListDedicatedIpPoolsCommand = exports.deserializeAws_restJson1ListCustomVerificationEmailTemplatesCommand = exports.deserializeAws_restJson1ListContactsCommand = exports.deserializeAws_restJson1ListContactListsCommand = exports.deserializeAws_restJson1ListConfigurationSetsCommand = exports.deserializeAws_restJson1GetSuppressedDestinationCommand = exports.deserializeAws_restJson1GetImportJobCommand = exports.deserializeAws_restJson1GetEmailTemplateCommand = exports.deserializeAws_restJson1GetEmailIdentityPoliciesCommand = exports.deserializeAws_restJson1GetEmailIdentityCommand = exports.deserializeAws_restJson1GetDomainStatisticsReportCommand = exports.deserializeAws_restJson1GetDomainDeliverabilityCampaignCommand = exports.deserializeAws_restJson1GetDeliverabilityTestReportCommand = exports.deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = exports.deserializeAws_restJson1GetDedicatedIpsCommand = exports.deserializeAws_restJson1GetDedicatedIpPoolCommand = exports.deserializeAws_restJson1GetDedicatedIpCommand = exports.deserializeAws_restJson1GetCustomVerificationEmailTemplateCommand = exports.deserializeAws_restJson1GetContactListCommand = exports.deserializeAws_restJson1GetContactCommand = exports.deserializeAws_restJson1GetConfigurationSetEventDestinationsCommand = exports.deserializeAws_restJson1GetConfigurationSetCommand = exports.deserializeAws_restJson1GetBlacklistReportsCommand = exports.deserializeAws_restJson1GetAccountCommand = exports.deserializeAws_restJson1DeleteSuppressedDestinationCommand = exports.deserializeAws_restJson1DeleteEmailTemplateCommand = exports.deserializeAws_restJson1DeleteEmailIdentityPolicyCommand = void 0;
6
- exports.deserializeAws_restJson1UpdateEmailTemplateCommand = exports.deserializeAws_restJson1UpdateEmailIdentityPolicyCommand = exports.deserializeAws_restJson1UpdateCustomVerificationEmailTemplateCommand = exports.deserializeAws_restJson1UpdateContactListCommand = exports.deserializeAws_restJson1UpdateContactCommand = exports.deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TestRenderEmailTemplateCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SendEmailCommand = exports.deserializeAws_restJson1SendCustomVerificationEmailCommand = exports.deserializeAws_restJson1SendBulkEmailCommand = exports.deserializeAws_restJson1PutSuppressedDestinationCommand = exports.deserializeAws_restJson1PutEmailIdentityMailFromAttributesCommand = void 0;
3
+ exports.serializeAws_restJson1ListEmailTemplatesCommand = exports.serializeAws_restJson1ListEmailIdentitiesCommand = exports.serializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = exports.serializeAws_restJson1ListDeliverabilityTestReportsCommand = exports.serializeAws_restJson1ListDedicatedIpPoolsCommand = exports.serializeAws_restJson1ListCustomVerificationEmailTemplatesCommand = exports.serializeAws_restJson1ListContactsCommand = exports.serializeAws_restJson1ListContactListsCommand = exports.serializeAws_restJson1ListConfigurationSetsCommand = exports.serializeAws_restJson1GetSuppressedDestinationCommand = exports.serializeAws_restJson1GetImportJobCommand = exports.serializeAws_restJson1GetEmailTemplateCommand = exports.serializeAws_restJson1GetEmailIdentityPoliciesCommand = exports.serializeAws_restJson1GetEmailIdentityCommand = exports.serializeAws_restJson1GetDomainStatisticsReportCommand = exports.serializeAws_restJson1GetDomainDeliverabilityCampaignCommand = exports.serializeAws_restJson1GetDeliverabilityTestReportCommand = exports.serializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = exports.serializeAws_restJson1GetDedicatedIpsCommand = exports.serializeAws_restJson1GetDedicatedIpPoolCommand = exports.serializeAws_restJson1GetDedicatedIpCommand = exports.serializeAws_restJson1GetCustomVerificationEmailTemplateCommand = exports.serializeAws_restJson1GetContactListCommand = exports.serializeAws_restJson1GetContactCommand = exports.serializeAws_restJson1GetConfigurationSetEventDestinationsCommand = exports.serializeAws_restJson1GetConfigurationSetCommand = exports.serializeAws_restJson1GetBlacklistReportsCommand = exports.serializeAws_restJson1GetAccountCommand = exports.serializeAws_restJson1DeleteSuppressedDestinationCommand = exports.serializeAws_restJson1DeleteEmailTemplateCommand = exports.serializeAws_restJson1DeleteEmailIdentityPolicyCommand = exports.serializeAws_restJson1DeleteEmailIdentityCommand = exports.serializeAws_restJson1DeleteDedicatedIpPoolCommand = exports.serializeAws_restJson1DeleteCustomVerificationEmailTemplateCommand = exports.serializeAws_restJson1DeleteContactListCommand = exports.serializeAws_restJson1DeleteContactCommand = exports.serializeAws_restJson1DeleteConfigurationSetEventDestinationCommand = exports.serializeAws_restJson1DeleteConfigurationSetCommand = exports.serializeAws_restJson1CreateImportJobCommand = exports.serializeAws_restJson1CreateEmailTemplateCommand = exports.serializeAws_restJson1CreateEmailIdentityPolicyCommand = exports.serializeAws_restJson1CreateEmailIdentityCommand = exports.serializeAws_restJson1CreateDeliverabilityTestReportCommand = exports.serializeAws_restJson1CreateDedicatedIpPoolCommand = exports.serializeAws_restJson1CreateCustomVerificationEmailTemplateCommand = exports.serializeAws_restJson1CreateContactListCommand = exports.serializeAws_restJson1CreateContactCommand = exports.serializeAws_restJson1CreateConfigurationSetEventDestinationCommand = exports.serializeAws_restJson1CreateConfigurationSetCommand = exports.serializeAws_restJson1BatchGetMetricDataCommand = void 0;
4
+ exports.deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommand = exports.deserializeAws_restJson1DeleteConfigurationSetCommand = exports.deserializeAws_restJson1CreateImportJobCommand = exports.deserializeAws_restJson1CreateEmailTemplateCommand = exports.deserializeAws_restJson1CreateEmailIdentityPolicyCommand = exports.deserializeAws_restJson1CreateEmailIdentityCommand = exports.deserializeAws_restJson1CreateDeliverabilityTestReportCommand = exports.deserializeAws_restJson1CreateDedicatedIpPoolCommand = exports.deserializeAws_restJson1CreateCustomVerificationEmailTemplateCommand = exports.deserializeAws_restJson1CreateContactListCommand = exports.deserializeAws_restJson1CreateContactCommand = exports.deserializeAws_restJson1CreateConfigurationSetEventDestinationCommand = exports.deserializeAws_restJson1CreateConfigurationSetCommand = exports.deserializeAws_restJson1BatchGetMetricDataCommand = exports.serializeAws_restJson1UpdateEmailTemplateCommand = exports.serializeAws_restJson1UpdateEmailIdentityPolicyCommand = exports.serializeAws_restJson1UpdateCustomVerificationEmailTemplateCommand = exports.serializeAws_restJson1UpdateContactListCommand = exports.serializeAws_restJson1UpdateContactCommand = exports.serializeAws_restJson1UpdateConfigurationSetEventDestinationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TestRenderEmailTemplateCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SendEmailCommand = exports.serializeAws_restJson1SendCustomVerificationEmailCommand = exports.serializeAws_restJson1SendBulkEmailCommand = exports.serializeAws_restJson1PutSuppressedDestinationCommand = exports.serializeAws_restJson1PutEmailIdentityMailFromAttributesCommand = exports.serializeAws_restJson1PutEmailIdentityFeedbackAttributesCommand = exports.serializeAws_restJson1PutEmailIdentityDkimSigningAttributesCommand = exports.serializeAws_restJson1PutEmailIdentityDkimAttributesCommand = exports.serializeAws_restJson1PutEmailIdentityConfigurationSetAttributesCommand = exports.serializeAws_restJson1PutDeliverabilityDashboardOptionCommand = exports.serializeAws_restJson1PutDedicatedIpWarmupAttributesCommand = exports.serializeAws_restJson1PutDedicatedIpInPoolCommand = exports.serializeAws_restJson1PutConfigurationSetVdmOptionsCommand = exports.serializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = exports.serializeAws_restJson1PutConfigurationSetSuppressionOptionsCommand = exports.serializeAws_restJson1PutConfigurationSetSendingOptionsCommand = exports.serializeAws_restJson1PutConfigurationSetReputationOptionsCommand = exports.serializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = exports.serializeAws_restJson1PutAccountVdmAttributesCommand = exports.serializeAws_restJson1PutAccountSuppressionAttributesCommand = exports.serializeAws_restJson1PutAccountSendingAttributesCommand = exports.serializeAws_restJson1PutAccountDetailsCommand = exports.serializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSuppressedDestinationsCommand = exports.serializeAws_restJson1ListRecommendationsCommand = exports.serializeAws_restJson1ListImportJobsCommand = void 0;
5
+ exports.deserializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = exports.deserializeAws_restJson1PutConfigurationSetSuppressionOptionsCommand = exports.deserializeAws_restJson1PutConfigurationSetSendingOptionsCommand = exports.deserializeAws_restJson1PutConfigurationSetReputationOptionsCommand = exports.deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = exports.deserializeAws_restJson1PutAccountVdmAttributesCommand = exports.deserializeAws_restJson1PutAccountSuppressionAttributesCommand = exports.deserializeAws_restJson1PutAccountSendingAttributesCommand = exports.deserializeAws_restJson1PutAccountDetailsCommand = exports.deserializeAws_restJson1PutAccountDedicatedIpWarmupAttributesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSuppressedDestinationsCommand = exports.deserializeAws_restJson1ListRecommendationsCommand = exports.deserializeAws_restJson1ListImportJobsCommand = exports.deserializeAws_restJson1ListEmailTemplatesCommand = exports.deserializeAws_restJson1ListEmailIdentitiesCommand = exports.deserializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = exports.deserializeAws_restJson1ListDeliverabilityTestReportsCommand = exports.deserializeAws_restJson1ListDedicatedIpPoolsCommand = exports.deserializeAws_restJson1ListCustomVerificationEmailTemplatesCommand = exports.deserializeAws_restJson1ListContactsCommand = exports.deserializeAws_restJson1ListContactListsCommand = exports.deserializeAws_restJson1ListConfigurationSetsCommand = exports.deserializeAws_restJson1GetSuppressedDestinationCommand = exports.deserializeAws_restJson1GetImportJobCommand = exports.deserializeAws_restJson1GetEmailTemplateCommand = exports.deserializeAws_restJson1GetEmailIdentityPoliciesCommand = exports.deserializeAws_restJson1GetEmailIdentityCommand = exports.deserializeAws_restJson1GetDomainStatisticsReportCommand = exports.deserializeAws_restJson1GetDomainDeliverabilityCampaignCommand = exports.deserializeAws_restJson1GetDeliverabilityTestReportCommand = exports.deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommand = exports.deserializeAws_restJson1GetDedicatedIpsCommand = exports.deserializeAws_restJson1GetDedicatedIpPoolCommand = exports.deserializeAws_restJson1GetDedicatedIpCommand = exports.deserializeAws_restJson1GetCustomVerificationEmailTemplateCommand = exports.deserializeAws_restJson1GetContactListCommand = exports.deserializeAws_restJson1GetContactCommand = exports.deserializeAws_restJson1GetConfigurationSetEventDestinationsCommand = exports.deserializeAws_restJson1GetConfigurationSetCommand = exports.deserializeAws_restJson1GetBlacklistReportsCommand = exports.deserializeAws_restJson1GetAccountCommand = exports.deserializeAws_restJson1DeleteSuppressedDestinationCommand = exports.deserializeAws_restJson1DeleteEmailTemplateCommand = exports.deserializeAws_restJson1DeleteEmailIdentityPolicyCommand = exports.deserializeAws_restJson1DeleteEmailIdentityCommand = exports.deserializeAws_restJson1DeleteDedicatedIpPoolCommand = exports.deserializeAws_restJson1DeleteCustomVerificationEmailTemplateCommand = exports.deserializeAws_restJson1DeleteContactListCommand = exports.deserializeAws_restJson1DeleteContactCommand = void 0;
6
+ exports.deserializeAws_restJson1UpdateEmailTemplateCommand = exports.deserializeAws_restJson1UpdateEmailIdentityPolicyCommand = exports.deserializeAws_restJson1UpdateCustomVerificationEmailTemplateCommand = exports.deserializeAws_restJson1UpdateContactListCommand = exports.deserializeAws_restJson1UpdateContactCommand = exports.deserializeAws_restJson1UpdateConfigurationSetEventDestinationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TestRenderEmailTemplateCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SendEmailCommand = exports.deserializeAws_restJson1SendCustomVerificationEmailCommand = exports.deserializeAws_restJson1SendBulkEmailCommand = exports.deserializeAws_restJson1PutSuppressedDestinationCommand = exports.deserializeAws_restJson1PutEmailIdentityMailFromAttributesCommand = exports.deserializeAws_restJson1PutEmailIdentityFeedbackAttributesCommand = exports.deserializeAws_restJson1PutEmailIdentityDkimSigningAttributesCommand = exports.deserializeAws_restJson1PutEmailIdentityDkimAttributesCommand = exports.deserializeAws_restJson1PutEmailIdentityConfigurationSetAttributesCommand = exports.deserializeAws_restJson1PutDeliverabilityDashboardOptionCommand = exports.deserializeAws_restJson1PutDedicatedIpWarmupAttributesCommand = exports.deserializeAws_restJson1PutDedicatedIpInPoolCommand = exports.deserializeAws_restJson1PutConfigurationSetVdmOptionsCommand = void 0;
7
7
  const protocol_http_1 = require("@aws-sdk/protocol-http");
8
8
  const smithy_client_1 = require("@aws-sdk/smithy-client");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const SESv2ServiceException_1 = require("../models/SESv2ServiceException");
11
+ const serializeAws_restJson1BatchGetMetricDataCommand = async (input, context) => {
12
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
13
+ const headers = {
14
+ "content-type": "application/json",
15
+ };
16
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/metrics/batch";
17
+ let body;
18
+ body = JSON.stringify({
19
+ ...(input.Queries != null && { Queries: serializeAws_restJson1BatchGetMetricDataQueries(input.Queries, context) }),
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
+ });
30
+ };
31
+ exports.serializeAws_restJson1BatchGetMetricDataCommand = serializeAws_restJson1BatchGetMetricDataCommand;
11
32
  const serializeAws_restJson1CreateConfigurationSetCommand = async (input, context) => {
12
33
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
13
34
  const headers = {
@@ -33,6 +54,7 @@ const serializeAws_restJson1CreateConfigurationSetCommand = async (input, contex
33
54
  ...(input.TrackingOptions != null && {
34
55
  TrackingOptions: serializeAws_restJson1TrackingOptions(input.TrackingOptions, context),
35
56
  }),
57
+ ...(input.VdmOptions != null && { VdmOptions: serializeAws_restJson1VdmOptions(input.VdmOptions, context) }),
36
58
  });
37
59
  return new protocol_http_1.HttpRequest({
38
60
  protocol,
@@ -1064,6 +1086,29 @@ const serializeAws_restJson1ListImportJobsCommand = async (input, context) => {
1064
1086
  });
1065
1087
  };
1066
1088
  exports.serializeAws_restJson1ListImportJobsCommand = serializeAws_restJson1ListImportJobsCommand;
1089
+ const serializeAws_restJson1ListRecommendationsCommand = async (input, context) => {
1090
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1091
+ const headers = {
1092
+ "content-type": "application/json",
1093
+ };
1094
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/vdm/recommendations";
1095
+ let body;
1096
+ body = JSON.stringify({
1097
+ ...(input.Filter != null && { Filter: serializeAws_restJson1ListRecommendationsFilter(input.Filter, context) }),
1098
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1099
+ ...(input.PageSize != null && { PageSize: input.PageSize }),
1100
+ });
1101
+ return new protocol_http_1.HttpRequest({
1102
+ protocol,
1103
+ hostname,
1104
+ port,
1105
+ method: "POST",
1106
+ headers,
1107
+ path: resolvedPath,
1108
+ body,
1109
+ });
1110
+ };
1111
+ exports.serializeAws_restJson1ListRecommendationsCommand = serializeAws_restJson1ListRecommendationsCommand;
1067
1112
  const serializeAws_restJson1ListSuppressedDestinationsCommand = async (input, context) => {
1068
1113
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1069
1114
  const headers = {};
@@ -1204,6 +1249,29 @@ const serializeAws_restJson1PutAccountSuppressionAttributesCommand = async (inpu
1204
1249
  });
1205
1250
  };
1206
1251
  exports.serializeAws_restJson1PutAccountSuppressionAttributesCommand = serializeAws_restJson1PutAccountSuppressionAttributesCommand;
1252
+ const serializeAws_restJson1PutAccountVdmAttributesCommand = async (input, context) => {
1253
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1254
+ const headers = {
1255
+ "content-type": "application/json",
1256
+ };
1257
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/account/vdm";
1258
+ let body;
1259
+ body = JSON.stringify({
1260
+ ...(input.VdmAttributes != null && {
1261
+ VdmAttributes: serializeAws_restJson1VdmAttributes(input.VdmAttributes, context),
1262
+ }),
1263
+ });
1264
+ return new protocol_http_1.HttpRequest({
1265
+ protocol,
1266
+ hostname,
1267
+ port,
1268
+ method: "PUT",
1269
+ headers,
1270
+ path: resolvedPath,
1271
+ body,
1272
+ });
1273
+ };
1274
+ exports.serializeAws_restJson1PutAccountVdmAttributesCommand = serializeAws_restJson1PutAccountVdmAttributesCommand;
1207
1275
  const serializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = async (input, context) => {
1208
1276
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1209
1277
  const headers = {
@@ -1322,6 +1390,29 @@ const serializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = async (i
1322
1390
  });
1323
1391
  };
1324
1392
  exports.serializeAws_restJson1PutConfigurationSetTrackingOptionsCommand = serializeAws_restJson1PutConfigurationSetTrackingOptionsCommand;
1393
+ const serializeAws_restJson1PutConfigurationSetVdmOptionsCommand = async (input, context) => {
1394
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1395
+ const headers = {
1396
+ "content-type": "application/json",
1397
+ };
1398
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1399
+ "/v2/email/configuration-sets/{ConfigurationSetName}/vdm-options";
1400
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationSetName", () => input.ConfigurationSetName, "{ConfigurationSetName}", false);
1401
+ let body;
1402
+ body = JSON.stringify({
1403
+ ...(input.VdmOptions != null && { VdmOptions: serializeAws_restJson1VdmOptions(input.VdmOptions, context) }),
1404
+ });
1405
+ return new protocol_http_1.HttpRequest({
1406
+ protocol,
1407
+ hostname,
1408
+ port,
1409
+ method: "PUT",
1410
+ headers,
1411
+ path: resolvedPath,
1412
+ body,
1413
+ });
1414
+ };
1415
+ exports.serializeAws_restJson1PutConfigurationSetVdmOptionsCommand = serializeAws_restJson1PutConfigurationSetVdmOptionsCommand;
1325
1416
  const serializeAws_restJson1PutDedicatedIpInPoolCommand = async (input, context) => {
1326
1417
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1327
1418
  const headers = {
@@ -1854,6 +1945,52 @@ const serializeAws_restJson1UpdateEmailTemplateCommand = async (input, context)
1854
1945
  });
1855
1946
  };
1856
1947
  exports.serializeAws_restJson1UpdateEmailTemplateCommand = serializeAws_restJson1UpdateEmailTemplateCommand;
1948
+ const deserializeAws_restJson1BatchGetMetricDataCommand = async (output, context) => {
1949
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1950
+ return deserializeAws_restJson1BatchGetMetricDataCommandError(output, context);
1951
+ }
1952
+ const contents = map({
1953
+ $metadata: deserializeMetadata(output),
1954
+ });
1955
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1956
+ if (data.Errors != null) {
1957
+ contents.Errors = deserializeAws_restJson1MetricDataErrorList(data.Errors, context);
1958
+ }
1959
+ if (data.Results != null) {
1960
+ contents.Results = deserializeAws_restJson1MetricDataResultList(data.Results, context);
1961
+ }
1962
+ return contents;
1963
+ };
1964
+ exports.deserializeAws_restJson1BatchGetMetricDataCommand = deserializeAws_restJson1BatchGetMetricDataCommand;
1965
+ const deserializeAws_restJson1BatchGetMetricDataCommandError = async (output, context) => {
1966
+ const parsedOutput = {
1967
+ ...output,
1968
+ body: await parseErrorBody(output.body, context),
1969
+ };
1970
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1971
+ switch (errorCode) {
1972
+ case "BadRequestException":
1973
+ case "com.amazonaws.sesv2#BadRequestException":
1974
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
1975
+ case "InternalServiceErrorException":
1976
+ case "com.amazonaws.sesv2#InternalServiceErrorException":
1977
+ throw await deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context);
1978
+ case "NotFoundException":
1979
+ case "com.amazonaws.sesv2#NotFoundException":
1980
+ throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1981
+ case "TooManyRequestsException":
1982
+ case "com.amazonaws.sesv2#TooManyRequestsException":
1983
+ throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1984
+ default:
1985
+ const parsedBody = parsedOutput.body;
1986
+ (0, smithy_client_1.throwDefaultError)({
1987
+ output,
1988
+ parsedBody,
1989
+ exceptionCtor: SESv2ServiceException_1.SESv2ServiceException,
1990
+ errorCode,
1991
+ });
1992
+ }
1993
+ };
1857
1994
  const deserializeAws_restJson1CreateConfigurationSetCommand = async (output, context) => {
1858
1995
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1859
1996
  return deserializeAws_restJson1CreateConfigurationSetCommandError(output, context);
@@ -2759,6 +2896,9 @@ const deserializeAws_restJson1GetAccountCommand = async (output, context) => {
2759
2896
  if (data.SuppressionAttributes != null) {
2760
2897
  contents.SuppressionAttributes = deserializeAws_restJson1SuppressionAttributes(data.SuppressionAttributes, context);
2761
2898
  }
2899
+ if (data.VdmAttributes != null) {
2900
+ contents.VdmAttributes = deserializeAws_restJson1VdmAttributes(data.VdmAttributes, context);
2901
+ }
2762
2902
  return contents;
2763
2903
  };
2764
2904
  exports.deserializeAws_restJson1GetAccountCommand = deserializeAws_restJson1GetAccountCommand;
@@ -2854,6 +2994,9 @@ const deserializeAws_restJson1GetConfigurationSetCommand = async (output, contex
2854
2994
  if (data.TrackingOptions != null) {
2855
2995
  contents.TrackingOptions = deserializeAws_restJson1TrackingOptions(data.TrackingOptions, context);
2856
2996
  }
2997
+ if (data.VdmOptions != null) {
2998
+ contents.VdmOptions = deserializeAws_restJson1VdmOptions(data.VdmOptions, context);
2999
+ }
2857
3000
  return contents;
2858
3001
  };
2859
3002
  exports.deserializeAws_restJson1GetConfigurationSetCommand = deserializeAws_restJson1GetConfigurationSetCommand;
@@ -4064,6 +4207,49 @@ const deserializeAws_restJson1ListImportJobsCommandError = async (output, contex
4064
4207
  });
4065
4208
  }
4066
4209
  };
4210
+ const deserializeAws_restJson1ListRecommendationsCommand = async (output, context) => {
4211
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4212
+ return deserializeAws_restJson1ListRecommendationsCommandError(output, context);
4213
+ }
4214
+ const contents = map({
4215
+ $metadata: deserializeMetadata(output),
4216
+ });
4217
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4218
+ if (data.NextToken != null) {
4219
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4220
+ }
4221
+ if (data.Recommendations != null) {
4222
+ contents.Recommendations = deserializeAws_restJson1RecommendationsList(data.Recommendations, context);
4223
+ }
4224
+ return contents;
4225
+ };
4226
+ exports.deserializeAws_restJson1ListRecommendationsCommand = deserializeAws_restJson1ListRecommendationsCommand;
4227
+ const deserializeAws_restJson1ListRecommendationsCommandError = async (output, context) => {
4228
+ const parsedOutput = {
4229
+ ...output,
4230
+ body: await parseErrorBody(output.body, context),
4231
+ };
4232
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4233
+ switch (errorCode) {
4234
+ case "BadRequestException":
4235
+ case "com.amazonaws.sesv2#BadRequestException":
4236
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
4237
+ case "NotFoundException":
4238
+ case "com.amazonaws.sesv2#NotFoundException":
4239
+ throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
4240
+ case "TooManyRequestsException":
4241
+ case "com.amazonaws.sesv2#TooManyRequestsException":
4242
+ throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
4243
+ default:
4244
+ const parsedBody = parsedOutput.body;
4245
+ (0, smithy_client_1.throwDefaultError)({
4246
+ output,
4247
+ parsedBody,
4248
+ exceptionCtor: SESv2ServiceException_1.SESv2ServiceException,
4249
+ errorCode,
4250
+ });
4251
+ }
4252
+ };
4067
4253
  const deserializeAws_restJson1ListSuppressedDestinationsCommand = async (output, context) => {
4068
4254
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4069
4255
  return deserializeAws_restJson1ListSuppressedDestinationsCommandError(output, context);
@@ -4286,6 +4472,40 @@ const deserializeAws_restJson1PutAccountSuppressionAttributesCommandError = asyn
4286
4472
  });
4287
4473
  }
4288
4474
  };
4475
+ const deserializeAws_restJson1PutAccountVdmAttributesCommand = async (output, context) => {
4476
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4477
+ return deserializeAws_restJson1PutAccountVdmAttributesCommandError(output, context);
4478
+ }
4479
+ const contents = map({
4480
+ $metadata: deserializeMetadata(output),
4481
+ });
4482
+ await collectBody(output.body, context);
4483
+ return contents;
4484
+ };
4485
+ exports.deserializeAws_restJson1PutAccountVdmAttributesCommand = deserializeAws_restJson1PutAccountVdmAttributesCommand;
4486
+ const deserializeAws_restJson1PutAccountVdmAttributesCommandError = async (output, context) => {
4487
+ const parsedOutput = {
4488
+ ...output,
4489
+ body: await parseErrorBody(output.body, context),
4490
+ };
4491
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4492
+ switch (errorCode) {
4493
+ case "BadRequestException":
4494
+ case "com.amazonaws.sesv2#BadRequestException":
4495
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
4496
+ case "TooManyRequestsException":
4497
+ case "com.amazonaws.sesv2#TooManyRequestsException":
4498
+ throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
4499
+ default:
4500
+ const parsedBody = parsedOutput.body;
4501
+ (0, smithy_client_1.throwDefaultError)({
4502
+ output,
4503
+ parsedBody,
4504
+ exceptionCtor: SESv2ServiceException_1.SESv2ServiceException,
4505
+ errorCode,
4506
+ });
4507
+ }
4508
+ };
4289
4509
  const deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommand = async (output, context) => {
4290
4510
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4291
4511
  return deserializeAws_restJson1PutConfigurationSetDeliveryOptionsCommandError(output, context);
@@ -4471,6 +4691,43 @@ const deserializeAws_restJson1PutConfigurationSetTrackingOptionsCommandError = a
4471
4691
  });
4472
4692
  }
4473
4693
  };
4694
+ const deserializeAws_restJson1PutConfigurationSetVdmOptionsCommand = async (output, context) => {
4695
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4696
+ return deserializeAws_restJson1PutConfigurationSetVdmOptionsCommandError(output, context);
4697
+ }
4698
+ const contents = map({
4699
+ $metadata: deserializeMetadata(output),
4700
+ });
4701
+ await collectBody(output.body, context);
4702
+ return contents;
4703
+ };
4704
+ exports.deserializeAws_restJson1PutConfigurationSetVdmOptionsCommand = deserializeAws_restJson1PutConfigurationSetVdmOptionsCommand;
4705
+ const deserializeAws_restJson1PutConfigurationSetVdmOptionsCommandError = async (output, context) => {
4706
+ const parsedOutput = {
4707
+ ...output,
4708
+ body: await parseErrorBody(output.body, context),
4709
+ };
4710
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4711
+ switch (errorCode) {
4712
+ case "BadRequestException":
4713
+ case "com.amazonaws.sesv2#BadRequestException":
4714
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
4715
+ case "NotFoundException":
4716
+ case "com.amazonaws.sesv2#NotFoundException":
4717
+ throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
4718
+ case "TooManyRequestsException":
4719
+ case "com.amazonaws.sesv2#TooManyRequestsException":
4720
+ throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
4721
+ default:
4722
+ const parsedBody = parsedOutput.body;
4723
+ (0, smithy_client_1.throwDefaultError)({
4724
+ output,
4725
+ parsedBody,
4726
+ exceptionCtor: SESv2ServiceException_1.SESv2ServiceException,
4727
+ errorCode,
4728
+ });
4729
+ }
4730
+ };
4474
4731
  const deserializeAws_restJson1PutDedicatedIpInPoolCommand = async (output, context) => {
4475
4732
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4476
4733
  return deserializeAws_restJson1PutDedicatedIpInPoolCommandError(output, context);
@@ -5384,6 +5641,18 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
5384
5641
  });
5385
5642
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5386
5643
  };
5644
+ const deserializeAws_restJson1InternalServiceErrorExceptionResponse = async (parsedOutput, context) => {
5645
+ const contents = map({});
5646
+ const data = parsedOutput.body;
5647
+ if (data.message != null) {
5648
+ contents.message = (0, smithy_client_1.expectString)(data.message);
5649
+ }
5650
+ const exception = new models_0_1.InternalServiceErrorException({
5651
+ $metadata: deserializeMetadata(parsedOutput),
5652
+ ...contents,
5653
+ });
5654
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5655
+ };
5387
5656
  const deserializeAws_restJson1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
5388
5657
  const contents = map({});
5389
5658
  const data = parsedOutput.body;
@@ -5475,6 +5744,23 @@ const serializeAws_restJson1AdditionalContactEmailAddresses = (input, context) =
5475
5744
  return entry;
5476
5745
  });
5477
5746
  };
5747
+ const serializeAws_restJson1BatchGetMetricDataQueries = (input, context) => {
5748
+ return input
5749
+ .filter((e) => e != null)
5750
+ .map((entry) => {
5751
+ return serializeAws_restJson1BatchGetMetricDataQuery(entry, context);
5752
+ });
5753
+ };
5754
+ const serializeAws_restJson1BatchGetMetricDataQuery = (input, context) => {
5755
+ return {
5756
+ ...(input.Dimensions != null && { Dimensions: serializeAws_restJson1Dimensions(input.Dimensions, context) }),
5757
+ ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000) }),
5758
+ ...(input.Id != null && { Id: input.Id }),
5759
+ ...(input.Metric != null && { Metric: input.Metric }),
5760
+ ...(input.Namespace != null && { Namespace: input.Namespace }),
5761
+ ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000) }),
5762
+ };
5763
+ };
5478
5764
  const serializeAws_restJson1Body = (input, context) => {
5479
5765
  return {
5480
5766
  ...(input.Html != null && { Html: serializeAws_restJson1Content(input.Html, context) }),
@@ -5537,6 +5823,16 @@ const serializeAws_restJson1Content = (input, context) => {
5537
5823
  ...(input.Data != null && { Data: input.Data }),
5538
5824
  };
5539
5825
  };
5826
+ const serializeAws_restJson1DashboardAttributes = (input, context) => {
5827
+ return {
5828
+ ...(input.EngagementMetrics != null && { EngagementMetrics: input.EngagementMetrics }),
5829
+ };
5830
+ };
5831
+ const serializeAws_restJson1DashboardOptions = (input, context) => {
5832
+ return {
5833
+ ...(input.EngagementMetrics != null && { EngagementMetrics: input.EngagementMetrics }),
5834
+ };
5835
+ };
5540
5836
  const serializeAws_restJson1DeliveryOptions = (input, context) => {
5541
5837
  return {
5542
5838
  ...(input.SendingPoolName != null && { SendingPoolName: input.SendingPoolName }),
@@ -5556,6 +5852,17 @@ const serializeAws_restJson1Destination = (input, context) => {
5556
5852
  }),
5557
5853
  };
5558
5854
  };
5855
+ const serializeAws_restJson1Dimensions = (input, context) => {
5856
+ return Object.entries(input).reduce((acc, [key, value]) => {
5857
+ if (value === null) {
5858
+ return acc;
5859
+ }
5860
+ return {
5861
+ ...acc,
5862
+ [key]: value,
5863
+ };
5864
+ }, {});
5865
+ };
5559
5866
  const serializeAws_restJson1DkimSigningAttributes = (input, context) => {
5560
5867
  return {
5561
5868
  ...(input.DomainSigningPrivateKey != null && { DomainSigningPrivateKey: input.DomainSigningPrivateKey }),
@@ -5629,6 +5936,16 @@ const serializeAws_restJson1EventTypes = (input, context) => {
5629
5936
  return entry;
5630
5937
  });
5631
5938
  };
5939
+ const serializeAws_restJson1GuardianAttributes = (input, context) => {
5940
+ return {
5941
+ ...(input.OptimizedSharedDelivery != null && { OptimizedSharedDelivery: input.OptimizedSharedDelivery }),
5942
+ };
5943
+ };
5944
+ const serializeAws_restJson1GuardianOptions = (input, context) => {
5945
+ return {
5946
+ ...(input.OptimizedSharedDelivery != null && { OptimizedSharedDelivery: input.OptimizedSharedDelivery }),
5947
+ };
5948
+ };
5632
5949
  const serializeAws_restJson1ImportDataSource = (input, context) => {
5633
5950
  return {
5634
5951
  ...(input.DataFormat != null && { DataFormat: input.DataFormat }),
@@ -5676,6 +5993,17 @@ const serializeAws_restJson1ListManagementOptions = (input, context) => {
5676
5993
  ...(input.TopicName != null && { TopicName: input.TopicName }),
5677
5994
  };
5678
5995
  };
5996
+ const serializeAws_restJson1ListRecommendationsFilter = (input, context) => {
5997
+ return Object.entries(input).reduce((acc, [key, value]) => {
5998
+ if (value === null) {
5999
+ return acc;
6000
+ }
6001
+ return {
6002
+ ...acc,
6003
+ [key]: value,
6004
+ };
6005
+ }, {});
6006
+ };
5679
6007
  const serializeAws_restJson1Message = (input, context) => {
5680
6008
  return {
5681
6009
  ...(input.Body != null && { Body: serializeAws_restJson1Body(input.Body, context) }),
@@ -5815,6 +6143,27 @@ const serializeAws_restJson1TrackingOptions = (input, context) => {
5815
6143
  ...(input.CustomRedirectDomain != null && { CustomRedirectDomain: input.CustomRedirectDomain }),
5816
6144
  };
5817
6145
  };
6146
+ const serializeAws_restJson1VdmAttributes = (input, context) => {
6147
+ return {
6148
+ ...(input.DashboardAttributes != null && {
6149
+ DashboardAttributes: serializeAws_restJson1DashboardAttributes(input.DashboardAttributes, context),
6150
+ }),
6151
+ ...(input.GuardianAttributes != null && {
6152
+ GuardianAttributes: serializeAws_restJson1GuardianAttributes(input.GuardianAttributes, context),
6153
+ }),
6154
+ ...(input.VdmEnabled != null && { VdmEnabled: input.VdmEnabled }),
6155
+ };
6156
+ };
6157
+ const serializeAws_restJson1VdmOptions = (input, context) => {
6158
+ return {
6159
+ ...(input.DashboardOptions != null && {
6160
+ DashboardOptions: serializeAws_restJson1DashboardOptions(input.DashboardOptions, context),
6161
+ }),
6162
+ ...(input.GuardianOptions != null && {
6163
+ GuardianOptions: serializeAws_restJson1GuardianOptions(input.GuardianOptions, context),
6164
+ }),
6165
+ };
6166
+ };
5818
6167
  const deserializeAws_restJson1AccountDetails = (output, context) => {
5819
6168
  return {
5820
6169
  AdditionalContactEmailAddresses: output.AdditionalContactEmailAddresses != null
@@ -5994,6 +6343,16 @@ const deserializeAws_restJson1DailyVolumes = (output, context) => {
5994
6343
  });
5995
6344
  return retVal;
5996
6345
  };
6346
+ const deserializeAws_restJson1DashboardAttributes = (output, context) => {
6347
+ return {
6348
+ EngagementMetrics: (0, smithy_client_1.expectString)(output.EngagementMetrics),
6349
+ };
6350
+ };
6351
+ const deserializeAws_restJson1DashboardOptions = (output, context) => {
6352
+ return {
6353
+ EngagementMetrics: (0, smithy_client_1.expectString)(output.EngagementMetrics),
6354
+ };
6355
+ };
5997
6356
  const deserializeAws_restJson1DedicatedIp = (output, context) => {
5998
6357
  return {
5999
6358
  Ip: (0, smithy_client_1.expectString)(output.Ip),
@@ -6231,6 +6590,16 @@ const deserializeAws_restJson1FailureInfo = (output, context) => {
6231
6590
  FailedRecordsS3Url: (0, smithy_client_1.expectString)(output.FailedRecordsS3Url),
6232
6591
  };
6233
6592
  };
6593
+ const deserializeAws_restJson1GuardianAttributes = (output, context) => {
6594
+ return {
6595
+ OptimizedSharedDelivery: (0, smithy_client_1.expectString)(output.OptimizedSharedDelivery),
6596
+ };
6597
+ };
6598
+ const deserializeAws_restJson1GuardianOptions = (output, context) => {
6599
+ return {
6600
+ OptimizedSharedDelivery: (0, smithy_client_1.expectString)(output.OptimizedSharedDelivery),
6601
+ };
6602
+ };
6234
6603
  const deserializeAws_restJson1IdentityInfo = (output, context) => {
6235
6604
  return {
6236
6605
  IdentityName: (0, smithy_client_1.expectString)(output.IdentityName),
@@ -6384,6 +6753,53 @@ const deserializeAws_restJson1MailFromAttributes = (output, context) => {
6384
6753
  MailFromDomainStatus: (0, smithy_client_1.expectString)(output.MailFromDomainStatus),
6385
6754
  };
6386
6755
  };
6756
+ const deserializeAws_restJson1MetricDataError = (output, context) => {
6757
+ return {
6758
+ Code: (0, smithy_client_1.expectString)(output.Code),
6759
+ Id: (0, smithy_client_1.expectString)(output.Id),
6760
+ Message: (0, smithy_client_1.expectString)(output.Message),
6761
+ };
6762
+ };
6763
+ const deserializeAws_restJson1MetricDataErrorList = (output, context) => {
6764
+ const retVal = (output || [])
6765
+ .filter((e) => e != null)
6766
+ .map((entry) => {
6767
+ if (entry === null) {
6768
+ return null;
6769
+ }
6770
+ return deserializeAws_restJson1MetricDataError(entry, context);
6771
+ });
6772
+ return retVal;
6773
+ };
6774
+ const deserializeAws_restJson1MetricDataResult = (output, context) => {
6775
+ return {
6776
+ Id: (0, smithy_client_1.expectString)(output.Id),
6777
+ Timestamps: output.Timestamps != null ? deserializeAws_restJson1TimestampList(output.Timestamps, context) : undefined,
6778
+ Values: output.Values != null ? deserializeAws_restJson1MetricValueList(output.Values, context) : undefined,
6779
+ };
6780
+ };
6781
+ const deserializeAws_restJson1MetricDataResultList = (output, context) => {
6782
+ const retVal = (output || [])
6783
+ .filter((e) => e != null)
6784
+ .map((entry) => {
6785
+ if (entry === null) {
6786
+ return null;
6787
+ }
6788
+ return deserializeAws_restJson1MetricDataResult(entry, context);
6789
+ });
6790
+ return retVal;
6791
+ };
6792
+ const deserializeAws_restJson1MetricValueList = (output, context) => {
6793
+ const retVal = (output || [])
6794
+ .filter((e) => e != null)
6795
+ .map((entry) => {
6796
+ if (entry === null) {
6797
+ return null;
6798
+ }
6799
+ return (0, smithy_client_1.expectLong)(entry);
6800
+ });
6801
+ return retVal;
6802
+ };
6387
6803
  const deserializeAws_restJson1OverallVolume = (output, context) => {
6388
6804
  return {
6389
6805
  DomainIspPlacements: output.DomainIspPlacements != null
@@ -6420,6 +6836,32 @@ const deserializeAws_restJson1PolicyMap = (output, context) => {
6420
6836
  };
6421
6837
  }, {});
6422
6838
  };
6839
+ const deserializeAws_restJson1Recommendation = (output, context) => {
6840
+ return {
6841
+ CreatedTimestamp: output.CreatedTimestamp != null
6842
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
6843
+ : undefined,
6844
+ Description: (0, smithy_client_1.expectString)(output.Description),
6845
+ Impact: (0, smithy_client_1.expectString)(output.Impact),
6846
+ LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
6847
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
6848
+ : undefined,
6849
+ ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
6850
+ Status: (0, smithy_client_1.expectString)(output.Status),
6851
+ Type: (0, smithy_client_1.expectString)(output.Type),
6852
+ };
6853
+ };
6854
+ const deserializeAws_restJson1RecommendationsList = (output, context) => {
6855
+ const retVal = (output || [])
6856
+ .filter((e) => e != null)
6857
+ .map((entry) => {
6858
+ if (entry === null) {
6859
+ return null;
6860
+ }
6861
+ return deserializeAws_restJson1Recommendation(entry, context);
6862
+ });
6863
+ return retVal;
6864
+ };
6423
6865
  const deserializeAws_restJson1ReputationOptions = (output, context) => {
6424
6866
  return {
6425
6867
  LastFreshStart: output.LastFreshStart != null
@@ -6536,6 +6978,17 @@ const deserializeAws_restJson1TagList = (output, context) => {
6536
6978
  });
6537
6979
  return retVal;
6538
6980
  };
6981
+ const deserializeAws_restJson1TimestampList = (output, context) => {
6982
+ const retVal = (output || [])
6983
+ .filter((e) => e != null)
6984
+ .map((entry) => {
6985
+ if (entry === null) {
6986
+ return null;
6987
+ }
6988
+ return (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(entry)));
6989
+ });
6990
+ return retVal;
6991
+ };
6539
6992
  const deserializeAws_restJson1Topic = (output, context) => {
6540
6993
  return {
6541
6994
  DefaultSubscriptionStatus: (0, smithy_client_1.expectString)(output.DefaultSubscriptionStatus),
@@ -6577,6 +7030,27 @@ const deserializeAws_restJson1TrackingOptions = (output, context) => {
6577
7030
  CustomRedirectDomain: (0, smithy_client_1.expectString)(output.CustomRedirectDomain),
6578
7031
  };
6579
7032
  };
7033
+ const deserializeAws_restJson1VdmAttributes = (output, context) => {
7034
+ return {
7035
+ DashboardAttributes: output.DashboardAttributes != null
7036
+ ? deserializeAws_restJson1DashboardAttributes(output.DashboardAttributes, context)
7037
+ : undefined,
7038
+ GuardianAttributes: output.GuardianAttributes != null
7039
+ ? deserializeAws_restJson1GuardianAttributes(output.GuardianAttributes, context)
7040
+ : undefined,
7041
+ VdmEnabled: (0, smithy_client_1.expectString)(output.VdmEnabled),
7042
+ };
7043
+ };
7044
+ const deserializeAws_restJson1VdmOptions = (output, context) => {
7045
+ return {
7046
+ DashboardOptions: output.DashboardOptions != null
7047
+ ? deserializeAws_restJson1DashboardOptions(output.DashboardOptions, context)
7048
+ : undefined,
7049
+ GuardianOptions: output.GuardianOptions != null
7050
+ ? deserializeAws_restJson1GuardianOptions(output.GuardianOptions, context)
7051
+ : undefined,
7052
+ };
7053
+ };
6580
7054
  const deserializeAws_restJson1VolumeStatistics = (output, context) => {
6581
7055
  return {
6582
7056
  InboxRawCount: (0, smithy_client_1.expectLong)(output.InboxRawCount),