@aws-sdk/client-ivs 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.
Files changed (27) hide show
  1. package/dist-cjs/pagination/ListChannelsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListPlaybackKeyPairsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListRecordingConfigurationsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListStreamKeysPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListStreamSessionsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListStreamsPaginator.js +2 -24
  7. package/dist-cjs/protocols/Aws_restJson1.js +127 -337
  8. package/dist-es/pagination/ListChannelsPaginator.js +2 -23
  9. package/dist-es/pagination/ListPlaybackKeyPairsPaginator.js +2 -23
  10. package/dist-es/pagination/ListRecordingConfigurationsPaginator.js +2 -23
  11. package/dist-es/pagination/ListStreamKeysPaginator.js +2 -23
  12. package/dist-es/pagination/ListStreamSessionsPaginator.js +2 -23
  13. package/dist-es/pagination/ListStreamsPaginator.js +2 -23
  14. package/dist-es/protocols/Aws_restJson1.js +128 -338
  15. package/dist-types/pagination/ListChannelsPaginator.d.ts +1 -1
  16. package/dist-types/pagination/ListPlaybackKeyPairsPaginator.d.ts +1 -1
  17. package/dist-types/pagination/ListRecordingConfigurationsPaginator.d.ts +1 -1
  18. package/dist-types/pagination/ListStreamKeysPaginator.d.ts +1 -1
  19. package/dist-types/pagination/ListStreamSessionsPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListStreamsPaginator.d.ts +1 -1
  21. package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +3 -3
  22. package/dist-types/ts3.4/pagination/ListPlaybackKeyPairsPaginator.d.ts +3 -3
  23. package/dist-types/ts3.4/pagination/ListRecordingConfigurationsPaginator.d.ts +3 -3
  24. package/dist-types/ts3.4/pagination/ListStreamKeysPaginator.d.ts +3 -3
  25. package/dist-types/ts3.4/pagination/ListStreamSessionsPaginator.d.ts +3 -3
  26. package/dist-types/ts3.4/pagination/ListStreamsPaginator.d.ts +3 -3
  27. package/package.json +7 -6
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListChannels = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListChannelsCommand_1 = require("../commands/ListChannelsCommand");
5
6
  const IvsClient_1 = require("../IvsClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListChannelsCommand_1.ListChannelsCommand(input), ...args);
8
- };
9
- async function* paginateListChannels(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 IvsClient_1.IvsClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Ivs | IvsClient");
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.paginateListChannels = paginateListChannels;
7
+ exports.paginateListChannels = (0, core_1.createPaginator)(IvsClient_1.IvsClient, ListChannelsCommand_1.ListChannelsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPlaybackKeyPairs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListPlaybackKeyPairsCommand_1 = require("../commands/ListPlaybackKeyPairsCommand");
5
6
  const IvsClient_1 = require("../IvsClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPlaybackKeyPairsCommand_1.ListPlaybackKeyPairsCommand(input), ...args);
8
- };
9
- async function* paginateListPlaybackKeyPairs(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 IvsClient_1.IvsClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Ivs | IvsClient");
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.paginateListPlaybackKeyPairs = paginateListPlaybackKeyPairs;
7
+ exports.paginateListPlaybackKeyPairs = (0, core_1.createPaginator)(IvsClient_1.IvsClient, ListPlaybackKeyPairsCommand_1.ListPlaybackKeyPairsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRecordingConfigurations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListRecordingConfigurationsCommand_1 = require("../commands/ListRecordingConfigurationsCommand");
5
6
  const IvsClient_1 = require("../IvsClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListRecordingConfigurationsCommand_1.ListRecordingConfigurationsCommand(input), ...args);
8
- };
9
- async function* paginateListRecordingConfigurations(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 IvsClient_1.IvsClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Ivs | IvsClient");
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.paginateListRecordingConfigurations = paginateListRecordingConfigurations;
7
+ exports.paginateListRecordingConfigurations = (0, core_1.createPaginator)(IvsClient_1.IvsClient, ListRecordingConfigurationsCommand_1.ListRecordingConfigurationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListStreamKeys = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListStreamKeysCommand_1 = require("../commands/ListStreamKeysCommand");
5
6
  const IvsClient_1 = require("../IvsClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListStreamKeysCommand_1.ListStreamKeysCommand(input), ...args);
8
- };
9
- async function* paginateListStreamKeys(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 IvsClient_1.IvsClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Ivs | IvsClient");
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.paginateListStreamKeys = paginateListStreamKeys;
7
+ exports.paginateListStreamKeys = (0, core_1.createPaginator)(IvsClient_1.IvsClient, ListStreamKeysCommand_1.ListStreamKeysCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListStreamSessions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListStreamSessionsCommand_1 = require("../commands/ListStreamSessionsCommand");
5
6
  const IvsClient_1 = require("../IvsClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListStreamSessionsCommand_1.ListStreamSessionsCommand(input), ...args);
8
- };
9
- async function* paginateListStreamSessions(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 IvsClient_1.IvsClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Ivs | IvsClient");
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.paginateListStreamSessions = paginateListStreamSessions;
7
+ exports.paginateListStreamSessions = (0, core_1.createPaginator)(IvsClient_1.IvsClient, ListStreamSessionsCommand_1.ListStreamSessionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListStreams = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListStreamsCommand_1 = require("../commands/ListStreamsCommand");
5
6
  const IvsClient_1 = require("../IvsClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListStreamsCommand_1.ListStreamsCommand(input), ...args);
8
- };
9
- async function* paginateListStreams(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 IvsClient_1.IvsClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Ivs | IvsClient");
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.paginateListStreams = paginateListStreams;
7
+ exports.paginateListStreams = (0, core_1.createPaginator)(IvsClient_1.IvsClient, ListStreamsCommand_1.ListStreamsCommand, "nextToken", "nextToken", "maxResults");