@aws-sdk/client-ssm-incidents 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/GetResourcePoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListIncidentFindingsPaginator.js +2 -24
- package/dist-cjs/pagination/ListIncidentRecordsPaginator.js +2 -24
- package/dist-cjs/pagination/ListRelatedItemsPaginator.js +2 -24
- package/dist-cjs/pagination/ListReplicationSetsPaginator.js +2 -24
- package/dist-cjs/pagination/ListResponsePlansPaginator.js +2 -24
- package/dist-cjs/pagination/ListTimelineEventsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +142 -361
- package/dist-es/pagination/GetResourcePoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListIncidentFindingsPaginator.js +2 -23
- package/dist-es/pagination/ListIncidentRecordsPaginator.js +2 -23
- package/dist-es/pagination/ListRelatedItemsPaginator.js +2 -23
- package/dist-es/pagination/ListReplicationSetsPaginator.js +2 -23
- package/dist-es/pagination/ListResponsePlansPaginator.js +2 -23
- package/dist-es/pagination/ListTimelineEventsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +143 -362
- package/dist-types/pagination/GetResourcePoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListIncidentFindingsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListIncidentRecordsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRelatedItemsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListReplicationSetsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResponsePlansPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTimelineEventsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetResourcePoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListIncidentFindingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListIncidentRecordsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRelatedItemsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListReplicationSetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListResponsePlansPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTimelineEventsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetResourcePoliciesCommand, } from "../commands/GetResourcePoliciesCommand";
|
|
2
3
|
import { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetResourcePoliciesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetResourcePolicies(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 SSMIncidentsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSMIncidents | SSMIncidentsClient");
|
|
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 paginateGetResourcePolicies = createPaginator(SSMIncidentsClient, GetResourcePoliciesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListIncidentFindingsCommand, } from "../commands/ListIncidentFindingsCommand";
|
|
2
3
|
import { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListIncidentFindingsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListIncidentFindings(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 SSMIncidentsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSMIncidents | SSMIncidentsClient");
|
|
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 paginateListIncidentFindings = createPaginator(SSMIncidentsClient, ListIncidentFindingsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListIncidentRecordsCommand, } from "../commands/ListIncidentRecordsCommand";
|
|
2
3
|
import { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListIncidentRecordsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListIncidentRecords(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 SSMIncidentsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSMIncidents | SSMIncidentsClient");
|
|
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 paginateListIncidentRecords = createPaginator(SSMIncidentsClient, ListIncidentRecordsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRelatedItemsCommand, } from "../commands/ListRelatedItemsCommand";
|
|
2
3
|
import { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRelatedItemsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRelatedItems(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 SSMIncidentsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSMIncidents | SSMIncidentsClient");
|
|
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 paginateListRelatedItems = createPaginator(SSMIncidentsClient, ListRelatedItemsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListReplicationSetsCommand, } from "../commands/ListReplicationSetsCommand";
|
|
2
3
|
import { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListReplicationSetsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListReplicationSets(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 SSMIncidentsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSMIncidents | SSMIncidentsClient");
|
|
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 paginateListReplicationSets = createPaginator(SSMIncidentsClient, ListReplicationSetsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListResponsePlansCommand, } from "../commands/ListResponsePlansCommand";
|
|
2
3
|
import { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListResponsePlansCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListResponsePlans(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 SSMIncidentsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSMIncidents | SSMIncidentsClient");
|
|
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 paginateListResponsePlans = createPaginator(SSMIncidentsClient, ListResponsePlansCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListTimelineEventsCommand, } from "../commands/ListTimelineEventsCommand";
|
|
2
3
|
import { SSMIncidentsClient } from "../SSMIncidentsClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTimelineEventsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTimelineEvents(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 SSMIncidentsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSMIncidents | SSMIncidentsClient");
|
|
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 paginateListTimelineEvents = createPaginator(SSMIncidentsClient, ListTimelineEventsCommand, "nextToken", "nextToken", "maxResults");
|