@aws-sdk/client-workmail 3.41.0 → 3.46.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/CHANGELOG.md +44 -0
- package/dist-cjs/WorkMail.js +45 -0
- package/dist-cjs/commands/DeleteEmailMonitoringConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DescribeEmailMonitoringConfigurationCommand.js +36 -0
- package/dist-cjs/commands/PutEmailMonitoringConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +46 -10
- package/dist-cjs/protocols/Aws_json1_1.js +270 -3
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/WorkMail.js +45 -0
- package/dist-es/commands/DeleteEmailMonitoringConfigurationCommand.js +39 -0
- package/dist-es/commands/DescribeEmailMonitoringConfigurationCommand.js +39 -0
- package/dist-es/commands/PutEmailMonitoringConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +28 -4
- package/dist-es/protocols/Aws_json1_1.js +289 -0
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/WorkMail.d.ts +21 -0
- package/dist-types/WorkMailClient.d.ts +5 -2
- package/dist-types/commands/DeleteEmailMonitoringConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/DescribeEmailMonitoringConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/PutEmailMonitoringConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +90 -14
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/WorkMail.d.ts +15 -0
- package/dist-types/ts3.4/WorkMailClient.d.ts +5 -2
- package/dist-types/ts3.4/commands/DeleteEmailMonitoringConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeEmailMonitoringConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutEmailMonitoringConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +60 -10
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +9 -0
- package/package.json +36 -43
|
@@ -188,6 +188,14 @@ export var DeleteAliasResponse;
|
|
|
188
188
|
(function (DeleteAliasResponse) {
|
|
189
189
|
DeleteAliasResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
190
190
|
})(DeleteAliasResponse || (DeleteAliasResponse = {}));
|
|
191
|
+
export var DeleteEmailMonitoringConfigurationRequest;
|
|
192
|
+
(function (DeleteEmailMonitoringConfigurationRequest) {
|
|
193
|
+
DeleteEmailMonitoringConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
194
|
+
})(DeleteEmailMonitoringConfigurationRequest || (DeleteEmailMonitoringConfigurationRequest = {}));
|
|
195
|
+
export var DeleteEmailMonitoringConfigurationResponse;
|
|
196
|
+
(function (DeleteEmailMonitoringConfigurationResponse) {
|
|
197
|
+
DeleteEmailMonitoringConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
198
|
+
})(DeleteEmailMonitoringConfigurationResponse || (DeleteEmailMonitoringConfigurationResponse = {}));
|
|
191
199
|
export var DeleteGroupRequest;
|
|
192
200
|
(function (DeleteGroupRequest) {
|
|
193
201
|
DeleteGroupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -276,6 +284,18 @@ export var MailDomainInUseException;
|
|
|
276
284
|
(function (MailDomainInUseException) {
|
|
277
285
|
MailDomainInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
278
286
|
})(MailDomainInUseException || (MailDomainInUseException = {}));
|
|
287
|
+
export var DescribeEmailMonitoringConfigurationRequest;
|
|
288
|
+
(function (DescribeEmailMonitoringConfigurationRequest) {
|
|
289
|
+
DescribeEmailMonitoringConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
290
|
+
})(DescribeEmailMonitoringConfigurationRequest || (DescribeEmailMonitoringConfigurationRequest = {}));
|
|
291
|
+
export var DescribeEmailMonitoringConfigurationResponse;
|
|
292
|
+
(function (DescribeEmailMonitoringConfigurationResponse) {
|
|
293
|
+
DescribeEmailMonitoringConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
294
|
+
})(DescribeEmailMonitoringConfigurationResponse || (DescribeEmailMonitoringConfigurationResponse = {}));
|
|
295
|
+
export var ResourceNotFoundException;
|
|
296
|
+
(function (ResourceNotFoundException) {
|
|
297
|
+
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
298
|
+
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
279
299
|
export var DescribeGroupRequest;
|
|
280
300
|
(function (DescribeGroupRequest) {
|
|
281
301
|
DescribeGroupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -443,10 +463,6 @@ export var GetMobileDeviceAccessOverrideResponse;
|
|
|
443
463
|
(function (GetMobileDeviceAccessOverrideResponse) {
|
|
444
464
|
GetMobileDeviceAccessOverrideResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
445
465
|
})(GetMobileDeviceAccessOverrideResponse || (GetMobileDeviceAccessOverrideResponse = {}));
|
|
446
|
-
export var ResourceNotFoundException;
|
|
447
|
-
(function (ResourceNotFoundException) {
|
|
448
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
449
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
450
466
|
export var Group;
|
|
451
467
|
(function (Group) {
|
|
452
468
|
Group.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -621,6 +637,14 @@ export var PutAccessControlRuleResponse;
|
|
|
621
637
|
(function (PutAccessControlRuleResponse) {
|
|
622
638
|
PutAccessControlRuleResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
623
639
|
})(PutAccessControlRuleResponse || (PutAccessControlRuleResponse = {}));
|
|
640
|
+
export var PutEmailMonitoringConfigurationRequest;
|
|
641
|
+
(function (PutEmailMonitoringConfigurationRequest) {
|
|
642
|
+
PutEmailMonitoringConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
643
|
+
})(PutEmailMonitoringConfigurationRequest || (PutEmailMonitoringConfigurationRequest = {}));
|
|
644
|
+
export var PutEmailMonitoringConfigurationResponse;
|
|
645
|
+
(function (PutEmailMonitoringConfigurationResponse) {
|
|
646
|
+
PutEmailMonitoringConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
647
|
+
})(PutEmailMonitoringConfigurationResponse || (PutEmailMonitoringConfigurationResponse = {}));
|
|
624
648
|
export var PutInboundDmarcSettingsRequest;
|
|
625
649
|
(function (PutInboundDmarcSettingsRequest) {
|
|
626
650
|
PutInboundDmarcSettingsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -123,6 +123,17 @@ export var serializeAws_json1_1DeleteAliasCommand = function (input, context) {
|
|
|
123
123
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
124
124
|
});
|
|
125
125
|
}); };
|
|
126
|
+
export var serializeAws_json1_1DeleteEmailMonitoringConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
127
|
+
var headers, body;
|
|
128
|
+
return __generator(this, function (_a) {
|
|
129
|
+
headers = {
|
|
130
|
+
"content-type": "application/x-amz-json-1.1",
|
|
131
|
+
"x-amz-target": "WorkMailService.DeleteEmailMonitoringConfiguration",
|
|
132
|
+
};
|
|
133
|
+
body = JSON.stringify(serializeAws_json1_1DeleteEmailMonitoringConfigurationRequest(input, context));
|
|
134
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
135
|
+
});
|
|
136
|
+
}); };
|
|
126
137
|
export var serializeAws_json1_1DeleteGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
127
138
|
var headers, body;
|
|
128
139
|
return __generator(this, function (_a) {
|
|
@@ -233,6 +244,17 @@ export var serializeAws_json1_1DeregisterMailDomainCommand = function (input, co
|
|
|
233
244
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
234
245
|
});
|
|
235
246
|
}); };
|
|
247
|
+
export var serializeAws_json1_1DescribeEmailMonitoringConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
248
|
+
var headers, body;
|
|
249
|
+
return __generator(this, function (_a) {
|
|
250
|
+
headers = {
|
|
251
|
+
"content-type": "application/x-amz-json-1.1",
|
|
252
|
+
"x-amz-target": "WorkMailService.DescribeEmailMonitoringConfiguration",
|
|
253
|
+
};
|
|
254
|
+
body = JSON.stringify(serializeAws_json1_1DescribeEmailMonitoringConfigurationRequest(input, context));
|
|
255
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
256
|
+
});
|
|
257
|
+
}); };
|
|
236
258
|
export var serializeAws_json1_1DescribeGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
237
259
|
var headers, body;
|
|
238
260
|
return __generator(this, function (_a) {
|
|
@@ -552,6 +574,17 @@ export var serializeAws_json1_1PutAccessControlRuleCommand = function (input, co
|
|
|
552
574
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
553
575
|
});
|
|
554
576
|
}); };
|
|
577
|
+
export var serializeAws_json1_1PutEmailMonitoringConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
578
|
+
var headers, body;
|
|
579
|
+
return __generator(this, function (_a) {
|
|
580
|
+
headers = {
|
|
581
|
+
"content-type": "application/x-amz-json-1.1",
|
|
582
|
+
"x-amz-target": "WorkMailService.PutEmailMonitoringConfiguration",
|
|
583
|
+
};
|
|
584
|
+
body = JSON.stringify(serializeAws_json1_1PutEmailMonitoringConfigurationRequest(input, context));
|
|
585
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
586
|
+
});
|
|
587
|
+
}); };
|
|
555
588
|
export var serializeAws_json1_1PutInboundDmarcSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
556
589
|
var headers, body;
|
|
557
590
|
return __generator(this, function (_a) {
|
|
@@ -1773,6 +1806,78 @@ var deserializeAws_json1_1DeleteAliasCommandError = function (output, context) {
|
|
|
1773
1806
|
}
|
|
1774
1807
|
});
|
|
1775
1808
|
}); };
|
|
1809
|
+
export var deserializeAws_json1_1DeleteEmailMonitoringConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1810
|
+
var data, contents, response;
|
|
1811
|
+
return __generator(this, function (_a) {
|
|
1812
|
+
switch (_a.label) {
|
|
1813
|
+
case 0:
|
|
1814
|
+
if (output.statusCode >= 300) {
|
|
1815
|
+
return [2, deserializeAws_json1_1DeleteEmailMonitoringConfigurationCommandError(output, context)];
|
|
1816
|
+
}
|
|
1817
|
+
return [4, parseBody(output.body, context)];
|
|
1818
|
+
case 1:
|
|
1819
|
+
data = _a.sent();
|
|
1820
|
+
contents = {};
|
|
1821
|
+
contents = deserializeAws_json1_1DeleteEmailMonitoringConfigurationResponse(data, context);
|
|
1822
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1823
|
+
return [2, Promise.resolve(response)];
|
|
1824
|
+
}
|
|
1825
|
+
});
|
|
1826
|
+
}); };
|
|
1827
|
+
var deserializeAws_json1_1DeleteEmailMonitoringConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1828
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
1829
|
+
var _f;
|
|
1830
|
+
return __generator(this, function (_g) {
|
|
1831
|
+
switch (_g.label) {
|
|
1832
|
+
case 0:
|
|
1833
|
+
_a = [__assign({}, output)];
|
|
1834
|
+
_f = {};
|
|
1835
|
+
return [4, parseBody(output.body, context)];
|
|
1836
|
+
case 1:
|
|
1837
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1838
|
+
errorCode = "UnknownError";
|
|
1839
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1840
|
+
_b = errorCode;
|
|
1841
|
+
switch (_b) {
|
|
1842
|
+
case "InvalidParameterException": return [3, 2];
|
|
1843
|
+
case "com.amazonaws.workmail#InvalidParameterException": return [3, 2];
|
|
1844
|
+
case "OrganizationNotFoundException": return [3, 4];
|
|
1845
|
+
case "com.amazonaws.workmail#OrganizationNotFoundException": return [3, 4];
|
|
1846
|
+
case "OrganizationStateException": return [3, 6];
|
|
1847
|
+
case "com.amazonaws.workmail#OrganizationStateException": return [3, 6];
|
|
1848
|
+
}
|
|
1849
|
+
return [3, 8];
|
|
1850
|
+
case 2:
|
|
1851
|
+
_c = [{}];
|
|
1852
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1853
|
+
case 3:
|
|
1854
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1855
|
+
return [3, 9];
|
|
1856
|
+
case 4:
|
|
1857
|
+
_d = [{}];
|
|
1858
|
+
return [4, deserializeAws_json1_1OrganizationNotFoundExceptionResponse(parsedOutput, context)];
|
|
1859
|
+
case 5:
|
|
1860
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1861
|
+
return [3, 9];
|
|
1862
|
+
case 6:
|
|
1863
|
+
_e = [{}];
|
|
1864
|
+
return [4, deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context)];
|
|
1865
|
+
case 7:
|
|
1866
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1867
|
+
return [3, 9];
|
|
1868
|
+
case 8:
|
|
1869
|
+
parsedBody = parsedOutput.body;
|
|
1870
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1871
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1872
|
+
_g.label = 9;
|
|
1873
|
+
case 9:
|
|
1874
|
+
message = response.message || response.Message || errorCode;
|
|
1875
|
+
response.message = message;
|
|
1876
|
+
delete response.Message;
|
|
1877
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1878
|
+
}
|
|
1879
|
+
});
|
|
1880
|
+
}); };
|
|
1776
1881
|
export var deserializeAws_json1_1DeleteGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1777
1882
|
var data, contents, response;
|
|
1778
1883
|
return __generator(this, function (_a) {
|
|
@@ -2621,6 +2726,86 @@ var deserializeAws_json1_1DeregisterMailDomainCommandError = function (output, c
|
|
|
2621
2726
|
}
|
|
2622
2727
|
});
|
|
2623
2728
|
}); };
|
|
2729
|
+
export var deserializeAws_json1_1DescribeEmailMonitoringConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2730
|
+
var data, contents, response;
|
|
2731
|
+
return __generator(this, function (_a) {
|
|
2732
|
+
switch (_a.label) {
|
|
2733
|
+
case 0:
|
|
2734
|
+
if (output.statusCode >= 300) {
|
|
2735
|
+
return [2, deserializeAws_json1_1DescribeEmailMonitoringConfigurationCommandError(output, context)];
|
|
2736
|
+
}
|
|
2737
|
+
return [4, parseBody(output.body, context)];
|
|
2738
|
+
case 1:
|
|
2739
|
+
data = _a.sent();
|
|
2740
|
+
contents = {};
|
|
2741
|
+
contents = deserializeAws_json1_1DescribeEmailMonitoringConfigurationResponse(data, context);
|
|
2742
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2743
|
+
return [2, Promise.resolve(response)];
|
|
2744
|
+
}
|
|
2745
|
+
});
|
|
2746
|
+
}); };
|
|
2747
|
+
var deserializeAws_json1_1DescribeEmailMonitoringConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2748
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
2749
|
+
var _g;
|
|
2750
|
+
return __generator(this, function (_h) {
|
|
2751
|
+
switch (_h.label) {
|
|
2752
|
+
case 0:
|
|
2753
|
+
_a = [__assign({}, output)];
|
|
2754
|
+
_g = {};
|
|
2755
|
+
return [4, parseBody(output.body, context)];
|
|
2756
|
+
case 1:
|
|
2757
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2758
|
+
errorCode = "UnknownError";
|
|
2759
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2760
|
+
_b = errorCode;
|
|
2761
|
+
switch (_b) {
|
|
2762
|
+
case "InvalidParameterException": return [3, 2];
|
|
2763
|
+
case "com.amazonaws.workmail#InvalidParameterException": return [3, 2];
|
|
2764
|
+
case "OrganizationNotFoundException": return [3, 4];
|
|
2765
|
+
case "com.amazonaws.workmail#OrganizationNotFoundException": return [3, 4];
|
|
2766
|
+
case "OrganizationStateException": return [3, 6];
|
|
2767
|
+
case "com.amazonaws.workmail#OrganizationStateException": return [3, 6];
|
|
2768
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2769
|
+
case "com.amazonaws.workmail#ResourceNotFoundException": return [3, 8];
|
|
2770
|
+
}
|
|
2771
|
+
return [3, 10];
|
|
2772
|
+
case 2:
|
|
2773
|
+
_c = [{}];
|
|
2774
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2775
|
+
case 3:
|
|
2776
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2777
|
+
return [3, 11];
|
|
2778
|
+
case 4:
|
|
2779
|
+
_d = [{}];
|
|
2780
|
+
return [4, deserializeAws_json1_1OrganizationNotFoundExceptionResponse(parsedOutput, context)];
|
|
2781
|
+
case 5:
|
|
2782
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2783
|
+
return [3, 11];
|
|
2784
|
+
case 6:
|
|
2785
|
+
_e = [{}];
|
|
2786
|
+
return [4, deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context)];
|
|
2787
|
+
case 7:
|
|
2788
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2789
|
+
return [3, 11];
|
|
2790
|
+
case 8:
|
|
2791
|
+
_f = [{}];
|
|
2792
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2793
|
+
case 9:
|
|
2794
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2795
|
+
return [3, 11];
|
|
2796
|
+
case 10:
|
|
2797
|
+
parsedBody = parsedOutput.body;
|
|
2798
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2799
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2800
|
+
_h.label = 11;
|
|
2801
|
+
case 11:
|
|
2802
|
+
message = response.message || response.Message || errorCode;
|
|
2803
|
+
response.message = message;
|
|
2804
|
+
delete response.Message;
|
|
2805
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2806
|
+
}
|
|
2807
|
+
});
|
|
2808
|
+
}); };
|
|
2624
2809
|
export var deserializeAws_json1_1DescribeGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2625
2810
|
var data, contents, response;
|
|
2626
2811
|
return __generator(this, function (_a) {
|
|
@@ -4869,6 +5054,86 @@ var deserializeAws_json1_1PutAccessControlRuleCommandError = function (output, c
|
|
|
4869
5054
|
}
|
|
4870
5055
|
});
|
|
4871
5056
|
}); };
|
|
5057
|
+
export var deserializeAws_json1_1PutEmailMonitoringConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5058
|
+
var data, contents, response;
|
|
5059
|
+
return __generator(this, function (_a) {
|
|
5060
|
+
switch (_a.label) {
|
|
5061
|
+
case 0:
|
|
5062
|
+
if (output.statusCode >= 300) {
|
|
5063
|
+
return [2, deserializeAws_json1_1PutEmailMonitoringConfigurationCommandError(output, context)];
|
|
5064
|
+
}
|
|
5065
|
+
return [4, parseBody(output.body, context)];
|
|
5066
|
+
case 1:
|
|
5067
|
+
data = _a.sent();
|
|
5068
|
+
contents = {};
|
|
5069
|
+
contents = deserializeAws_json1_1PutEmailMonitoringConfigurationResponse(data, context);
|
|
5070
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
5071
|
+
return [2, Promise.resolve(response)];
|
|
5072
|
+
}
|
|
5073
|
+
});
|
|
5074
|
+
}); };
|
|
5075
|
+
var deserializeAws_json1_1PutEmailMonitoringConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5076
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
5077
|
+
var _g;
|
|
5078
|
+
return __generator(this, function (_h) {
|
|
5079
|
+
switch (_h.label) {
|
|
5080
|
+
case 0:
|
|
5081
|
+
_a = [__assign({}, output)];
|
|
5082
|
+
_g = {};
|
|
5083
|
+
return [4, parseBody(output.body, context)];
|
|
5084
|
+
case 1:
|
|
5085
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
5086
|
+
errorCode = "UnknownError";
|
|
5087
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5088
|
+
_b = errorCode;
|
|
5089
|
+
switch (_b) {
|
|
5090
|
+
case "InvalidParameterException": return [3, 2];
|
|
5091
|
+
case "com.amazonaws.workmail#InvalidParameterException": return [3, 2];
|
|
5092
|
+
case "OrganizationNotFoundException": return [3, 4];
|
|
5093
|
+
case "com.amazonaws.workmail#OrganizationNotFoundException": return [3, 4];
|
|
5094
|
+
case "OrganizationStateException": return [3, 6];
|
|
5095
|
+
case "com.amazonaws.workmail#OrganizationStateException": return [3, 6];
|
|
5096
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
5097
|
+
case "com.amazonaws.workmail#ResourceNotFoundException": return [3, 8];
|
|
5098
|
+
}
|
|
5099
|
+
return [3, 10];
|
|
5100
|
+
case 2:
|
|
5101
|
+
_c = [{}];
|
|
5102
|
+
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
5103
|
+
case 3:
|
|
5104
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5105
|
+
return [3, 11];
|
|
5106
|
+
case 4:
|
|
5107
|
+
_d = [{}];
|
|
5108
|
+
return [4, deserializeAws_json1_1OrganizationNotFoundExceptionResponse(parsedOutput, context)];
|
|
5109
|
+
case 5:
|
|
5110
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5111
|
+
return [3, 11];
|
|
5112
|
+
case 6:
|
|
5113
|
+
_e = [{}];
|
|
5114
|
+
return [4, deserializeAws_json1_1OrganizationStateExceptionResponse(parsedOutput, context)];
|
|
5115
|
+
case 7:
|
|
5116
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5117
|
+
return [3, 11];
|
|
5118
|
+
case 8:
|
|
5119
|
+
_f = [{}];
|
|
5120
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
5121
|
+
case 9:
|
|
5122
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5123
|
+
return [3, 11];
|
|
5124
|
+
case 10:
|
|
5125
|
+
parsedBody = parsedOutput.body;
|
|
5126
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
5127
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
5128
|
+
_h.label = 11;
|
|
5129
|
+
case 11:
|
|
5130
|
+
message = response.message || response.Message || errorCode;
|
|
5131
|
+
response.message = message;
|
|
5132
|
+
delete response.Message;
|
|
5133
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5134
|
+
}
|
|
5135
|
+
});
|
|
5136
|
+
}); };
|
|
4872
5137
|
export var deserializeAws_json1_1PutInboundDmarcSettingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4873
5138
|
var data, contents, response;
|
|
4874
5139
|
return __generator(this, function (_a) {
|
|
@@ -6557,6 +6822,10 @@ var serializeAws_json1_1DeleteAliasRequest = function (input, context) {
|
|
|
6557
6822
|
return __assign(__assign(__assign({}, (input.Alias !== undefined && input.Alias !== null && { Alias: input.Alias })), (input.EntityId !== undefined && input.EntityId !== null && { EntityId: input.EntityId })), (input.OrganizationId !== undefined &&
|
|
6558
6823
|
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6559
6824
|
};
|
|
6825
|
+
var serializeAws_json1_1DeleteEmailMonitoringConfigurationRequest = function (input, context) {
|
|
6826
|
+
return __assign({}, (input.OrganizationId !== undefined &&
|
|
6827
|
+
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6828
|
+
};
|
|
6560
6829
|
var serializeAws_json1_1DeleteGroupRequest = function (input, context) {
|
|
6561
6830
|
return __assign(__assign({}, (input.GroupId !== undefined && input.GroupId !== null && { GroupId: input.GroupId })), (input.OrganizationId !== undefined &&
|
|
6562
6831
|
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
@@ -6600,6 +6869,10 @@ var serializeAws_json1_1DeregisterMailDomainRequest = function (input, context)
|
|
|
6600
6869
|
return __assign(__assign({}, (input.DomainName !== undefined && input.DomainName !== null && { DomainName: input.DomainName })), (input.OrganizationId !== undefined &&
|
|
6601
6870
|
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6602
6871
|
};
|
|
6872
|
+
var serializeAws_json1_1DescribeEmailMonitoringConfigurationRequest = function (input, context) {
|
|
6873
|
+
return __assign({}, (input.OrganizationId !== undefined &&
|
|
6874
|
+
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
6875
|
+
};
|
|
6603
6876
|
var serializeAws_json1_1DescribeGroupRequest = function (input, context) {
|
|
6604
6877
|
return __assign(__assign({}, (input.GroupId !== undefined && input.GroupId !== null && { GroupId: input.GroupId })), (input.OrganizationId !== undefined &&
|
|
6605
6878
|
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
@@ -6808,6 +7081,10 @@ var serializeAws_json1_1PutAccessControlRuleRequest = function (input, context)
|
|
|
6808
7081
|
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.UserIds !== undefined &&
|
|
6809
7082
|
input.UserIds !== null && { UserIds: serializeAws_json1_1UserIdList(input.UserIds, context) }));
|
|
6810
7083
|
};
|
|
7084
|
+
var serializeAws_json1_1PutEmailMonitoringConfigurationRequest = function (input, context) {
|
|
7085
|
+
return __assign(__assign(__assign({}, (input.LogGroupArn !== undefined && input.LogGroupArn !== null && { LogGroupArn: input.LogGroupArn })), (input.OrganizationId !== undefined &&
|
|
7086
|
+
input.OrganizationId !== null && { OrganizationId: input.OrganizationId })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }));
|
|
7087
|
+
};
|
|
6811
7088
|
var serializeAws_json1_1PutInboundDmarcSettingsRequest = function (input, context) {
|
|
6812
7089
|
return __assign(__assign({}, (input.Enforced !== undefined && input.Enforced !== null && { Enforced: input.Enforced })), (input.OrganizationId !== undefined &&
|
|
6813
7090
|
input.OrganizationId !== null && { OrganizationId: input.OrganizationId }));
|
|
@@ -7061,6 +7338,9 @@ var deserializeAws_json1_1DeleteAccessControlRuleResponse = function (output, co
|
|
|
7061
7338
|
var deserializeAws_json1_1DeleteAliasResponse = function (output, context) {
|
|
7062
7339
|
return {};
|
|
7063
7340
|
};
|
|
7341
|
+
var deserializeAws_json1_1DeleteEmailMonitoringConfigurationResponse = function (output, context) {
|
|
7342
|
+
return {};
|
|
7343
|
+
};
|
|
7064
7344
|
var deserializeAws_json1_1DeleteGroupResponse = function (output, context) {
|
|
7065
7345
|
return {};
|
|
7066
7346
|
};
|
|
@@ -7094,6 +7374,12 @@ var deserializeAws_json1_1DeregisterFromWorkMailResponse = function (output, con
|
|
|
7094
7374
|
var deserializeAws_json1_1DeregisterMailDomainResponse = function (output, context) {
|
|
7095
7375
|
return {};
|
|
7096
7376
|
};
|
|
7377
|
+
var deserializeAws_json1_1DescribeEmailMonitoringConfigurationResponse = function (output, context) {
|
|
7378
|
+
return {
|
|
7379
|
+
LogGroupArn: __expectString(output.LogGroupArn),
|
|
7380
|
+
RoleArn: __expectString(output.RoleArn),
|
|
7381
|
+
};
|
|
7382
|
+
};
|
|
7097
7383
|
var deserializeAws_json1_1DescribeGroupResponse = function (output, context) {
|
|
7098
7384
|
return {
|
|
7099
7385
|
DisabledDate: output.DisabledDate !== undefined && output.DisabledDate !== null
|
|
@@ -7756,6 +8042,9 @@ var deserializeAws_json1_1PermissionValues = function (output, context) {
|
|
|
7756
8042
|
var deserializeAws_json1_1PutAccessControlRuleResponse = function (output, context) {
|
|
7757
8043
|
return {};
|
|
7758
8044
|
};
|
|
8045
|
+
var deserializeAws_json1_1PutEmailMonitoringConfigurationResponse = function (output, context) {
|
|
8046
|
+
return {};
|
|
8047
|
+
};
|
|
7759
8048
|
var deserializeAws_json1_1PutInboundDmarcSettingsResponse = function (output, context) {
|
|
7760
8049
|
return {};
|
|
7761
8050
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -12,10 +12,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
15
|
export var getRuntimeConfig = function (config) {
|
|
17
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
19
17
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
18
|
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
19
|
};
|
package/dist-types/WorkMail.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { CreateResourceCommandInput, CreateResourceCommandOutput } from "./comma
|
|
|
10
10
|
import { CreateUserCommandInput, CreateUserCommandOutput } from "./commands/CreateUserCommand";
|
|
11
11
|
import { DeleteAccessControlRuleCommandInput, DeleteAccessControlRuleCommandOutput } from "./commands/DeleteAccessControlRuleCommand";
|
|
12
12
|
import { DeleteAliasCommandInput, DeleteAliasCommandOutput } from "./commands/DeleteAliasCommand";
|
|
13
|
+
import { DeleteEmailMonitoringConfigurationCommandInput, DeleteEmailMonitoringConfigurationCommandOutput } from "./commands/DeleteEmailMonitoringConfigurationCommand";
|
|
13
14
|
import { DeleteGroupCommandInput, DeleteGroupCommandOutput } from "./commands/DeleteGroupCommand";
|
|
14
15
|
import { DeleteMailboxPermissionsCommandInput, DeleteMailboxPermissionsCommandOutput } from "./commands/DeleteMailboxPermissionsCommand";
|
|
15
16
|
import { DeleteMobileDeviceAccessOverrideCommandInput, DeleteMobileDeviceAccessOverrideCommandOutput } from "./commands/DeleteMobileDeviceAccessOverrideCommand";
|
|
@@ -20,6 +21,7 @@ import { DeleteRetentionPolicyCommandInput, DeleteRetentionPolicyCommandOutput }
|
|
|
20
21
|
import { DeleteUserCommandInput, DeleteUserCommandOutput } from "./commands/DeleteUserCommand";
|
|
21
22
|
import { DeregisterFromWorkMailCommandInput, DeregisterFromWorkMailCommandOutput } from "./commands/DeregisterFromWorkMailCommand";
|
|
22
23
|
import { DeregisterMailDomainCommandInput, DeregisterMailDomainCommandOutput } from "./commands/DeregisterMailDomainCommand";
|
|
24
|
+
import { DescribeEmailMonitoringConfigurationCommandInput, DescribeEmailMonitoringConfigurationCommandOutput } from "./commands/DescribeEmailMonitoringConfigurationCommand";
|
|
23
25
|
import { DescribeGroupCommandInput, DescribeGroupCommandOutput } from "./commands/DescribeGroupCommand";
|
|
24
26
|
import { DescribeInboundDmarcSettingsCommandInput, DescribeInboundDmarcSettingsCommandOutput } from "./commands/DescribeInboundDmarcSettingsCommand";
|
|
25
27
|
import { DescribeMailboxExportJobCommandInput, DescribeMailboxExportJobCommandOutput } from "./commands/DescribeMailboxExportJobCommand";
|
|
@@ -49,6 +51,7 @@ import { ListResourcesCommandInput, ListResourcesCommandOutput } from "./command
|
|
|
49
51
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
50
52
|
import { ListUsersCommandInput, ListUsersCommandOutput } from "./commands/ListUsersCommand";
|
|
51
53
|
import { PutAccessControlRuleCommandInput, PutAccessControlRuleCommandOutput } from "./commands/PutAccessControlRuleCommand";
|
|
54
|
+
import { PutEmailMonitoringConfigurationCommandInput, PutEmailMonitoringConfigurationCommandOutput } from "./commands/PutEmailMonitoringConfigurationCommand";
|
|
52
55
|
import { PutInboundDmarcSettingsCommandInput, PutInboundDmarcSettingsCommandOutput } from "./commands/PutInboundDmarcSettingsCommand";
|
|
53
56
|
import { PutMailboxPermissionsCommandInput, PutMailboxPermissionsCommandOutput } from "./commands/PutMailboxPermissionsCommand";
|
|
54
57
|
import { PutMobileDeviceAccessOverrideCommandInput, PutMobileDeviceAccessOverrideCommandOutput } from "./commands/PutMobileDeviceAccessOverrideCommand";
|
|
@@ -182,6 +185,12 @@ export declare class WorkMail extends WorkMailClient {
|
|
|
182
185
|
deleteAlias(args: DeleteAliasCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAliasCommandOutput>;
|
|
183
186
|
deleteAlias(args: DeleteAliasCommandInput, cb: (err: any, data?: DeleteAliasCommandOutput) => void): void;
|
|
184
187
|
deleteAlias(args: DeleteAliasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAliasCommandOutput) => void): void;
|
|
188
|
+
/**
|
|
189
|
+
* <p>Deletes the email monitoring configuration for a specified organization.</p>
|
|
190
|
+
*/
|
|
191
|
+
deleteEmailMonitoringConfiguration(args: DeleteEmailMonitoringConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEmailMonitoringConfigurationCommandOutput>;
|
|
192
|
+
deleteEmailMonitoringConfiguration(args: DeleteEmailMonitoringConfigurationCommandInput, cb: (err: any, data?: DeleteEmailMonitoringConfigurationCommandOutput) => void): void;
|
|
193
|
+
deleteEmailMonitoringConfiguration(args: DeleteEmailMonitoringConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEmailMonitoringConfigurationCommandOutput) => void): void;
|
|
185
194
|
/**
|
|
186
195
|
* <p>Deletes a group from Amazon WorkMail.</p>
|
|
187
196
|
*/
|
|
@@ -256,6 +265,12 @@ export declare class WorkMail extends WorkMailClient {
|
|
|
256
265
|
deregisterMailDomain(args: DeregisterMailDomainCommandInput, options?: __HttpHandlerOptions): Promise<DeregisterMailDomainCommandOutput>;
|
|
257
266
|
deregisterMailDomain(args: DeregisterMailDomainCommandInput, cb: (err: any, data?: DeregisterMailDomainCommandOutput) => void): void;
|
|
258
267
|
deregisterMailDomain(args: DeregisterMailDomainCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeregisterMailDomainCommandOutput) => void): void;
|
|
268
|
+
/**
|
|
269
|
+
* <p>Describes the current email monitoring configuration for a specified organization.</p>
|
|
270
|
+
*/
|
|
271
|
+
describeEmailMonitoringConfiguration(args: DescribeEmailMonitoringConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEmailMonitoringConfigurationCommandOutput>;
|
|
272
|
+
describeEmailMonitoringConfiguration(args: DescribeEmailMonitoringConfigurationCommandInput, cb: (err: any, data?: DescribeEmailMonitoringConfigurationCommandOutput) => void): void;
|
|
273
|
+
describeEmailMonitoringConfiguration(args: DescribeEmailMonitoringConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEmailMonitoringConfigurationCommandOutput) => void): void;
|
|
259
274
|
/**
|
|
260
275
|
* <p>Returns the data available for the group.</p>
|
|
261
276
|
*/
|
|
@@ -441,6 +456,12 @@ export declare class WorkMail extends WorkMailClient {
|
|
|
441
456
|
putAccessControlRule(args: PutAccessControlRuleCommandInput, options?: __HttpHandlerOptions): Promise<PutAccessControlRuleCommandOutput>;
|
|
442
457
|
putAccessControlRule(args: PutAccessControlRuleCommandInput, cb: (err: any, data?: PutAccessControlRuleCommandOutput) => void): void;
|
|
443
458
|
putAccessControlRule(args: PutAccessControlRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutAccessControlRuleCommandOutput) => void): void;
|
|
459
|
+
/**
|
|
460
|
+
* <p>Creates or updates the email monitoring configuration for a specified organization.</p>
|
|
461
|
+
*/
|
|
462
|
+
putEmailMonitoringConfiguration(args: PutEmailMonitoringConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<PutEmailMonitoringConfigurationCommandOutput>;
|
|
463
|
+
putEmailMonitoringConfiguration(args: PutEmailMonitoringConfigurationCommandInput, cb: (err: any, data?: PutEmailMonitoringConfigurationCommandOutput) => void): void;
|
|
464
|
+
putEmailMonitoringConfiguration(args: PutEmailMonitoringConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutEmailMonitoringConfigurationCommandOutput) => void): void;
|
|
444
465
|
/**
|
|
445
466
|
* <p>Enables or disables a DMARC policy for a given organization.</p>
|
|
446
467
|
*/
|
|
@@ -17,6 +17,7 @@ import { CreateResourceCommandInput, CreateResourceCommandOutput } from "./comma
|
|
|
17
17
|
import { CreateUserCommandInput, CreateUserCommandOutput } from "./commands/CreateUserCommand";
|
|
18
18
|
import { DeleteAccessControlRuleCommandInput, DeleteAccessControlRuleCommandOutput } from "./commands/DeleteAccessControlRuleCommand";
|
|
19
19
|
import { DeleteAliasCommandInput, DeleteAliasCommandOutput } from "./commands/DeleteAliasCommand";
|
|
20
|
+
import { DeleteEmailMonitoringConfigurationCommandInput, DeleteEmailMonitoringConfigurationCommandOutput } from "./commands/DeleteEmailMonitoringConfigurationCommand";
|
|
20
21
|
import { DeleteGroupCommandInput, DeleteGroupCommandOutput } from "./commands/DeleteGroupCommand";
|
|
21
22
|
import { DeleteMailboxPermissionsCommandInput, DeleteMailboxPermissionsCommandOutput } from "./commands/DeleteMailboxPermissionsCommand";
|
|
22
23
|
import { DeleteMobileDeviceAccessOverrideCommandInput, DeleteMobileDeviceAccessOverrideCommandOutput } from "./commands/DeleteMobileDeviceAccessOverrideCommand";
|
|
@@ -27,6 +28,7 @@ import { DeleteRetentionPolicyCommandInput, DeleteRetentionPolicyCommandOutput }
|
|
|
27
28
|
import { DeleteUserCommandInput, DeleteUserCommandOutput } from "./commands/DeleteUserCommand";
|
|
28
29
|
import { DeregisterFromWorkMailCommandInput, DeregisterFromWorkMailCommandOutput } from "./commands/DeregisterFromWorkMailCommand";
|
|
29
30
|
import { DeregisterMailDomainCommandInput, DeregisterMailDomainCommandOutput } from "./commands/DeregisterMailDomainCommand";
|
|
31
|
+
import { DescribeEmailMonitoringConfigurationCommandInput, DescribeEmailMonitoringConfigurationCommandOutput } from "./commands/DescribeEmailMonitoringConfigurationCommand";
|
|
30
32
|
import { DescribeGroupCommandInput, DescribeGroupCommandOutput } from "./commands/DescribeGroupCommand";
|
|
31
33
|
import { DescribeInboundDmarcSettingsCommandInput, DescribeInboundDmarcSettingsCommandOutput } from "./commands/DescribeInboundDmarcSettingsCommand";
|
|
32
34
|
import { DescribeMailboxExportJobCommandInput, DescribeMailboxExportJobCommandOutput } from "./commands/DescribeMailboxExportJobCommand";
|
|
@@ -56,6 +58,7 @@ import { ListResourcesCommandInput, ListResourcesCommandOutput } from "./command
|
|
|
56
58
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
57
59
|
import { ListUsersCommandInput, ListUsersCommandOutput } from "./commands/ListUsersCommand";
|
|
58
60
|
import { PutAccessControlRuleCommandInput, PutAccessControlRuleCommandOutput } from "./commands/PutAccessControlRuleCommand";
|
|
61
|
+
import { PutEmailMonitoringConfigurationCommandInput, PutEmailMonitoringConfigurationCommandOutput } from "./commands/PutEmailMonitoringConfigurationCommand";
|
|
59
62
|
import { PutInboundDmarcSettingsCommandInput, PutInboundDmarcSettingsCommandOutput } from "./commands/PutInboundDmarcSettingsCommand";
|
|
60
63
|
import { PutMailboxPermissionsCommandInput, PutMailboxPermissionsCommandOutput } from "./commands/PutMailboxPermissionsCommand";
|
|
61
64
|
import { PutMobileDeviceAccessOverrideCommandInput, PutMobileDeviceAccessOverrideCommandOutput } from "./commands/PutMobileDeviceAccessOverrideCommand";
|
|
@@ -71,8 +74,8 @@ import { UpdateMailboxQuotaCommandInput, UpdateMailboxQuotaCommandOutput } from
|
|
|
71
74
|
import { UpdateMobileDeviceAccessRuleCommandInput, UpdateMobileDeviceAccessRuleCommandOutput } from "./commands/UpdateMobileDeviceAccessRuleCommand";
|
|
72
75
|
import { UpdatePrimaryEmailAddressCommandInput, UpdatePrimaryEmailAddressCommandOutput } from "./commands/UpdatePrimaryEmailAddressCommand";
|
|
73
76
|
import { UpdateResourceCommandInput, UpdateResourceCommandOutput } from "./commands/UpdateResourceCommand";
|
|
74
|
-
export declare type ServiceInputTypes = AssociateDelegateToResourceCommandInput | AssociateMemberToGroupCommandInput | CancelMailboxExportJobCommandInput | CreateAliasCommandInput | CreateGroupCommandInput | CreateMobileDeviceAccessRuleCommandInput | CreateOrganizationCommandInput | CreateResourceCommandInput | CreateUserCommandInput | DeleteAccessControlRuleCommandInput | DeleteAliasCommandInput | DeleteGroupCommandInput | DeleteMailboxPermissionsCommandInput | DeleteMobileDeviceAccessOverrideCommandInput | DeleteMobileDeviceAccessRuleCommandInput | DeleteOrganizationCommandInput | DeleteResourceCommandInput | DeleteRetentionPolicyCommandInput | DeleteUserCommandInput | DeregisterFromWorkMailCommandInput | DeregisterMailDomainCommandInput | DescribeGroupCommandInput | DescribeInboundDmarcSettingsCommandInput | DescribeMailboxExportJobCommandInput | DescribeOrganizationCommandInput | DescribeResourceCommandInput | DescribeUserCommandInput | DisassociateDelegateFromResourceCommandInput | DisassociateMemberFromGroupCommandInput | GetAccessControlEffectCommandInput | GetDefaultRetentionPolicyCommandInput | GetMailDomainCommandInput | GetMailboxDetailsCommandInput | GetMobileDeviceAccessEffectCommandInput | GetMobileDeviceAccessOverrideCommandInput | ListAccessControlRulesCommandInput | ListAliasesCommandInput | ListGroupMembersCommandInput | ListGroupsCommandInput | ListMailDomainsCommandInput | ListMailboxExportJobsCommandInput | ListMailboxPermissionsCommandInput | ListMobileDeviceAccessOverridesCommandInput | ListMobileDeviceAccessRulesCommandInput | ListOrganizationsCommandInput | ListResourceDelegatesCommandInput | ListResourcesCommandInput | ListTagsForResourceCommandInput | ListUsersCommandInput | PutAccessControlRuleCommandInput | PutInboundDmarcSettingsCommandInput | PutMailboxPermissionsCommandInput | PutMobileDeviceAccessOverrideCommandInput | PutRetentionPolicyCommandInput | RegisterMailDomainCommandInput | RegisterToWorkMailCommandInput | ResetPasswordCommandInput | StartMailboxExportJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDefaultMailDomainCommandInput | UpdateMailboxQuotaCommandInput | UpdateMobileDeviceAccessRuleCommandInput | UpdatePrimaryEmailAddressCommandInput | UpdateResourceCommandInput;
|
|
75
|
-
export declare type ServiceOutputTypes = AssociateDelegateToResourceCommandOutput | AssociateMemberToGroupCommandOutput | CancelMailboxExportJobCommandOutput | CreateAliasCommandOutput | CreateGroupCommandOutput | CreateMobileDeviceAccessRuleCommandOutput | CreateOrganizationCommandOutput | CreateResourceCommandOutput | CreateUserCommandOutput | DeleteAccessControlRuleCommandOutput | DeleteAliasCommandOutput | DeleteGroupCommandOutput | DeleteMailboxPermissionsCommandOutput | DeleteMobileDeviceAccessOverrideCommandOutput | DeleteMobileDeviceAccessRuleCommandOutput | DeleteOrganizationCommandOutput | DeleteResourceCommandOutput | DeleteRetentionPolicyCommandOutput | DeleteUserCommandOutput | DeregisterFromWorkMailCommandOutput | DeregisterMailDomainCommandOutput | DescribeGroupCommandOutput | DescribeInboundDmarcSettingsCommandOutput | DescribeMailboxExportJobCommandOutput | DescribeOrganizationCommandOutput | DescribeResourceCommandOutput | DescribeUserCommandOutput | DisassociateDelegateFromResourceCommandOutput | DisassociateMemberFromGroupCommandOutput | GetAccessControlEffectCommandOutput | GetDefaultRetentionPolicyCommandOutput | GetMailDomainCommandOutput | GetMailboxDetailsCommandOutput | GetMobileDeviceAccessEffectCommandOutput | GetMobileDeviceAccessOverrideCommandOutput | ListAccessControlRulesCommandOutput | ListAliasesCommandOutput | ListGroupMembersCommandOutput | ListGroupsCommandOutput | ListMailDomainsCommandOutput | ListMailboxExportJobsCommandOutput | ListMailboxPermissionsCommandOutput | ListMobileDeviceAccessOverridesCommandOutput | ListMobileDeviceAccessRulesCommandOutput | ListOrganizationsCommandOutput | ListResourceDelegatesCommandOutput | ListResourcesCommandOutput | ListTagsForResourceCommandOutput | ListUsersCommandOutput | PutAccessControlRuleCommandOutput | PutInboundDmarcSettingsCommandOutput | PutMailboxPermissionsCommandOutput | PutMobileDeviceAccessOverrideCommandOutput | PutRetentionPolicyCommandOutput | RegisterMailDomainCommandOutput | RegisterToWorkMailCommandOutput | ResetPasswordCommandOutput | StartMailboxExportJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDefaultMailDomainCommandOutput | UpdateMailboxQuotaCommandOutput | UpdateMobileDeviceAccessRuleCommandOutput | UpdatePrimaryEmailAddressCommandOutput | UpdateResourceCommandOutput;
|
|
77
|
+
export declare type ServiceInputTypes = AssociateDelegateToResourceCommandInput | AssociateMemberToGroupCommandInput | CancelMailboxExportJobCommandInput | CreateAliasCommandInput | CreateGroupCommandInput | CreateMobileDeviceAccessRuleCommandInput | CreateOrganizationCommandInput | CreateResourceCommandInput | CreateUserCommandInput | DeleteAccessControlRuleCommandInput | DeleteAliasCommandInput | DeleteEmailMonitoringConfigurationCommandInput | DeleteGroupCommandInput | DeleteMailboxPermissionsCommandInput | DeleteMobileDeviceAccessOverrideCommandInput | DeleteMobileDeviceAccessRuleCommandInput | DeleteOrganizationCommandInput | DeleteResourceCommandInput | DeleteRetentionPolicyCommandInput | DeleteUserCommandInput | DeregisterFromWorkMailCommandInput | DeregisterMailDomainCommandInput | DescribeEmailMonitoringConfigurationCommandInput | DescribeGroupCommandInput | DescribeInboundDmarcSettingsCommandInput | DescribeMailboxExportJobCommandInput | DescribeOrganizationCommandInput | DescribeResourceCommandInput | DescribeUserCommandInput | DisassociateDelegateFromResourceCommandInput | DisassociateMemberFromGroupCommandInput | GetAccessControlEffectCommandInput | GetDefaultRetentionPolicyCommandInput | GetMailDomainCommandInput | GetMailboxDetailsCommandInput | GetMobileDeviceAccessEffectCommandInput | GetMobileDeviceAccessOverrideCommandInput | ListAccessControlRulesCommandInput | ListAliasesCommandInput | ListGroupMembersCommandInput | ListGroupsCommandInput | ListMailDomainsCommandInput | ListMailboxExportJobsCommandInput | ListMailboxPermissionsCommandInput | ListMobileDeviceAccessOverridesCommandInput | ListMobileDeviceAccessRulesCommandInput | ListOrganizationsCommandInput | ListResourceDelegatesCommandInput | ListResourcesCommandInput | ListTagsForResourceCommandInput | ListUsersCommandInput | PutAccessControlRuleCommandInput | PutEmailMonitoringConfigurationCommandInput | PutInboundDmarcSettingsCommandInput | PutMailboxPermissionsCommandInput | PutMobileDeviceAccessOverrideCommandInput | PutRetentionPolicyCommandInput | RegisterMailDomainCommandInput | RegisterToWorkMailCommandInput | ResetPasswordCommandInput | StartMailboxExportJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDefaultMailDomainCommandInput | UpdateMailboxQuotaCommandInput | UpdateMobileDeviceAccessRuleCommandInput | UpdatePrimaryEmailAddressCommandInput | UpdateResourceCommandInput;
|
|
78
|
+
export declare type ServiceOutputTypes = AssociateDelegateToResourceCommandOutput | AssociateMemberToGroupCommandOutput | CancelMailboxExportJobCommandOutput | CreateAliasCommandOutput | CreateGroupCommandOutput | CreateMobileDeviceAccessRuleCommandOutput | CreateOrganizationCommandOutput | CreateResourceCommandOutput | CreateUserCommandOutput | DeleteAccessControlRuleCommandOutput | DeleteAliasCommandOutput | DeleteEmailMonitoringConfigurationCommandOutput | DeleteGroupCommandOutput | DeleteMailboxPermissionsCommandOutput | DeleteMobileDeviceAccessOverrideCommandOutput | DeleteMobileDeviceAccessRuleCommandOutput | DeleteOrganizationCommandOutput | DeleteResourceCommandOutput | DeleteRetentionPolicyCommandOutput | DeleteUserCommandOutput | DeregisterFromWorkMailCommandOutput | DeregisterMailDomainCommandOutput | DescribeEmailMonitoringConfigurationCommandOutput | DescribeGroupCommandOutput | DescribeInboundDmarcSettingsCommandOutput | DescribeMailboxExportJobCommandOutput | DescribeOrganizationCommandOutput | DescribeResourceCommandOutput | DescribeUserCommandOutput | DisassociateDelegateFromResourceCommandOutput | DisassociateMemberFromGroupCommandOutput | GetAccessControlEffectCommandOutput | GetDefaultRetentionPolicyCommandOutput | GetMailDomainCommandOutput | GetMailboxDetailsCommandOutput | GetMobileDeviceAccessEffectCommandOutput | GetMobileDeviceAccessOverrideCommandOutput | ListAccessControlRulesCommandOutput | ListAliasesCommandOutput | ListGroupMembersCommandOutput | ListGroupsCommandOutput | ListMailDomainsCommandOutput | ListMailboxExportJobsCommandOutput | ListMailboxPermissionsCommandOutput | ListMobileDeviceAccessOverridesCommandOutput | ListMobileDeviceAccessRulesCommandOutput | ListOrganizationsCommandOutput | ListResourceDelegatesCommandOutput | ListResourcesCommandOutput | ListTagsForResourceCommandOutput | ListUsersCommandOutput | PutAccessControlRuleCommandOutput | PutEmailMonitoringConfigurationCommandOutput | PutInboundDmarcSettingsCommandOutput | PutMailboxPermissionsCommandOutput | PutMobileDeviceAccessOverrideCommandOutput | PutRetentionPolicyCommandOutput | RegisterMailDomainCommandOutput | RegisterToWorkMailCommandOutput | ResetPasswordCommandOutput | StartMailboxExportJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDefaultMailDomainCommandOutput | UpdateMailboxQuotaCommandOutput | UpdateMobileDeviceAccessRuleCommandOutput | UpdatePrimaryEmailAddressCommandOutput | UpdateResourceCommandOutput;
|
|
76
79
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
77
80
|
/**
|
|
78
81
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { DeleteEmailMonitoringConfigurationRequest, DeleteEmailMonitoringConfigurationResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, WorkMailClientResolvedConfig } from "../WorkMailClient";
|
|
5
|
+
export interface DeleteEmailMonitoringConfigurationCommandInput extends DeleteEmailMonitoringConfigurationRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteEmailMonitoringConfigurationCommandOutput extends DeleteEmailMonitoringConfigurationResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Deletes the email monitoring configuration for a specified organization.</p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { WorkMailClient, DeleteEmailMonitoringConfigurationCommand } from "@aws-sdk/client-workmail"; // ES Modules import
|
|
15
|
+
* // const { WorkMailClient, DeleteEmailMonitoringConfigurationCommand } = require("@aws-sdk/client-workmail"); // CommonJS import
|
|
16
|
+
* const client = new WorkMailClient(config);
|
|
17
|
+
* const command = new DeleteEmailMonitoringConfigurationCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link DeleteEmailMonitoringConfigurationCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link DeleteEmailMonitoringConfigurationCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link WorkMailClientResolvedConfig | config} for WorkMailClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class DeleteEmailMonitoringConfigurationCommand extends $Command<DeleteEmailMonitoringConfigurationCommandInput, DeleteEmailMonitoringConfigurationCommandOutput, WorkMailClientResolvedConfig> {
|
|
27
|
+
readonly input: DeleteEmailMonitoringConfigurationCommandInput;
|
|
28
|
+
constructor(input: DeleteEmailMonitoringConfigurationCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteEmailMonitoringConfigurationCommandInput, DeleteEmailMonitoringConfigurationCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { DescribeEmailMonitoringConfigurationRequest, DescribeEmailMonitoringConfigurationResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, WorkMailClientResolvedConfig } from "../WorkMailClient";
|
|
5
|
+
export interface DescribeEmailMonitoringConfigurationCommandInput extends DescribeEmailMonitoringConfigurationRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface DescribeEmailMonitoringConfigurationCommandOutput extends DescribeEmailMonitoringConfigurationResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Describes the current email monitoring configuration for a specified organization.</p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { WorkMailClient, DescribeEmailMonitoringConfigurationCommand } from "@aws-sdk/client-workmail"; // ES Modules import
|
|
15
|
+
* // const { WorkMailClient, DescribeEmailMonitoringConfigurationCommand } = require("@aws-sdk/client-workmail"); // CommonJS import
|
|
16
|
+
* const client = new WorkMailClient(config);
|
|
17
|
+
* const command = new DescribeEmailMonitoringConfigurationCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link DescribeEmailMonitoringConfigurationCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link DescribeEmailMonitoringConfigurationCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link WorkMailClientResolvedConfig | config} for WorkMailClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class DescribeEmailMonitoringConfigurationCommand extends $Command<DescribeEmailMonitoringConfigurationCommandInput, DescribeEmailMonitoringConfigurationCommandOutput, WorkMailClientResolvedConfig> {
|
|
27
|
+
readonly input: DescribeEmailMonitoringConfigurationCommandInput;
|
|
28
|
+
constructor(input: DescribeEmailMonitoringConfigurationCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeEmailMonitoringConfigurationCommandInput, DescribeEmailMonitoringConfigurationCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|