@aws-sdk/client-detective 3.476.0 → 3.478.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/dist-cjs/pagination/ListDatasourcePackagesPaginator.js +2 -24
- package/dist-cjs/pagination/ListGraphsPaginator.js +2 -24
- package/dist-cjs/pagination/ListInvitationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListMembersPaginator.js +2 -24
- package/dist-cjs/pagination/ListOrganizationAdminAccountsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +124 -326
- package/dist-es/pagination/ListDatasourcePackagesPaginator.js +2 -23
- package/dist-es/pagination/ListGraphsPaginator.js +2 -23
- package/dist-es/pagination/ListInvitationsPaginator.js +2 -23
- package/dist-es/pagination/ListMembersPaginator.js +2 -23
- package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +125 -327
- package/dist-types/pagination/ListDatasourcePackagesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGraphsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInvitationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMembersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOrganizationAdminAccountsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListDatasourcePackagesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGraphsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInvitationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMembersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOrganizationAdminAccountsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDatasourcePackages = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDatasourcePackagesCommand_1 = require("../commands/ListDatasourcePackagesCommand");
|
|
5
6
|
const DetectiveClient_1 = require("../DetectiveClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDatasourcePackagesCommand_1.ListDatasourcePackagesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDatasourcePackages(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof DetectiveClient_1.DetectiveClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Detective | DetectiveClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListDatasourcePackages = paginateListDatasourcePackages;
|
|
7
|
+
exports.paginateListDatasourcePackages = (0, core_1.createPaginator)(DetectiveClient_1.DetectiveClient, ListDatasourcePackagesCommand_1.ListDatasourcePackagesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListGraphs = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListGraphsCommand_1 = require("../commands/ListGraphsCommand");
|
|
5
6
|
const DetectiveClient_1 = require("../DetectiveClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListGraphsCommand_1.ListGraphsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListGraphs(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof DetectiveClient_1.DetectiveClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Detective | DetectiveClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListGraphs = paginateListGraphs;
|
|
7
|
+
exports.paginateListGraphs = (0, core_1.createPaginator)(DetectiveClient_1.DetectiveClient, ListGraphsCommand_1.ListGraphsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListInvitations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListInvitationsCommand_1 = require("../commands/ListInvitationsCommand");
|
|
5
6
|
const DetectiveClient_1 = require("../DetectiveClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListInvitationsCommand_1.ListInvitationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListInvitations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof DetectiveClient_1.DetectiveClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Detective | DetectiveClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListInvitations = paginateListInvitations;
|
|
7
|
+
exports.paginateListInvitations = (0, core_1.createPaginator)(DetectiveClient_1.DetectiveClient, ListInvitationsCommand_1.ListInvitationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListMembers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListMembersCommand_1 = require("../commands/ListMembersCommand");
|
|
5
6
|
const DetectiveClient_1 = require("../DetectiveClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListMembersCommand_1.ListMembersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListMembers(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof DetectiveClient_1.DetectiveClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Detective | DetectiveClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListMembers = paginateListMembers;
|
|
7
|
+
exports.paginateListMembers = (0, core_1.createPaginator)(DetectiveClient_1.DetectiveClient, ListMembersCommand_1.ListMembersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListOrganizationAdminAccounts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListOrganizationAdminAccountsCommand_1 = require("../commands/ListOrganizationAdminAccountsCommand");
|
|
5
6
|
const DetectiveClient_1 = require("../DetectiveClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListOrganizationAdminAccountsCommand_1.ListOrganizationAdminAccountsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListOrganizationAdminAccounts(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof DetectiveClient_1.DetectiveClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Detective | DetectiveClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListOrganizationAdminAccounts = paginateListOrganizationAdminAccounts;
|
|
7
|
+
exports.paginateListOrganizationAdminAccounts = (0, core_1.createPaginator)(DetectiveClient_1.DetectiveClient, ListOrganizationAdminAccountsCommand_1.ListOrganizationAdminAccountsCommand, "NextToken", "NextToken", "MaxResults");
|