@aws-sdk/client-mediatailor 3.739.0 → 3.741.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
@@ -62,6 +62,7 @@ __export(src_exports, {
62
62
  ListTagsForResourceCommand: () => ListTagsForResourceCommand,
63
63
  ListVodSourcesCommand: () => ListVodSourcesCommand,
64
64
  LogType: () => LogType,
65
+ LoggingStrategy: () => LoggingStrategy,
65
66
  MediaTailor: () => MediaTailor,
66
67
  MediaTailorClient: () => MediaTailorClient,
67
68
  MediaTailorServiceException: () => MediaTailorServiceException,
@@ -292,6 +293,10 @@ var Type = {
292
293
  DASH: "DASH",
293
294
  HLS: "HLS"
294
295
  };
296
+ var LoggingStrategy = {
297
+ LEGACY_CLOUDWATCH: "LEGACY_CLOUDWATCH",
298
+ VENDED_LOGS: "VENDED_LOGS"
299
+ };
295
300
  var StreamingMediaFileConditioning = {
296
301
  NONE: "NONE",
297
302
  TRANSCODE: "TRANSCODE"
@@ -386,6 +391,7 @@ var se_ConfigureLogsForPlaybackConfigurationCommand = /* @__PURE__ */ __name(asy
386
391
  let body;
387
392
  body = JSON.stringify(
388
393
  (0, import_smithy_client.take)(input, {
394
+ EnabledLoggingStrategies: (_) => (0, import_smithy_client._json)(_),
389
395
  PercentEnabled: [],
390
396
  PlaybackConfigurationName: []
391
397
  })
@@ -988,6 +994,7 @@ var de_ConfigureLogsForPlaybackConfigurationCommand = /* @__PURE__ */ __name(asy
988
994
  });
989
995
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
990
996
  const doc = (0, import_smithy_client.take)(data, {
997
+ EnabledLoggingStrategies: import_smithy_client._json,
991
998
  PercentEnabled: import_smithy_client.expectInt32,
992
999
  PlaybackConfigurationName: import_smithy_client.expectString
993
1000
  });
@@ -2777,6 +2784,7 @@ var paginateListVodSources = (0, import_core.createPaginator)(MediaTailorClient,
2777
2784
  LogType,
2778
2785
  AdMarkupType,
2779
2786
  Type,
2787
+ LoggingStrategy,
2780
2788
  StreamingMediaFileConditioning,
2781
2789
  FillPolicy,
2782
2790
  Mode,
@@ -22,6 +22,10 @@ export const Type = {
22
22
  DASH: "DASH",
23
23
  HLS: "HLS",
24
24
  };
25
+ export const LoggingStrategy = {
26
+ LEGACY_CLOUDWATCH: "LEGACY_CLOUDWATCH",
27
+ VENDED_LOGS: "VENDED_LOGS",
28
+ };
25
29
  export const StreamingMediaFileConditioning = {
26
30
  NONE: "NONE",
27
31
  TRANSCODE: "TRANSCODE",
@@ -25,6 +25,7 @@ export const se_ConfigureLogsForPlaybackConfigurationCommand = async (input, con
25
25
  b.bp("/configureLogs/playbackConfiguration");
26
26
  let body;
27
27
  body = JSON.stringify(take(input, {
28
+ EnabledLoggingStrategies: (_) => _json(_),
28
29
  PercentEnabled: [],
29
30
  PlaybackConfigurationName: [],
30
31
  }));
@@ -596,6 +597,7 @@ export const de_ConfigureLogsForPlaybackConfigurationCommand = async (output, co
596
597
  });
597
598
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
598
599
  const doc = take(data, {
600
+ EnabledLoggingStrategies: _json,
599
601
  PercentEnabled: __expectInt32,
600
602
  PlaybackConfigurationName: __expectString,
601
603
  });
@@ -37,12 +37,18 @@ declare const ConfigureLogsForPlaybackConfigurationCommand_base: {
37
37
  * const input = { // ConfigureLogsForPlaybackConfigurationRequest
38
38
  * PercentEnabled: Number("int"), // required
39
39
  * PlaybackConfigurationName: "STRING_VALUE", // required
40
+ * EnabledLoggingStrategies: [ // __listOfLoggingStrategies
41
+ * "VENDED_LOGS" || "LEGACY_CLOUDWATCH",
42
+ * ],
40
43
  * };
41
44
  * const command = new ConfigureLogsForPlaybackConfigurationCommand(input);
42
45
  * const response = await client.send(command);
43
46
  * // { // ConfigureLogsForPlaybackConfigurationResponse
44
47
  * // PercentEnabled: Number("int"), // required
45
48
  * // PlaybackConfigurationName: "STRING_VALUE",
49
+ * // EnabledLoggingStrategies: [ // __listOfLoggingStrategies
50
+ * // "VENDED_LOGS" || "LEGACY_CLOUDWATCH",
51
+ * // ],
46
52
  * // };
47
53
  *
48
54
  * ```
@@ -74,6 +74,9 @@ declare const GetPlaybackConfigurationCommand_base: {
74
74
  * // },
75
75
  * // LogConfiguration: { // LogConfiguration
76
76
  * // PercentEnabled: Number("int"), // required
77
+ * // EnabledLoggingStrategies: [ // __listOfLoggingStrategies
78
+ * // "VENDED_LOGS" || "LEGACY_CLOUDWATCH",
79
+ * // ],
77
80
  * // },
78
81
  * // ManifestProcessingRules: { // ManifestProcessingRules
79
82
  * // AdMarkerPassthrough: { // AdMarkerPassthrough
@@ -77,6 +77,9 @@ declare const ListPlaybackConfigurationsCommand_base: {
77
77
  * // },
78
78
  * // LogConfiguration: { // LogConfiguration
79
79
  * // PercentEnabled: Number("int"), // required
80
+ * // EnabledLoggingStrategies: [ // __listOfLoggingStrategies
81
+ * // "VENDED_LOGS" || "LEGACY_CLOUDWATCH",
82
+ * // ],
80
83
  * // },
81
84
  * // ManifestProcessingRules: { // ManifestProcessingRules
82
85
  * // AdMarkerPassthrough: { // AdMarkerPassthrough
@@ -117,6 +117,9 @@ declare const PutPlaybackConfigurationCommand_base: {
117
117
  * // },
118
118
  * // LogConfiguration: { // LogConfiguration
119
119
  * // PercentEnabled: Number("int"), // required
120
+ * // EnabledLoggingStrategies: [ // __listOfLoggingStrategies
121
+ * // "VENDED_LOGS" || "LEGACY_CLOUDWATCH",
122
+ * // ],
120
123
  * // },
121
124
  * // ManifestProcessingRules: { // ManifestProcessingRules
122
125
  * // AdMarkerPassthrough: { // AdMarkerPassthrough
@@ -575,6 +575,18 @@ export interface LiveSource {
575
575
  */
576
576
  Tags?: Record<string, string> | undefined;
577
577
  }
578
+ /**
579
+ * @public
580
+ * @enum
581
+ */
582
+ export declare const LoggingStrategy: {
583
+ readonly LEGACY_CLOUDWATCH: "LEGACY_CLOUDWATCH";
584
+ readonly VENDED_LOGS: "VENDED_LOGS";
585
+ };
586
+ /**
587
+ * @public
588
+ */
589
+ export type LoggingStrategy = (typeof LoggingStrategy)[keyof typeof LoggingStrategy];
578
590
  /**
579
591
  * @public
580
592
  * @enum
@@ -593,7 +605,10 @@ export type StreamingMediaFileConditioning = (typeof StreamingMediaFileCondition
593
605
  */
594
606
  export interface AdConditioningConfiguration {
595
607
  /**
596
- * <p>For ads that have media files with streaming delivery, indicates what transcoding action MediaTailor it first receives these ads from the ADS. <code>TRANSCODE</code> indicates that MediaTailor must transcode the ads. <code>NONE</code> indicates that you have already transcoded the ads outside of MediaTailor and don't need them transcoded as part of the ad insertion workflow. For more information about ad conditioning see <a href="https://docs.aws.amazon.com/precondition-ads.html">https://docs.aws.amazon.com/precondition-ads.html</a>.</p>
608
+ * <p>For ads that have media files with streaming delivery and supported file extensions, indicates what transcoding action MediaTailor takes when it first receives these ads from the ADS.
609
+ * <code>TRANSCODE</code> indicates that MediaTailor must transcode the ads.
610
+ * <code>NONE</code> indicates that you have already transcoded the ads outside of MediaTailor and don't need them transcoded as part of the ad insertion workflow.
611
+ * For more information about ad conditioning see <a href="https://docs.aws.amazon.com/precondition-ads.html">https://docs.aws.amazon.com/precondition-ads.html</a>.</p>
597
612
  * @public
598
613
  */
599
614
  StreamingMediaFileConditioning: StreamingMediaFileConditioning | undefined;
@@ -760,6 +775,11 @@ export interface LogConfiguration {
760
775
  * @public
761
776
  */
762
777
  PercentEnabled: number | undefined;
778
+ /**
779
+ * <p>The method used for collecting logs from AWS Elemental MediaTailor. <code>LEGACY_CLOUDWATCH</code> indicates that MediaTailor is sending logs directly to Amazon CloudWatch Logs. <code>VENDED_LOGS</code> indicates that MediaTailor is sending logs to CloudWatch, which then vends the logs to your destination of choice. Supported destinations are CloudWatch Logs log group, Amazon S3 bucket, and Amazon Data Firehose stream. </p>
780
+ * @public
781
+ */
782
+ EnabledLoggingStrategies?: LoggingStrategy[] | undefined;
763
783
  }
764
784
  /**
765
785
  * <p>For HLS, when set to <code>true</code>, MediaTailor passes through <code>EXT-X-CUE-IN</code>, <code>EXT-X-CUE-OUT</code>, and <code>EXT-X-SPLICEPOINT-SCTE35</code> ad markers from the origin manifest to the MediaTailor personalized manifest.</p>
@@ -891,7 +911,7 @@ export interface PlaybackConfiguration {
891
911
  */
892
912
  VideoContentSourceUrl?: string | undefined;
893
913
  /**
894
- * <p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns.</p>
914
+ * <p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns, and what priority MediaTailor uses when inserting ads.</p>
895
915
  * @public
896
916
  */
897
917
  AdConditioningConfiguration?: AdConditioningConfiguration | undefined;
@@ -2311,6 +2331,13 @@ export interface ConfigureLogsForPlaybackConfigurationRequest {
2311
2331
  * @public
2312
2332
  */
2313
2333
  PlaybackConfigurationName: string | undefined;
2334
+ /**
2335
+ * <p>The method used for collecting logs from AWS Elemental MediaTailor. To configure MediaTailor to send logs directly to Amazon CloudWatch Logs, choose <code>LEGACY_CLOUDWATCH</code>. To configure MediaTailor to
2336
+ * send logs to CloudWatch, which then vends the logs to your destination of choice, choose <code>VENDED_LOGS</code>. Supported destinations are CloudWatch Logs log group, Amazon S3 bucket, and Amazon Data Firehose stream.</p>
2337
+ * <p>To use vended logs, you must configure the delivery destination in Amazon CloudWatch, as described in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html#AWS-vended-logs-permissions-V2">Enable logging from AWS services, Logging that requires additional permissions [V2]</a>.</p>
2338
+ * @public
2339
+ */
2340
+ EnabledLoggingStrategies?: LoggingStrategy[] | undefined;
2314
2341
  }
2315
2342
  /**
2316
2343
  * @public
@@ -2326,6 +2353,11 @@ export interface ConfigureLogsForPlaybackConfigurationResponse {
2326
2353
  * @public
2327
2354
  */
2328
2355
  PlaybackConfigurationName?: string | undefined;
2356
+ /**
2357
+ * <p>The method used for collecting logs from AWS Elemental MediaTailor. <code>LEGACY_CLOUDWATCH</code> indicates that MediaTailor is sending logs directly to Amazon CloudWatch Logs. <code>VENDED_LOGS</code> indicates that MediaTailor is sending logs to CloudWatch, which then vends the logs to your destination of choice. Supported destinations are CloudWatch Logs log group, Amazon S3 bucket, and Amazon Data Firehose stream. </p>
2358
+ * @public
2359
+ */
2360
+ EnabledLoggingStrategies?: LoggingStrategy[] | undefined;
2329
2361
  }
2330
2362
  /**
2331
2363
  * @public
@@ -3003,7 +3035,7 @@ export interface GetPlaybackConfigurationResponse {
3003
3035
  */
3004
3036
  VideoContentSourceUrl?: string | undefined;
3005
3037
  /**
3006
- * <p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns. </p>
3038
+ * <p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns, and what priority MediaTailor uses when inserting ads. </p>
3007
3039
  * @public
3008
3040
  */
3009
3041
  AdConditioningConfiguration?: AdConditioningConfiguration | undefined;
@@ -3426,7 +3458,7 @@ export interface PutPlaybackConfigurationRequest {
3426
3458
  */
3427
3459
  VideoContentSourceUrl?: string | undefined;
3428
3460
  /**
3429
- * <p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns.</p>
3461
+ * <p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns, and what priority MediaTailor uses when inserting ads. </p>
3430
3462
  * @public
3431
3463
  */
3432
3464
  AdConditioningConfiguration?: AdConditioningConfiguration | undefined;
@@ -3536,7 +3568,7 @@ export interface PutPlaybackConfigurationResponse {
3536
3568
  */
3537
3569
  VideoContentSourceUrl?: string | undefined;
3538
3570
  /**
3539
- * <p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns.</p>
3571
+ * <p>The setting that indicates what conditioning MediaTailor will perform on ads that the ad decision server (ADS) returns, and what priority MediaTailor uses when inserting ads. </p>
3540
3572
  * @public
3541
3573
  */
3542
3574
  AdConditioningConfiguration?: AdConditioningConfiguration | undefined;
@@ -141,6 +141,12 @@ export interface LiveSource {
141
141
  SourceLocationName: string | undefined;
142
142
  Tags?: Record<string, string> | undefined;
143
143
  }
144
+ export declare const LoggingStrategy: {
145
+ readonly LEGACY_CLOUDWATCH: "LEGACY_CLOUDWATCH";
146
+ readonly VENDED_LOGS: "VENDED_LOGS";
147
+ };
148
+ export type LoggingStrategy =
149
+ (typeof LoggingStrategy)[keyof typeof LoggingStrategy];
144
150
  export declare const StreamingMediaFileConditioning: {
145
151
  readonly NONE: "NONE";
146
152
  readonly TRANSCODE: "TRANSCODE";
@@ -199,6 +205,7 @@ export interface LivePreRollConfiguration {
199
205
  }
200
206
  export interface LogConfiguration {
201
207
  PercentEnabled: number | undefined;
208
+ EnabledLoggingStrategies?: LoggingStrategy[] | undefined;
202
209
  }
203
210
  export interface AdMarkerPassthrough {
204
211
  Enabled?: boolean | undefined;
@@ -570,10 +577,12 @@ export interface UpdateChannelResponse {
570
577
  export interface ConfigureLogsForPlaybackConfigurationRequest {
571
578
  PercentEnabled: number | undefined;
572
579
  PlaybackConfigurationName: string | undefined;
580
+ EnabledLoggingStrategies?: LoggingStrategy[] | undefined;
573
581
  }
574
582
  export interface ConfigureLogsForPlaybackConfigurationResponse {
575
583
  PercentEnabled: number | undefined;
576
584
  PlaybackConfigurationName?: string | undefined;
585
+ EnabledLoggingStrategies?: LoggingStrategy[] | undefined;
577
586
  }
578
587
  export interface CreateLiveSourceRequest {
579
588
  HttpPackageConfigurations: HttpPackageConfiguration[] | undefined;
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.739.0",
4
+ "version": "3.741.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-mediatailor",
@@ -21,7 +21,7 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.734.0",
24
- "@aws-sdk/credential-provider-node": "3.738.0",
24
+ "@aws-sdk/credential-provider-node": "3.741.0",
25
25
  "@aws-sdk/middleware-host-header": "3.734.0",
26
26
  "@aws-sdk/middleware-logger": "3.734.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.734.0",