@aws-sdk/client-workmail 3.112.0 → 3.121.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 +28 -0
- package/dist-cjs/WorkMail.js +75 -0
- package/dist-cjs/commands/CreateAvailabilityConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DeleteAvailabilityConfigurationCommand.js +36 -0
- package/dist-cjs/commands/ListAvailabilityConfigurationsCommand.js +36 -0
- package/dist-cjs/commands/TestAvailabilityConfigurationCommand.js +36 -0
- package/dist-cjs/commands/UpdateAvailabilityConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +106 -12
- package/dist-cjs/pagination/ListAvailabilityConfigurationsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +751 -276
- package/dist-es/WorkMail.js +75 -0
- package/dist-es/commands/CreateAvailabilityConfigurationCommand.js +39 -0
- package/dist-es/commands/DeleteAvailabilityConfigurationCommand.js +39 -0
- package/dist-es/commands/ListAvailabilityConfigurationsCommand.js +39 -0
- package/dist-es/commands/TestAvailabilityConfigurationCommand.js +39 -0
- package/dist-es/commands/UpdateAvailabilityConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +69 -8
- package/dist-es/pagination/ListAvailabilityConfigurationsPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +806 -273
- package/dist-types/WorkMail.d.ts +43 -0
- package/dist-types/WorkMailClient.d.ts +7 -2
- package/dist-types/commands/CreateAvailabilityConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/DeleteAvailabilityConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/ListAvailabilityConfigurationsCommand.d.ts +35 -0
- package/dist-types/commands/TestAvailabilityConfigurationCommand.d.ts +42 -0
- package/dist-types/commands/UpdateAvailabilityConfigurationCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +286 -12
- package/dist-types/pagination/ListAvailabilityConfigurationsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
- package/dist-types/ts3.4/WorkMail.d.ts +25 -0
- package/dist-types/ts3.4/WorkMailClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/CreateAvailabilityConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteAvailabilityConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAvailabilityConfigurationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TestAvailabilityConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateAvailabilityConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +168 -8
- package/dist-types/ts3.4/pagination/ListAvailabilityConfigurationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +15 -0
- package/package.json +6 -6
package/dist-es/WorkMail.js
CHANGED
|
@@ -3,6 +3,7 @@ import { AssociateDelegateToResourceCommand, } from "./commands/AssociateDelegat
|
|
|
3
3
|
import { AssociateMemberToGroupCommand, } from "./commands/AssociateMemberToGroupCommand";
|
|
4
4
|
import { CancelMailboxExportJobCommand, } from "./commands/CancelMailboxExportJobCommand";
|
|
5
5
|
import { CreateAliasCommand } from "./commands/CreateAliasCommand";
|
|
6
|
+
import { CreateAvailabilityConfigurationCommand, } from "./commands/CreateAvailabilityConfigurationCommand";
|
|
6
7
|
import { CreateGroupCommand } from "./commands/CreateGroupCommand";
|
|
7
8
|
import { CreateMobileDeviceAccessRuleCommand, } from "./commands/CreateMobileDeviceAccessRuleCommand";
|
|
8
9
|
import { CreateOrganizationCommand, } from "./commands/CreateOrganizationCommand";
|
|
@@ -10,6 +11,7 @@ import { CreateResourceCommand, } from "./commands/CreateResourceCommand";
|
|
|
10
11
|
import { CreateUserCommand } from "./commands/CreateUserCommand";
|
|
11
12
|
import { DeleteAccessControlRuleCommand, } from "./commands/DeleteAccessControlRuleCommand";
|
|
12
13
|
import { DeleteAliasCommand } from "./commands/DeleteAliasCommand";
|
|
14
|
+
import { DeleteAvailabilityConfigurationCommand, } from "./commands/DeleteAvailabilityConfigurationCommand";
|
|
13
15
|
import { DeleteEmailMonitoringConfigurationCommand, } from "./commands/DeleteEmailMonitoringConfigurationCommand";
|
|
14
16
|
import { DeleteGroupCommand } from "./commands/DeleteGroupCommand";
|
|
15
17
|
import { DeleteMailboxPermissionsCommand, } from "./commands/DeleteMailboxPermissionsCommand";
|
|
@@ -38,6 +40,7 @@ import { GetMobileDeviceAccessEffectCommand, } from "./commands/GetMobileDeviceA
|
|
|
38
40
|
import { GetMobileDeviceAccessOverrideCommand, } from "./commands/GetMobileDeviceAccessOverrideCommand";
|
|
39
41
|
import { ListAccessControlRulesCommand, } from "./commands/ListAccessControlRulesCommand";
|
|
40
42
|
import { ListAliasesCommand } from "./commands/ListAliasesCommand";
|
|
43
|
+
import { ListAvailabilityConfigurationsCommand, } from "./commands/ListAvailabilityConfigurationsCommand";
|
|
41
44
|
import { ListGroupMembersCommand, } from "./commands/ListGroupMembersCommand";
|
|
42
45
|
import { ListGroupsCommand } from "./commands/ListGroupsCommand";
|
|
43
46
|
import { ListMailboxExportJobsCommand, } from "./commands/ListMailboxExportJobsCommand";
|
|
@@ -61,7 +64,9 @@ import { RegisterToWorkMailCommand, } from "./commands/RegisterToWorkMailCommand
|
|
|
61
64
|
import { ResetPasswordCommand, } from "./commands/ResetPasswordCommand";
|
|
62
65
|
import { StartMailboxExportJobCommand, } from "./commands/StartMailboxExportJobCommand";
|
|
63
66
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
67
|
+
import { TestAvailabilityConfigurationCommand, } from "./commands/TestAvailabilityConfigurationCommand";
|
|
64
68
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
69
|
+
import { UpdateAvailabilityConfigurationCommand, } from "./commands/UpdateAvailabilityConfigurationCommand";
|
|
65
70
|
import { UpdateDefaultMailDomainCommand, } from "./commands/UpdateDefaultMailDomainCommand";
|
|
66
71
|
import { UpdateMailboxQuotaCommand, } from "./commands/UpdateMailboxQuotaCommand";
|
|
67
72
|
import { UpdateMobileDeviceAccessRuleCommand, } from "./commands/UpdateMobileDeviceAccessRuleCommand";
|
|
@@ -129,6 +134,20 @@ var WorkMail = (function (_super) {
|
|
|
129
134
|
return this.send(command, optionsOrCb);
|
|
130
135
|
}
|
|
131
136
|
};
|
|
137
|
+
WorkMail.prototype.createAvailabilityConfiguration = function (args, optionsOrCb, cb) {
|
|
138
|
+
var command = new CreateAvailabilityConfigurationCommand(args);
|
|
139
|
+
if (typeof optionsOrCb === "function") {
|
|
140
|
+
this.send(command, optionsOrCb);
|
|
141
|
+
}
|
|
142
|
+
else if (typeof cb === "function") {
|
|
143
|
+
if (typeof optionsOrCb !== "object")
|
|
144
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
145
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
return this.send(command, optionsOrCb);
|
|
149
|
+
}
|
|
150
|
+
};
|
|
132
151
|
WorkMail.prototype.createGroup = function (args, optionsOrCb, cb) {
|
|
133
152
|
var command = new CreateGroupCommand(args);
|
|
134
153
|
if (typeof optionsOrCb === "function") {
|
|
@@ -227,6 +246,20 @@ var WorkMail = (function (_super) {
|
|
|
227
246
|
return this.send(command, optionsOrCb);
|
|
228
247
|
}
|
|
229
248
|
};
|
|
249
|
+
WorkMail.prototype.deleteAvailabilityConfiguration = function (args, optionsOrCb, cb) {
|
|
250
|
+
var command = new DeleteAvailabilityConfigurationCommand(args);
|
|
251
|
+
if (typeof optionsOrCb === "function") {
|
|
252
|
+
this.send(command, optionsOrCb);
|
|
253
|
+
}
|
|
254
|
+
else if (typeof cb === "function") {
|
|
255
|
+
if (typeof optionsOrCb !== "object")
|
|
256
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
257
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
return this.send(command, optionsOrCb);
|
|
261
|
+
}
|
|
262
|
+
};
|
|
230
263
|
WorkMail.prototype.deleteEmailMonitoringConfiguration = function (args, optionsOrCb, cb) {
|
|
231
264
|
var command = new DeleteEmailMonitoringConfigurationCommand(args);
|
|
232
265
|
if (typeof optionsOrCb === "function") {
|
|
@@ -619,6 +652,20 @@ var WorkMail = (function (_super) {
|
|
|
619
652
|
return this.send(command, optionsOrCb);
|
|
620
653
|
}
|
|
621
654
|
};
|
|
655
|
+
WorkMail.prototype.listAvailabilityConfigurations = function (args, optionsOrCb, cb) {
|
|
656
|
+
var command = new ListAvailabilityConfigurationsCommand(args);
|
|
657
|
+
if (typeof optionsOrCb === "function") {
|
|
658
|
+
this.send(command, optionsOrCb);
|
|
659
|
+
}
|
|
660
|
+
else if (typeof cb === "function") {
|
|
661
|
+
if (typeof optionsOrCb !== "object")
|
|
662
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
663
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
664
|
+
}
|
|
665
|
+
else {
|
|
666
|
+
return this.send(command, optionsOrCb);
|
|
667
|
+
}
|
|
668
|
+
};
|
|
622
669
|
WorkMail.prototype.listGroupMembers = function (args, optionsOrCb, cb) {
|
|
623
670
|
var command = new ListGroupMembersCommand(args);
|
|
624
671
|
if (typeof optionsOrCb === "function") {
|
|
@@ -941,6 +988,20 @@ var WorkMail = (function (_super) {
|
|
|
941
988
|
return this.send(command, optionsOrCb);
|
|
942
989
|
}
|
|
943
990
|
};
|
|
991
|
+
WorkMail.prototype.testAvailabilityConfiguration = function (args, optionsOrCb, cb) {
|
|
992
|
+
var command = new TestAvailabilityConfigurationCommand(args);
|
|
993
|
+
if (typeof optionsOrCb === "function") {
|
|
994
|
+
this.send(command, optionsOrCb);
|
|
995
|
+
}
|
|
996
|
+
else if (typeof cb === "function") {
|
|
997
|
+
if (typeof optionsOrCb !== "object")
|
|
998
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
999
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1000
|
+
}
|
|
1001
|
+
else {
|
|
1002
|
+
return this.send(command, optionsOrCb);
|
|
1003
|
+
}
|
|
1004
|
+
};
|
|
944
1005
|
WorkMail.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
945
1006
|
var command = new UntagResourceCommand(args);
|
|
946
1007
|
if (typeof optionsOrCb === "function") {
|
|
@@ -955,6 +1016,20 @@ var WorkMail = (function (_super) {
|
|
|
955
1016
|
return this.send(command, optionsOrCb);
|
|
956
1017
|
}
|
|
957
1018
|
};
|
|
1019
|
+
WorkMail.prototype.updateAvailabilityConfiguration = function (args, optionsOrCb, cb) {
|
|
1020
|
+
var command = new UpdateAvailabilityConfigurationCommand(args);
|
|
1021
|
+
if (typeof optionsOrCb === "function") {
|
|
1022
|
+
this.send(command, optionsOrCb);
|
|
1023
|
+
}
|
|
1024
|
+
else if (typeof cb === "function") {
|
|
1025
|
+
if (typeof optionsOrCb !== "object")
|
|
1026
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
1027
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
1028
|
+
}
|
|
1029
|
+
else {
|
|
1030
|
+
return this.send(command, optionsOrCb);
|
|
1031
|
+
}
|
|
1032
|
+
};
|
|
958
1033
|
WorkMail.prototype.updateDefaultMailDomain = function (args, optionsOrCb, cb) {
|
|
959
1034
|
var command = new UpdateDefaultMailDomainCommand(args);
|
|
960
1035
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateAvailabilityConfigurationRequest, CreateAvailabilityConfigurationResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1CreateAvailabilityConfigurationCommand, serializeAws_json1_1CreateAvailabilityConfigurationCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var CreateAvailabilityConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(CreateAvailabilityConfigurationCommand, _super);
|
|
8
|
+
function CreateAvailabilityConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateAvailabilityConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "WorkMailClient";
|
|
18
|
+
var commandName = "CreateAvailabilityConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateAvailabilityConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateAvailabilityConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateAvailabilityConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1CreateAvailabilityConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateAvailabilityConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1CreateAvailabilityConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateAvailabilityConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateAvailabilityConfigurationCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteAvailabilityConfigurationRequest, DeleteAvailabilityConfigurationResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DeleteAvailabilityConfigurationCommand, serializeAws_json1_1DeleteAvailabilityConfigurationCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var DeleteAvailabilityConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteAvailabilityConfigurationCommand, _super);
|
|
8
|
+
function DeleteAvailabilityConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DeleteAvailabilityConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "WorkMailClient";
|
|
18
|
+
var commandName = "DeleteAvailabilityConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DeleteAvailabilityConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteAvailabilityConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteAvailabilityConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1DeleteAvailabilityConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DeleteAvailabilityConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1DeleteAvailabilityConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DeleteAvailabilityConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteAvailabilityConfigurationCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListAvailabilityConfigurationsRequest, ListAvailabilityConfigurationsResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListAvailabilityConfigurationsCommand, serializeAws_json1_1ListAvailabilityConfigurationsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var ListAvailabilityConfigurationsCommand = (function (_super) {
|
|
7
|
+
__extends(ListAvailabilityConfigurationsCommand, _super);
|
|
8
|
+
function ListAvailabilityConfigurationsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListAvailabilityConfigurationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "WorkMailClient";
|
|
18
|
+
var commandName = "ListAvailabilityConfigurationsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListAvailabilityConfigurationsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListAvailabilityConfigurationsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListAvailabilityConfigurationsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1ListAvailabilityConfigurationsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListAvailabilityConfigurationsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1ListAvailabilityConfigurationsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListAvailabilityConfigurationsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListAvailabilityConfigurationsCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { TestAvailabilityConfigurationRequest, TestAvailabilityConfigurationResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1TestAvailabilityConfigurationCommand, serializeAws_json1_1TestAvailabilityConfigurationCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var TestAvailabilityConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(TestAvailabilityConfigurationCommand, _super);
|
|
8
|
+
function TestAvailabilityConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
TestAvailabilityConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "WorkMailClient";
|
|
18
|
+
var commandName = "TestAvailabilityConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: TestAvailabilityConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: TestAvailabilityConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
TestAvailabilityConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1TestAvailabilityConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
TestAvailabilityConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1TestAvailabilityConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return TestAvailabilityConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { TestAvailabilityConfigurationCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateAvailabilityConfigurationRequest, UpdateAvailabilityConfigurationResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1UpdateAvailabilityConfigurationCommand, serializeAws_json1_1UpdateAvailabilityConfigurationCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var UpdateAvailabilityConfigurationCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateAvailabilityConfigurationCommand, _super);
|
|
8
|
+
function UpdateAvailabilityConfigurationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UpdateAvailabilityConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "WorkMailClient";
|
|
18
|
+
var commandName = "UpdateAvailabilityConfigurationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UpdateAvailabilityConfigurationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UpdateAvailabilityConfigurationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateAvailabilityConfigurationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1UpdateAvailabilityConfigurationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UpdateAvailabilityConfigurationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1UpdateAvailabilityConfigurationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UpdateAvailabilityConfigurationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateAvailabilityConfigurationCommand };
|
|
@@ -2,6 +2,7 @@ export * from "./AssociateDelegateToResourceCommand";
|
|
|
2
2
|
export * from "./AssociateMemberToGroupCommand";
|
|
3
3
|
export * from "./CancelMailboxExportJobCommand";
|
|
4
4
|
export * from "./CreateAliasCommand";
|
|
5
|
+
export * from "./CreateAvailabilityConfigurationCommand";
|
|
5
6
|
export * from "./CreateGroupCommand";
|
|
6
7
|
export * from "./CreateMobileDeviceAccessRuleCommand";
|
|
7
8
|
export * from "./CreateOrganizationCommand";
|
|
@@ -9,6 +10,7 @@ export * from "./CreateResourceCommand";
|
|
|
9
10
|
export * from "./CreateUserCommand";
|
|
10
11
|
export * from "./DeleteAccessControlRuleCommand";
|
|
11
12
|
export * from "./DeleteAliasCommand";
|
|
13
|
+
export * from "./DeleteAvailabilityConfigurationCommand";
|
|
12
14
|
export * from "./DeleteEmailMonitoringConfigurationCommand";
|
|
13
15
|
export * from "./DeleteGroupCommand";
|
|
14
16
|
export * from "./DeleteMailboxPermissionsCommand";
|
|
@@ -37,6 +39,7 @@ export * from "./GetMobileDeviceAccessEffectCommand";
|
|
|
37
39
|
export * from "./GetMobileDeviceAccessOverrideCommand";
|
|
38
40
|
export * from "./ListAccessControlRulesCommand";
|
|
39
41
|
export * from "./ListAliasesCommand";
|
|
42
|
+
export * from "./ListAvailabilityConfigurationsCommand";
|
|
40
43
|
export * from "./ListGroupMembersCommand";
|
|
41
44
|
export * from "./ListGroupsCommand";
|
|
42
45
|
export * from "./ListMailDomainsCommand";
|
|
@@ -60,7 +63,9 @@ export * from "./RegisterToWorkMailCommand";
|
|
|
60
63
|
export * from "./ResetPasswordCommand";
|
|
61
64
|
export * from "./StartMailboxExportJobCommand";
|
|
62
65
|
export * from "./TagResourceCommand";
|
|
66
|
+
export * from "./TestAvailabilityConfigurationCommand";
|
|
63
67
|
export * from "./UntagResourceCommand";
|
|
68
|
+
export * from "./UpdateAvailabilityConfigurationCommand";
|
|
64
69
|
export * from "./UpdateDefaultMailDomainCommand";
|
|
65
70
|
export * from "./UpdateMailboxQuotaCommand";
|
|
66
71
|
export * from "./UpdateMobileDeviceAccessRuleCommand";
|
|
@@ -130,6 +130,23 @@ var UnsupportedOperationException = (function (_super) {
|
|
|
130
130
|
return UnsupportedOperationException;
|
|
131
131
|
}(__BaseException));
|
|
132
132
|
export { UnsupportedOperationException };
|
|
133
|
+
export var RedactedEwsAvailabilityProvider;
|
|
134
|
+
(function (RedactedEwsAvailabilityProvider) {
|
|
135
|
+
RedactedEwsAvailabilityProvider.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
136
|
+
})(RedactedEwsAvailabilityProvider || (RedactedEwsAvailabilityProvider = {}));
|
|
137
|
+
export var LambdaAvailabilityProvider;
|
|
138
|
+
(function (LambdaAvailabilityProvider) {
|
|
139
|
+
LambdaAvailabilityProvider.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
140
|
+
})(LambdaAvailabilityProvider || (LambdaAvailabilityProvider = {}));
|
|
141
|
+
export var AvailabilityProviderType;
|
|
142
|
+
(function (AvailabilityProviderType) {
|
|
143
|
+
AvailabilityProviderType["EWS"] = "EWS";
|
|
144
|
+
AvailabilityProviderType["LAMBDA"] = "LAMBDA";
|
|
145
|
+
})(AvailabilityProviderType || (AvailabilityProviderType = {}));
|
|
146
|
+
export var AvailabilityConfiguration;
|
|
147
|
+
(function (AvailabilityConfiguration) {
|
|
148
|
+
AvailabilityConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
149
|
+
})(AvailabilityConfiguration || (AvailabilityConfiguration = {}));
|
|
133
150
|
export var BookingOptions;
|
|
134
151
|
(function (BookingOptions) {
|
|
135
152
|
BookingOptions.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -202,14 +219,18 @@ var MailDomainStateException = (function (_super) {
|
|
|
202
219
|
return MailDomainStateException;
|
|
203
220
|
}(__BaseException));
|
|
204
221
|
export { MailDomainStateException };
|
|
205
|
-
export var
|
|
206
|
-
(function (
|
|
207
|
-
|
|
208
|
-
})(
|
|
209
|
-
export var
|
|
210
|
-
(function (
|
|
211
|
-
|
|
212
|
-
})(
|
|
222
|
+
export var EwsAvailabilityProvider;
|
|
223
|
+
(function (EwsAvailabilityProvider) {
|
|
224
|
+
EwsAvailabilityProvider.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.EwsPassword && { EwsPassword: SENSITIVE_STRING }))); };
|
|
225
|
+
})(EwsAvailabilityProvider || (EwsAvailabilityProvider = {}));
|
|
226
|
+
export var CreateAvailabilityConfigurationRequest;
|
|
227
|
+
(function (CreateAvailabilityConfigurationRequest) {
|
|
228
|
+
CreateAvailabilityConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.EwsProvider && { EwsProvider: EwsAvailabilityProvider.filterSensitiveLog(obj.EwsProvider) }))); };
|
|
229
|
+
})(CreateAvailabilityConfigurationRequest || (CreateAvailabilityConfigurationRequest = {}));
|
|
230
|
+
export var CreateAvailabilityConfigurationResponse;
|
|
231
|
+
(function (CreateAvailabilityConfigurationResponse) {
|
|
232
|
+
CreateAvailabilityConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
233
|
+
})(CreateAvailabilityConfigurationResponse || (CreateAvailabilityConfigurationResponse = {}));
|
|
213
234
|
var NameAvailabilityException = (function (_super) {
|
|
214
235
|
__extends(NameAvailabilityException, _super);
|
|
215
236
|
function NameAvailabilityException(opts) {
|
|
@@ -223,6 +244,14 @@ var NameAvailabilityException = (function (_super) {
|
|
|
223
244
|
return NameAvailabilityException;
|
|
224
245
|
}(__BaseException));
|
|
225
246
|
export { NameAvailabilityException };
|
|
247
|
+
export var CreateGroupRequest;
|
|
248
|
+
(function (CreateGroupRequest) {
|
|
249
|
+
CreateGroupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
250
|
+
})(CreateGroupRequest || (CreateGroupRequest = {}));
|
|
251
|
+
export var CreateGroupResponse;
|
|
252
|
+
(function (CreateGroupResponse) {
|
|
253
|
+
CreateGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
254
|
+
})(CreateGroupResponse || (CreateGroupResponse = {}));
|
|
226
255
|
var ReservedNameException = (function (_super) {
|
|
227
256
|
__extends(ReservedNameException, _super);
|
|
228
257
|
function ReservedNameException(opts) {
|
|
@@ -333,6 +362,14 @@ export var DeleteAliasResponse;
|
|
|
333
362
|
(function (DeleteAliasResponse) {
|
|
334
363
|
DeleteAliasResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
335
364
|
})(DeleteAliasResponse || (DeleteAliasResponse = {}));
|
|
365
|
+
export var DeleteAvailabilityConfigurationRequest;
|
|
366
|
+
(function (DeleteAvailabilityConfigurationRequest) {
|
|
367
|
+
DeleteAvailabilityConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
368
|
+
})(DeleteAvailabilityConfigurationRequest || (DeleteAvailabilityConfigurationRequest = {}));
|
|
369
|
+
export var DeleteAvailabilityConfigurationResponse;
|
|
370
|
+
(function (DeleteAvailabilityConfigurationResponse) {
|
|
371
|
+
DeleteAvailabilityConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
372
|
+
})(DeleteAvailabilityConfigurationResponse || (DeleteAvailabilityConfigurationResponse = {}));
|
|
336
373
|
export var DeleteEmailMonitoringConfigurationRequest;
|
|
337
374
|
(function (DeleteEmailMonitoringConfigurationRequest) {
|
|
338
375
|
DeleteEmailMonitoringConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -681,6 +718,14 @@ export var ListAliasesResponse;
|
|
|
681
718
|
(function (ListAliasesResponse) {
|
|
682
719
|
ListAliasesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
683
720
|
})(ListAliasesResponse || (ListAliasesResponse = {}));
|
|
721
|
+
export var ListAvailabilityConfigurationsRequest;
|
|
722
|
+
(function (ListAvailabilityConfigurationsRequest) {
|
|
723
|
+
ListAvailabilityConfigurationsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
724
|
+
})(ListAvailabilityConfigurationsRequest || (ListAvailabilityConfigurationsRequest = {}));
|
|
725
|
+
export var ListAvailabilityConfigurationsResponse;
|
|
726
|
+
(function (ListAvailabilityConfigurationsResponse) {
|
|
727
|
+
ListAvailabilityConfigurationsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
728
|
+
})(ListAvailabilityConfigurationsResponse || (ListAvailabilityConfigurationsResponse = {}));
|
|
684
729
|
export var ListGroupMembersRequest;
|
|
685
730
|
(function (ListGroupMembersRequest) {
|
|
686
731
|
ListGroupMembersRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -920,6 +965,14 @@ var TooManyTagsException = (function (_super) {
|
|
|
920
965
|
return TooManyTagsException;
|
|
921
966
|
}(__BaseException));
|
|
922
967
|
export { TooManyTagsException };
|
|
968
|
+
export var TestAvailabilityConfigurationRequest;
|
|
969
|
+
(function (TestAvailabilityConfigurationRequest) {
|
|
970
|
+
TestAvailabilityConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.EwsProvider && { EwsProvider: EwsAvailabilityProvider.filterSensitiveLog(obj.EwsProvider) }))); };
|
|
971
|
+
})(TestAvailabilityConfigurationRequest || (TestAvailabilityConfigurationRequest = {}));
|
|
972
|
+
export var TestAvailabilityConfigurationResponse;
|
|
973
|
+
(function (TestAvailabilityConfigurationResponse) {
|
|
974
|
+
TestAvailabilityConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
975
|
+
})(TestAvailabilityConfigurationResponse || (TestAvailabilityConfigurationResponse = {}));
|
|
923
976
|
export var UntagResourceRequest;
|
|
924
977
|
(function (UntagResourceRequest) {
|
|
925
978
|
UntagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -928,6 +981,14 @@ export var UntagResourceResponse;
|
|
|
928
981
|
(function (UntagResourceResponse) {
|
|
929
982
|
UntagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
930
983
|
})(UntagResourceResponse || (UntagResourceResponse = {}));
|
|
984
|
+
export var UpdateAvailabilityConfigurationRequest;
|
|
985
|
+
(function (UpdateAvailabilityConfigurationRequest) {
|
|
986
|
+
UpdateAvailabilityConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.EwsProvider && { EwsProvider: EwsAvailabilityProvider.filterSensitiveLog(obj.EwsProvider) }))); };
|
|
987
|
+
})(UpdateAvailabilityConfigurationRequest || (UpdateAvailabilityConfigurationRequest = {}));
|
|
988
|
+
export var UpdateAvailabilityConfigurationResponse;
|
|
989
|
+
(function (UpdateAvailabilityConfigurationResponse) {
|
|
990
|
+
UpdateAvailabilityConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
991
|
+
})(UpdateAvailabilityConfigurationResponse || (UpdateAvailabilityConfigurationResponse = {}));
|
|
931
992
|
export var UpdateDefaultMailDomainRequest;
|
|
932
993
|
(function (UpdateDefaultMailDomainRequest) {
|
|
933
994
|
UpdateDefaultMailDomainRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListAvailabilityConfigurationsCommand, } from "../commands/ListAvailabilityConfigurationsCommand";
|
|
3
|
+
import { WorkMail } from "../WorkMail";
|
|
4
|
+
import { WorkMailClient } from "../WorkMailClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListAvailabilityConfigurationsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listAvailabilityConfigurations.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListAvailabilityConfigurations(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListAvailabilityConfigurations_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof WorkMail)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof WorkMailClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|