@aws-sdk/client-auditmanager 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/GetChangeLogsPaginator.js +2 -24
- package/dist-cjs/pagination/GetDelegationsPaginator.js +2 -24
- package/dist-cjs/pagination/GetEvidenceByEvidenceFolderPaginator.js +2 -24
- package/dist-cjs/pagination/GetEvidenceFoldersByAssessmentControlPaginator.js +2 -24
- package/dist-cjs/pagination/GetEvidenceFoldersByAssessmentPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssessmentControlInsightsByControlDomainPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssessmentFrameworkShareRequestsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssessmentFrameworksPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssessmentReportsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssessmentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListControlDomainInsightsByAssessmentPaginator.js +2 -24
- package/dist-cjs/pagination/ListControlDomainInsightsPaginator.js +2 -24
- package/dist-cjs/pagination/ListControlInsightsByControlDomainPaginator.js +2 -24
- package/dist-cjs/pagination/ListControlsPaginator.js +2 -24
- package/dist-cjs/pagination/ListKeywordsForDataSourcePaginator.js +2 -24
- package/dist-cjs/pagination/ListNotificationsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +361 -819
- package/dist-es/pagination/GetChangeLogsPaginator.js +2 -23
- package/dist-es/pagination/GetDelegationsPaginator.js +2 -23
- package/dist-es/pagination/GetEvidenceByEvidenceFolderPaginator.js +2 -23
- package/dist-es/pagination/GetEvidenceFoldersByAssessmentControlPaginator.js +2 -23
- package/dist-es/pagination/GetEvidenceFoldersByAssessmentPaginator.js +2 -23
- package/dist-es/pagination/ListAssessmentControlInsightsByControlDomainPaginator.js +2 -23
- package/dist-es/pagination/ListAssessmentFrameworkShareRequestsPaginator.js +2 -23
- package/dist-es/pagination/ListAssessmentFrameworksPaginator.js +2 -23
- package/dist-es/pagination/ListAssessmentReportsPaginator.js +2 -23
- package/dist-es/pagination/ListAssessmentsPaginator.js +2 -23
- package/dist-es/pagination/ListControlDomainInsightsByAssessmentPaginator.js +2 -23
- package/dist-es/pagination/ListControlDomainInsightsPaginator.js +2 -23
- package/dist-es/pagination/ListControlInsightsByControlDomainPaginator.js +2 -23
- package/dist-es/pagination/ListControlsPaginator.js +2 -23
- package/dist-es/pagination/ListKeywordsForDataSourcePaginator.js +2 -23
- package/dist-es/pagination/ListNotificationsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +362 -820
- package/dist-types/pagination/GetChangeLogsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetDelegationsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetEvidenceByEvidenceFolderPaginator.d.ts +1 -1
- package/dist-types/pagination/GetEvidenceFoldersByAssessmentControlPaginator.d.ts +1 -1
- package/dist-types/pagination/GetEvidenceFoldersByAssessmentPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssessmentControlInsightsByControlDomainPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssessmentFrameworkShareRequestsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssessmentFrameworksPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssessmentReportsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssessmentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListControlDomainInsightsByAssessmentPaginator.d.ts +1 -1
- package/dist-types/pagination/ListControlDomainInsightsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListControlInsightsByControlDomainPaginator.d.ts +1 -1
- package/dist-types/pagination/ListControlsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListKeywordsForDataSourcePaginator.d.ts +1 -1
- package/dist-types/pagination/ListNotificationsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetChangeLogsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetDelegationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetEvidenceByEvidenceFolderPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetEvidenceFoldersByAssessmentControlPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetEvidenceFoldersByAssessmentPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssessmentControlInsightsByControlDomainPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssessmentFrameworkShareRequestsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssessmentFrameworksPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssessmentReportsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssessmentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListControlDomainInsightsByAssessmentPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListControlDomainInsightsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListControlInsightsByControlDomainPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListControlsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListKeywordsForDataSourcePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListNotificationsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AuditManagerClient } from "../AuditManagerClient";
|
|
2
3
|
import { GetChangeLogsCommand, } from "../commands/GetChangeLogsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetChangeLogsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetChangeLogs(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 AuditManagerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
|
|
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 paginateGetChangeLogs = createPaginator(AuditManagerClient, GetChangeLogsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AuditManagerClient } from "../AuditManagerClient";
|
|
2
3
|
import { GetDelegationsCommand, } from "../commands/GetDelegationsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetDelegationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetDelegations(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 AuditManagerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
|
|
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 paginateGetDelegations = createPaginator(AuditManagerClient, GetDelegationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AuditManagerClient } from "../AuditManagerClient";
|
|
2
3
|
import { GetEvidenceByEvidenceFolderCommand, } from "../commands/GetEvidenceByEvidenceFolderCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetEvidenceByEvidenceFolderCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetEvidenceByEvidenceFolder(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 AuditManagerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
|
|
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 paginateGetEvidenceByEvidenceFolder = createPaginator(AuditManagerClient, GetEvidenceByEvidenceFolderCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AuditManagerClient } from "../AuditManagerClient";
|
|
2
3
|
import { GetEvidenceFoldersByAssessmentControlCommand, } from "../commands/GetEvidenceFoldersByAssessmentControlCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetEvidenceFoldersByAssessmentControlCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetEvidenceFoldersByAssessmentControl(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 AuditManagerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
|
|
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 paginateGetEvidenceFoldersByAssessmentControl = createPaginator(AuditManagerClient, GetEvidenceFoldersByAssessmentControlCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AuditManagerClient } from "../AuditManagerClient";
|
|
2
3
|
import { GetEvidenceFoldersByAssessmentCommand, } from "../commands/GetEvidenceFoldersByAssessmentCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetEvidenceFoldersByAssessmentCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetEvidenceFoldersByAssessment(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 AuditManagerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
|
|
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 paginateGetEvidenceFoldersByAssessment = createPaginator(AuditManagerClient, GetEvidenceFoldersByAssessmentCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AuditManagerClient } from "../AuditManagerClient";
|
|
2
3
|
import { ListAssessmentControlInsightsByControlDomainCommand, } from "../commands/ListAssessmentControlInsightsByControlDomainCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAssessmentControlInsightsByControlDomainCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAssessmentControlInsightsByControlDomain(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 AuditManagerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
|
|
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 paginateListAssessmentControlInsightsByControlDomain = createPaginator(AuditManagerClient, ListAssessmentControlInsightsByControlDomainCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AuditManagerClient } from "../AuditManagerClient";
|
|
2
3
|
import { ListAssessmentFrameworkShareRequestsCommand, } from "../commands/ListAssessmentFrameworkShareRequestsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAssessmentFrameworkShareRequestsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAssessmentFrameworkShareRequests(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 AuditManagerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
|
|
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 paginateListAssessmentFrameworkShareRequests = createPaginator(AuditManagerClient, ListAssessmentFrameworkShareRequestsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AuditManagerClient } from "../AuditManagerClient";
|
|
2
3
|
import { ListAssessmentFrameworksCommand, } from "../commands/ListAssessmentFrameworksCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAssessmentFrameworksCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAssessmentFrameworks(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 AuditManagerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
|
|
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 paginateListAssessmentFrameworks = createPaginator(AuditManagerClient, ListAssessmentFrameworksCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AuditManagerClient } from "../AuditManagerClient";
|
|
2
3
|
import { ListAssessmentReportsCommand, } from "../commands/ListAssessmentReportsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAssessmentReportsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAssessmentReports(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 AuditManagerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
|
|
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 paginateListAssessmentReports = createPaginator(AuditManagerClient, ListAssessmentReportsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AuditManagerClient } from "../AuditManagerClient";
|
|
2
3
|
import { ListAssessmentsCommand, } from "../commands/ListAssessmentsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAssessmentsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAssessments(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 AuditManagerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
|
|
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 paginateListAssessments = createPaginator(AuditManagerClient, ListAssessmentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AuditManagerClient } from "../AuditManagerClient";
|
|
2
3
|
import { ListControlDomainInsightsByAssessmentCommand, } from "../commands/ListControlDomainInsightsByAssessmentCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListControlDomainInsightsByAssessmentCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListControlDomainInsightsByAssessment(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 AuditManagerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
|
|
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 paginateListControlDomainInsightsByAssessment = createPaginator(AuditManagerClient, ListControlDomainInsightsByAssessmentCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AuditManagerClient } from "../AuditManagerClient";
|
|
2
3
|
import { ListControlDomainInsightsCommand, } from "../commands/ListControlDomainInsightsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListControlDomainInsightsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListControlDomainInsights(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 AuditManagerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
|
|
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 paginateListControlDomainInsights = createPaginator(AuditManagerClient, ListControlDomainInsightsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AuditManagerClient } from "../AuditManagerClient";
|
|
2
3
|
import { ListControlInsightsByControlDomainCommand, } from "../commands/ListControlInsightsByControlDomainCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListControlInsightsByControlDomainCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListControlInsightsByControlDomain(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 AuditManagerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
|
|
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 paginateListControlInsightsByControlDomain = createPaginator(AuditManagerClient, ListControlInsightsByControlDomainCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AuditManagerClient } from "../AuditManagerClient";
|
|
2
3
|
import { ListControlsCommand, } from "../commands/ListControlsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListControlsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListControls(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 AuditManagerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
|
|
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 paginateListControls = createPaginator(AuditManagerClient, ListControlsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AuditManagerClient } from "../AuditManagerClient";
|
|
2
3
|
import { ListKeywordsForDataSourceCommand, } from "../commands/ListKeywordsForDataSourceCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListKeywordsForDataSourceCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListKeywordsForDataSource(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 AuditManagerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
|
|
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 paginateListKeywordsForDataSource = createPaginator(AuditManagerClient, ListKeywordsForDataSourceCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AuditManagerClient } from "../AuditManagerClient";
|
|
2
3
|
import { ListNotificationsCommand, } from "../commands/ListNotificationsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListNotificationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListNotifications(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 AuditManagerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected AuditManager | AuditManagerClient");
|
|
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 paginateListNotifications = createPaginator(AuditManagerClient, ListNotificationsCommand, "nextToken", "nextToken", "maxResults");
|