@aws-sdk/client-mediatailor 3.975.0 → 3.978.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/index.js CHANGED
@@ -1937,6 +1937,22 @@ class UpdateVodSourceCommand extends smithyClient.Command
1937
1937
  .build() {
1938
1938
  }
1939
1939
 
1940
+ const paginateGetChannelSchedule = core.createPaginator(MediaTailorClient, GetChannelScheduleCommand, "NextToken", "NextToken", "MaxResults");
1941
+
1942
+ const paginateListAlerts = core.createPaginator(MediaTailorClient, ListAlertsCommand, "NextToken", "NextToken", "MaxResults");
1943
+
1944
+ const paginateListChannels = core.createPaginator(MediaTailorClient, ListChannelsCommand, "NextToken", "NextToken", "MaxResults");
1945
+
1946
+ const paginateListLiveSources = core.createPaginator(MediaTailorClient, ListLiveSourcesCommand, "NextToken", "NextToken", "MaxResults");
1947
+
1948
+ const paginateListPlaybackConfigurations = core.createPaginator(MediaTailorClient, ListPlaybackConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
1949
+
1950
+ const paginateListPrefetchSchedules = core.createPaginator(MediaTailorClient, ListPrefetchSchedulesCommand, "NextToken", "NextToken", "MaxResults");
1951
+
1952
+ const paginateListSourceLocations = core.createPaginator(MediaTailorClient, ListSourceLocationsCommand, "NextToken", "NextToken", "MaxResults");
1953
+
1954
+ const paginateListVodSources = core.createPaginator(MediaTailorClient, ListVodSourcesCommand, "NextToken", "NextToken", "MaxResults");
1955
+
1940
1956
  const commands = {
1941
1957
  ConfigureLogsForChannelCommand,
1942
1958
  ConfigureLogsForPlaybackConfigurationCommand,
@@ -1983,25 +1999,19 @@ const commands = {
1983
1999
  UpdateSourceLocationCommand,
1984
2000
  UpdateVodSourceCommand,
1985
2001
  };
2002
+ const paginators = {
2003
+ paginateGetChannelSchedule,
2004
+ paginateListAlerts,
2005
+ paginateListChannels,
2006
+ paginateListLiveSources,
2007
+ paginateListPlaybackConfigurations,
2008
+ paginateListPrefetchSchedules,
2009
+ paginateListSourceLocations,
2010
+ paginateListVodSources,
2011
+ };
1986
2012
  class MediaTailor extends MediaTailorClient {
1987
2013
  }
1988
- smithyClient.createAggregatedClient(commands, MediaTailor);
1989
-
1990
- const paginateGetChannelSchedule = core.createPaginator(MediaTailorClient, GetChannelScheduleCommand, "NextToken", "NextToken", "MaxResults");
1991
-
1992
- const paginateListAlerts = core.createPaginator(MediaTailorClient, ListAlertsCommand, "NextToken", "NextToken", "MaxResults");
1993
-
1994
- const paginateListChannels = core.createPaginator(MediaTailorClient, ListChannelsCommand, "NextToken", "NextToken", "MaxResults");
1995
-
1996
- const paginateListLiveSources = core.createPaginator(MediaTailorClient, ListLiveSourcesCommand, "NextToken", "NextToken", "MaxResults");
1997
-
1998
- const paginateListPlaybackConfigurations = core.createPaginator(MediaTailorClient, ListPlaybackConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
1999
-
2000
- const paginateListPrefetchSchedules = core.createPaginator(MediaTailorClient, ListPrefetchSchedulesCommand, "NextToken", "NextToken", "MaxResults");
2001
-
2002
- const paginateListSourceLocations = core.createPaginator(MediaTailorClient, ListSourceLocationsCommand, "NextToken", "NextToken", "MaxResults");
2003
-
2004
- const paginateListVodSources = core.createPaginator(MediaTailorClient, ListVodSourcesCommand, "NextToken", "NextToken", "MaxResults");
2014
+ smithyClient.createAggregatedClient(commands, MediaTailor, { paginators });
2005
2015
 
2006
2016
  const AdsInteractionExcludeEventType = {
2007
2017
  AD_MARKER_FOUND: "AD_MARKER_FOUND",
@@ -44,6 +44,14 @@ import { UpdateProgramCommand, } from "./commands/UpdateProgramCommand";
44
44
  import { UpdateSourceLocationCommand, } from "./commands/UpdateSourceLocationCommand";
45
45
  import { UpdateVodSourceCommand, } from "./commands/UpdateVodSourceCommand";
46
46
  import { MediaTailorClient } from "./MediaTailorClient";
47
+ import { paginateGetChannelSchedule } from "./pagination/GetChannelSchedulePaginator";
48
+ import { paginateListAlerts } from "./pagination/ListAlertsPaginator";
49
+ import { paginateListChannels } from "./pagination/ListChannelsPaginator";
50
+ import { paginateListLiveSources } from "./pagination/ListLiveSourcesPaginator";
51
+ import { paginateListPlaybackConfigurations } from "./pagination/ListPlaybackConfigurationsPaginator";
52
+ import { paginateListPrefetchSchedules } from "./pagination/ListPrefetchSchedulesPaginator";
53
+ import { paginateListSourceLocations } from "./pagination/ListSourceLocationsPaginator";
54
+ import { paginateListVodSources } from "./pagination/ListVodSourcesPaginator";
47
55
  const commands = {
48
56
  ConfigureLogsForChannelCommand,
49
57
  ConfigureLogsForPlaybackConfigurationCommand,
@@ -90,6 +98,16 @@ const commands = {
90
98
  UpdateSourceLocationCommand,
91
99
  UpdateVodSourceCommand,
92
100
  };
101
+ const paginators = {
102
+ paginateGetChannelSchedule,
103
+ paginateListAlerts,
104
+ paginateListChannels,
105
+ paginateListLiveSources,
106
+ paginateListPlaybackConfigurations,
107
+ paginateListPrefetchSchedules,
108
+ paginateListSourceLocations,
109
+ paginateListVodSources,
110
+ };
93
111
  export class MediaTailor extends MediaTailorClient {
94
112
  }
95
- createAggregatedClient(commands, MediaTailor);
113
+ createAggregatedClient(commands, MediaTailor, { paginators });
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { ConfigureLogsForChannelCommandInput, ConfigureLogsForChannelCommandOutput } from "./commands/ConfigureLogsForChannelCommand";
3
3
  import { ConfigureLogsForPlaybackConfigurationCommandInput, ConfigureLogsForPlaybackConfigurationCommandOutput } from "./commands/ConfigureLogsForPlaybackConfigurationCommand";
4
4
  import { CreateChannelCommandInput, CreateChannelCommandOutput } from "./commands/CreateChannelCommand";
@@ -312,6 +312,62 @@ export interface MediaTailor {
312
312
  updateVodSource(args: UpdateVodSourceCommandInput, options?: __HttpHandlerOptions): Promise<UpdateVodSourceCommandOutput>;
313
313
  updateVodSource(args: UpdateVodSourceCommandInput, cb: (err: any, data?: UpdateVodSourceCommandOutput) => void): void;
314
314
  updateVodSource(args: UpdateVodSourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateVodSourceCommandOutput) => void): void;
315
+ /**
316
+ * @see {@link GetChannelScheduleCommand}
317
+ * @param args - command input.
318
+ * @param paginationConfig - optional pagination config.
319
+ * @returns AsyncIterable of {@link GetChannelScheduleCommandOutput}.
320
+ */
321
+ paginateGetChannelSchedule(args: GetChannelScheduleCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetChannelScheduleCommandOutput>;
322
+ /**
323
+ * @see {@link ListAlertsCommand}
324
+ * @param args - command input.
325
+ * @param paginationConfig - optional pagination config.
326
+ * @returns AsyncIterable of {@link ListAlertsCommandOutput}.
327
+ */
328
+ paginateListAlerts(args: ListAlertsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAlertsCommandOutput>;
329
+ /**
330
+ * @see {@link ListChannelsCommand}
331
+ * @param args - command input.
332
+ * @param paginationConfig - optional pagination config.
333
+ * @returns AsyncIterable of {@link ListChannelsCommandOutput}.
334
+ */
335
+ paginateListChannels(args?: ListChannelsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListChannelsCommandOutput>;
336
+ /**
337
+ * @see {@link ListLiveSourcesCommand}
338
+ * @param args - command input.
339
+ * @param paginationConfig - optional pagination config.
340
+ * @returns AsyncIterable of {@link ListLiveSourcesCommandOutput}.
341
+ */
342
+ paginateListLiveSources(args: ListLiveSourcesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListLiveSourcesCommandOutput>;
343
+ /**
344
+ * @see {@link ListPlaybackConfigurationsCommand}
345
+ * @param args - command input.
346
+ * @param paginationConfig - optional pagination config.
347
+ * @returns AsyncIterable of {@link ListPlaybackConfigurationsCommandOutput}.
348
+ */
349
+ paginateListPlaybackConfigurations(args?: ListPlaybackConfigurationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPlaybackConfigurationsCommandOutput>;
350
+ /**
351
+ * @see {@link ListPrefetchSchedulesCommand}
352
+ * @param args - command input.
353
+ * @param paginationConfig - optional pagination config.
354
+ * @returns AsyncIterable of {@link ListPrefetchSchedulesCommandOutput}.
355
+ */
356
+ paginateListPrefetchSchedules(args: ListPrefetchSchedulesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPrefetchSchedulesCommandOutput>;
357
+ /**
358
+ * @see {@link ListSourceLocationsCommand}
359
+ * @param args - command input.
360
+ * @param paginationConfig - optional pagination config.
361
+ * @returns AsyncIterable of {@link ListSourceLocationsCommandOutput}.
362
+ */
363
+ paginateListSourceLocations(args?: ListSourceLocationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSourceLocationsCommandOutput>;
364
+ /**
365
+ * @see {@link ListVodSourcesCommand}
366
+ * @param args - command input.
367
+ * @param paginationConfig - optional pagination config.
368
+ * @returns AsyncIterable of {@link ListVodSourcesCommandOutput}.
369
+ */
370
+ paginateListVodSources(args: ListVodSourcesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListVodSourcesCommandOutput>;
315
371
  }
316
372
  /**
317
373
  * <p>Use the AWS Elemental MediaTailor SDKs and CLI to configure scalable ad insertion and linear channels. With MediaTailor, you can assemble existing content into a linear stream and serve targeted ads to viewers while maintaining broadcast quality in over-the-top (OTT) video applications. For information about using the service, including detailed information about the settings covered in this guide, see the <a href="https://docs.aws.amazon.com/mediatailor/latest/ug/">AWS Elemental MediaTailor User Guide</a>.</p> <p>Through the SDKs and the CLI you manage AWS Elemental MediaTailor configurations and channels the same as you do through the console. For example, you specify ad insertion behavior and mapping information for the origin server and the ad decision server (ADS).</p>
@@ -1,4 +1,8 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ } from "@smithy/types";
2
6
  import {
3
7
  ConfigureLogsForChannelCommandInput,
4
8
  ConfigureLogsForChannelCommandOutput,
@@ -758,6 +762,62 @@ export interface MediaTailor {
758
762
  options: __HttpHandlerOptions,
759
763
  cb: (err: any, data?: UpdateVodSourceCommandOutput) => void
760
764
  ): void;
765
+ paginateGetChannelSchedule(
766
+ args: GetChannelScheduleCommandInput,
767
+ paginationConfig?: Pick<
768
+ PaginationConfiguration,
769
+ Exclude<keyof PaginationConfiguration, "client">
770
+ >
771
+ ): Paginator<GetChannelScheduleCommandOutput>;
772
+ paginateListAlerts(
773
+ args: ListAlertsCommandInput,
774
+ paginationConfig?: Pick<
775
+ PaginationConfiguration,
776
+ Exclude<keyof PaginationConfiguration, "client">
777
+ >
778
+ ): Paginator<ListAlertsCommandOutput>;
779
+ paginateListChannels(
780
+ args?: ListChannelsCommandInput,
781
+ paginationConfig?: Pick<
782
+ PaginationConfiguration,
783
+ Exclude<keyof PaginationConfiguration, "client">
784
+ >
785
+ ): Paginator<ListChannelsCommandOutput>;
786
+ paginateListLiveSources(
787
+ args: ListLiveSourcesCommandInput,
788
+ paginationConfig?: Pick<
789
+ PaginationConfiguration,
790
+ Exclude<keyof PaginationConfiguration, "client">
791
+ >
792
+ ): Paginator<ListLiveSourcesCommandOutput>;
793
+ paginateListPlaybackConfigurations(
794
+ args?: ListPlaybackConfigurationsCommandInput,
795
+ paginationConfig?: Pick<
796
+ PaginationConfiguration,
797
+ Exclude<keyof PaginationConfiguration, "client">
798
+ >
799
+ ): Paginator<ListPlaybackConfigurationsCommandOutput>;
800
+ paginateListPrefetchSchedules(
801
+ args: ListPrefetchSchedulesCommandInput,
802
+ paginationConfig?: Pick<
803
+ PaginationConfiguration,
804
+ Exclude<keyof PaginationConfiguration, "client">
805
+ >
806
+ ): Paginator<ListPrefetchSchedulesCommandOutput>;
807
+ paginateListSourceLocations(
808
+ args?: ListSourceLocationsCommandInput,
809
+ paginationConfig?: Pick<
810
+ PaginationConfiguration,
811
+ Exclude<keyof PaginationConfiguration, "client">
812
+ >
813
+ ): Paginator<ListSourceLocationsCommandOutput>;
814
+ paginateListVodSources(
815
+ args: ListVodSourcesCommandInput,
816
+ paginationConfig?: Pick<
817
+ PaginationConfiguration,
818
+ Exclude<keyof PaginationConfiguration, "client">
819
+ >
820
+ ): Paginator<ListVodSourcesCommandOutput>;
761
821
  }
762
822
  export declare class MediaTailor
763
823
  extends MediaTailorClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mediatailor",
3
3
  "description": "AWS SDK for JavaScript Mediatailor Client for Node.js, Browser and React Native",
4
- "version": "3.975.0",
4
+ "version": "3.978.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-mediatailor",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.1",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.2",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
24
+ "@aws-sdk/core": "^3.973.4",
25
+ "@aws-sdk/credential-provider-node": "^3.972.2",
26
+ "@aws-sdk/middleware-host-header": "^3.972.2",
27
+ "@aws-sdk/middleware-logger": "^3.972.2",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
30
+ "@aws-sdk/region-config-resolver": "^3.972.2",
31
+ "@aws-sdk/types": "^3.973.1",
32
32
  "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.1",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.11",
42
- "@smithy/middleware-retry": "^4.4.27",
41
+ "@smithy/middleware-endpoint": "^4.4.12",
42
+ "@smithy/middleware-retry": "^4.4.29",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.12",
48
+ "@smithy/smithy-client": "^4.11.1",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.26",
55
- "@smithy/util-defaults-mode-node": "^4.2.29",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
55
+ "@smithy/util-defaults-mode-node": "^4.2.31",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",