@aws-sdk/client-medialive 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/DescribeSchedulePaginator.js +2 -24
- package/dist-cjs/pagination/ListChannelsPaginator.js +2 -24
- package/dist-cjs/pagination/ListInputDeviceTransfersPaginator.js +2 -24
- package/dist-cjs/pagination/ListInputDevicesPaginator.js +2 -24
- package/dist-cjs/pagination/ListInputSecurityGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListInputsPaginator.js +2 -24
- package/dist-cjs/pagination/ListMultiplexProgramsPaginator.js +2 -24
- package/dist-cjs/pagination/ListMultiplexesPaginator.js +2 -24
- package/dist-cjs/pagination/ListOfferingsPaginator.js +2 -24
- package/dist-cjs/pagination/ListReservationsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +396 -829
- package/dist-es/pagination/DescribeSchedulePaginator.js +2 -23
- package/dist-es/pagination/ListChannelsPaginator.js +2 -23
- package/dist-es/pagination/ListInputDeviceTransfersPaginator.js +2 -23
- package/dist-es/pagination/ListInputDevicesPaginator.js +2 -23
- package/dist-es/pagination/ListInputSecurityGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListInputsPaginator.js +2 -23
- package/dist-es/pagination/ListMultiplexProgramsPaginator.js +2 -23
- package/dist-es/pagination/ListMultiplexesPaginator.js +2 -23
- package/dist-es/pagination/ListOfferingsPaginator.js +2 -23
- package/dist-es/pagination/ListReservationsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +397 -830
- package/dist-types/pagination/DescribeSchedulePaginator.d.ts +1 -1
- package/dist-types/pagination/ListChannelsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInputDeviceTransfersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInputDevicesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInputSecurityGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInputsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMultiplexProgramsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMultiplexesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOfferingsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListReservationsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeSchedulePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInputDeviceTransfersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInputDevicesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInputSecurityGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInputsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMultiplexProgramsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMultiplexesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOfferingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListReservationsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeScheduleCommand, } from "../commands/DescribeScheduleCommand";
|
|
2
3
|
import { MediaLiveClient } from "../MediaLiveClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeScheduleCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeSchedule(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 MediaLiveClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
|
|
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 paginateDescribeSchedule = createPaginator(MediaLiveClient, DescribeScheduleCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListChannelsCommand, } from "../commands/ListChannelsCommand";
|
|
2
3
|
import { MediaLiveClient } from "../MediaLiveClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListChannelsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListChannels(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 MediaLiveClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
|
|
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 paginateListChannels = createPaginator(MediaLiveClient, ListChannelsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListInputDeviceTransfersCommand, } from "../commands/ListInputDeviceTransfersCommand";
|
|
2
3
|
import { MediaLiveClient } from "../MediaLiveClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListInputDeviceTransfersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListInputDeviceTransfers(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 MediaLiveClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
|
|
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 paginateListInputDeviceTransfers = createPaginator(MediaLiveClient, ListInputDeviceTransfersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListInputDevicesCommand, } from "../commands/ListInputDevicesCommand";
|
|
2
3
|
import { MediaLiveClient } from "../MediaLiveClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListInputDevicesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListInputDevices(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 MediaLiveClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
|
|
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 paginateListInputDevices = createPaginator(MediaLiveClient, ListInputDevicesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListInputSecurityGroupsCommand, } from "../commands/ListInputSecurityGroupsCommand";
|
|
2
3
|
import { MediaLiveClient } from "../MediaLiveClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListInputSecurityGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListInputSecurityGroups(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 MediaLiveClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
|
|
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 paginateListInputSecurityGroups = createPaginator(MediaLiveClient, ListInputSecurityGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListInputsCommand } from "../commands/ListInputsCommand";
|
|
2
3
|
import { MediaLiveClient } from "../MediaLiveClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListInputsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListInputs(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 MediaLiveClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
|
|
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 paginateListInputs = createPaginator(MediaLiveClient, ListInputsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListMultiplexProgramsCommand, } from "../commands/ListMultiplexProgramsCommand";
|
|
2
3
|
import { MediaLiveClient } from "../MediaLiveClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListMultiplexProgramsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListMultiplexPrograms(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 MediaLiveClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
|
|
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 paginateListMultiplexPrograms = createPaginator(MediaLiveClient, ListMultiplexProgramsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListMultiplexesCommand, } from "../commands/ListMultiplexesCommand";
|
|
2
3
|
import { MediaLiveClient } from "../MediaLiveClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListMultiplexesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListMultiplexes(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 MediaLiveClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
|
|
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 paginateListMultiplexes = createPaginator(MediaLiveClient, ListMultiplexesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListOfferingsCommand, } from "../commands/ListOfferingsCommand";
|
|
2
3
|
import { MediaLiveClient } from "../MediaLiveClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListOfferingsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListOfferings(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 MediaLiveClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
|
|
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 paginateListOfferings = createPaginator(MediaLiveClient, ListOfferingsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListReservationsCommand, } from "../commands/ListReservationsCommand";
|
|
2
3
|
import { MediaLiveClient } from "../MediaLiveClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListReservationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListReservations(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 MediaLiveClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
|
|
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 paginateListReservations = createPaginator(MediaLiveClient, ListReservationsCommand, "NextToken", "NextToken", "MaxResults");
|