@aws-sdk/client-directory-service-data 3.654.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/LICENSE +201 -0
- package/README.md +391 -0
- package/dist-cjs/DirectoryServiceData.js +45 -0
- package/dist-cjs/DirectoryServiceDataClient.js +50 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/AddGroupMemberCommand.js +26 -0
- package/dist-cjs/commands/CreateGroupCommand.js +27 -0
- package/dist-cjs/commands/CreateUserCommand.js +27 -0
- package/dist-cjs/commands/DeleteGroupCommand.js +26 -0
- package/dist-cjs/commands/DeleteUserCommand.js +26 -0
- package/dist-cjs/commands/DescribeGroupCommand.js +27 -0
- package/dist-cjs/commands/DescribeUserCommand.js +27 -0
- package/dist-cjs/commands/DisableUserCommand.js +26 -0
- package/dist-cjs/commands/ListGroupMembersCommand.js +27 -0
- package/dist-cjs/commands/ListGroupsCommand.js +27 -0
- package/dist-cjs/commands/ListGroupsForMemberCommand.js +27 -0
- package/dist-cjs/commands/ListUsersCommand.js +27 -0
- package/dist-cjs/commands/RemoveGroupMemberCommand.js +26 -0
- package/dist-cjs/commands/SearchGroupsCommand.js +27 -0
- package/dist-cjs/commands/SearchUsersCommand.js +27 -0
- package/dist-cjs/commands/UpdateGroupCommand.js +27 -0
- package/dist-cjs/commands/UpdateUserCommand.js +27 -0
- package/dist-cjs/commands/index.js +20 -0
- package/dist-cjs/endpoint/EndpointParameters.js +18 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/DirectoryServiceDataServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +333 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListGroupMembersPaginator.js +7 -0
- package/dist-cjs/pagination/ListGroupsForMemberPaginator.js +7 -0
- package/dist-cjs/pagination/ListGroupsPaginator.js +7 -0
- package/dist-cjs/pagination/ListUsersPaginator.js +7 -0
- package/dist-cjs/pagination/SearchGroupsPaginator.js +7 -0
- package/dist-cjs/pagination/SearchUsersPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +10 -0
- package/dist-cjs/protocols/Aws_restJson1.js +768 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +49 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/DirectoryServiceData.js +41 -0
- package/dist-es/DirectoryServiceDataClient.js +46 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/AddGroupMemberCommand.js +22 -0
- package/dist-es/commands/CreateGroupCommand.js +23 -0
- package/dist-es/commands/CreateUserCommand.js +23 -0
- package/dist-es/commands/DeleteGroupCommand.js +22 -0
- package/dist-es/commands/DeleteUserCommand.js +22 -0
- package/dist-es/commands/DescribeGroupCommand.js +23 -0
- package/dist-es/commands/DescribeUserCommand.js +23 -0
- package/dist-es/commands/DisableUserCommand.js +22 -0
- package/dist-es/commands/ListGroupMembersCommand.js +23 -0
- package/dist-es/commands/ListGroupsCommand.js +23 -0
- package/dist-es/commands/ListGroupsForMemberCommand.js +23 -0
- package/dist-es/commands/ListUsersCommand.js +23 -0
- package/dist-es/commands/RemoveGroupMemberCommand.js +22 -0
- package/dist-es/commands/SearchGroupsCommand.js +23 -0
- package/dist-es/commands/SearchUsersCommand.js +23 -0
- package/dist-es/commands/UpdateGroupCommand.js +23 -0
- package/dist-es/commands/UpdateUserCommand.js +23 -0
- package/dist-es/commands/index.js +17 -0
- package/dist-es/endpoint/EndpointParameters.js +14 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/DirectoryServiceDataServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +301 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListGroupMembersPaginator.js +4 -0
- package/dist-es/pagination/ListGroupsForMemberPaginator.js +4 -0
- package/dist-es/pagination/ListGroupsPaginator.js +4 -0
- package/dist-es/pagination/ListUsersPaginator.js +4 -0
- package/dist-es/pagination/SearchGroupsPaginator.js +4 -0
- package/dist-es/pagination/SearchUsersPaginator.js +4 -0
- package/dist-es/pagination/index.js +7 -0
- package/dist-es/protocols/Aws_restJson1.js +731 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/DirectoryServiceData.d.ts +179 -0
- package/dist-types/DirectoryServiceDataClient.d.ts +236 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/AddGroupMemberCommand.d.ts +107 -0
- package/dist-types/commands/CreateGroupCommand.d.ts +118 -0
- package/dist-types/commands/CreateUserCommand.d.ts +119 -0
- package/dist-types/commands/DeleteGroupCommand.d.ts +105 -0
- package/dist-types/commands/DeleteUserCommand.d.ts +105 -0
- package/dist-types/commands/DescribeGroupCommand.d.ts +117 -0
- package/dist-types/commands/DescribeUserCommand.d.ts +120 -0
- package/dist-types/commands/DisableUserCommand.d.ts +107 -0
- package/dist-types/commands/ListGroupMembersCommand.d.ts +117 -0
- package/dist-types/commands/ListGroupsCommand.d.ts +112 -0
- package/dist-types/commands/ListGroupsForMemberCommand.d.ts +118 -0
- package/dist-types/commands/ListUsersCommand.d.ts +113 -0
- package/dist-types/commands/RemoveGroupMemberCommand.d.ts +107 -0
- package/dist-types/commands/SearchGroupsCommand.d.ts +129 -0
- package/dist-types/commands/SearchUsersCommand.d.ts +132 -0
- package/dist-types/commands/UpdateGroupCommand.d.ts +118 -0
- package/dist-types/commands/UpdateUserCommand.d.ts +119 -0
- package/dist-types/commands/index.d.ts +17 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +64 -0
- package/dist-types/models/DirectoryServiceDataServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1639 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListGroupMembersPaginator.d.ts +7 -0
- package/dist-types/pagination/ListGroupsForMemberPaginator.d.ts +7 -0
- package/dist-types/pagination/ListGroupsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListUsersPaginator.d.ts +7 -0
- package/dist-types/pagination/SearchGroupsPaginator.d.ts +7 -0
- package/dist-types/pagination/SearchUsersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +7 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +155 -0
- package/dist-types/runtimeConfig.browser.d.ts +47 -0
- package/dist-types/runtimeConfig.d.ts +47 -0
- package/dist-types/runtimeConfig.native.d.ts +46 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/DirectoryServiceData.d.ts +296 -0
- package/dist-types/ts3.4/DirectoryServiceDataClient.d.ts +223 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/commands/AddGroupMemberCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateGroupCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteGroupCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DescribeGroupCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DescribeUserCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DisableUserCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListGroupMembersCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListGroupsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListGroupsForMemberCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/RemoveGroupMemberCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SearchGroupsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/SearchUsersCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateGroupCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +17 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/DirectoryServiceDataServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +471 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListGroupMembersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListGroupsForMemberPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchUsersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +209 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +89 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +83 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +103 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
|
+
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
|
|
3
|
+
import { DirectoryServiceDataClientResolvedConfig } from "../DirectoryServiceDataClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface DirectoryServiceDataHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface DirectoryServiceDataHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<DirectoryServiceDataClientResolvedConfig, HandlerExecutionContext, DirectoryServiceDataHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultDirectoryServiceDataHttpAuthSchemeParametersProvider: (config: DirectoryServiceDataClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<DirectoryServiceDataHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface DirectoryServiceDataHttpAuthSchemeProvider extends HttpAuthSchemeProvider<DirectoryServiceDataHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultDirectoryServiceDataHttpAuthSchemeProvider: DirectoryServiceDataHttpAuthSchemeProvider;
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
37
|
+
/**
|
|
38
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
httpAuthSchemeProvider?: DirectoryServiceDataHttpAuthSchemeProvider;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
47
|
+
/**
|
|
48
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
52
|
+
/**
|
|
53
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
readonly httpAuthSchemeProvider: DirectoryServiceDataHttpAuthSchemeProvider;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DirectoryServiceDataClient";
|
|
4
|
+
import { AddGroupMemberRequest, AddGroupMemberResult } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link AddGroupMemberCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface AddGroupMemberCommandInput extends AddGroupMemberRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link AddGroupMemberCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface AddGroupMemberCommandOutput extends AddGroupMemberResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const AddGroupMemberCommand_base: {
|
|
25
|
+
new (input: AddGroupMemberCommandInput): import("@smithy/smithy-client").CommandImpl<AddGroupMemberCommandInput, AddGroupMemberCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: AddGroupMemberCommandInput): import("@smithy/smithy-client").CommandImpl<AddGroupMemberCommandInput, AddGroupMemberCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Adds an existing user, group, or computer as a group member.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { DirectoryServiceDataClient, AddGroupMemberCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import
|
|
35
|
+
* // const { DirectoryServiceDataClient, AddGroupMemberCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import
|
|
36
|
+
* const client = new DirectoryServiceDataClient(config);
|
|
37
|
+
* const input = { // AddGroupMemberRequest
|
|
38
|
+
* DirectoryId: "STRING_VALUE", // required
|
|
39
|
+
* GroupName: "STRING_VALUE", // required
|
|
40
|
+
* MemberName: "STRING_VALUE", // required
|
|
41
|
+
* MemberRealm: "STRING_VALUE",
|
|
42
|
+
* ClientToken: "STRING_VALUE",
|
|
43
|
+
* };
|
|
44
|
+
* const command = new AddGroupMemberCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // {};
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param AddGroupMemberCommandInput - {@link AddGroupMemberCommandInput}
|
|
51
|
+
* @returns {@link AddGroupMemberCommandOutput}
|
|
52
|
+
* @see {@link AddGroupMemberCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link AddGroupMemberCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
57
|
+
* <p> You don't have permission to perform the request or access the directory. It can also
|
|
58
|
+
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be
|
|
59
|
+
* outside of your organizational unit (OU). </p>
|
|
60
|
+
* <p> Make sure that you have the authentication and authorization to perform the action.
|
|
61
|
+
* Review the directory information in the request, and make sure that the object isn't outside
|
|
62
|
+
* of your OU. </p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ConflictException} (client fault)
|
|
65
|
+
* <p> This error will occur when you try to create a resource that conflicts with an existing
|
|
66
|
+
* object. It can also occur when adding a member to a group that the member is already
|
|
67
|
+
* in.</p>
|
|
68
|
+
* <p> This error can be caused by a request sent within the 8-hour idempotency window with the
|
|
69
|
+
* same client token but different input parameters. Client tokens should not be re-used across
|
|
70
|
+
* different requests. After 8 hours, any request with the same client token is treated as a new
|
|
71
|
+
* request. </p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link DirectoryUnavailableException} (client fault)
|
|
74
|
+
* <p> The request could not be completed due to a problem in the configuration or current state
|
|
75
|
+
* of the specified directory. </p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link InternalServerException} (server fault)
|
|
78
|
+
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
81
|
+
* <p> The resource couldn't be found. </p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
84
|
+
* <p> The limit on the number of requests per second has been exceeded. </p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ValidationException} (client fault)
|
|
87
|
+
* <p> The request isn't valid. Review the details in the error message to update the invalid
|
|
88
|
+
* parameters or values in your request. </p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link DirectoryServiceDataServiceException}
|
|
91
|
+
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
92
|
+
*
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
export declare class AddGroupMemberCommand extends AddGroupMemberCommand_base {
|
|
96
|
+
/** @internal type navigation helper, not in runtime. */
|
|
97
|
+
protected static __types: {
|
|
98
|
+
api: {
|
|
99
|
+
input: AddGroupMemberRequest;
|
|
100
|
+
output: {};
|
|
101
|
+
};
|
|
102
|
+
sdk: {
|
|
103
|
+
input: AddGroupMemberCommandInput;
|
|
104
|
+
output: AddGroupMemberCommandOutput;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DirectoryServiceDataClient";
|
|
4
|
+
import { CreateGroupRequest, CreateGroupResult } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateGroupCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateGroupCommandInput extends CreateGroupRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateGroupCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateGroupCommandOutput extends CreateGroupResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateGroupCommand_base: {
|
|
25
|
+
new (input: CreateGroupCommandInput): import("@smithy/smithy-client").CommandImpl<CreateGroupCommandInput, CreateGroupCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateGroupCommandInput): import("@smithy/smithy-client").CommandImpl<CreateGroupCommandInput, CreateGroupCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a new group.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { DirectoryServiceDataClient, CreateGroupCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import
|
|
35
|
+
* // const { DirectoryServiceDataClient, CreateGroupCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import
|
|
36
|
+
* const client = new DirectoryServiceDataClient(config);
|
|
37
|
+
* const input = { // CreateGroupRequest
|
|
38
|
+
* DirectoryId: "STRING_VALUE", // required
|
|
39
|
+
* SAMAccountName: "STRING_VALUE", // required
|
|
40
|
+
* GroupType: "Distribution" || "Security",
|
|
41
|
+
* GroupScope: "DomainLocal" || "Global" || "Universal" || "BuiltinLocal",
|
|
42
|
+
* OtherAttributes: { // Attributes
|
|
43
|
+
* "<keys>": { // AttributeValue Union: only one key present
|
|
44
|
+
* S: "STRING_VALUE",
|
|
45
|
+
* N: Number("long"),
|
|
46
|
+
* BOOL: true || false,
|
|
47
|
+
* SS: [ // StringSetAttributeValue
|
|
48
|
+
* "STRING_VALUE",
|
|
49
|
+
* ],
|
|
50
|
+
* },
|
|
51
|
+
* },
|
|
52
|
+
* ClientToken: "STRING_VALUE",
|
|
53
|
+
* };
|
|
54
|
+
* const command = new CreateGroupCommand(input);
|
|
55
|
+
* const response = await client.send(command);
|
|
56
|
+
* // { // CreateGroupResult
|
|
57
|
+
* // DirectoryId: "STRING_VALUE",
|
|
58
|
+
* // SAMAccountName: "STRING_VALUE",
|
|
59
|
+
* // SID: "STRING_VALUE",
|
|
60
|
+
* // };
|
|
61
|
+
*
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @param CreateGroupCommandInput - {@link CreateGroupCommandInput}
|
|
65
|
+
* @returns {@link CreateGroupCommandOutput}
|
|
66
|
+
* @see {@link CreateGroupCommandInput} for command's `input` shape.
|
|
67
|
+
* @see {@link CreateGroupCommandOutput} for command's `response` shape.
|
|
68
|
+
* @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
71
|
+
* <p> You don't have permission to perform the request or access the directory. It can also
|
|
72
|
+
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be
|
|
73
|
+
* outside of your organizational unit (OU). </p>
|
|
74
|
+
* <p> Make sure that you have the authentication and authorization to perform the action.
|
|
75
|
+
* Review the directory information in the request, and make sure that the object isn't outside
|
|
76
|
+
* of your OU. </p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ConflictException} (client fault)
|
|
79
|
+
* <p> This error will occur when you try to create a resource that conflicts with an existing
|
|
80
|
+
* object. It can also occur when adding a member to a group that the member is already
|
|
81
|
+
* in.</p>
|
|
82
|
+
* <p> This error can be caused by a request sent within the 8-hour idempotency window with the
|
|
83
|
+
* same client token but different input parameters. Client tokens should not be re-used across
|
|
84
|
+
* different requests. After 8 hours, any request with the same client token is treated as a new
|
|
85
|
+
* request. </p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link DirectoryUnavailableException} (client fault)
|
|
88
|
+
* <p> The request could not be completed due to a problem in the configuration or current state
|
|
89
|
+
* of the specified directory. </p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link InternalServerException} (server fault)
|
|
92
|
+
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
95
|
+
* <p> The limit on the number of requests per second has been exceeded. </p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link ValidationException} (client fault)
|
|
98
|
+
* <p> The request isn't valid. Review the details in the error message to update the invalid
|
|
99
|
+
* parameters or values in your request. </p>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link DirectoryServiceDataServiceException}
|
|
102
|
+
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
103
|
+
*
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
export declare class CreateGroupCommand extends CreateGroupCommand_base {
|
|
107
|
+
/** @internal type navigation helper, not in runtime. */
|
|
108
|
+
protected static __types: {
|
|
109
|
+
api: {
|
|
110
|
+
input: CreateGroupRequest;
|
|
111
|
+
output: CreateGroupResult;
|
|
112
|
+
};
|
|
113
|
+
sdk: {
|
|
114
|
+
input: CreateGroupCommandInput;
|
|
115
|
+
output: CreateGroupCommandOutput;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DirectoryServiceDataClient";
|
|
4
|
+
import { CreateUserRequest, CreateUserResult } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateUserCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateUserCommandInput extends CreateUserRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateUserCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateUserCommandOutput extends CreateUserResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateUserCommand_base: {
|
|
25
|
+
new (input: CreateUserCommandInput): import("@smithy/smithy-client").CommandImpl<CreateUserCommandInput, CreateUserCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateUserCommandInput): import("@smithy/smithy-client").CommandImpl<CreateUserCommandInput, CreateUserCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a new user.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { DirectoryServiceDataClient, CreateUserCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import
|
|
35
|
+
* // const { DirectoryServiceDataClient, CreateUserCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import
|
|
36
|
+
* const client = new DirectoryServiceDataClient(config);
|
|
37
|
+
* const input = { // CreateUserRequest
|
|
38
|
+
* DirectoryId: "STRING_VALUE", // required
|
|
39
|
+
* SAMAccountName: "STRING_VALUE", // required
|
|
40
|
+
* EmailAddress: "STRING_VALUE",
|
|
41
|
+
* GivenName: "STRING_VALUE",
|
|
42
|
+
* Surname: "STRING_VALUE",
|
|
43
|
+
* OtherAttributes: { // Attributes
|
|
44
|
+
* "<keys>": { // AttributeValue Union: only one key present
|
|
45
|
+
* S: "STRING_VALUE",
|
|
46
|
+
* N: Number("long"),
|
|
47
|
+
* BOOL: true || false,
|
|
48
|
+
* SS: [ // StringSetAttributeValue
|
|
49
|
+
* "STRING_VALUE",
|
|
50
|
+
* ],
|
|
51
|
+
* },
|
|
52
|
+
* },
|
|
53
|
+
* ClientToken: "STRING_VALUE",
|
|
54
|
+
* };
|
|
55
|
+
* const command = new CreateUserCommand(input);
|
|
56
|
+
* const response = await client.send(command);
|
|
57
|
+
* // { // CreateUserResult
|
|
58
|
+
* // DirectoryId: "STRING_VALUE",
|
|
59
|
+
* // SID: "STRING_VALUE",
|
|
60
|
+
* // SAMAccountName: "STRING_VALUE",
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param CreateUserCommandInput - {@link CreateUserCommandInput}
|
|
66
|
+
* @returns {@link CreateUserCommandOutput}
|
|
67
|
+
* @see {@link CreateUserCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link CreateUserCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
72
|
+
* <p> You don't have permission to perform the request or access the directory. It can also
|
|
73
|
+
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be
|
|
74
|
+
* outside of your organizational unit (OU). </p>
|
|
75
|
+
* <p> Make sure that you have the authentication and authorization to perform the action.
|
|
76
|
+
* Review the directory information in the request, and make sure that the object isn't outside
|
|
77
|
+
* of your OU. </p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ConflictException} (client fault)
|
|
80
|
+
* <p> This error will occur when you try to create a resource that conflicts with an existing
|
|
81
|
+
* object. It can also occur when adding a member to a group that the member is already
|
|
82
|
+
* in.</p>
|
|
83
|
+
* <p> This error can be caused by a request sent within the 8-hour idempotency window with the
|
|
84
|
+
* same client token but different input parameters. Client tokens should not be re-used across
|
|
85
|
+
* different requests. After 8 hours, any request with the same client token is treated as a new
|
|
86
|
+
* request. </p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link DirectoryUnavailableException} (client fault)
|
|
89
|
+
* <p> The request could not be completed due to a problem in the configuration or current state
|
|
90
|
+
* of the specified directory. </p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link InternalServerException} (server fault)
|
|
93
|
+
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
96
|
+
* <p> The limit on the number of requests per second has been exceeded. </p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link ValidationException} (client fault)
|
|
99
|
+
* <p> The request isn't valid. Review the details in the error message to update the invalid
|
|
100
|
+
* parameters or values in your request. </p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link DirectoryServiceDataServiceException}
|
|
103
|
+
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
104
|
+
*
|
|
105
|
+
* @public
|
|
106
|
+
*/
|
|
107
|
+
export declare class CreateUserCommand extends CreateUserCommand_base {
|
|
108
|
+
/** @internal type navigation helper, not in runtime. */
|
|
109
|
+
protected static __types: {
|
|
110
|
+
api: {
|
|
111
|
+
input: CreateUserRequest;
|
|
112
|
+
output: CreateUserResult;
|
|
113
|
+
};
|
|
114
|
+
sdk: {
|
|
115
|
+
input: CreateUserCommandInput;
|
|
116
|
+
output: CreateUserCommandOutput;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DirectoryServiceDataClient";
|
|
4
|
+
import { DeleteGroupRequest, DeleteGroupResult } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteGroupCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteGroupCommandInput extends DeleteGroupRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteGroupCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteGroupCommandOutput extends DeleteGroupResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteGroupCommand_base: {
|
|
25
|
+
new (input: DeleteGroupCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteGroupCommandInput, DeleteGroupCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeleteGroupCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteGroupCommandInput, DeleteGroupCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Deletes a group.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { DirectoryServiceDataClient, DeleteGroupCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import
|
|
35
|
+
* // const { DirectoryServiceDataClient, DeleteGroupCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import
|
|
36
|
+
* const client = new DirectoryServiceDataClient(config);
|
|
37
|
+
* const input = { // DeleteGroupRequest
|
|
38
|
+
* DirectoryId: "STRING_VALUE", // required
|
|
39
|
+
* SAMAccountName: "STRING_VALUE", // required
|
|
40
|
+
* ClientToken: "STRING_VALUE",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new DeleteGroupCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // {};
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param DeleteGroupCommandInput - {@link DeleteGroupCommandInput}
|
|
49
|
+
* @returns {@link DeleteGroupCommandOutput}
|
|
50
|
+
* @see {@link DeleteGroupCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link DeleteGroupCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
55
|
+
* <p> You don't have permission to perform the request or access the directory. It can also
|
|
56
|
+
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be
|
|
57
|
+
* outside of your organizational unit (OU). </p>
|
|
58
|
+
* <p> Make sure that you have the authentication and authorization to perform the action.
|
|
59
|
+
* Review the directory information in the request, and make sure that the object isn't outside
|
|
60
|
+
* of your OU. </p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ConflictException} (client fault)
|
|
63
|
+
* <p> This error will occur when you try to create a resource that conflicts with an existing
|
|
64
|
+
* object. It can also occur when adding a member to a group that the member is already
|
|
65
|
+
* in.</p>
|
|
66
|
+
* <p> This error can be caused by a request sent within the 8-hour idempotency window with the
|
|
67
|
+
* same client token but different input parameters. Client tokens should not be re-used across
|
|
68
|
+
* different requests. After 8 hours, any request with the same client token is treated as a new
|
|
69
|
+
* request. </p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link DirectoryUnavailableException} (client fault)
|
|
72
|
+
* <p> The request could not be completed due to a problem in the configuration or current state
|
|
73
|
+
* of the specified directory. </p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InternalServerException} (server fault)
|
|
76
|
+
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
79
|
+
* <p> The resource couldn't be found. </p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
82
|
+
* <p> The limit on the number of requests per second has been exceeded. </p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ValidationException} (client fault)
|
|
85
|
+
* <p> The request isn't valid. Review the details in the error message to update the invalid
|
|
86
|
+
* parameters or values in your request. </p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link DirectoryServiceDataServiceException}
|
|
89
|
+
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
90
|
+
*
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
export declare class DeleteGroupCommand extends DeleteGroupCommand_base {
|
|
94
|
+
/** @internal type navigation helper, not in runtime. */
|
|
95
|
+
protected static __types: {
|
|
96
|
+
api: {
|
|
97
|
+
input: DeleteGroupRequest;
|
|
98
|
+
output: {};
|
|
99
|
+
};
|
|
100
|
+
sdk: {
|
|
101
|
+
input: DeleteGroupCommandInput;
|
|
102
|
+
output: DeleteGroupCommandOutput;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DirectoryServiceDataClient";
|
|
4
|
+
import { DeleteUserRequest, DeleteUserResult } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteUserCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteUserCommandInput extends DeleteUserRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteUserCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteUserCommandOutput extends DeleteUserResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteUserCommand_base: {
|
|
25
|
+
new (input: DeleteUserCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteUserCommandInput, DeleteUserCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeleteUserCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteUserCommandInput, DeleteUserCommandOutput, DirectoryServiceDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Deletes a user.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { DirectoryServiceDataClient, DeleteUserCommand } from "@aws-sdk/client-directory-service-data"; // ES Modules import
|
|
35
|
+
* // const { DirectoryServiceDataClient, DeleteUserCommand } = require("@aws-sdk/client-directory-service-data"); // CommonJS import
|
|
36
|
+
* const client = new DirectoryServiceDataClient(config);
|
|
37
|
+
* const input = { // DeleteUserRequest
|
|
38
|
+
* DirectoryId: "STRING_VALUE", // required
|
|
39
|
+
* SAMAccountName: "STRING_VALUE", // required
|
|
40
|
+
* ClientToken: "STRING_VALUE",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new DeleteUserCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // {};
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param DeleteUserCommandInput - {@link DeleteUserCommandInput}
|
|
49
|
+
* @returns {@link DeleteUserCommandOutput}
|
|
50
|
+
* @see {@link DeleteUserCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link DeleteUserCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link DirectoryServiceDataClientResolvedConfig | config} for DirectoryServiceDataClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
55
|
+
* <p> You don't have permission to perform the request or access the directory. It can also
|
|
56
|
+
* occur when the <code>DirectoryId</code> doesn't exist or the user, member, or group might be
|
|
57
|
+
* outside of your organizational unit (OU). </p>
|
|
58
|
+
* <p> Make sure that you have the authentication and authorization to perform the action.
|
|
59
|
+
* Review the directory information in the request, and make sure that the object isn't outside
|
|
60
|
+
* of your OU. </p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ConflictException} (client fault)
|
|
63
|
+
* <p> This error will occur when you try to create a resource that conflicts with an existing
|
|
64
|
+
* object. It can also occur when adding a member to a group that the member is already
|
|
65
|
+
* in.</p>
|
|
66
|
+
* <p> This error can be caused by a request sent within the 8-hour idempotency window with the
|
|
67
|
+
* same client token but different input parameters. Client tokens should not be re-used across
|
|
68
|
+
* different requests. After 8 hours, any request with the same client token is treated as a new
|
|
69
|
+
* request. </p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link DirectoryUnavailableException} (client fault)
|
|
72
|
+
* <p> The request could not be completed due to a problem in the configuration or current state
|
|
73
|
+
* of the specified directory. </p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InternalServerException} (server fault)
|
|
76
|
+
* <p> The operation didn't succeed because an internal error occurred. Try again later. </p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
79
|
+
* <p> The resource couldn't be found. </p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
82
|
+
* <p> The limit on the number of requests per second has been exceeded. </p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ValidationException} (client fault)
|
|
85
|
+
* <p> The request isn't valid. Review the details in the error message to update the invalid
|
|
86
|
+
* parameters or values in your request. </p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link DirectoryServiceDataServiceException}
|
|
89
|
+
* <p>Base exception class for all service exceptions from DirectoryServiceData service.</p>
|
|
90
|
+
*
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
export declare class DeleteUserCommand extends DeleteUserCommand_base {
|
|
94
|
+
/** @internal type navigation helper, not in runtime. */
|
|
95
|
+
protected static __types: {
|
|
96
|
+
api: {
|
|
97
|
+
input: DeleteUserRequest;
|
|
98
|
+
output: {};
|
|
99
|
+
};
|
|
100
|
+
sdk: {
|
|
101
|
+
input: DeleteUserCommandInput;
|
|
102
|
+
output: DeleteUserCommandOutput;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
}
|