@aws-sdk/client-mediatailor 3.327.0 → 3.328.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/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +6 -1
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +5 -0
- package/dist-types/commands/GetPlaybackConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/ListPlaybackConfigurationsCommand.d.ts +2 -1
- package/dist-types/commands/PutPlaybackConfigurationCommand.d.ts +4 -2
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +18 -1
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +7 -0
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const q = "
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.mediatailor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.mediatailor-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.mediatailor.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://api.mediatailor.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RelativePosition = exports.ChannelState = exports.Tier = exports.PlaybackMode = exports.BadRequestException = exports.AccessType = exports.ScheduleEntryType = exports.OriginManifestType = exports.Mode = exports.Type = exports.LogType = exports.Operator = exports.MessageType = void 0;
|
|
3
|
+
exports.RelativePosition = exports.ChannelState = exports.Tier = exports.PlaybackMode = exports.BadRequestException = exports.AccessType = exports.ScheduleEntryType = exports.OriginManifestType = exports.Mode = exports.FillPolicy = exports.Type = exports.LogType = exports.Operator = exports.MessageType = void 0;
|
|
4
4
|
const MediaTailorServiceException_1 = require("./MediaTailorServiceException");
|
|
5
5
|
exports.MessageType = {
|
|
6
6
|
SPLICE_INSERT: "SPLICE_INSERT",
|
|
@@ -16,7 +16,12 @@ exports.Type = {
|
|
|
16
16
|
DASH: "DASH",
|
|
17
17
|
HLS: "HLS",
|
|
18
18
|
};
|
|
19
|
+
exports.FillPolicy = {
|
|
20
|
+
FULL_AVAIL_ONLY: "FULL_AVAIL_ONLY",
|
|
21
|
+
PARTIAL_AVAIL: "PARTIAL_AVAIL",
|
|
22
|
+
};
|
|
19
23
|
exports.Mode = {
|
|
24
|
+
AFTER_LIVE_EDGE: "AFTER_LIVE_EDGE",
|
|
20
25
|
BEHIND_LIVE_EDGE: "BEHIND_LIVE_EDGE",
|
|
21
26
|
OFF: "OFF",
|
|
22
27
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const q = "
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.mediatailor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.mediatailor-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.mediatailor.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://api.mediatailor.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -13,7 +13,12 @@ export const Type = {
|
|
|
13
13
|
DASH: "DASH",
|
|
14
14
|
HLS: "HLS",
|
|
15
15
|
};
|
|
16
|
+
export const FillPolicy = {
|
|
17
|
+
FULL_AVAIL_ONLY: "FULL_AVAIL_ONLY",
|
|
18
|
+
PARTIAL_AVAIL: "PARTIAL_AVAIL",
|
|
19
|
+
};
|
|
16
20
|
export const Mode = {
|
|
21
|
+
AFTER_LIVE_EDGE: "AFTER_LIVE_EDGE",
|
|
17
22
|
BEHIND_LIVE_EDGE: "BEHIND_LIVE_EDGE",
|
|
18
23
|
OFF: "OFF",
|
|
19
24
|
};
|
|
@@ -34,8 +34,9 @@ export interface GetPlaybackConfigurationCommandOutput extends GetPlaybackConfig
|
|
|
34
34
|
* // { // GetPlaybackConfigurationResponse
|
|
35
35
|
* // AdDecisionServerUrl: "STRING_VALUE",
|
|
36
36
|
* // AvailSuppression: { // AvailSuppression
|
|
37
|
-
* // Mode: "OFF" || "BEHIND_LIVE_EDGE",
|
|
37
|
+
* // Mode: "OFF" || "BEHIND_LIVE_EDGE" || "AFTER_LIVE_EDGE",
|
|
38
38
|
* // Value: "STRING_VALUE",
|
|
39
|
+
* // FillPolicy: "FULL_AVAIL_ONLY" || "PARTIAL_AVAIL",
|
|
39
40
|
* // },
|
|
40
41
|
* // Bumper: { // Bumper
|
|
41
42
|
* // EndUrl: "STRING_VALUE",
|
|
@@ -37,8 +37,9 @@ export interface ListPlaybackConfigurationsCommandOutput extends ListPlaybackCon
|
|
|
37
37
|
* // { // PlaybackConfiguration
|
|
38
38
|
* // AdDecisionServerUrl: "STRING_VALUE",
|
|
39
39
|
* // AvailSuppression: { // AvailSuppression
|
|
40
|
-
* // Mode: "OFF" || "BEHIND_LIVE_EDGE",
|
|
40
|
+
* // Mode: "OFF" || "BEHIND_LIVE_EDGE" || "AFTER_LIVE_EDGE",
|
|
41
41
|
* // Value: "STRING_VALUE",
|
|
42
|
+
* // FillPolicy: "FULL_AVAIL_ONLY" || "PARTIAL_AVAIL",
|
|
42
43
|
* // },
|
|
43
44
|
* // Bumper: { // Bumper
|
|
44
45
|
* // EndUrl: "STRING_VALUE",
|
|
@@ -29,8 +29,9 @@ export interface PutPlaybackConfigurationCommandOutput extends PutPlaybackConfig
|
|
|
29
29
|
* const input = { // PutPlaybackConfigurationRequest
|
|
30
30
|
* AdDecisionServerUrl: "STRING_VALUE",
|
|
31
31
|
* AvailSuppression: { // AvailSuppression
|
|
32
|
-
* Mode: "OFF" || "BEHIND_LIVE_EDGE",
|
|
32
|
+
* Mode: "OFF" || "BEHIND_LIVE_EDGE" || "AFTER_LIVE_EDGE",
|
|
33
33
|
* Value: "STRING_VALUE",
|
|
34
|
+
* FillPolicy: "FULL_AVAIL_ONLY" || "PARTIAL_AVAIL",
|
|
34
35
|
* },
|
|
35
36
|
* Bumper: { // Bumper
|
|
36
37
|
* EndUrl: "STRING_VALUE",
|
|
@@ -72,8 +73,9 @@ export interface PutPlaybackConfigurationCommandOutput extends PutPlaybackConfig
|
|
|
72
73
|
* // { // PutPlaybackConfigurationResponse
|
|
73
74
|
* // AdDecisionServerUrl: "STRING_VALUE",
|
|
74
75
|
* // AvailSuppression: { // AvailSuppression
|
|
75
|
-
* // Mode: "OFF" || "BEHIND_LIVE_EDGE",
|
|
76
|
+
* // Mode: "OFF" || "BEHIND_LIVE_EDGE" || "AFTER_LIVE_EDGE",
|
|
76
77
|
* // Value: "STRING_VALUE",
|
|
78
|
+
* // FillPolicy: "FULL_AVAIL_ONLY" || "PARTIAL_AVAIL",
|
|
77
79
|
* // },
|
|
78
80
|
* // Bumper: { // Bumper
|
|
79
81
|
* // EndUrl: "STRING_VALUE",
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region?: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|
|
@@ -382,11 +382,24 @@ export interface LiveSource {
|
|
|
382
382
|
*/
|
|
383
383
|
Tags?: Record<string, string>;
|
|
384
384
|
}
|
|
385
|
+
/**
|
|
386
|
+
* @public
|
|
387
|
+
* @enum
|
|
388
|
+
*/
|
|
389
|
+
export declare const FillPolicy: {
|
|
390
|
+
readonly FULL_AVAIL_ONLY: "FULL_AVAIL_ONLY";
|
|
391
|
+
readonly PARTIAL_AVAIL: "PARTIAL_AVAIL";
|
|
392
|
+
};
|
|
393
|
+
/**
|
|
394
|
+
* @public
|
|
395
|
+
*/
|
|
396
|
+
export type FillPolicy = (typeof FillPolicy)[keyof typeof FillPolicy];
|
|
385
397
|
/**
|
|
386
398
|
* @public
|
|
387
399
|
* @enum
|
|
388
400
|
*/
|
|
389
401
|
export declare const Mode: {
|
|
402
|
+
readonly AFTER_LIVE_EDGE: "AFTER_LIVE_EDGE";
|
|
390
403
|
readonly BEHIND_LIVE_EDGE: "BEHIND_LIVE_EDGE";
|
|
391
404
|
readonly OFF: "OFF";
|
|
392
405
|
};
|
|
@@ -400,13 +413,17 @@ export type Mode = (typeof Mode)[keyof typeof Mode];
|
|
|
400
413
|
*/
|
|
401
414
|
export interface AvailSuppression {
|
|
402
415
|
/**
|
|
403
|
-
* <p>Sets the ad suppression mode. By default, ad suppression is off and all ad breaks are filled with ads or slate. When Mode is set to <code>BEHIND_LIVE_EDGE</code>, ad suppression is active and MediaTailor won't fill ad breaks on or behind the ad suppression Value time in the manifest lookback window.</p>
|
|
416
|
+
* <p>Sets the ad suppression mode. By default, ad suppression is off and all ad breaks are filled with ads or slate. When Mode is set to <code>BEHIND_LIVE_EDGE</code>, ad suppression is active and MediaTailor won't fill ad breaks on or behind the ad suppression Value time in the manifest lookback window. When Mode is set to <code>AFTER_LIVE_EDGE</code>, ad suppression is active and MediaTailor won't fill ad breaks that are within the live edge plus the avail suppression value.</p>
|
|
404
417
|
*/
|
|
405
418
|
Mode?: Mode | string;
|
|
406
419
|
/**
|
|
407
420
|
* <p>A live edge offset time in HH:MM:SS. MediaTailor won't fill ad breaks on or behind this time in the manifest lookback window. If Value is set to 00:00:00, it is in sync with the live edge, and MediaTailor won't fill any ad breaks on or behind the live edge. If you set a Value time, MediaTailor won't fill any ad breaks on or behind this time in the manifest lookback window. For example, if you set 00:45:00, then MediaTailor will fill ad breaks that occur within 45 minutes behind the live edge, but won't fill ad breaks on or behind 45 minutes behind the live edge.</p>
|
|
408
421
|
*/
|
|
409
422
|
Value?: string;
|
|
423
|
+
/**
|
|
424
|
+
* <p>Defines the policy to apply to the avail suppression mode. <code>BEHIND_LIVE_EDGE</code> will always use the full avail suppression policy. <code>AFTER_LIVE_EDGE</code> mode can be used to invoke partial ad break fills when a session starts mid-break.</p>
|
|
425
|
+
*/
|
|
426
|
+
FillPolicy?: FillPolicy | string;
|
|
410
427
|
}
|
|
411
428
|
/**
|
|
412
429
|
* @public
|
|
@@ -26,7 +26,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
26
26
|
defaultSigningName: string;
|
|
27
27
|
};
|
|
28
28
|
export interface EndpointParameters extends __EndpointParameters {
|
|
29
|
-
Region
|
|
29
|
+
Region?: string;
|
|
30
30
|
UseDualStack?: boolean;
|
|
31
31
|
UseFIPS?: boolean;
|
|
32
32
|
Endpoint?: string;
|
|
@@ -105,7 +105,13 @@ export interface LiveSource {
|
|
|
105
105
|
SourceLocationName: string | undefined;
|
|
106
106
|
Tags?: Record<string, string>;
|
|
107
107
|
}
|
|
108
|
+
export declare const FillPolicy: {
|
|
109
|
+
readonly FULL_AVAIL_ONLY: "FULL_AVAIL_ONLY";
|
|
110
|
+
readonly PARTIAL_AVAIL: "PARTIAL_AVAIL";
|
|
111
|
+
};
|
|
112
|
+
export type FillPolicy = (typeof FillPolicy)[keyof typeof FillPolicy];
|
|
108
113
|
export declare const Mode: {
|
|
114
|
+
readonly AFTER_LIVE_EDGE: "AFTER_LIVE_EDGE";
|
|
109
115
|
readonly BEHIND_LIVE_EDGE: "BEHIND_LIVE_EDGE";
|
|
110
116
|
readonly OFF: "OFF";
|
|
111
117
|
};
|
|
@@ -113,6 +119,7 @@ export type Mode = (typeof Mode)[keyof typeof Mode];
|
|
|
113
119
|
export interface AvailSuppression {
|
|
114
120
|
Mode?: Mode | string;
|
|
115
121
|
Value?: string;
|
|
122
|
+
FillPolicy?: FillPolicy | string;
|
|
116
123
|
}
|
|
117
124
|
export interface Bumper {
|
|
118
125
|
EndUrl?: string;
|
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.
|
|
4
|
+
"version": "3.328.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.328.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.328.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.325.0",
|
|
39
39
|
"@aws-sdk/middleware-user-agent": "3.327.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.328.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
43
|
"@aws-sdk/smithy-client": "3.325.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|