@aws-sdk/client-ivs-realtime 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/ListCompositionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEncoderConfigurationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListParticipantEventsPaginator.js +2 -24
- package/dist-cjs/pagination/ListParticipantsPaginator.js +2 -24
- package/dist-cjs/pagination/ListStageSessionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListStagesPaginator.js +2 -24
- package/dist-cjs/pagination/ListStorageConfigurationsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +115 -304
- package/dist-es/pagination/ListCompositionsPaginator.js +2 -23
- package/dist-es/pagination/ListEncoderConfigurationsPaginator.js +2 -23
- package/dist-es/pagination/ListParticipantEventsPaginator.js +2 -23
- package/dist-es/pagination/ListParticipantsPaginator.js +2 -23
- package/dist-es/pagination/ListStageSessionsPaginator.js +2 -23
- package/dist-es/pagination/ListStagesPaginator.js +2 -23
- package/dist-es/pagination/ListStorageConfigurationsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +116 -305
- package/dist-types/pagination/ListCompositionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEncoderConfigurationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListParticipantEventsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListParticipantsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListStageSessionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListStagesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListStorageConfigurationsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListCompositionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEncoderConfigurationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListParticipantEventsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListParticipantsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListStageSessionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListStagesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListStorageConfigurationsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListCompositionsCommand, } from "../commands/ListCompositionsCommand";
|
|
2
3
|
import { IVSRealTimeClient } from "../IVSRealTimeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListCompositionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListCompositions(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 IVSRealTimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IVSRealTime | IVSRealTimeClient");
|
|
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 paginateListCompositions = createPaginator(IVSRealTimeClient, ListCompositionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEncoderConfigurationsCommand, } from "../commands/ListEncoderConfigurationsCommand";
|
|
2
3
|
import { IVSRealTimeClient } from "../IVSRealTimeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEncoderConfigurationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEncoderConfigurations(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 IVSRealTimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IVSRealTime | IVSRealTimeClient");
|
|
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 paginateListEncoderConfigurations = createPaginator(IVSRealTimeClient, ListEncoderConfigurationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListParticipantEventsCommand, } from "../commands/ListParticipantEventsCommand";
|
|
2
3
|
import { IVSRealTimeClient } from "../IVSRealTimeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListParticipantEventsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListParticipantEvents(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 IVSRealTimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IVSRealTime | IVSRealTimeClient");
|
|
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 paginateListParticipantEvents = createPaginator(IVSRealTimeClient, ListParticipantEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListParticipantsCommand, } from "../commands/ListParticipantsCommand";
|
|
2
3
|
import { IVSRealTimeClient } from "../IVSRealTimeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListParticipantsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListParticipants(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 IVSRealTimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IVSRealTime | IVSRealTimeClient");
|
|
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 paginateListParticipants = createPaginator(IVSRealTimeClient, ListParticipantsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListStageSessionsCommand, } from "../commands/ListStageSessionsCommand";
|
|
2
3
|
import { IVSRealTimeClient } from "../IVSRealTimeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListStageSessionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListStageSessions(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 IVSRealTimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IVSRealTime | IVSRealTimeClient");
|
|
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 paginateListStageSessions = createPaginator(IVSRealTimeClient, ListStageSessionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListStagesCommand } from "../commands/ListStagesCommand";
|
|
2
3
|
import { IVSRealTimeClient } from "../IVSRealTimeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListStagesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListStages(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 IVSRealTimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IVSRealTime | IVSRealTimeClient");
|
|
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 paginateListStages = createPaginator(IVSRealTimeClient, ListStagesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListStorageConfigurationsCommand, } from "../commands/ListStorageConfigurationsCommand";
|
|
2
3
|
import { IVSRealTimeClient } from "../IVSRealTimeClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListStorageConfigurationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListStorageConfigurations(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 IVSRealTimeClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IVSRealTime | IVSRealTimeClient");
|
|
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 paginateListStorageConfigurations = createPaginator(IVSRealTimeClient, ListStorageConfigurationsCommand, "nextToken", "nextToken", "maxResults");
|