@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,34 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
6
|
+
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
7
|
+
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
8
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
9
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
11
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
12
|
+
export const getRuntimeConfig = (config) => {
|
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
return {
|
|
17
|
+
...clientSharedValues,
|
|
18
|
+
...config,
|
|
19
|
+
runtime: "browser",
|
|
20
|
+
defaultsMode,
|
|
21
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
22
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
23
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
24
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
26
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
27
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
28
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
29
|
+
sha256: config?.sha256 ?? Sha256,
|
|
30
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
31
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
32
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
5
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
|
+
import { Hash } from "@smithy/hash-node";
|
|
7
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
8
|
+
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
|
+
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
11
|
+
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
12
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
15
|
+
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
16
|
+
export const getRuntimeConfig = (config) => {
|
|
17
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
18
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
19
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
20
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
21
|
+
awsCheckVersion(process.version);
|
|
22
|
+
return {
|
|
23
|
+
...clientSharedValues,
|
|
24
|
+
...config,
|
|
25
|
+
runtime: "node",
|
|
26
|
+
defaultsMode,
|
|
27
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
30
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
31
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
32
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
34
|
+
retryMode: config?.retryMode ??
|
|
35
|
+
loadNodeConfig({
|
|
36
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
37
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
38
|
+
}),
|
|
39
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
40
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
41
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
42
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
|
+
import { parseUrl } from "@smithy/url-parser";
|
|
4
|
+
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
5
|
+
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
6
|
+
import { defaultDirectoryServiceDataHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
7
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
8
|
+
export const getRuntimeConfig = (config) => {
|
|
9
|
+
return {
|
|
10
|
+
apiVersion: "2023-05-31",
|
|
11
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
12
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
13
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
14
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
15
|
+
extensions: config?.extensions ?? [],
|
|
16
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultDirectoryServiceDataHttpAuthSchemeProvider,
|
|
17
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
18
|
+
{
|
|
19
|
+
schemeId: "aws.auth#sigv4",
|
|
20
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
21
|
+
signer: new AwsSdkSigV4Signer(),
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
25
|
+
serviceId: config?.serviceId ?? "Directory Service Data",
|
|
26
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
27
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
28
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
2
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
|
+
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
const asPartial = (t) => t;
|
|
6
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
+
const extensionConfiguration = {
|
|
8
|
+
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
+
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
+
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
+
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
+
};
|
|
13
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
+
return {
|
|
15
|
+
...runtimeConfig,
|
|
16
|
+
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
+
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
+
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
+
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { AddGroupMemberCommandInput, AddGroupMemberCommandOutput } from "./commands/AddGroupMemberCommand";
|
|
3
|
+
import { CreateGroupCommandInput, CreateGroupCommandOutput } from "./commands/CreateGroupCommand";
|
|
4
|
+
import { CreateUserCommandInput, CreateUserCommandOutput } from "./commands/CreateUserCommand";
|
|
5
|
+
import { DeleteGroupCommandInput, DeleteGroupCommandOutput } from "./commands/DeleteGroupCommand";
|
|
6
|
+
import { DeleteUserCommandInput, DeleteUserCommandOutput } from "./commands/DeleteUserCommand";
|
|
7
|
+
import { DescribeGroupCommandInput, DescribeGroupCommandOutput } from "./commands/DescribeGroupCommand";
|
|
8
|
+
import { DescribeUserCommandInput, DescribeUserCommandOutput } from "./commands/DescribeUserCommand";
|
|
9
|
+
import { DisableUserCommandInput, DisableUserCommandOutput } from "./commands/DisableUserCommand";
|
|
10
|
+
import { ListGroupMembersCommandInput, ListGroupMembersCommandOutput } from "./commands/ListGroupMembersCommand";
|
|
11
|
+
import { ListGroupsCommandInput, ListGroupsCommandOutput } from "./commands/ListGroupsCommand";
|
|
12
|
+
import { ListGroupsForMemberCommandInput, ListGroupsForMemberCommandOutput } from "./commands/ListGroupsForMemberCommand";
|
|
13
|
+
import { ListUsersCommandInput, ListUsersCommandOutput } from "./commands/ListUsersCommand";
|
|
14
|
+
import { RemoveGroupMemberCommandInput, RemoveGroupMemberCommandOutput } from "./commands/RemoveGroupMemberCommand";
|
|
15
|
+
import { SearchGroupsCommandInput, SearchGroupsCommandOutput } from "./commands/SearchGroupsCommand";
|
|
16
|
+
import { SearchUsersCommandInput, SearchUsersCommandOutput } from "./commands/SearchUsersCommand";
|
|
17
|
+
import { UpdateGroupCommandInput, UpdateGroupCommandOutput } from "./commands/UpdateGroupCommand";
|
|
18
|
+
import { UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand";
|
|
19
|
+
import { DirectoryServiceDataClient } from "./DirectoryServiceDataClient";
|
|
20
|
+
export interface DirectoryServiceData {
|
|
21
|
+
/**
|
|
22
|
+
* @see {@link AddGroupMemberCommand}
|
|
23
|
+
*/
|
|
24
|
+
addGroupMember(args: AddGroupMemberCommandInput, options?: __HttpHandlerOptions): Promise<AddGroupMemberCommandOutput>;
|
|
25
|
+
addGroupMember(args: AddGroupMemberCommandInput, cb: (err: any, data?: AddGroupMemberCommandOutput) => void): void;
|
|
26
|
+
addGroupMember(args: AddGroupMemberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AddGroupMemberCommandOutput) => void): void;
|
|
27
|
+
/**
|
|
28
|
+
* @see {@link CreateGroupCommand}
|
|
29
|
+
*/
|
|
30
|
+
createGroup(args: CreateGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreateGroupCommandOutput>;
|
|
31
|
+
createGroup(args: CreateGroupCommandInput, cb: (err: any, data?: CreateGroupCommandOutput) => void): void;
|
|
32
|
+
createGroup(args: CreateGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGroupCommandOutput) => void): void;
|
|
33
|
+
/**
|
|
34
|
+
* @see {@link CreateUserCommand}
|
|
35
|
+
*/
|
|
36
|
+
createUser(args: CreateUserCommandInput, options?: __HttpHandlerOptions): Promise<CreateUserCommandOutput>;
|
|
37
|
+
createUser(args: CreateUserCommandInput, cb: (err: any, data?: CreateUserCommandOutput) => void): void;
|
|
38
|
+
createUser(args: CreateUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateUserCommandOutput) => void): void;
|
|
39
|
+
/**
|
|
40
|
+
* @see {@link DeleteGroupCommand}
|
|
41
|
+
*/
|
|
42
|
+
deleteGroup(args: DeleteGroupCommandInput, options?: __HttpHandlerOptions): Promise<DeleteGroupCommandOutput>;
|
|
43
|
+
deleteGroup(args: DeleteGroupCommandInput, cb: (err: any, data?: DeleteGroupCommandOutput) => void): void;
|
|
44
|
+
deleteGroup(args: DeleteGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteGroupCommandOutput) => void): void;
|
|
45
|
+
/**
|
|
46
|
+
* @see {@link DeleteUserCommand}
|
|
47
|
+
*/
|
|
48
|
+
deleteUser(args: DeleteUserCommandInput, options?: __HttpHandlerOptions): Promise<DeleteUserCommandOutput>;
|
|
49
|
+
deleteUser(args: DeleteUserCommandInput, cb: (err: any, data?: DeleteUserCommandOutput) => void): void;
|
|
50
|
+
deleteUser(args: DeleteUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteUserCommandOutput) => void): void;
|
|
51
|
+
/**
|
|
52
|
+
* @see {@link DescribeGroupCommand}
|
|
53
|
+
*/
|
|
54
|
+
describeGroup(args: DescribeGroupCommandInput, options?: __HttpHandlerOptions): Promise<DescribeGroupCommandOutput>;
|
|
55
|
+
describeGroup(args: DescribeGroupCommandInput, cb: (err: any, data?: DescribeGroupCommandOutput) => void): void;
|
|
56
|
+
describeGroup(args: DescribeGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeGroupCommandOutput) => void): void;
|
|
57
|
+
/**
|
|
58
|
+
* @see {@link DescribeUserCommand}
|
|
59
|
+
*/
|
|
60
|
+
describeUser(args: DescribeUserCommandInput, options?: __HttpHandlerOptions): Promise<DescribeUserCommandOutput>;
|
|
61
|
+
describeUser(args: DescribeUserCommandInput, cb: (err: any, data?: DescribeUserCommandOutput) => void): void;
|
|
62
|
+
describeUser(args: DescribeUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeUserCommandOutput) => void): void;
|
|
63
|
+
/**
|
|
64
|
+
* @see {@link DisableUserCommand}
|
|
65
|
+
*/
|
|
66
|
+
disableUser(args: DisableUserCommandInput, options?: __HttpHandlerOptions): Promise<DisableUserCommandOutput>;
|
|
67
|
+
disableUser(args: DisableUserCommandInput, cb: (err: any, data?: DisableUserCommandOutput) => void): void;
|
|
68
|
+
disableUser(args: DisableUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableUserCommandOutput) => void): void;
|
|
69
|
+
/**
|
|
70
|
+
* @see {@link ListGroupMembersCommand}
|
|
71
|
+
*/
|
|
72
|
+
listGroupMembers(args: ListGroupMembersCommandInput, options?: __HttpHandlerOptions): Promise<ListGroupMembersCommandOutput>;
|
|
73
|
+
listGroupMembers(args: ListGroupMembersCommandInput, cb: (err: any, data?: ListGroupMembersCommandOutput) => void): void;
|
|
74
|
+
listGroupMembers(args: ListGroupMembersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListGroupMembersCommandOutput) => void): void;
|
|
75
|
+
/**
|
|
76
|
+
* @see {@link ListGroupsCommand}
|
|
77
|
+
*/
|
|
78
|
+
listGroups(args: ListGroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListGroupsCommandOutput>;
|
|
79
|
+
listGroups(args: ListGroupsCommandInput, cb: (err: any, data?: ListGroupsCommandOutput) => void): void;
|
|
80
|
+
listGroups(args: ListGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListGroupsCommandOutput) => void): void;
|
|
81
|
+
/**
|
|
82
|
+
* @see {@link ListGroupsForMemberCommand}
|
|
83
|
+
*/
|
|
84
|
+
listGroupsForMember(args: ListGroupsForMemberCommandInput, options?: __HttpHandlerOptions): Promise<ListGroupsForMemberCommandOutput>;
|
|
85
|
+
listGroupsForMember(args: ListGroupsForMemberCommandInput, cb: (err: any, data?: ListGroupsForMemberCommandOutput) => void): void;
|
|
86
|
+
listGroupsForMember(args: ListGroupsForMemberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListGroupsForMemberCommandOutput) => void): void;
|
|
87
|
+
/**
|
|
88
|
+
* @see {@link ListUsersCommand}
|
|
89
|
+
*/
|
|
90
|
+
listUsers(args: ListUsersCommandInput, options?: __HttpHandlerOptions): Promise<ListUsersCommandOutput>;
|
|
91
|
+
listUsers(args: ListUsersCommandInput, cb: (err: any, data?: ListUsersCommandOutput) => void): void;
|
|
92
|
+
listUsers(args: ListUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListUsersCommandOutput) => void): void;
|
|
93
|
+
/**
|
|
94
|
+
* @see {@link RemoveGroupMemberCommand}
|
|
95
|
+
*/
|
|
96
|
+
removeGroupMember(args: RemoveGroupMemberCommandInput, options?: __HttpHandlerOptions): Promise<RemoveGroupMemberCommandOutput>;
|
|
97
|
+
removeGroupMember(args: RemoveGroupMemberCommandInput, cb: (err: any, data?: RemoveGroupMemberCommandOutput) => void): void;
|
|
98
|
+
removeGroupMember(args: RemoveGroupMemberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemoveGroupMemberCommandOutput) => void): void;
|
|
99
|
+
/**
|
|
100
|
+
* @see {@link SearchGroupsCommand}
|
|
101
|
+
*/
|
|
102
|
+
searchGroups(args: SearchGroupsCommandInput, options?: __HttpHandlerOptions): Promise<SearchGroupsCommandOutput>;
|
|
103
|
+
searchGroups(args: SearchGroupsCommandInput, cb: (err: any, data?: SearchGroupsCommandOutput) => void): void;
|
|
104
|
+
searchGroups(args: SearchGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchGroupsCommandOutput) => void): void;
|
|
105
|
+
/**
|
|
106
|
+
* @see {@link SearchUsersCommand}
|
|
107
|
+
*/
|
|
108
|
+
searchUsers(args: SearchUsersCommandInput, options?: __HttpHandlerOptions): Promise<SearchUsersCommandOutput>;
|
|
109
|
+
searchUsers(args: SearchUsersCommandInput, cb: (err: any, data?: SearchUsersCommandOutput) => void): void;
|
|
110
|
+
searchUsers(args: SearchUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchUsersCommandOutput) => void): void;
|
|
111
|
+
/**
|
|
112
|
+
* @see {@link UpdateGroupCommand}
|
|
113
|
+
*/
|
|
114
|
+
updateGroup(args: UpdateGroupCommandInput, options?: __HttpHandlerOptions): Promise<UpdateGroupCommandOutput>;
|
|
115
|
+
updateGroup(args: UpdateGroupCommandInput, cb: (err: any, data?: UpdateGroupCommandOutput) => void): void;
|
|
116
|
+
updateGroup(args: UpdateGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateGroupCommandOutput) => void): void;
|
|
117
|
+
/**
|
|
118
|
+
* @see {@link UpdateUserCommand}
|
|
119
|
+
*/
|
|
120
|
+
updateUser(args: UpdateUserCommandInput, options?: __HttpHandlerOptions): Promise<UpdateUserCommandOutput>;
|
|
121
|
+
updateUser(args: UpdateUserCommandInput, cb: (err: any, data?: UpdateUserCommandOutput) => void): void;
|
|
122
|
+
updateUser(args: UpdateUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateUserCommandOutput) => void): void;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* <p> Amazon Web Services Directory Service Data is an extension of Directory Service. This API reference provides detailed information
|
|
126
|
+
* about Directory Service Data operations and object types. </p>
|
|
127
|
+
* <p> With Directory Service Data, you can create, read, update, and delete users, groups, and memberships from
|
|
128
|
+
* your Managed Microsoft AD without additional costs and without deploying dedicated management
|
|
129
|
+
* instances. You can also perform built-in object management tasks across directories without
|
|
130
|
+
* direct network connectivity, which simplifies provisioning and access management to achieve
|
|
131
|
+
* fully automated deployments. Directory Service Data supports user and group write operations, such as
|
|
132
|
+
* <code>CreateUser</code> and <code>CreateGroup</code>, within the organizational unit (OU) of
|
|
133
|
+
* your Managed Microsoft AD. Directory Service Data supports read operations, such as <code>ListUsers</code> and
|
|
134
|
+
* <code>ListGroups</code>, on all users, groups, and group memberships within your
|
|
135
|
+
* Managed Microsoft AD and across trusted realms. Directory Service Data supports adding and removing group members in
|
|
136
|
+
* your OU and the Amazon Web Services Delegated Groups OU, so you can grant and deny access to specific roles
|
|
137
|
+
* and permissions. For more information, see <a href="https://docs.aws.amazon.com/directoryservice/latest/admin-guide/ms_ad_manage_users_groups.html">Manage users and
|
|
138
|
+
* groups</a> in the <i>Directory Service Administration Guide</i>. </p>
|
|
139
|
+
* <note>
|
|
140
|
+
* <p> Directory management operations and configuration changes made against the Directory Service
|
|
141
|
+
* API will also reflect in Directory Service Data API with eventual consistency. You can expect a short delay
|
|
142
|
+
* between management changes, such as adding a new directory trust and calling the Directory Service Data API
|
|
143
|
+
* for the newly created trusted realm. </p>
|
|
144
|
+
* </note>
|
|
145
|
+
* <p> Directory Service Data connects to your Managed Microsoft AD domain controllers and performs operations on
|
|
146
|
+
* underlying directory objects. When you create your Managed Microsoft AD, you choose subnets for domain
|
|
147
|
+
* controllers that Directory Service creates on your behalf. If a domain controller is unavailable, Directory Service Data
|
|
148
|
+
* uses an available domain controller. As a result, you might notice eventual consistency while
|
|
149
|
+
* objects replicate from one domain controller to another domain controller. For more
|
|
150
|
+
* information, see <a href="https://docs.aws.amazon.com/directoryservice/latest/admin-guide/ms_ad_getting_started_what_gets_created.html">What
|
|
151
|
+
* gets created</a> in the <i>Directory Service Administration Guide</i>.
|
|
152
|
+
* Directory limits vary by Managed Microsoft AD edition: </p>
|
|
153
|
+
* <ul>
|
|
154
|
+
* <li>
|
|
155
|
+
* <p>
|
|
156
|
+
* <b>Standard edition</b> – Supports 8 transactions per
|
|
157
|
+
* second (TPS) for read operations and 4 TPS for write operations per directory. There's a
|
|
158
|
+
* concurrency limit of 10 concurrent requests. </p>
|
|
159
|
+
* </li>
|
|
160
|
+
* <li>
|
|
161
|
+
* <p>
|
|
162
|
+
* <b>Enterprise edition</b> – Supports 16 transactions per
|
|
163
|
+
* second (TPS) for read operations and 8 TPS for write operations per directory. There's a
|
|
164
|
+
* concurrency limit of 10 concurrent requests.</p>
|
|
165
|
+
* </li>
|
|
166
|
+
* <li>
|
|
167
|
+
* <p>
|
|
168
|
+
* <b>Amazon Web Services Account</b> - Supports a total of 100 TPS for
|
|
169
|
+
* Directory Service Data operations across all directories.</p>
|
|
170
|
+
* </li>
|
|
171
|
+
* </ul>
|
|
172
|
+
* <p> Directory Service Data only supports the Managed Microsoft AD directory type and is only available in the primary
|
|
173
|
+
* Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/directoryservice/latest/admin-guide/directory_microsoft_ad.html">Managed Microsoft AD</a>
|
|
174
|
+
* and <a href="https://docs.aws.amazon.com/directoryservice/latest/admin-guide/multi-region-global-primary-additional.html">Primary vs additional Regions</a> in the <i>Directory Service Administration
|
|
175
|
+
* Guide</i>. </p>
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
export declare class DirectoryServiceData extends DirectoryServiceDataClient implements DirectoryServiceData {
|
|
179
|
+
}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
3
|
+
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
4
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
5
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
|
+
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
|
+
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
|
+
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
|
+
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import { AddGroupMemberCommandInput, AddGroupMemberCommandOutput } from "./commands/AddGroupMemberCommand";
|
|
11
|
+
import { CreateGroupCommandInput, CreateGroupCommandOutput } from "./commands/CreateGroupCommand";
|
|
12
|
+
import { CreateUserCommandInput, CreateUserCommandOutput } from "./commands/CreateUserCommand";
|
|
13
|
+
import { DeleteGroupCommandInput, DeleteGroupCommandOutput } from "./commands/DeleteGroupCommand";
|
|
14
|
+
import { DeleteUserCommandInput, DeleteUserCommandOutput } from "./commands/DeleteUserCommand";
|
|
15
|
+
import { DescribeGroupCommandInput, DescribeGroupCommandOutput } from "./commands/DescribeGroupCommand";
|
|
16
|
+
import { DescribeUserCommandInput, DescribeUserCommandOutput } from "./commands/DescribeUserCommand";
|
|
17
|
+
import { DisableUserCommandInput, DisableUserCommandOutput } from "./commands/DisableUserCommand";
|
|
18
|
+
import { ListGroupMembersCommandInput, ListGroupMembersCommandOutput } from "./commands/ListGroupMembersCommand";
|
|
19
|
+
import { ListGroupsCommandInput, ListGroupsCommandOutput } from "./commands/ListGroupsCommand";
|
|
20
|
+
import { ListGroupsForMemberCommandInput, ListGroupsForMemberCommandOutput } from "./commands/ListGroupsForMemberCommand";
|
|
21
|
+
import { ListUsersCommandInput, ListUsersCommandOutput } from "./commands/ListUsersCommand";
|
|
22
|
+
import { RemoveGroupMemberCommandInput, RemoveGroupMemberCommandOutput } from "./commands/RemoveGroupMemberCommand";
|
|
23
|
+
import { SearchGroupsCommandInput, SearchGroupsCommandOutput } from "./commands/SearchGroupsCommand";
|
|
24
|
+
import { SearchUsersCommandInput, SearchUsersCommandOutput } from "./commands/SearchUsersCommand";
|
|
25
|
+
import { UpdateGroupCommandInput, UpdateGroupCommandOutput } from "./commands/UpdateGroupCommand";
|
|
26
|
+
import { UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand";
|
|
27
|
+
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
28
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
29
|
+
export { __Client };
|
|
30
|
+
/**
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export type ServiceInputTypes = AddGroupMemberCommandInput | CreateGroupCommandInput | CreateUserCommandInput | DeleteGroupCommandInput | DeleteUserCommandInput | DescribeGroupCommandInput | DescribeUserCommandInput | DisableUserCommandInput | ListGroupMembersCommandInput | ListGroupsCommandInput | ListGroupsForMemberCommandInput | ListUsersCommandInput | RemoveGroupMemberCommandInput | SearchGroupsCommandInput | SearchUsersCommandInput | UpdateGroupCommandInput | UpdateUserCommandInput;
|
|
34
|
+
/**
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
export type ServiceOutputTypes = AddGroupMemberCommandOutput | CreateGroupCommandOutput | CreateUserCommandOutput | DeleteGroupCommandOutput | DeleteUserCommandOutput | DescribeGroupCommandOutput | DescribeUserCommandOutput | DisableUserCommandOutput | ListGroupMembersCommandOutput | ListGroupsCommandOutput | ListGroupsForMemberCommandOutput | ListUsersCommandOutput | RemoveGroupMemberCommandOutput | SearchGroupsCommandOutput | SearchUsersCommandOutput | UpdateGroupCommandOutput | UpdateUserCommandOutput;
|
|
38
|
+
/**
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
42
|
+
/**
|
|
43
|
+
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
|
|
44
|
+
*/
|
|
45
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
46
|
+
/**
|
|
47
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
48
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
52
|
+
/**
|
|
53
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
urlParser?: __UrlParser;
|
|
57
|
+
/**
|
|
58
|
+
* A function that can calculate the length of a request body.
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
62
|
+
/**
|
|
63
|
+
* A function that converts a stream into an array of bytes.
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
streamCollector?: __StreamCollector;
|
|
67
|
+
/**
|
|
68
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
base64Decoder?: __Decoder;
|
|
72
|
+
/**
|
|
73
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
base64Encoder?: __Encoder;
|
|
77
|
+
/**
|
|
78
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
utf8Decoder?: __Decoder;
|
|
82
|
+
/**
|
|
83
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
utf8Encoder?: __Encoder;
|
|
87
|
+
/**
|
|
88
|
+
* The runtime environment.
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
runtime?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
94
|
+
* trait of an operation.
|
|
95
|
+
*/
|
|
96
|
+
disableHostPrefix?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Unique service identifier.
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
serviceId?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
104
|
+
*/
|
|
105
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
106
|
+
/**
|
|
107
|
+
* Enables FIPS compatible endpoints.
|
|
108
|
+
*/
|
|
109
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
110
|
+
/**
|
|
111
|
+
* The AWS region to which this client will send requests
|
|
112
|
+
*/
|
|
113
|
+
region?: string | __Provider<string>;
|
|
114
|
+
/**
|
|
115
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
116
|
+
* @internal
|
|
117
|
+
*/
|
|
118
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
119
|
+
/**
|
|
120
|
+
* Default credentials provider; Not available in browser runtime.
|
|
121
|
+
* @deprecated
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
124
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
125
|
+
/**
|
|
126
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
127
|
+
*/
|
|
128
|
+
maxAttempts?: number | __Provider<number>;
|
|
129
|
+
/**
|
|
130
|
+
* Specifies which retry algorithm to use.
|
|
131
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
132
|
+
*
|
|
133
|
+
*/
|
|
134
|
+
retryMode?: string | __Provider<string>;
|
|
135
|
+
/**
|
|
136
|
+
* Optional logger for logging debug/info/warn/error.
|
|
137
|
+
*/
|
|
138
|
+
logger?: __Logger;
|
|
139
|
+
/**
|
|
140
|
+
* Optional extensions
|
|
141
|
+
*/
|
|
142
|
+
extensions?: RuntimeExtension[];
|
|
143
|
+
/**
|
|
144
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
145
|
+
*/
|
|
146
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* @public
|
|
150
|
+
*/
|
|
151
|
+
export type DirectoryServiceDataClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
152
|
+
/**
|
|
153
|
+
* @public
|
|
154
|
+
*
|
|
155
|
+
* The configuration interface of DirectoryServiceDataClient class constructor that set the region, credentials and other options.
|
|
156
|
+
*/
|
|
157
|
+
export interface DirectoryServiceDataClientConfig extends DirectoryServiceDataClientConfigType {
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* @public
|
|
161
|
+
*/
|
|
162
|
+
export type DirectoryServiceDataClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
163
|
+
/**
|
|
164
|
+
* @public
|
|
165
|
+
*
|
|
166
|
+
* The resolved configuration interface of DirectoryServiceDataClient class. This is resolved and normalized from the {@link DirectoryServiceDataClientConfig | constructor configuration interface}.
|
|
167
|
+
*/
|
|
168
|
+
export interface DirectoryServiceDataClientResolvedConfig extends DirectoryServiceDataClientResolvedConfigType {
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* <p> Amazon Web Services Directory Service Data is an extension of Directory Service. This API reference provides detailed information
|
|
172
|
+
* about Directory Service Data operations and object types. </p>
|
|
173
|
+
* <p> With Directory Service Data, you can create, read, update, and delete users, groups, and memberships from
|
|
174
|
+
* your Managed Microsoft AD without additional costs and without deploying dedicated management
|
|
175
|
+
* instances. You can also perform built-in object management tasks across directories without
|
|
176
|
+
* direct network connectivity, which simplifies provisioning and access management to achieve
|
|
177
|
+
* fully automated deployments. Directory Service Data supports user and group write operations, such as
|
|
178
|
+
* <code>CreateUser</code> and <code>CreateGroup</code>, within the organizational unit (OU) of
|
|
179
|
+
* your Managed Microsoft AD. Directory Service Data supports read operations, such as <code>ListUsers</code> and
|
|
180
|
+
* <code>ListGroups</code>, on all users, groups, and group memberships within your
|
|
181
|
+
* Managed Microsoft AD and across trusted realms. Directory Service Data supports adding and removing group members in
|
|
182
|
+
* your OU and the Amazon Web Services Delegated Groups OU, so you can grant and deny access to specific roles
|
|
183
|
+
* and permissions. For more information, see <a href="https://docs.aws.amazon.com/directoryservice/latest/admin-guide/ms_ad_manage_users_groups.html">Manage users and
|
|
184
|
+
* groups</a> in the <i>Directory Service Administration Guide</i>. </p>
|
|
185
|
+
* <note>
|
|
186
|
+
* <p> Directory management operations and configuration changes made against the Directory Service
|
|
187
|
+
* API will also reflect in Directory Service Data API with eventual consistency. You can expect a short delay
|
|
188
|
+
* between management changes, such as adding a new directory trust and calling the Directory Service Data API
|
|
189
|
+
* for the newly created trusted realm. </p>
|
|
190
|
+
* </note>
|
|
191
|
+
* <p> Directory Service Data connects to your Managed Microsoft AD domain controllers and performs operations on
|
|
192
|
+
* underlying directory objects. When you create your Managed Microsoft AD, you choose subnets for domain
|
|
193
|
+
* controllers that Directory Service creates on your behalf. If a domain controller is unavailable, Directory Service Data
|
|
194
|
+
* uses an available domain controller. As a result, you might notice eventual consistency while
|
|
195
|
+
* objects replicate from one domain controller to another domain controller. For more
|
|
196
|
+
* information, see <a href="https://docs.aws.amazon.com/directoryservice/latest/admin-guide/ms_ad_getting_started_what_gets_created.html">What
|
|
197
|
+
* gets created</a> in the <i>Directory Service Administration Guide</i>.
|
|
198
|
+
* Directory limits vary by Managed Microsoft AD edition: </p>
|
|
199
|
+
* <ul>
|
|
200
|
+
* <li>
|
|
201
|
+
* <p>
|
|
202
|
+
* <b>Standard edition</b> – Supports 8 transactions per
|
|
203
|
+
* second (TPS) for read operations and 4 TPS for write operations per directory. There's a
|
|
204
|
+
* concurrency limit of 10 concurrent requests. </p>
|
|
205
|
+
* </li>
|
|
206
|
+
* <li>
|
|
207
|
+
* <p>
|
|
208
|
+
* <b>Enterprise edition</b> – Supports 16 transactions per
|
|
209
|
+
* second (TPS) for read operations and 8 TPS for write operations per directory. There's a
|
|
210
|
+
* concurrency limit of 10 concurrent requests.</p>
|
|
211
|
+
* </li>
|
|
212
|
+
* <li>
|
|
213
|
+
* <p>
|
|
214
|
+
* <b>Amazon Web Services Account</b> - Supports a total of 100 TPS for
|
|
215
|
+
* Directory Service Data operations across all directories.</p>
|
|
216
|
+
* </li>
|
|
217
|
+
* </ul>
|
|
218
|
+
* <p> Directory Service Data only supports the Managed Microsoft AD directory type and is only available in the primary
|
|
219
|
+
* Amazon Web Services Region. For more information, see <a href="https://docs.aws.amazon.com/directoryservice/latest/admin-guide/directory_microsoft_ad.html">Managed Microsoft AD</a>
|
|
220
|
+
* and <a href="https://docs.aws.amazon.com/directoryservice/latest/admin-guide/multi-region-global-primary-additional.html">Primary vs additional Regions</a> in the <i>Directory Service Administration
|
|
221
|
+
* Guide</i>. </p>
|
|
222
|
+
* @public
|
|
223
|
+
*/
|
|
224
|
+
export declare class DirectoryServiceDataClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, DirectoryServiceDataClientResolvedConfig> {
|
|
225
|
+
/**
|
|
226
|
+
* The resolved configuration of DirectoryServiceDataClient class. This is resolved and normalized from the {@link DirectoryServiceDataClientConfig | constructor configuration interface}.
|
|
227
|
+
*/
|
|
228
|
+
readonly config: DirectoryServiceDataClientResolvedConfig;
|
|
229
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<DirectoryServiceDataClientConfig>);
|
|
230
|
+
/**
|
|
231
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
232
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
233
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
234
|
+
*/
|
|
235
|
+
destroy(): void;
|
|
236
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import { DirectoryServiceDataHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: DirectoryServiceDataHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): DirectoryServiceDataHttpAuthSchemeProvider;
|
|
11
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
12
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
19
|
+
httpAuthSchemeProvider: DirectoryServiceDataHttpAuthSchemeProvider;
|
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|