@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,117 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { UpdateUserRequest, UpdateUserResponse } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, WorkMailClientResolvedConfig } from "../WorkMailClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateUserCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateUserCommandInput extends UpdateUserRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateUserCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateUserCommandOutput extends UpdateUserResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Updates data for the user. To have the latest information, it must be preceded by a
|
|
27
|
+
* <a>DescribeUser</a> call. The dataset in the request should be the one
|
|
28
|
+
* expected when performing another <code>DescribeUser</code> call.</p>
|
|
29
|
+
* @example
|
|
30
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
+
* ```javascript
|
|
32
|
+
* import { WorkMailClient, UpdateUserCommand } from "@aws-sdk/client-workmail"; // ES Modules import
|
|
33
|
+
* // const { WorkMailClient, UpdateUserCommand } = require("@aws-sdk/client-workmail"); // CommonJS import
|
|
34
|
+
* const client = new WorkMailClient(config);
|
|
35
|
+
* const input = { // UpdateUserRequest
|
|
36
|
+
* OrganizationId: "STRING_VALUE", // required
|
|
37
|
+
* UserId: "STRING_VALUE", // required
|
|
38
|
+
* Role: "USER" || "RESOURCE" || "SYSTEM_USER" || "REMOTE_USER",
|
|
39
|
+
* DisplayName: "STRING_VALUE",
|
|
40
|
+
* FirstName: "STRING_VALUE",
|
|
41
|
+
* LastName: "STRING_VALUE",
|
|
42
|
+
* HiddenFromGlobalAddressList: true || false,
|
|
43
|
+
* Initials: "STRING_VALUE",
|
|
44
|
+
* Telephone: "STRING_VALUE",
|
|
45
|
+
* Street: "STRING_VALUE",
|
|
46
|
+
* JobTitle: "STRING_VALUE",
|
|
47
|
+
* City: "STRING_VALUE",
|
|
48
|
+
* Company: "STRING_VALUE",
|
|
49
|
+
* ZipCode: "STRING_VALUE",
|
|
50
|
+
* Department: "STRING_VALUE",
|
|
51
|
+
* Country: "STRING_VALUE",
|
|
52
|
+
* Office: "STRING_VALUE",
|
|
53
|
+
* };
|
|
54
|
+
* const command = new UpdateUserCommand(input);
|
|
55
|
+
* const response = await client.send(command);
|
|
56
|
+
* // {};
|
|
57
|
+
*
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @param UpdateUserCommandInput - {@link UpdateUserCommandInput}
|
|
61
|
+
* @returns {@link UpdateUserCommandOutput}
|
|
62
|
+
* @see {@link UpdateUserCommandInput} for command's `input` shape.
|
|
63
|
+
* @see {@link UpdateUserCommandOutput} for command's `response` shape.
|
|
64
|
+
* @see {@link WorkMailClientResolvedConfig | config} for WorkMailClient's `config` shape.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link DirectoryServiceAuthenticationFailedException} (client fault)
|
|
67
|
+
* <p>The directory service doesn't recognize the credentials supplied by WorkMail.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link DirectoryUnavailableException} (client fault)
|
|
70
|
+
* <p>The directory is unavailable. It might be located in another Region or deleted.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link EntityNotFoundException} (client fault)
|
|
73
|
+
* <p>The identifier supplied for the user, group, or resource does not exist in your
|
|
74
|
+
* organization.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link EntityStateException} (client fault)
|
|
77
|
+
* <p>You are performing an operation on a user, group, or resource that isn't in the
|
|
78
|
+
* expected state, such as trying to delete an active user.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
81
|
+
* <p>One or more of the input parameters don't match the service's restrictions.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link OrganizationNotFoundException} (client fault)
|
|
84
|
+
* <p>An operation received a valid organization identifier that either doesn't belong or
|
|
85
|
+
* exist in the system.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link OrganizationStateException} (client fault)
|
|
88
|
+
* <p>The organization must have a valid state to perform certain
|
|
89
|
+
* operations on the organization or its members.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link UnsupportedOperationException} (client fault)
|
|
92
|
+
* <p>You can't perform a write operation against a read-only directory.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link WorkMailServiceException}
|
|
95
|
+
* <p>Base exception class for all service exceptions from WorkMail service.</p>
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
98
|
+
export declare class UpdateUserCommand extends $Command<UpdateUserCommandInput, UpdateUserCommandOutput, WorkMailClientResolvedConfig> {
|
|
99
|
+
readonly input: UpdateUserCommandInput;
|
|
100
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
101
|
+
/**
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
constructor(input: UpdateUserCommandInput);
|
|
105
|
+
/**
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WorkMailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateUserCommandInput, UpdateUserCommandOutput>;
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
112
|
+
private serialize;
|
|
113
|
+
/**
|
|
114
|
+
* @internal
|
|
115
|
+
*/
|
|
116
|
+
private deserialize;
|
|
117
|
+
}
|
|
@@ -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";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
1
2
|
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
2
3
|
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
3
4
|
/**
|
|
4
5
|
* @internal
|
|
5
6
|
*/
|
|
6
|
-
export interface WorkMailExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration {
|
|
7
|
+
export interface WorkMailExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration {
|
|
7
8
|
}
|