@aws-sdk/client-directory-service 3.186.0 → 3.188.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/DirectoryService.js +30 -0
- package/dist-cjs/commands/DescribeUpdateDirectoryCommand.js +36 -0
- package/dist-cjs/commands/UpdateDirectorySetupCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +63 -5
- package/dist-cjs/pagination/DescribeClientAuthenticationSettingsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeDirectoriesPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeLDAPSSettingsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeRegionsPaginator.js +35 -0
- package/dist-cjs/pagination/DescribeSharedDirectoriesPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeSnapshotsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeTrustsPaginator.js +36 -0
- package/dist-cjs/pagination/DescribeUpdateDirectoryPaginator.js +35 -0
- package/dist-cjs/pagination/ListCertificatesPaginator.js +36 -0
- package/dist-cjs/pagination/ListIpRoutesPaginator.js +36 -0
- package/dist-cjs/pagination/ListLogSubscriptionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListSchemaExtensionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +36 -0
- package/dist-cjs/pagination/index.js +13 -0
- package/dist-cjs/protocols/Aws_json1_1.js +217 -3
- package/dist-es/DirectoryService.js +291 -268
- package/dist-es/DirectoryServiceClient.js +22 -28
- package/dist-es/commands/AcceptSharedDirectoryCommand.js +21 -28
- package/dist-es/commands/AddIpRoutesCommand.js +21 -28
- package/dist-es/commands/AddRegionCommand.js +21 -28
- package/dist-es/commands/AddTagsToResourceCommand.js +21 -28
- package/dist-es/commands/CancelSchemaExtensionCommand.js +21 -28
- package/dist-es/commands/ConnectDirectoryCommand.js +21 -28
- package/dist-es/commands/CreateAliasCommand.js +21 -28
- package/dist-es/commands/CreateComputerCommand.js +21 -28
- package/dist-es/commands/CreateConditionalForwarderCommand.js +21 -28
- package/dist-es/commands/CreateDirectoryCommand.js +21 -28
- package/dist-es/commands/CreateLogSubscriptionCommand.js +21 -28
- package/dist-es/commands/CreateMicrosoftADCommand.js +21 -28
- package/dist-es/commands/CreateSnapshotCommand.js +21 -28
- package/dist-es/commands/CreateTrustCommand.js +21 -28
- package/dist-es/commands/DeleteConditionalForwarderCommand.js +21 -28
- package/dist-es/commands/DeleteDirectoryCommand.js +21 -28
- package/dist-es/commands/DeleteLogSubscriptionCommand.js +21 -28
- package/dist-es/commands/DeleteSnapshotCommand.js +21 -28
- package/dist-es/commands/DeleteTrustCommand.js +21 -28
- package/dist-es/commands/DeregisterCertificateCommand.js +21 -28
- package/dist-es/commands/DeregisterEventTopicCommand.js +21 -28
- package/dist-es/commands/DescribeCertificateCommand.js +21 -28
- package/dist-es/commands/DescribeClientAuthenticationSettingsCommand.js +21 -28
- package/dist-es/commands/DescribeConditionalForwardersCommand.js +21 -28
- package/dist-es/commands/DescribeDirectoriesCommand.js +21 -28
- package/dist-es/commands/DescribeDomainControllersCommand.js +21 -28
- package/dist-es/commands/DescribeEventTopicsCommand.js +21 -28
- package/dist-es/commands/DescribeLDAPSSettingsCommand.js +21 -28
- package/dist-es/commands/DescribeRegionsCommand.js +21 -28
- package/dist-es/commands/DescribeSettingsCommand.js +21 -28
- package/dist-es/commands/DescribeSharedDirectoriesCommand.js +21 -28
- package/dist-es/commands/DescribeSnapshotsCommand.js +21 -28
- package/dist-es/commands/DescribeTrustsCommand.js +21 -28
- package/dist-es/commands/DescribeUpdateDirectoryCommand.js +32 -0
- package/dist-es/commands/DisableClientAuthenticationCommand.js +21 -28
- package/dist-es/commands/DisableLDAPSCommand.js +21 -28
- package/dist-es/commands/DisableRadiusCommand.js +21 -28
- package/dist-es/commands/DisableSsoCommand.js +21 -28
- package/dist-es/commands/EnableClientAuthenticationCommand.js +21 -28
- package/dist-es/commands/EnableLDAPSCommand.js +21 -28
- package/dist-es/commands/EnableRadiusCommand.js +21 -28
- package/dist-es/commands/EnableSsoCommand.js +21 -28
- package/dist-es/commands/GetDirectoryLimitsCommand.js +21 -28
- package/dist-es/commands/GetSnapshotLimitsCommand.js +21 -28
- package/dist-es/commands/ListCertificatesCommand.js +21 -28
- package/dist-es/commands/ListIpRoutesCommand.js +21 -28
- package/dist-es/commands/ListLogSubscriptionsCommand.js +21 -28
- package/dist-es/commands/ListSchemaExtensionsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/RegisterCertificateCommand.js +21 -28
- package/dist-es/commands/RegisterEventTopicCommand.js +21 -28
- package/dist-es/commands/RejectSharedDirectoryCommand.js +21 -28
- package/dist-es/commands/RemoveIpRoutesCommand.js +21 -28
- package/dist-es/commands/RemoveRegionCommand.js +21 -28
- package/dist-es/commands/RemoveTagsFromResourceCommand.js +21 -28
- package/dist-es/commands/ResetUserPasswordCommand.js +21 -28
- package/dist-es/commands/RestoreFromSnapshotCommand.js +21 -28
- package/dist-es/commands/ShareDirectoryCommand.js +21 -28
- package/dist-es/commands/StartSchemaExtensionCommand.js +21 -28
- package/dist-es/commands/UnshareDirectoryCommand.js +21 -28
- package/dist-es/commands/UpdateConditionalForwarderCommand.js +21 -28
- package/dist-es/commands/UpdateDirectorySetupCommand.js +32 -0
- package/dist-es/commands/UpdateNumberOfDomainControllersCommand.js +21 -28
- package/dist-es/commands/UpdateRadiusCommand.js +21 -28
- package/dist-es/commands/UpdateSettingsCommand.js +21 -28
- package/dist-es/commands/UpdateTrustCommand.js +21 -28
- package/dist-es/commands/VerifyTrustCommand.js +21 -28
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/DirectoryServiceServiceException.js +5 -10
- package/dist-es/models/models_0.js +1069 -674
- package/dist-es/pagination/DescribeClientAuthenticationSettingsPaginator.js +32 -0
- package/dist-es/pagination/DescribeDirectoriesPaginator.js +32 -0
- package/dist-es/pagination/DescribeDomainControllersPaginator.js +25 -68
- package/dist-es/pagination/DescribeLDAPSSettingsPaginator.js +32 -0
- package/dist-es/pagination/DescribeRegionsPaginator.js +31 -0
- package/dist-es/pagination/DescribeSharedDirectoriesPaginator.js +32 -0
- package/dist-es/pagination/DescribeSnapshotsPaginator.js +32 -0
- package/dist-es/pagination/DescribeTrustsPaginator.js +32 -0
- package/dist-es/pagination/DescribeUpdateDirectoryPaginator.js +31 -0
- package/dist-es/pagination/ListCertificatesPaginator.js +32 -0
- package/dist-es/pagination/ListIpRoutesPaginator.js +32 -0
- package/dist-es/pagination/ListLogSubscriptionsPaginator.js +32 -0
- package/dist-es/pagination/ListSchemaExtensionsPaginator.js +32 -0
- package/dist-es/pagination/ListTagsForResourcePaginator.js +32 -0
- package/dist-es/pagination/index.js +13 -0
- package/dist-es/protocols/Aws_json1_1.js +4917 -6048
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-types/DirectoryService.d.ts +18 -0
- package/dist-types/DirectoryServiceClient.d.ts +4 -2
- package/dist-types/commands/DescribeUpdateDirectoryCommand.d.ts +37 -0
- package/dist-types/commands/UpdateDirectorySetupCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +214 -0
- package/dist-types/pagination/DescribeClientAuthenticationSettingsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeDirectoriesPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeLDAPSSettingsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeRegionsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeSharedDirectoriesPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeSnapshotsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeTrustsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeUpdateDirectoryPaginator.d.ts +4 -0
- package/dist-types/pagination/ListCertificatesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListIpRoutesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListLogSubscriptionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSchemaExtensionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +13 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
- package/dist-types/ts3.4/DirectoryService.d.ts +34 -0
- package/dist-types/ts3.4/DirectoryServiceClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/DescribeUpdateDirectoryCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateDirectorySetupCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +77 -0
- package/dist-types/ts3.4/pagination/DescribeClientAuthenticationSettingsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeDirectoriesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeLDAPSSettingsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeRegionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeSharedDirectoriesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeSnapshotsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeTrustsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeUpdateDirectoryPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCertificatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListIpRoutesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListLogSubscriptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSchemaExtensionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +13 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
- package/package.json +33 -33
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DescribeClientAuthenticationSettingsCommand, } from "../commands/DescribeClientAuthenticationSettingsCommand";
|
|
2
|
+
import { DirectoryService } from "../DirectoryService";
|
|
3
|
+
import { DirectoryServiceClient } from "../DirectoryServiceClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new DescribeClientAuthenticationSettingsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.describeClientAuthenticationSettings(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateDescribeClientAuthenticationSettings(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["Limit"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof DirectoryService) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof DirectoryServiceClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected DirectoryService | DirectoryServiceClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DescribeDirectoriesCommand, } from "../commands/DescribeDirectoriesCommand";
|
|
2
|
+
import { DirectoryService } from "../DirectoryService";
|
|
3
|
+
import { DirectoryServiceClient } from "../DirectoryServiceClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new DescribeDirectoriesCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.describeDirectories(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateDescribeDirectories(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["Limit"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof DirectoryService) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof DirectoryServiceClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected DirectoryService | DirectoryServiceClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { DescribeDomainControllersCommand, } from "../commands/DescribeDomainControllersCommand";
|
|
3
2
|
import { DirectoryService } from "../DirectoryService";
|
|
4
3
|
import { DirectoryServiceClient } from "../DirectoryServiceClient";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
-
args[_i - 2] = arguments[_i];
|
|
9
|
-
}
|
|
10
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
-
return __generator(this, function (_a) {
|
|
12
|
-
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new DescribeDomainControllersCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new DescribeDomainControllersCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
-
args[_i - 2] = arguments[_i];
|
|
23
|
-
}
|
|
24
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
-
return __generator(this, function (_a) {
|
|
26
|
-
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.describeDomainControllers.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.describeDomainControllers(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateDescribeDomainControllers(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateDescribeDomainControllers(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["Limit"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof DirectoryService) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof DirectoryServiceClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected DirectoryService | DirectoryServiceClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
40
|
-
return __generator(this, function (_a) {
|
|
41
|
-
switch (_a.label) {
|
|
42
|
-
case 0:
|
|
43
|
-
token = config.startingToken || undefined;
|
|
44
|
-
hasNext = true;
|
|
45
|
-
_a.label = 1;
|
|
46
|
-
case 1:
|
|
47
|
-
if (!hasNext) return [3, 9];
|
|
48
|
-
input.NextToken = token;
|
|
49
|
-
input["Limit"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof DirectoryService)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof DirectoryServiceClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected DirectoryService | DirectoryServiceClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.NextToken;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DescribeLDAPSSettingsCommand, } from "../commands/DescribeLDAPSSettingsCommand";
|
|
2
|
+
import { DirectoryService } from "../DirectoryService";
|
|
3
|
+
import { DirectoryServiceClient } from "../DirectoryServiceClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new DescribeLDAPSSettingsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.describeLDAPSSettings(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateDescribeLDAPSSettings(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["Limit"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof DirectoryService) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof DirectoryServiceClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected DirectoryService | DirectoryServiceClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DescribeRegionsCommand, } from "../commands/DescribeRegionsCommand";
|
|
2
|
+
import { DirectoryService } from "../DirectoryService";
|
|
3
|
+
import { DirectoryServiceClient } from "../DirectoryServiceClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new DescribeRegionsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.describeRegions(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateDescribeRegions(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
if (config.client instanceof DirectoryService) {
|
|
17
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else if (config.client instanceof DirectoryServiceClient) {
|
|
20
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
throw new Error("Invalid client, expected DirectoryService | DirectoryServiceClient");
|
|
24
|
+
}
|
|
25
|
+
yield page;
|
|
26
|
+
const prevToken = token;
|
|
27
|
+
token = page.NextToken;
|
|
28
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
29
|
+
}
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DescribeSharedDirectoriesCommand, } from "../commands/DescribeSharedDirectoriesCommand";
|
|
2
|
+
import { DirectoryService } from "../DirectoryService";
|
|
3
|
+
import { DirectoryServiceClient } from "../DirectoryServiceClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new DescribeSharedDirectoriesCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.describeSharedDirectories(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateDescribeSharedDirectories(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["Limit"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof DirectoryService) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof DirectoryServiceClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected DirectoryService | DirectoryServiceClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DescribeSnapshotsCommand, } from "../commands/DescribeSnapshotsCommand";
|
|
2
|
+
import { DirectoryService } from "../DirectoryService";
|
|
3
|
+
import { DirectoryServiceClient } from "../DirectoryServiceClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new DescribeSnapshotsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.describeSnapshots(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateDescribeSnapshots(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["Limit"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof DirectoryService) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof DirectoryServiceClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected DirectoryService | DirectoryServiceClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DescribeTrustsCommand, } from "../commands/DescribeTrustsCommand";
|
|
2
|
+
import { DirectoryService } from "../DirectoryService";
|
|
3
|
+
import { DirectoryServiceClient } from "../DirectoryServiceClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new DescribeTrustsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.describeTrusts(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateDescribeTrusts(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["Limit"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof DirectoryService) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof DirectoryServiceClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected DirectoryService | DirectoryServiceClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DescribeUpdateDirectoryCommand, } from "../commands/DescribeUpdateDirectoryCommand";
|
|
2
|
+
import { DirectoryService } from "../DirectoryService";
|
|
3
|
+
import { DirectoryServiceClient } from "../DirectoryServiceClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new DescribeUpdateDirectoryCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.describeUpdateDirectory(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateDescribeUpdateDirectory(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
if (config.client instanceof DirectoryService) {
|
|
17
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else if (config.client instanceof DirectoryServiceClient) {
|
|
20
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
throw new Error("Invalid client, expected DirectoryService | DirectoryServiceClient");
|
|
24
|
+
}
|
|
25
|
+
yield page;
|
|
26
|
+
const prevToken = token;
|
|
27
|
+
token = page.NextToken;
|
|
28
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
29
|
+
}
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListCertificatesCommand, } from "../commands/ListCertificatesCommand";
|
|
2
|
+
import { DirectoryService } from "../DirectoryService";
|
|
3
|
+
import { DirectoryServiceClient } from "../DirectoryServiceClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListCertificatesCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listCertificates(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListCertificates(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["Limit"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof DirectoryService) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof DirectoryServiceClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected DirectoryService | DirectoryServiceClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListIpRoutesCommand, } from "../commands/ListIpRoutesCommand";
|
|
2
|
+
import { DirectoryService } from "../DirectoryService";
|
|
3
|
+
import { DirectoryServiceClient } from "../DirectoryServiceClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListIpRoutesCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listIpRoutes(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListIpRoutes(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["Limit"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof DirectoryService) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof DirectoryServiceClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected DirectoryService | DirectoryServiceClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListLogSubscriptionsCommand, } from "../commands/ListLogSubscriptionsCommand";
|
|
2
|
+
import { DirectoryService } from "../DirectoryService";
|
|
3
|
+
import { DirectoryServiceClient } from "../DirectoryServiceClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListLogSubscriptionsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listLogSubscriptions(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListLogSubscriptions(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["Limit"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof DirectoryService) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof DirectoryServiceClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected DirectoryService | DirectoryServiceClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListSchemaExtensionsCommand, } from "../commands/ListSchemaExtensionsCommand";
|
|
2
|
+
import { DirectoryService } from "../DirectoryService";
|
|
3
|
+
import { DirectoryServiceClient } from "../DirectoryServiceClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListSchemaExtensionsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listSchemaExtensions(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListSchemaExtensions(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["Limit"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof DirectoryService) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof DirectoryServiceClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected DirectoryService | DirectoryServiceClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListTagsForResourceCommand, } from "../commands/ListTagsForResourceCommand";
|
|
2
|
+
import { DirectoryService } from "../DirectoryService";
|
|
3
|
+
import { DirectoryServiceClient } from "../DirectoryServiceClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListTagsForResourceCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listTagsForResource(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListTagsForResource(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["Limit"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof DirectoryService) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof DirectoryServiceClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected DirectoryService | DirectoryServiceClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -1,2 +1,15 @@
|
|
|
1
|
+
export * from "./DescribeClientAuthenticationSettingsPaginator";
|
|
2
|
+
export * from "./DescribeDirectoriesPaginator";
|
|
1
3
|
export * from "./DescribeDomainControllersPaginator";
|
|
4
|
+
export * from "./DescribeLDAPSSettingsPaginator";
|
|
5
|
+
export * from "./DescribeRegionsPaginator";
|
|
6
|
+
export * from "./DescribeSharedDirectoriesPaginator";
|
|
7
|
+
export * from "./DescribeSnapshotsPaginator";
|
|
8
|
+
export * from "./DescribeTrustsPaginator";
|
|
9
|
+
export * from "./DescribeUpdateDirectoryPaginator";
|
|
2
10
|
export * from "./Interfaces";
|
|
11
|
+
export * from "./ListCertificatesPaginator";
|
|
12
|
+
export * from "./ListIpRoutesPaginator";
|
|
13
|
+
export * from "./ListLogSubscriptionsPaginator";
|
|
14
|
+
export * from "./ListSchemaExtensionsPaginator";
|
|
15
|
+
export * from "./ListTagsForResourcePaginator";
|