@aws-sdk/client-workmail 3.413.0 → 3.415.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/dist-cjs/WorkMail.js +8 -0
- package/dist-cjs/commands/DescribeEntityCommand.js +46 -0
- package/dist-cjs/commands/DescribeUserCommand.js +2 -1
- package/dist-cjs/commands/ListGroupsForEntityCommand.js +46 -0
- package/dist-cjs/commands/ListUsersCommand.js +2 -1
- package/dist-cjs/commands/UpdateGroupCommand.js +46 -0
- package/dist-cjs/commands/UpdateUserCommand.js +47 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +73 -20
- package/dist-cjs/pagination/ListGroupsForEntityPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +276 -4
- package/dist-cjs/runtimeExtensions.js +3 -0
- package/dist-es/WorkMail.js +8 -0
- package/dist-es/commands/DescribeEntityCommand.js +42 -0
- package/dist-es/commands/DescribeUserCommand.js +2 -1
- package/dist-es/commands/ListGroupsForEntityCommand.js +42 -0
- package/dist-es/commands/ListUsersCommand.js +2 -1
- package/dist-es/commands/UpdateGroupCommand.js +42 -0
- package/dist-es/commands/UpdateUserCommand.js +43 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +66 -17
- package/dist-es/pagination/ListGroupsForEntityPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +265 -1
- package/dist-es/runtimeExtensions.js +3 -0
- package/dist-types/WorkMail.d.ts +28 -0
- package/dist-types/WorkMailClient.d.ts +6 -2
- package/dist-types/commands/AssociateDelegateToResourceCommand.d.ts +3 -0
- package/dist-types/commands/CreateGroupCommand.d.ts +1 -0
- package/dist-types/commands/CreateOrganizationCommand.d.ts +1 -1
- package/dist-types/commands/CreateResourceCommand.d.ts +5 -0
- package/dist-types/commands/CreateUserCommand.d.ts +5 -1
- package/dist-types/commands/DeleteOrganizationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteResourceCommand.d.ts +3 -0
- package/dist-types/commands/DescribeEntityCommand.d.ts +91 -0
- package/dist-types/commands/DescribeGroupCommand.d.ts +1 -0
- package/dist-types/commands/DescribeOrganizationCommand.d.ts +2 -0
- package/dist-types/commands/DescribeResourceCommand.d.ts +5 -0
- package/dist-types/commands/DescribeUserCommand.d.ts +16 -1
- package/dist-types/commands/DisassociateDelegateFromResourceCommand.d.ts +3 -0
- package/dist-types/commands/GetMailboxDetailsCommand.d.ts +3 -0
- package/dist-types/commands/ListGroupsCommand.d.ts +5 -0
- package/dist-types/commands/ListGroupsForEntityCommand.d.ts +104 -0
- package/dist-types/commands/ListResourceDelegatesCommand.d.ts +3 -0
- package/dist-types/commands/ListResourcesCommand.d.ts +9 -0
- package/dist-types/commands/ListUsersCommand.d.ts +7 -1
- package/dist-types/commands/TagResourceCommand.d.ts +3 -0
- package/dist-types/commands/UpdateGroupCommand.d.ts +95 -0
- package/dist-types/commands/UpdateResourceCommand.d.ts +9 -0
- package/dist-types/commands/UpdateUserCommand.d.ts +117 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/extensionConfiguration.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +921 -58
- package/dist-types/pagination/ListGroupsForEntityPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +36 -0
- package/dist-types/ts3.4/WorkMail.d.ts +68 -0
- package/dist-types/ts3.4/WorkMailClient.d.ts +26 -2
- package/dist-types/ts3.4/commands/DescribeEntityCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListGroupsForEntityCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateGroupCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +139 -16
- package/dist-types/ts3.4/pagination/ListGroupsForEntityPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +48 -0
- package/package.json +4 -3
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_ListGroupsForEntityCommand, se_ListGroupsForEntityCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListGroupsForEntityCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListGroupsForEntityCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "WorkMailClient";
|
|
25
|
+
const commandName = "ListGroupsForEntityCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_ListGroupsForEntityCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_ListGroupsForEntityCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { ListUsersRequestFilterSensitiveLog } from "../models/models_0";
|
|
4
5
|
import { de_ListUsersCommand, se_ListUsersCommand } from "../protocols/Aws_json1_1";
|
|
5
6
|
export { $Command };
|
|
6
7
|
export class ListUsersCommand extends $Command {
|
|
@@ -27,7 +28,7 @@ export class ListUsersCommand extends $Command {
|
|
|
27
28
|
logger,
|
|
28
29
|
clientName,
|
|
29
30
|
commandName,
|
|
30
|
-
inputFilterSensitiveLog:
|
|
31
|
+
inputFilterSensitiveLog: ListUsersRequestFilterSensitiveLog,
|
|
31
32
|
outputFilterSensitiveLog: (_) => _,
|
|
32
33
|
};
|
|
33
34
|
const { requestHandler } = configuration;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_UpdateGroupCommand, se_UpdateGroupCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class UpdateGroupCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateGroupCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "WorkMailClient";
|
|
25
|
+
const commandName = "UpdateGroupCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_UpdateGroupCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_UpdateGroupCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { UpdateUserRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
|
+
import { de_UpdateUserCommand, se_UpdateUserCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateUserCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateUserCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "WorkMailClient";
|
|
26
|
+
const commandName = "UpdateUserCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: UpdateUserRequestFilterSensitiveLog,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
};
|
|
34
|
+
const { requestHandler } = configuration;
|
|
35
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
36
|
+
}
|
|
37
|
+
serialize(input, context) {
|
|
38
|
+
return se_UpdateUserCommand(input, context);
|
|
39
|
+
}
|
|
40
|
+
deserialize(output, context) {
|
|
41
|
+
return de_UpdateUserCommand(output, context);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -26,6 +26,7 @@ export * from "./DeleteUserCommand";
|
|
|
26
26
|
export * from "./DeregisterFromWorkMailCommand";
|
|
27
27
|
export * from "./DeregisterMailDomainCommand";
|
|
28
28
|
export * from "./DescribeEmailMonitoringConfigurationCommand";
|
|
29
|
+
export * from "./DescribeEntityCommand";
|
|
29
30
|
export * from "./DescribeGroupCommand";
|
|
30
31
|
export * from "./DescribeInboundDmarcSettingsCommand";
|
|
31
32
|
export * from "./DescribeMailboxExportJobCommand";
|
|
@@ -47,6 +48,7 @@ export * from "./ListAliasesCommand";
|
|
|
47
48
|
export * from "./ListAvailabilityConfigurationsCommand";
|
|
48
49
|
export * from "./ListGroupMembersCommand";
|
|
49
50
|
export * from "./ListGroupsCommand";
|
|
51
|
+
export * from "./ListGroupsForEntityCommand";
|
|
50
52
|
export * from "./ListImpersonationRolesCommand";
|
|
51
53
|
export * from "./ListMailDomainsCommand";
|
|
52
54
|
export * from "./ListMailboxExportJobsCommand";
|
|
@@ -73,8 +75,10 @@ export * from "./TestAvailabilityConfigurationCommand";
|
|
|
73
75
|
export * from "./UntagResourceCommand";
|
|
74
76
|
export * from "./UpdateAvailabilityConfigurationCommand";
|
|
75
77
|
export * from "./UpdateDefaultMailDomainCommand";
|
|
78
|
+
export * from "./UpdateGroupCommand";
|
|
76
79
|
export * from "./UpdateImpersonationRoleCommand";
|
|
77
80
|
export * from "./UpdateMailboxQuotaCommand";
|
|
78
81
|
export * from "./UpdateMobileDeviceAccessRuleCommand";
|
|
79
82
|
export * from "./UpdatePrimaryEmailAddressCommand";
|
|
80
83
|
export * from "./UpdateResourceCommand";
|
|
84
|
+
export * from "./UpdateUserCommand";
|
|
@@ -73,42 +73,42 @@ export class OrganizationStateException extends __BaseException {
|
|
|
73
73
|
this.Message = opts.Message;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
export class
|
|
76
|
+
export class UnsupportedOperationException extends __BaseException {
|
|
77
77
|
constructor(opts) {
|
|
78
78
|
super({
|
|
79
|
-
name: "
|
|
79
|
+
name: "UnsupportedOperationException",
|
|
80
80
|
$fault: "client",
|
|
81
81
|
...opts,
|
|
82
82
|
});
|
|
83
|
-
this.name = "
|
|
83
|
+
this.name = "UnsupportedOperationException";
|
|
84
84
|
this.$fault = "client";
|
|
85
|
-
Object.setPrototypeOf(this,
|
|
85
|
+
Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
|
|
86
86
|
this.Message = opts.Message;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
export class
|
|
89
|
+
export class DirectoryServiceAuthenticationFailedException extends __BaseException {
|
|
90
90
|
constructor(opts) {
|
|
91
91
|
super({
|
|
92
|
-
name: "
|
|
92
|
+
name: "DirectoryServiceAuthenticationFailedException",
|
|
93
93
|
$fault: "client",
|
|
94
94
|
...opts,
|
|
95
95
|
});
|
|
96
|
-
this.name = "
|
|
96
|
+
this.name = "DirectoryServiceAuthenticationFailedException";
|
|
97
97
|
this.$fault = "client";
|
|
98
|
-
Object.setPrototypeOf(this,
|
|
98
|
+
Object.setPrototypeOf(this, DirectoryServiceAuthenticationFailedException.prototype);
|
|
99
99
|
this.Message = opts.Message;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
export class
|
|
102
|
+
export class DirectoryUnavailableException extends __BaseException {
|
|
103
103
|
constructor(opts) {
|
|
104
104
|
super({
|
|
105
|
-
name: "
|
|
105
|
+
name: "DirectoryUnavailableException",
|
|
106
106
|
$fault: "client",
|
|
107
107
|
...opts,
|
|
108
108
|
});
|
|
109
|
-
this.name = "
|
|
109
|
+
this.name = "DirectoryUnavailableException";
|
|
110
110
|
this.$fault = "client";
|
|
111
|
-
Object.setPrototypeOf(this,
|
|
111
|
+
Object.setPrototypeOf(this, DirectoryUnavailableException.prototype);
|
|
112
112
|
this.Message = opts.Message;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -232,6 +232,12 @@ export const ResourceType = {
|
|
|
232
232
|
EQUIPMENT: "EQUIPMENT",
|
|
233
233
|
ROOM: "ROOM",
|
|
234
234
|
};
|
|
235
|
+
export const UserRole = {
|
|
236
|
+
REMOTE_USER: "REMOTE_USER",
|
|
237
|
+
RESOURCE: "RESOURCE",
|
|
238
|
+
SYSTEM_USER: "SYSTEM_USER",
|
|
239
|
+
USER: "USER",
|
|
240
|
+
};
|
|
235
241
|
export class InvalidPasswordException extends __BaseException {
|
|
236
242
|
constructor(opts) {
|
|
237
243
|
super({
|
|
@@ -275,6 +281,11 @@ export class MailDomainInUseException extends __BaseException {
|
|
|
275
281
|
this.Message = opts.Message;
|
|
276
282
|
}
|
|
277
283
|
}
|
|
284
|
+
export const EntityType = {
|
|
285
|
+
GROUP: "GROUP",
|
|
286
|
+
RESOURCE: "RESOURCE",
|
|
287
|
+
USER: "USER",
|
|
288
|
+
};
|
|
278
289
|
export const EntityState = {
|
|
279
290
|
DELETED: "DELETED",
|
|
280
291
|
DISABLED: "DISABLED",
|
|
@@ -286,11 +297,6 @@ export const MailboxExportJobState = {
|
|
|
286
297
|
FAILED: "FAILED",
|
|
287
298
|
RUNNING: "RUNNING",
|
|
288
299
|
};
|
|
289
|
-
export const UserRole = {
|
|
290
|
-
RESOURCE: "RESOURCE",
|
|
291
|
-
SYSTEM_USER: "SYSTEM_USER",
|
|
292
|
-
USER: "USER",
|
|
293
|
-
};
|
|
294
300
|
export const DnsRecordVerificationStatus = {
|
|
295
301
|
FAILED: "FAILED",
|
|
296
302
|
PENDING: "PENDING",
|
|
@@ -362,7 +368,34 @@ export const CreateAvailabilityConfigurationRequestFilterSensitiveLog = (obj) =>
|
|
|
362
368
|
});
|
|
363
369
|
export const CreateUserRequestFilterSensitiveLog = (obj) => ({
|
|
364
370
|
...obj,
|
|
371
|
+
...(obj.DisplayName && { DisplayName: SENSITIVE_STRING }),
|
|
365
372
|
...(obj.Password && { Password: SENSITIVE_STRING }),
|
|
373
|
+
...(obj.FirstName && { FirstName: SENSITIVE_STRING }),
|
|
374
|
+
...(obj.LastName && { LastName: SENSITIVE_STRING }),
|
|
375
|
+
});
|
|
376
|
+
export const DescribeUserResponseFilterSensitiveLog = (obj) => ({
|
|
377
|
+
...obj,
|
|
378
|
+
...(obj.DisplayName && { DisplayName: SENSITIVE_STRING }),
|
|
379
|
+
...(obj.FirstName && { FirstName: SENSITIVE_STRING }),
|
|
380
|
+
...(obj.LastName && { LastName: SENSITIVE_STRING }),
|
|
381
|
+
...(obj.Initials && { Initials: SENSITIVE_STRING }),
|
|
382
|
+
...(obj.Telephone && { Telephone: SENSITIVE_STRING }),
|
|
383
|
+
...(obj.Street && { Street: SENSITIVE_STRING }),
|
|
384
|
+
...(obj.JobTitle && { JobTitle: SENSITIVE_STRING }),
|
|
385
|
+
...(obj.City && { City: SENSITIVE_STRING }),
|
|
386
|
+
...(obj.Company && { Company: SENSITIVE_STRING }),
|
|
387
|
+
...(obj.ZipCode && { ZipCode: SENSITIVE_STRING }),
|
|
388
|
+
...(obj.Department && { Department: SENSITIVE_STRING }),
|
|
389
|
+
...(obj.Country && { Country: SENSITIVE_STRING }),
|
|
390
|
+
...(obj.Office && { Office: SENSITIVE_STRING }),
|
|
391
|
+
});
|
|
392
|
+
export const ListUsersFiltersFilterSensitiveLog = (obj) => ({
|
|
393
|
+
...obj,
|
|
394
|
+
...(obj.DisplayNamePrefix && { DisplayNamePrefix: SENSITIVE_STRING }),
|
|
395
|
+
});
|
|
396
|
+
export const ListUsersRequestFilterSensitiveLog = (obj) => ({
|
|
397
|
+
...obj,
|
|
398
|
+
...(obj.Filters && { Filters: ListUsersFiltersFilterSensitiveLog(obj.Filters) }),
|
|
366
399
|
});
|
|
367
400
|
export const PutRetentionPolicyRequestFilterSensitiveLog = (obj) => ({
|
|
368
401
|
...obj,
|
|
@@ -380,3 +413,19 @@ export const UpdateAvailabilityConfigurationRequestFilterSensitiveLog = (obj) =>
|
|
|
380
413
|
...obj,
|
|
381
414
|
...(obj.EwsProvider && { EwsProvider: EwsAvailabilityProviderFilterSensitiveLog(obj.EwsProvider) }),
|
|
382
415
|
});
|
|
416
|
+
export const UpdateUserRequestFilterSensitiveLog = (obj) => ({
|
|
417
|
+
...obj,
|
|
418
|
+
...(obj.DisplayName && { DisplayName: SENSITIVE_STRING }),
|
|
419
|
+
...(obj.FirstName && { FirstName: SENSITIVE_STRING }),
|
|
420
|
+
...(obj.LastName && { LastName: SENSITIVE_STRING }),
|
|
421
|
+
...(obj.Initials && { Initials: SENSITIVE_STRING }),
|
|
422
|
+
...(obj.Telephone && { Telephone: SENSITIVE_STRING }),
|
|
423
|
+
...(obj.Street && { Street: SENSITIVE_STRING }),
|
|
424
|
+
...(obj.JobTitle && { JobTitle: SENSITIVE_STRING }),
|
|
425
|
+
...(obj.City && { City: SENSITIVE_STRING }),
|
|
426
|
+
...(obj.Company && { Company: SENSITIVE_STRING }),
|
|
427
|
+
...(obj.ZipCode && { ZipCode: SENSITIVE_STRING }),
|
|
428
|
+
...(obj.Department && { Department: SENSITIVE_STRING }),
|
|
429
|
+
...(obj.Country && { Country: SENSITIVE_STRING }),
|
|
430
|
+
...(obj.Office && { Office: SENSITIVE_STRING }),
|
|
431
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListGroupsForEntityCommand, } from "../commands/ListGroupsForEntityCommand";
|
|
2
|
+
import { WorkMailClient } from "../WorkMailClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListGroupsForEntityCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListGroupsForEntity(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
input["MaxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof WorkMailClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected WorkMail | WorkMailClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.NextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -2,6 +2,7 @@ export * from "./Interfaces";
|
|
|
2
2
|
export * from "./ListAliasesPaginator";
|
|
3
3
|
export * from "./ListAvailabilityConfigurationsPaginator";
|
|
4
4
|
export * from "./ListGroupMembersPaginator";
|
|
5
|
+
export * from "./ListGroupsForEntityPaginator";
|
|
5
6
|
export * from "./ListGroupsPaginator";
|
|
6
7
|
export * from "./ListImpersonationRolesPaginator";
|
|
7
8
|
export * from "./ListMailDomainsPaginator";
|