@aws-sdk/client-mailmanager 3.670.0 → 3.671.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.
@@ -6,6 +6,7 @@ const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
8
  const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const models_0_1 = require("../models/models_0");
9
10
  const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
10
11
  class GetArchiveMessageCommand extends smithy_client_1.Command
11
12
  .classBuilder()
@@ -18,7 +19,7 @@ class GetArchiveMessageCommand extends smithy_client_1.Command
18
19
  })
19
20
  .s("MailManagerSvc", "GetArchiveMessage", {})
20
21
  .n("MailManagerClient", "GetArchiveMessageCommand")
21
- .f(void 0, void 0)
22
+ .f(void 0, models_0_1.GetArchiveMessageResponseFilterSensitiveLog)
22
23
  .ser(Aws_json1_0_1.se_GetArchiveMessageCommand)
23
24
  .de(Aws_json1_0_1.de_GetArchiveMessageCommand)
24
25
  .build() {
@@ -6,6 +6,7 @@ const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
8
  const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const models_0_1 = require("../models/models_0");
9
10
  const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
10
11
  class GetArchiveSearchResultsCommand extends smithy_client_1.Command
11
12
  .classBuilder()
@@ -18,7 +19,7 @@ class GetArchiveSearchResultsCommand extends smithy_client_1.Command
18
19
  })
19
20
  .s("MailManagerSvc", "GetArchiveSearchResults", {})
20
21
  .n("MailManagerClient", "GetArchiveSearchResultsCommand")
21
- .f(void 0, void 0)
22
+ .f(void 0, models_0_1.GetArchiveSearchResultsResponseFilterSensitiveLog)
22
23
  .ser(Aws_json1_0_1.se_GetArchiveSearchResultsCommand)
23
24
  .de(Aws_json1_0_1.de_GetArchiveSearchResultsCommand)
24
25
  .build() {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IngressStringOperator = exports.IngressStringToEvaluate = exports.IngressStringEmailAttribute = exports.IngressIpOperator = exports.IngressIpToEvaluate = exports.IngressIpv4Attribute = exports.IngressBooleanOperator = exports.IngressBooleanToEvaluate = exports.RuleCondition = exports.RuleVerdict = exports.RuleVerdictOperator = exports.RuleVerdictToEvaluate = exports.RuleVerdictAttribute = exports.RuleStringOperator = exports.RuleStringToEvaluate = exports.RuleStringEmailAttribute = exports.RuleNumberOperator = exports.RuleNumberToEvaluate = exports.RuleNumberEmailAttribute = exports.RuleIpOperator = exports.RuleIpToEvaluate = exports.RuleIpEmailAttribute = exports.RuleDmarcPolicy = exports.RuleDmarcOperator = exports.RuleBooleanOperator = exports.RuleBooleanToEvaluate = exports.RuleBooleanEmailAttribute = exports.RuleAction = exports.MailFrom = exports.RelayAuthentication = exports.IngressPointType = exports.IngressPointConfiguration = exports.ThrottlingException = exports.ArchiveRetention = exports.RetentionPeriod = exports.ArchiveFilterCondition = exports.ArchiveStringOperator = exports.ArchiveStringToEvaluate = exports.ArchiveStringEmailAttribute = exports.ArchiveBooleanOperator = exports.ArchiveBooleanToEvaluate = exports.ArchiveBooleanEmailAttribute = exports.ArchiveState = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ConflictException = exports.ActionFailurePolicy = exports.AccessDeniedException = exports.AcceptAction = void 0;
4
- exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.UpdateRuleSetRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.UpdateIngressPointRequestFilterSensitiveLog = exports.GetRuleSetResponseFilterSensitiveLog = exports.CreateTrafficPolicyRequestFilterSensitiveLog = exports.CreateRuleSetRequestFilterSensitiveLog = exports.RuleFilterSensitiveLog = exports.RuleActionFilterSensitiveLog = exports.ReplaceRecipientActionFilterSensitiveLog = exports.CreateRelayRequestFilterSensitiveLog = exports.CreateIngressPointRequestFilterSensitiveLog = exports.IngressPointConfigurationFilterSensitiveLog = exports.CreateArchiveRequestFilterSensitiveLog = exports.CreateAddonSubscriptionRequestFilterSensitiveLog = exports.CreateAddonInstanceRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.IngressPointStatusToUpdate = exports.IngressPointStatus = exports.SearchState = exports.ExportState = exports.ExportDestinationConfiguration = exports.PolicyCondition = exports.IngressTlsProtocolAttribute = exports.IngressTlsProtocolOperator = exports.IngressTlsProtocolToEvaluate = exports.IngressTlsAttribute = void 0;
4
+ exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.UpdateRuleSetRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.UpdateIngressPointRequestFilterSensitiveLog = exports.GetRuleSetResponseFilterSensitiveLog = exports.GetArchiveSearchResultsResponseFilterSensitiveLog = exports.RowFilterSensitiveLog = exports.GetArchiveMessageResponseFilterSensitiveLog = exports.MetadataFilterSensitiveLog = exports.CreateTrafficPolicyRequestFilterSensitiveLog = exports.CreateRuleSetRequestFilterSensitiveLog = exports.RuleFilterSensitiveLog = exports.RuleActionFilterSensitiveLog = exports.ReplaceRecipientActionFilterSensitiveLog = exports.CreateRelayRequestFilterSensitiveLog = exports.CreateIngressPointRequestFilterSensitiveLog = exports.IngressPointConfigurationFilterSensitiveLog = exports.CreateArchiveRequestFilterSensitiveLog = exports.CreateAddonSubscriptionRequestFilterSensitiveLog = exports.CreateAddonInstanceRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.IngressPointStatusToUpdate = exports.IngressPointStatus = exports.SearchState = exports.ExportState = exports.ExportDestinationConfiguration = exports.PolicyCondition = exports.IngressTlsProtocolAttribute = exports.IngressTlsProtocolOperator = exports.IngressTlsProtocolToEvaluate = exports.IngressTlsAttribute = void 0;
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const MailManagerServiceException_1 = require("./MailManagerServiceException");
7
7
  exports.AcceptAction = {
@@ -103,6 +103,8 @@ exports.ArchiveBooleanOperator = {
103
103
  };
104
104
  exports.ArchiveStringEmailAttribute = {
105
105
  CC: "CC",
106
+ ENVELOPE_FROM: "ENVELOPE_FROM",
107
+ ENVELOPE_TO: "ENVELOPE_TO",
106
108
  FROM: "FROM",
107
109
  SUBJECT: "SUBJECT",
108
110
  TO: "TO",
@@ -550,6 +552,26 @@ const CreateTrafficPolicyRequestFilterSensitiveLog = (obj) => ({
550
552
  ...(obj.Tags && { Tags: obj.Tags.map((item) => (0, exports.TagFilterSensitiveLog)(item)) }),
551
553
  });
552
554
  exports.CreateTrafficPolicyRequestFilterSensitiveLog = CreateTrafficPolicyRequestFilterSensitiveLog;
555
+ const MetadataFilterSensitiveLog = (obj) => ({
556
+ ...obj,
557
+ ...(obj.SenderIpAddress && { SenderIpAddress: smithy_client_1.SENSITIVE_STRING }),
558
+ });
559
+ exports.MetadataFilterSensitiveLog = MetadataFilterSensitiveLog;
560
+ const GetArchiveMessageResponseFilterSensitiveLog = (obj) => ({
561
+ ...obj,
562
+ ...(obj.Metadata && { Metadata: (0, exports.MetadataFilterSensitiveLog)(obj.Metadata) }),
563
+ });
564
+ exports.GetArchiveMessageResponseFilterSensitiveLog = GetArchiveMessageResponseFilterSensitiveLog;
565
+ const RowFilterSensitiveLog = (obj) => ({
566
+ ...obj,
567
+ ...(obj.SenderIpAddress && { SenderIpAddress: smithy_client_1.SENSITIVE_STRING }),
568
+ });
569
+ exports.RowFilterSensitiveLog = RowFilterSensitiveLog;
570
+ const GetArchiveSearchResultsResponseFilterSensitiveLog = (obj) => ({
571
+ ...obj,
572
+ ...(obj.Rows && { Rows: obj.Rows.map((item) => (0, exports.RowFilterSensitiveLog)(item)) }),
573
+ });
574
+ exports.GetArchiveSearchResultsResponseFilterSensitiveLog = GetArchiveSearchResultsResponseFilterSensitiveLog;
553
575
  const GetRuleSetResponseFilterSensitiveLog = (obj) => ({
554
576
  ...obj,
555
577
  ...(obj.Rules && { Rules: obj.Rules.map((item) => (0, exports.RuleFilterSensitiveLog)(item)) }),
@@ -595,7 +595,7 @@ const de_GetArchiveMessageCommand = async (output, context) => {
595
595
  }
596
596
  const data = await (0, core_1.parseJsonBody)(output.body, context);
597
597
  let contents = {};
598
- contents = (0, smithy_client_1._json)(data);
598
+ contents = de_GetArchiveMessageResponse(data, context);
599
599
  const response = {
600
600
  $metadata: deserializeMetadata(output),
601
601
  ...contents,
@@ -1191,6 +1191,7 @@ const se_StartArchiveExportRequest = (input, context) => {
1191
1191
  ExportDestinationConfiguration: smithy_client_1._json,
1192
1192
  Filters: smithy_client_1._json,
1193
1193
  FromTimestamp: (_) => _.getTime() / 1000,
1194
+ IncludeMetadata: [],
1194
1195
  MaxResults: [],
1195
1196
  ToTimestamp: (_) => _.getTime() / 1000,
1196
1197
  });
@@ -1308,6 +1309,13 @@ const de_GetArchiveExportResponse = (output, context) => {
1308
1309
  ToTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1309
1310
  });
1310
1311
  };
1312
+ const de_GetArchiveMessageResponse = (output, context) => {
1313
+ return (0, smithy_client_1.take)(output, {
1314
+ Envelope: smithy_client_1._json,
1315
+ MessageDownloadLink: smithy_client_1.expectString,
1316
+ Metadata: (_) => de_Metadata(_, context),
1317
+ });
1318
+ };
1311
1319
  const de_GetArchiveResponse = (output, context) => {
1312
1320
  return (0, smithy_client_1.take)(output, {
1313
1321
  ArchiveArn: smithy_client_1.expectString,
@@ -1439,6 +1447,18 @@ const de_ListRuleSetsResponse = (output, context) => {
1439
1447
  RuleSets: (_) => de_RuleSets(_, context),
1440
1448
  });
1441
1449
  };
1450
+ const de_Metadata = (output, context) => {
1451
+ return (0, smithy_client_1.take)(output, {
1452
+ IngressPointId: smithy_client_1.expectString,
1453
+ RuleSetId: smithy_client_1.expectString,
1454
+ SenderHostname: smithy_client_1.expectString,
1455
+ SenderIpAddress: smithy_client_1.expectString,
1456
+ Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1457
+ TlsCipherSuite: smithy_client_1.expectString,
1458
+ TlsProtocol: smithy_client_1.expectString,
1459
+ TrafficPolicyId: smithy_client_1.expectString,
1460
+ });
1461
+ };
1442
1462
  const de_Relay = (output, context) => {
1443
1463
  return (0, smithy_client_1.take)(output, {
1444
1464
  LastModifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
@@ -1459,12 +1479,16 @@ const de_Row = (output, context) => {
1459
1479
  ArchivedMessageId: smithy_client_1.expectString,
1460
1480
  Cc: smithy_client_1.expectString,
1461
1481
  Date: smithy_client_1.expectString,
1482
+ Envelope: smithy_client_1._json,
1462
1483
  From: smithy_client_1.expectString,
1463
1484
  HasAttachments: smithy_client_1.expectBoolean,
1464
1485
  InReplyTo: smithy_client_1.expectString,
1486
+ IngressPointId: smithy_client_1.expectString,
1465
1487
  MessageId: smithy_client_1.expectString,
1466
1488
  ReceivedHeaders: smithy_client_1._json,
1467
1489
  ReceivedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1490
+ SenderHostname: smithy_client_1.expectString,
1491
+ SenderIpAddress: smithy_client_1.expectString,
1468
1492
  Subject: smithy_client_1.expectString,
1469
1493
  To: smithy_client_1.expectString,
1470
1494
  XMailer: smithy_client_1.expectString,
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { GetArchiveMessageResponseFilterSensitiveLog, } from "../models/models_0";
5
6
  import { de_GetArchiveMessageCommand, se_GetArchiveMessageCommand } from "../protocols/Aws_json1_0";
6
7
  export { $Command };
7
8
  export class GetArchiveMessageCommand extends $Command
@@ -15,7 +16,7 @@ export class GetArchiveMessageCommand extends $Command
15
16
  })
16
17
  .s("MailManagerSvc", "GetArchiveMessage", {})
17
18
  .n("MailManagerClient", "GetArchiveMessageCommand")
18
- .f(void 0, void 0)
19
+ .f(void 0, GetArchiveMessageResponseFilterSensitiveLog)
19
20
  .ser(se_GetArchiveMessageCommand)
20
21
  .de(de_GetArchiveMessageCommand)
21
22
  .build() {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { GetArchiveSearchResultsResponseFilterSensitiveLog, } from "../models/models_0";
5
6
  import { de_GetArchiveSearchResultsCommand, se_GetArchiveSearchResultsCommand } from "../protocols/Aws_json1_0";
6
7
  export { $Command };
7
8
  export class GetArchiveSearchResultsCommand extends $Command
@@ -15,7 +16,7 @@ export class GetArchiveSearchResultsCommand extends $Command
15
16
  })
16
17
  .s("MailManagerSvc", "GetArchiveSearchResults", {})
17
18
  .n("MailManagerClient", "GetArchiveSearchResultsCommand")
18
- .f(void 0, void 0)
19
+ .f(void 0, GetArchiveSearchResultsResponseFilterSensitiveLog)
19
20
  .ser(se_GetArchiveSearchResultsCommand)
20
21
  .de(de_GetArchiveSearchResultsCommand)
21
22
  .build() {
@@ -94,6 +94,8 @@ export const ArchiveBooleanOperator = {
94
94
  };
95
95
  export const ArchiveStringEmailAttribute = {
96
96
  CC: "CC",
97
+ ENVELOPE_FROM: "ENVELOPE_FROM",
98
+ ENVELOPE_TO: "ENVELOPE_TO",
97
99
  FROM: "FROM",
98
100
  SUBJECT: "SUBJECT",
99
101
  TO: "TO",
@@ -528,6 +530,22 @@ export const CreateTrafficPolicyRequestFilterSensitiveLog = (obj) => ({
528
530
  ...(obj.PolicyStatements && { PolicyStatements: obj.PolicyStatements.map((item) => item) }),
529
531
  ...(obj.Tags && { Tags: obj.Tags.map((item) => TagFilterSensitiveLog(item)) }),
530
532
  });
533
+ export const MetadataFilterSensitiveLog = (obj) => ({
534
+ ...obj,
535
+ ...(obj.SenderIpAddress && { SenderIpAddress: SENSITIVE_STRING }),
536
+ });
537
+ export const GetArchiveMessageResponseFilterSensitiveLog = (obj) => ({
538
+ ...obj,
539
+ ...(obj.Metadata && { Metadata: MetadataFilterSensitiveLog(obj.Metadata) }),
540
+ });
541
+ export const RowFilterSensitiveLog = (obj) => ({
542
+ ...obj,
543
+ ...(obj.SenderIpAddress && { SenderIpAddress: SENSITIVE_STRING }),
544
+ });
545
+ export const GetArchiveSearchResultsResponseFilterSensitiveLog = (obj) => ({
546
+ ...obj,
547
+ ...(obj.Rows && { Rows: obj.Rows.map((item) => RowFilterSensitiveLog(item)) }),
548
+ });
531
549
  export const GetRuleSetResponseFilterSensitiveLog = (obj) => ({
532
550
  ...obj,
533
551
  ...(obj.Rules && { Rules: obj.Rules.map((item) => RuleFilterSensitiveLog(item)) }),
@@ -526,7 +526,7 @@ export const de_GetArchiveMessageCommand = async (output, context) => {
526
526
  }
527
527
  const data = await parseBody(output.body, context);
528
528
  let contents = {};
529
- contents = _json(data);
529
+ contents = de_GetArchiveMessageResponse(data, context);
530
530
  const response = {
531
531
  $metadata: deserializeMetadata(output),
532
532
  ...contents,
@@ -1093,6 +1093,7 @@ const se_StartArchiveExportRequest = (input, context) => {
1093
1093
  ExportDestinationConfiguration: _json,
1094
1094
  Filters: _json,
1095
1095
  FromTimestamp: (_) => _.getTime() / 1000,
1096
+ IncludeMetadata: [],
1096
1097
  MaxResults: [],
1097
1098
  ToTimestamp: (_) => _.getTime() / 1000,
1098
1099
  });
@@ -1210,6 +1211,13 @@ const de_GetArchiveExportResponse = (output, context) => {
1210
1211
  ToTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1211
1212
  });
1212
1213
  };
1214
+ const de_GetArchiveMessageResponse = (output, context) => {
1215
+ return take(output, {
1216
+ Envelope: _json,
1217
+ MessageDownloadLink: __expectString,
1218
+ Metadata: (_) => de_Metadata(_, context),
1219
+ });
1220
+ };
1213
1221
  const de_GetArchiveResponse = (output, context) => {
1214
1222
  return take(output, {
1215
1223
  ArchiveArn: __expectString,
@@ -1341,6 +1349,18 @@ const de_ListRuleSetsResponse = (output, context) => {
1341
1349
  RuleSets: (_) => de_RuleSets(_, context),
1342
1350
  });
1343
1351
  };
1352
+ const de_Metadata = (output, context) => {
1353
+ return take(output, {
1354
+ IngressPointId: __expectString,
1355
+ RuleSetId: __expectString,
1356
+ SenderHostname: __expectString,
1357
+ SenderIpAddress: __expectString,
1358
+ Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1359
+ TlsCipherSuite: __expectString,
1360
+ TlsProtocol: __expectString,
1361
+ TrafficPolicyId: __expectString,
1362
+ });
1363
+ };
1344
1364
  const de_Relay = (output, context) => {
1345
1365
  return take(output, {
1346
1366
  LastModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -1361,12 +1381,16 @@ const de_Row = (output, context) => {
1361
1381
  ArchivedMessageId: __expectString,
1362
1382
  Cc: __expectString,
1363
1383
  Date: __expectString,
1384
+ Envelope: _json,
1364
1385
  From: __expectString,
1365
1386
  HasAttachments: __expectBoolean,
1366
1387
  InReplyTo: __expectString,
1388
+ IngressPointId: __expectString,
1367
1389
  MessageId: __expectString,
1368
1390
  ReceivedHeaders: _json,
1369
1391
  ReceivedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1392
+ SenderHostname: __expectString,
1393
+ SenderIpAddress: __expectString,
1370
1394
  Subject: __expectString,
1371
1395
  To: __expectString,
1372
1396
  XMailer: __expectString,
@@ -46,7 +46,7 @@ declare const GetArchiveExportCommand_base: {
46
46
  * // { // ArchiveFilterCondition Union: only one key present
47
47
  * // StringExpression: { // ArchiveStringExpression
48
48
  * // Evaluate: { // ArchiveStringToEvaluate Union: only one key present
49
- * // Attribute: "TO" || "FROM" || "CC" || "SUBJECT",
49
+ * // Attribute: "TO" || "FROM" || "CC" || "SUBJECT" || "ENVELOPE_TO" || "ENVELOPE_FROM",
50
50
  * // },
51
51
  * // Operator: "CONTAINS", // required
52
52
  * // Values: [ // StringValueList // required
@@ -65,7 +65,7 @@ declare const GetArchiveExportCommand_base: {
65
65
  * // {// Union: only one key present
66
66
  * // StringExpression: {
67
67
  * // Evaluate: {// Union: only one key present
68
- * // Attribute: "TO" || "FROM" || "CC" || "SUBJECT",
68
+ * // Attribute: "TO" || "FROM" || "CC" || "SUBJECT" || "ENVELOPE_TO" || "ENVELOPE_FROM",
69
69
  * // },
70
70
  * // Operator: "CONTAINS", // required
71
71
  * // Values: [ // required
@@ -43,6 +43,23 @@ declare const GetArchiveMessageCommand_base: {
43
43
  * const response = await client.send(command);
44
44
  * // { // GetArchiveMessageResponse
45
45
  * // MessageDownloadLink: "STRING_VALUE",
46
+ * // Metadata: { // Metadata
47
+ * // Timestamp: new Date("TIMESTAMP"),
48
+ * // IngressPointId: "STRING_VALUE",
49
+ * // TrafficPolicyId: "STRING_VALUE",
50
+ * // RuleSetId: "STRING_VALUE",
51
+ * // SenderHostname: "STRING_VALUE",
52
+ * // SenderIpAddress: "STRING_VALUE",
53
+ * // TlsCipherSuite: "STRING_VALUE",
54
+ * // TlsProtocol: "STRING_VALUE",
55
+ * // },
56
+ * // Envelope: { // Envelope
57
+ * // Helo: "STRING_VALUE",
58
+ * // From: "STRING_VALUE",
59
+ * // To: [ // StringList
60
+ * // "STRING_VALUE",
61
+ * // ],
62
+ * // },
46
63
  * // };
47
64
  *
48
65
  * ```
@@ -46,7 +46,7 @@ declare const GetArchiveSearchCommand_base: {
46
46
  * // { // ArchiveFilterCondition Union: only one key present
47
47
  * // StringExpression: { // ArchiveStringExpression
48
48
  * // Evaluate: { // ArchiveStringToEvaluate Union: only one key present
49
- * // Attribute: "TO" || "FROM" || "CC" || "SUBJECT",
49
+ * // Attribute: "TO" || "FROM" || "CC" || "SUBJECT" || "ENVELOPE_TO" || "ENVELOPE_FROM",
50
50
  * // },
51
51
  * // Operator: "CONTAINS", // required
52
52
  * // Values: [ // StringValueList // required
@@ -65,7 +65,7 @@ declare const GetArchiveSearchCommand_base: {
65
65
  * // {// Union: only one key present
66
66
  * // StringExpression: {
67
67
  * // Evaluate: {// Union: only one key present
68
- * // Attribute: "TO" || "FROM" || "CC" || "SUBJECT",
68
+ * // Attribute: "TO" || "FROM" || "CC" || "SUBJECT" || "ENVELOPE_TO" || "ENVELOPE_FROM",
69
69
  * // },
70
70
  * // Operator: "CONTAINS", // required
71
71
  * // Values: [ // required
@@ -58,6 +58,16 @@ declare const GetArchiveSearchResultsCommand_base: {
58
58
  * // XMailer: "STRING_VALUE",
59
59
  * // XOriginalMailer: "STRING_VALUE",
60
60
  * // XPriority: "STRING_VALUE",
61
+ * // IngressPointId: "STRING_VALUE",
62
+ * // SenderHostname: "STRING_VALUE",
63
+ * // SenderIpAddress: "STRING_VALUE",
64
+ * // Envelope: { // Envelope
65
+ * // Helo: "STRING_VALUE",
66
+ * // From: "STRING_VALUE",
67
+ * // To: [ // StringList
68
+ * // "STRING_VALUE",
69
+ * // ],
70
+ * // },
61
71
  * // },
62
72
  * // ],
63
73
  * // };
@@ -41,7 +41,7 @@ declare const StartArchiveExportCommand_base: {
41
41
  * { // ArchiveFilterCondition Union: only one key present
42
42
  * StringExpression: { // ArchiveStringExpression
43
43
  * Evaluate: { // ArchiveStringToEvaluate Union: only one key present
44
- * Attribute: "TO" || "FROM" || "CC" || "SUBJECT",
44
+ * Attribute: "TO" || "FROM" || "CC" || "SUBJECT" || "ENVELOPE_TO" || "ENVELOPE_FROM",
45
45
  * },
46
46
  * Operator: "CONTAINS", // required
47
47
  * Values: [ // StringValueList // required
@@ -60,7 +60,7 @@ declare const StartArchiveExportCommand_base: {
60
60
  * {// Union: only one key present
61
61
  * StringExpression: {
62
62
  * Evaluate: {// Union: only one key present
63
- * Attribute: "TO" || "FROM" || "CC" || "SUBJECT",
63
+ * Attribute: "TO" || "FROM" || "CC" || "SUBJECT" || "ENVELOPE_TO" || "ENVELOPE_FROM",
64
64
  * },
65
65
  * Operator: "CONTAINS", // required
66
66
  * Values: [ // required
@@ -84,6 +84,7 @@ declare const StartArchiveExportCommand_base: {
84
84
  * S3Location: "STRING_VALUE",
85
85
  * },
86
86
  * },
87
+ * IncludeMetadata: true || false,
87
88
  * };
88
89
  * const command = new StartArchiveExportCommand(input);
89
90
  * const response = await client.send(command);
@@ -41,7 +41,7 @@ declare const StartArchiveSearchCommand_base: {
41
41
  * { // ArchiveFilterCondition Union: only one key present
42
42
  * StringExpression: { // ArchiveStringExpression
43
43
  * Evaluate: { // ArchiveStringToEvaluate Union: only one key present
44
- * Attribute: "TO" || "FROM" || "CC" || "SUBJECT",
44
+ * Attribute: "TO" || "FROM" || "CC" || "SUBJECT" || "ENVELOPE_TO" || "ENVELOPE_FROM",
45
45
  * },
46
46
  * Operator: "CONTAINS", // required
47
47
  * Values: [ // StringValueList // required
@@ -60,7 +60,7 @@ declare const StartArchiveSearchCommand_base: {
60
60
  * {// Union: only one key present
61
61
  * StringExpression: {
62
62
  * Evaluate: {// Union: only one key present
63
- * Attribute: "TO" || "FROM" || "CC" || "SUBJECT",
63
+ * Attribute: "TO" || "FROM" || "CC" || "SUBJECT" || "ENVELOPE_TO" || "ENVELOPE_FROM",
64
64
  * },
65
65
  * Operator: "CONTAINS", // required
66
66
  * Values: [ // required
@@ -562,6 +562,8 @@ export interface ArchiveBooleanExpression {
562
562
  */
563
563
  export declare const ArchiveStringEmailAttribute: {
564
564
  readonly CC: "CC";
565
+ readonly ENVELOPE_FROM: "ENVELOPE_FROM";
566
+ readonly ENVELOPE_TO: "ENVELOPE_TO";
565
567
  readonly FROM: "FROM";
566
568
  readonly SUBJECT: "SUBJECT";
567
569
  readonly TO: "TO";
@@ -2639,6 +2641,27 @@ export interface DeleteTrafficPolicyRequest {
2639
2641
  */
2640
2642
  export interface DeleteTrafficPolicyResponse {
2641
2643
  }
2644
+ /**
2645
+ * <p>The SMTP envelope information of the email.</p>
2646
+ * @public
2647
+ */
2648
+ export interface Envelope {
2649
+ /**
2650
+ * <p>The HELO used by the host from which the email was received.</p>
2651
+ * @public
2652
+ */
2653
+ Helo?: string;
2654
+ /**
2655
+ * <p>The RCPT FROM given by the host from which the email was received.</p>
2656
+ * @public
2657
+ */
2658
+ From?: string;
2659
+ /**
2660
+ * <p>All SMTP TO entries given by the host from which the email was received.</p>
2661
+ * @public
2662
+ */
2663
+ To?: string[];
2664
+ }
2642
2665
  /**
2643
2666
  * <p>The configuration for exporting email data to an Amazon S3 bucket.</p>
2644
2667
  * @public
@@ -2801,6 +2824,52 @@ export interface GetArchiveMessageRequest {
2801
2824
  */
2802
2825
  ArchivedMessageId: string | undefined;
2803
2826
  }
2827
+ /**
2828
+ * <p>The metadata about the email.</p>
2829
+ * @public
2830
+ */
2831
+ export interface Metadata {
2832
+ /**
2833
+ * <p>The timestamp of when the email was received.</p>
2834
+ * @public
2835
+ */
2836
+ Timestamp?: Date;
2837
+ /**
2838
+ * <p>The ID of the ingress endpoint through which the email was received.</p>
2839
+ * @public
2840
+ */
2841
+ IngressPointId?: string;
2842
+ /**
2843
+ * <p>The ID of the traffic policy that was in effect when the email was received.</p>
2844
+ * @public
2845
+ */
2846
+ TrafficPolicyId?: string;
2847
+ /**
2848
+ * <p>The ID of the rule set that processed the email.</p>
2849
+ * @public
2850
+ */
2851
+ RuleSetId?: string;
2852
+ /**
2853
+ * <p>The name of the host from which the email was received.</p>
2854
+ * @public
2855
+ */
2856
+ SenderHostname?: string;
2857
+ /**
2858
+ * <p>The IP address of the host from which the email was received.</p>
2859
+ * @public
2860
+ */
2861
+ SenderIpAddress?: string;
2862
+ /**
2863
+ * <p>The TLS cipher suite used to communicate with the host from which the email was received.</p>
2864
+ * @public
2865
+ */
2866
+ TlsCipherSuite?: string;
2867
+ /**
2868
+ * <p>The TLS protocol used to communicate with the host from which the email was received.</p>
2869
+ * @public
2870
+ */
2871
+ TlsProtocol?: string;
2872
+ }
2804
2873
  /**
2805
2874
  * <p>The response containing details about the requested archived email message.</p>
2806
2875
  * @public
@@ -2811,6 +2880,16 @@ export interface GetArchiveMessageResponse {
2811
2880
  * @public
2812
2881
  */
2813
2882
  MessageDownloadLink?: string;
2883
+ /**
2884
+ * <p>The metadata about the email.</p>
2885
+ * @public
2886
+ */
2887
+ Metadata?: Metadata;
2888
+ /**
2889
+ * <p>The SMTP envelope information of the email.</p>
2890
+ * @public
2891
+ */
2892
+ Envelope?: Envelope;
2814
2893
  }
2815
2894
  /**
2816
2895
  * <p>The request to get the textual content of a specific email message stored in an archive.</p>
@@ -3029,6 +3108,26 @@ export interface Row {
3029
3108
  * @public
3030
3109
  */
3031
3110
  XPriority?: string;
3111
+ /**
3112
+ * <p>The ID of the ingress endpoint through which the email was received.</p>
3113
+ * @public
3114
+ */
3115
+ IngressPointId?: string;
3116
+ /**
3117
+ * <p>The name of the host from which the email was received.</p>
3118
+ * @public
3119
+ */
3120
+ SenderHostname?: string;
3121
+ /**
3122
+ * <p>The IP address of the host from which the email was received.</p>
3123
+ * @public
3124
+ */
3125
+ SenderIpAddress?: string;
3126
+ /**
3127
+ * <p>The SMTP envelope information of the email.</p>
3128
+ * @public
3129
+ */
3130
+ Envelope?: Envelope;
3032
3131
  }
3033
3132
  /**
3034
3133
  * <p>The response containing search results from a completed archive search.</p>
@@ -3817,6 +3916,11 @@ export interface StartArchiveExportRequest {
3817
3916
  * @public
3818
3917
  */
3819
3918
  ExportDestinationConfiguration: ExportDestinationConfiguration | undefined;
3919
+ /**
3920
+ * <p>Whether to include message metadata as JSON files in the export.</p>
3921
+ * @public
3922
+ */
3923
+ IncludeMetadata?: boolean;
3820
3924
  }
3821
3925
  /**
3822
3926
  * <p>The response from initiating an archive export.</p>
@@ -4032,6 +4136,22 @@ export declare const CreateRuleSetRequestFilterSensitiveLog: (obj: CreateRuleSet
4032
4136
  * @internal
4033
4137
  */
4034
4138
  export declare const CreateTrafficPolicyRequestFilterSensitiveLog: (obj: CreateTrafficPolicyRequest) => any;
4139
+ /**
4140
+ * @internal
4141
+ */
4142
+ export declare const MetadataFilterSensitiveLog: (obj: Metadata) => any;
4143
+ /**
4144
+ * @internal
4145
+ */
4146
+ export declare const GetArchiveMessageResponseFilterSensitiveLog: (obj: GetArchiveMessageResponse) => any;
4147
+ /**
4148
+ * @internal
4149
+ */
4150
+ export declare const RowFilterSensitiveLog: (obj: Row) => any;
4151
+ /**
4152
+ * @internal
4153
+ */
4154
+ export declare const GetArchiveSearchResultsResponseFilterSensitiveLog: (obj: GetArchiveSearchResultsResponse) => any;
4035
4155
  /**
4036
4156
  * @internal
4037
4157
  */
@@ -181,6 +181,8 @@ export interface ArchiveBooleanExpression {
181
181
  }
182
182
  export declare const ArchiveStringEmailAttribute: {
183
183
  readonly CC: "CC";
184
+ readonly ENVELOPE_FROM: "ENVELOPE_FROM";
185
+ readonly ENVELOPE_TO: "ENVELOPE_TO";
184
186
  readonly FROM: "FROM";
185
187
  readonly SUBJECT: "SUBJECT";
186
188
  readonly TO: "TO";
@@ -1124,6 +1126,11 @@ export interface DeleteTrafficPolicyRequest {
1124
1126
  TrafficPolicyId: string | undefined;
1125
1127
  }
1126
1128
  export interface DeleteTrafficPolicyResponse {}
1129
+ export interface Envelope {
1130
+ Helo?: string;
1131
+ From?: string;
1132
+ To?: string[];
1133
+ }
1127
1134
  export interface S3ExportDestinationConfiguration {
1128
1135
  S3Location?: string;
1129
1136
  }
@@ -1182,8 +1189,20 @@ export interface GetArchiveExportResponse {
1182
1189
  export interface GetArchiveMessageRequest {
1183
1190
  ArchivedMessageId: string | undefined;
1184
1191
  }
1192
+ export interface Metadata {
1193
+ Timestamp?: Date;
1194
+ IngressPointId?: string;
1195
+ TrafficPolicyId?: string;
1196
+ RuleSetId?: string;
1197
+ SenderHostname?: string;
1198
+ SenderIpAddress?: string;
1199
+ TlsCipherSuite?: string;
1200
+ TlsProtocol?: string;
1201
+ }
1185
1202
  export interface GetArchiveMessageResponse {
1186
1203
  MessageDownloadLink?: string;
1204
+ Metadata?: Metadata;
1205
+ Envelope?: Envelope;
1187
1206
  }
1188
1207
  export interface GetArchiveMessageContentRequest {
1189
1208
  ArchivedMessageId: string | undefined;
@@ -1239,6 +1258,10 @@ export interface Row {
1239
1258
  XMailer?: string;
1240
1259
  XOriginalMailer?: string;
1241
1260
  XPriority?: string;
1261
+ IngressPointId?: string;
1262
+ SenderHostname?: string;
1263
+ SenderIpAddress?: string;
1264
+ Envelope?: Envelope;
1242
1265
  }
1243
1266
  export interface GetArchiveSearchResultsResponse {
1244
1267
  Rows?: Row[];
@@ -1433,6 +1456,7 @@ export interface StartArchiveExportRequest {
1433
1456
  ToTimestamp: Date | undefined;
1434
1457
  MaxResults?: number;
1435
1458
  ExportDestinationConfiguration: ExportDestinationConfiguration | undefined;
1459
+ IncludeMetadata?: boolean;
1436
1460
  }
1437
1461
  export interface StartArchiveExportResponse {
1438
1462
  ExportId?: string;
@@ -1503,6 +1527,14 @@ export declare const CreateRuleSetRequestFilterSensitiveLog: (
1503
1527
  export declare const CreateTrafficPolicyRequestFilterSensitiveLog: (
1504
1528
  obj: CreateTrafficPolicyRequest
1505
1529
  ) => any;
1530
+ export declare const MetadataFilterSensitiveLog: (obj: Metadata) => any;
1531
+ export declare const GetArchiveMessageResponseFilterSensitiveLog: (
1532
+ obj: GetArchiveMessageResponse
1533
+ ) => any;
1534
+ export declare const RowFilterSensitiveLog: (obj: Row) => any;
1535
+ export declare const GetArchiveSearchResultsResponseFilterSensitiveLog: (
1536
+ obj: GetArchiveSearchResultsResponse
1537
+ ) => any;
1506
1538
  export declare const GetRuleSetResponseFilterSensitiveLog: (
1507
1539
  obj: GetRuleSetResponse
1508
1540
  ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mailmanager",
3
3
  "description": "AWS SDK for JavaScript Mailmanager Client for Node.js, Browser and React Native",
4
- "version": "3.670.0",
4
+ "version": "3.671.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",