@aws-sdk/client-macie2 3.477.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/DescribeBucketsPaginator.js +2 -24
- package/dist-cjs/pagination/GetUsageStatisticsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAllowListsPaginator.js +2 -24
- package/dist-cjs/pagination/ListClassificationJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListClassificationScopesPaginator.js +2 -23
- package/dist-cjs/pagination/ListCustomDataIdentifiersPaginator.js +2 -24
- package/dist-cjs/pagination/ListFindingsFiltersPaginator.js +2 -24
- package/dist-cjs/pagination/ListFindingsPaginator.js +2 -24
- package/dist-cjs/pagination/ListInvitationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListManagedDataIdentifiersPaginator.js +2 -23
- package/dist-cjs/pagination/ListMembersPaginator.js +2 -24
- package/dist-cjs/pagination/ListOrganizationAdminAccountsPaginator.js +2 -24
- package/dist-cjs/pagination/ListResourceProfileArtifactsPaginator.js +2 -23
- package/dist-cjs/pagination/ListResourceProfileDetectionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSensitivityInspectionTemplatesPaginator.js +2 -24
- package/dist-cjs/pagination/SearchResourcesPaginator.js +2 -24
- package/dist-es/pagination/DescribeBucketsPaginator.js +2 -23
- package/dist-es/pagination/GetUsageStatisticsPaginator.js +2 -23
- package/dist-es/pagination/ListAllowListsPaginator.js +2 -23
- package/dist-es/pagination/ListClassificationJobsPaginator.js +2 -23
- package/dist-es/pagination/ListClassificationScopesPaginator.js +2 -22
- package/dist-es/pagination/ListCustomDataIdentifiersPaginator.js +2 -23
- package/dist-es/pagination/ListFindingsFiltersPaginator.js +2 -23
- package/dist-es/pagination/ListFindingsPaginator.js +2 -23
- package/dist-es/pagination/ListInvitationsPaginator.js +2 -23
- package/dist-es/pagination/ListManagedDataIdentifiersPaginator.js +2 -22
- package/dist-es/pagination/ListMembersPaginator.js +2 -23
- package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +2 -23
- package/dist-es/pagination/ListResourceProfileArtifactsPaginator.js +2 -22
- package/dist-es/pagination/ListResourceProfileDetectionsPaginator.js +2 -23
- package/dist-es/pagination/ListSensitivityInspectionTemplatesPaginator.js +2 -23
- package/dist-es/pagination/SearchResourcesPaginator.js +2 -23
- package/dist-types/pagination/DescribeBucketsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetUsageStatisticsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAllowListsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListClassificationJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListClassificationScopesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCustomDataIdentifiersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFindingsFiltersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFindingsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInvitationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListManagedDataIdentifiersPaginator.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/pagination/ListResourceProfileArtifactsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResourceProfileDetectionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSensitivityInspectionTemplatesPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchResourcesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeBucketsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetUsageStatisticsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAllowListsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListClassificationJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListClassificationScopesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCustomDataIdentifiersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFindingsFiltersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFindingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInvitationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListManagedDataIdentifiersPaginator.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/dist-types/ts3.4/pagination/ListResourceProfileArtifactsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListResourceProfileDetectionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSensitivityInspectionTemplatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchResourcesPaginator.d.ts +3 -3
- package/package.json +5 -5
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeBuckets = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeBucketsCommand_1 = require("../commands/DescribeBucketsCommand");
|
|
5
6
|
const Macie2Client_1 = require("../Macie2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeBucketsCommand_1.DescribeBucketsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeBuckets(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 Macie2Client_1.Macie2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
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.paginateDescribeBuckets = paginateDescribeBuckets;
|
|
7
|
+
exports.paginateDescribeBuckets = (0, core_1.createPaginator)(Macie2Client_1.Macie2Client, DescribeBucketsCommand_1.DescribeBucketsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetUsageStatistics = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetUsageStatisticsCommand_1 = require("../commands/GetUsageStatisticsCommand");
|
|
5
6
|
const Macie2Client_1 = require("../Macie2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetUsageStatisticsCommand_1.GetUsageStatisticsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetUsageStatistics(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 Macie2Client_1.Macie2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
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.paginateGetUsageStatistics = paginateGetUsageStatistics;
|
|
7
|
+
exports.paginateGetUsageStatistics = (0, core_1.createPaginator)(Macie2Client_1.Macie2Client, GetUsageStatisticsCommand_1.GetUsageStatisticsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAllowLists = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAllowListsCommand_1 = require("../commands/ListAllowListsCommand");
|
|
5
6
|
const Macie2Client_1 = require("../Macie2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAllowListsCommand_1.ListAllowListsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAllowLists(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 Macie2Client_1.Macie2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
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.paginateListAllowLists = paginateListAllowLists;
|
|
7
|
+
exports.paginateListAllowLists = (0, core_1.createPaginator)(Macie2Client_1.Macie2Client, ListAllowListsCommand_1.ListAllowListsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListClassificationJobs = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListClassificationJobsCommand_1 = require("../commands/ListClassificationJobsCommand");
|
|
5
6
|
const Macie2Client_1 = require("../Macie2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListClassificationJobsCommand_1.ListClassificationJobsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListClassificationJobs(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 Macie2Client_1.Macie2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
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.paginateListClassificationJobs = paginateListClassificationJobs;
|
|
7
|
+
exports.paginateListClassificationJobs = (0, core_1.createPaginator)(Macie2Client_1.Macie2Client, ListClassificationJobsCommand_1.ListClassificationJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListClassificationScopes = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListClassificationScopesCommand_1 = require("../commands/ListClassificationScopesCommand");
|
|
5
6
|
const Macie2Client_1 = require("../Macie2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListClassificationScopesCommand_1.ListClassificationScopesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListClassificationScopes(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
if (config.client instanceof Macie2Client_1.Macie2Client) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.nextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateListClassificationScopes = paginateListClassificationScopes;
|
|
7
|
+
exports.paginateListClassificationScopes = (0, core_1.createPaginator)(Macie2Client_1.Macie2Client, ListClassificationScopesCommand_1.ListClassificationScopesCommand, "nextToken", "nextToken", "");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListCustomDataIdentifiers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListCustomDataIdentifiersCommand_1 = require("../commands/ListCustomDataIdentifiersCommand");
|
|
5
6
|
const Macie2Client_1 = require("../Macie2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListCustomDataIdentifiersCommand_1.ListCustomDataIdentifiersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListCustomDataIdentifiers(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 Macie2Client_1.Macie2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
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.paginateListCustomDataIdentifiers = paginateListCustomDataIdentifiers;
|
|
7
|
+
exports.paginateListCustomDataIdentifiers = (0, core_1.createPaginator)(Macie2Client_1.Macie2Client, ListCustomDataIdentifiersCommand_1.ListCustomDataIdentifiersCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListFindingsFilters = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListFindingsFiltersCommand_1 = require("../commands/ListFindingsFiltersCommand");
|
|
5
6
|
const Macie2Client_1 = require("../Macie2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListFindingsFiltersCommand_1.ListFindingsFiltersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListFindingsFilters(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 Macie2Client_1.Macie2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
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.paginateListFindingsFilters = paginateListFindingsFilters;
|
|
7
|
+
exports.paginateListFindingsFilters = (0, core_1.createPaginator)(Macie2Client_1.Macie2Client, ListFindingsFiltersCommand_1.ListFindingsFiltersCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListFindings = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListFindingsCommand_1 = require("../commands/ListFindingsCommand");
|
|
5
6
|
const Macie2Client_1 = require("../Macie2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListFindingsCommand_1.ListFindingsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListFindings(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 Macie2Client_1.Macie2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
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.paginateListFindings = paginateListFindings;
|
|
7
|
+
exports.paginateListFindings = (0, core_1.createPaginator)(Macie2Client_1.Macie2Client, ListFindingsCommand_1.ListFindingsCommand, "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 Macie2Client_1 = require("../Macie2Client");
|
|
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 Macie2Client_1.Macie2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
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)(Macie2Client_1.Macie2Client, ListInvitationsCommand_1.ListInvitationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListManagedDataIdentifiers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListManagedDataIdentifiersCommand_1 = require("../commands/ListManagedDataIdentifiersCommand");
|
|
5
6
|
const Macie2Client_1 = require("../Macie2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListManagedDataIdentifiersCommand_1.ListManagedDataIdentifiersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListManagedDataIdentifiers(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
if (config.client instanceof Macie2Client_1.Macie2Client) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.nextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateListManagedDataIdentifiers = paginateListManagedDataIdentifiers;
|
|
7
|
+
exports.paginateListManagedDataIdentifiers = (0, core_1.createPaginator)(Macie2Client_1.Macie2Client, ListManagedDataIdentifiersCommand_1.ListManagedDataIdentifiersCommand, "nextToken", "nextToken", "");
|
|
@@ -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 Macie2Client_1 = require("../Macie2Client");
|
|
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 Macie2Client_1.Macie2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
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)(Macie2Client_1.Macie2Client, 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 Macie2Client_1 = require("../Macie2Client");
|
|
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 Macie2Client_1.Macie2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
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)(Macie2Client_1.Macie2Client, ListOrganizationAdminAccountsCommand_1.ListOrganizationAdminAccountsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListResourceProfileArtifacts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListResourceProfileArtifactsCommand_1 = require("../commands/ListResourceProfileArtifactsCommand");
|
|
5
6
|
const Macie2Client_1 = require("../Macie2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListResourceProfileArtifactsCommand_1.ListResourceProfileArtifactsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListResourceProfileArtifacts(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
if (config.client instanceof Macie2Client_1.Macie2Client) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.nextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateListResourceProfileArtifacts = paginateListResourceProfileArtifacts;
|
|
7
|
+
exports.paginateListResourceProfileArtifacts = (0, core_1.createPaginator)(Macie2Client_1.Macie2Client, ListResourceProfileArtifactsCommand_1.ListResourceProfileArtifactsCommand, "nextToken", "nextToken", "");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListResourceProfileDetections = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListResourceProfileDetectionsCommand_1 = require("../commands/ListResourceProfileDetectionsCommand");
|
|
5
6
|
const Macie2Client_1 = require("../Macie2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListResourceProfileDetectionsCommand_1.ListResourceProfileDetectionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListResourceProfileDetections(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 Macie2Client_1.Macie2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
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.paginateListResourceProfileDetections = paginateListResourceProfileDetections;
|
|
7
|
+
exports.paginateListResourceProfileDetections = (0, core_1.createPaginator)(Macie2Client_1.Macie2Client, ListResourceProfileDetectionsCommand_1.ListResourceProfileDetectionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSensitivityInspectionTemplates = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListSensitivityInspectionTemplatesCommand_1 = require("../commands/ListSensitivityInspectionTemplatesCommand");
|
|
5
6
|
const Macie2Client_1 = require("../Macie2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSensitivityInspectionTemplatesCommand_1.ListSensitivityInspectionTemplatesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSensitivityInspectionTemplates(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 Macie2Client_1.Macie2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
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.paginateListSensitivityInspectionTemplates = paginateListSensitivityInspectionTemplates;
|
|
7
|
+
exports.paginateListSensitivityInspectionTemplates = (0, core_1.createPaginator)(Macie2Client_1.Macie2Client, ListSensitivityInspectionTemplatesCommand_1.ListSensitivityInspectionTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchResources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchResourcesCommand_1 = require("../commands/SearchResourcesCommand");
|
|
5
6
|
const Macie2Client_1 = require("../Macie2Client");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchResourcesCommand_1.SearchResourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchResources(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 Macie2Client_1.Macie2Client) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
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.paginateSearchResources = paginateSearchResources;
|
|
7
|
+
exports.paginateSearchResources = (0, core_1.createPaginator)(Macie2Client_1.Macie2Client, SearchResourcesCommand_1.SearchResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeBucketsCommand, } from "../commands/DescribeBucketsCommand";
|
|
2
3
|
import { Macie2Client } from "../Macie2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeBucketsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeBuckets(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof Macie2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeBuckets = createPaginator(Macie2Client, DescribeBucketsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetUsageStatisticsCommand, } from "../commands/GetUsageStatisticsCommand";
|
|
2
3
|
import { Macie2Client } from "../Macie2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetUsageStatisticsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetUsageStatistics(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof Macie2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetUsageStatistics = createPaginator(Macie2Client, GetUsageStatisticsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAllowListsCommand, } from "../commands/ListAllowListsCommand";
|
|
2
3
|
import { Macie2Client } from "../Macie2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAllowListsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAllowLists(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof Macie2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListAllowLists = createPaginator(Macie2Client, ListAllowListsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListClassificationJobsCommand, } from "../commands/ListClassificationJobsCommand";
|
|
2
3
|
import { Macie2Client } from "../Macie2Client";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListClassificationJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListClassificationJobs(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof Macie2Client) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Macie2 | Macie2Client");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListClassificationJobs = createPaginator(Macie2Client, ListClassificationJobsCommand, "nextToken", "nextToken", "maxResults");
|