Skip to content

Commit 7566539

Browse files
author
awstools
committed
feat(client-mediatailor): Added InsertionMode to PlaybackConfigurations. This setting controls whether players can use stitched or guided ad insertion. The default for players that do not specify an insertion mode is stitched.
1 parent d7ebbc3 commit 7566539

File tree

6 files changed

+94
-0
lines changed

6 files changed

+94
-0
lines changed

clients/client-mediatailor/src/commands/GetPlaybackConfigurationCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export interface GetPlaybackConfigurationCommandOutput extends GetPlaybackConfig
6767
* // HlsConfiguration: { // HlsConfiguration
6868
* // ManifestEndpointPrefix: "STRING_VALUE",
6969
* // },
70+
* // InsertionMode: "STITCHED_ONLY" || "PLAYER_SELECT",
7071
* // LivePreRollConfiguration: { // LivePreRollConfiguration
7172
* // AdDecisionServerUrl: "STRING_VALUE",
7273
* // MaxDurationSeconds: Number("int"),

clients/client-mediatailor/src/commands/ListPlaybackConfigurationsCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export interface ListPlaybackConfigurationsCommandOutput extends ListPlaybackCon
7070
* // HlsConfiguration: { // HlsConfiguration
7171
* // ManifestEndpointPrefix: "STRING_VALUE",
7272
* // },
73+
* // InsertionMode: "STITCHED_ONLY" || "PLAYER_SELECT",
7374
* // LivePreRollConfiguration: { // LivePreRollConfiguration
7475
* // AdDecisionServerUrl: "STRING_VALUE",
7576
* // MaxDurationSeconds: Number("int"),

clients/client-mediatailor/src/commands/PutPlaybackConfigurationCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export interface PutPlaybackConfigurationCommandOutput extends PutPlaybackConfig
5858
* MpdLocation: "STRING_VALUE",
5959
* OriginManifestType: "SINGLE_PERIOD" || "MULTI_PERIOD",
6060
* },
61+
* InsertionMode: "STITCHED_ONLY" || "PLAYER_SELECT",
6162
* LivePreRollConfiguration: { // LivePreRollConfiguration
6263
* AdDecisionServerUrl: "STRING_VALUE",
6364
* MaxDurationSeconds: Number("int"),
@@ -106,6 +107,7 @@ export interface PutPlaybackConfigurationCommandOutput extends PutPlaybackConfig
106107
* // HlsConfiguration: { // HlsConfiguration
107108
* // ManifestEndpointPrefix: "STRING_VALUE",
108109
* // },
110+
* // InsertionMode: "STITCHED_ONLY" || "PLAYER_SELECT",
109111
* // LivePreRollConfiguration: { // LivePreRollConfiguration
110112
* // AdDecisionServerUrl: "STRING_VALUE",
111113
* // MaxDurationSeconds: Number("int"),

clients/client-mediatailor/src/models/models_0.ts

+38
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,20 @@ export interface HlsConfiguration {
805805
ManifestEndpointPrefix?: string;
806806
}
807807

808+
/**
809+
* @public
810+
* @enum
811+
*/
812+
export const InsertionMode = {
813+
PLAYER_SELECT: "PLAYER_SELECT",
814+
STITCHED_ONLY: "STITCHED_ONLY",
815+
} as const;
816+
817+
/**
818+
* @public
819+
*/
820+
export type InsertionMode = (typeof InsertionMode)[keyof typeof InsertionMode];
821+
808822
/**
809823
* <p>The configuration for pre-roll ad insertion.</p>
810824
* @public
@@ -910,6 +924,12 @@ export interface PlaybackConfiguration {
910924
*/
911925
HlsConfiguration?: HlsConfiguration;
912926

927+
/**
928+
* <p>The setting that controls whether players can use stitched or guided ad insertion. The default, <code>STITCHED_ONLY</code>, forces all player sessions to use stitched (server-side) ad insertion. Choosing <code>PLAYER_SELECT</code> allows players to select either stitched or guided ad insertion at session-initialization time. The default for players that do not specify an insertion mode is stitched.</p>
929+
* @public
930+
*/
931+
InsertionMode?: InsertionMode;
932+
913933
/**
914934
* <p>The configuration for pre-roll ad insertion.</p>
915935
* @public
@@ -3340,6 +3360,12 @@ export interface GetPlaybackConfigurationResponse {
33403360
*/
33413361
HlsConfiguration?: HlsConfiguration;
33423362

3363+
/**
3364+
* <p>The setting that controls whether players can use stitched or guided ad insertion. The default, <code>STITCHED_ONLY</code>, forces all player sessions to use stitched (server-side) ad insertion. Choosing <code>PLAYER_SELECT</code> allows players to select either stitched or guided ad insertion at session-initialization time. The default for players that do not specify an insertion mode is stitched.</p>
3365+
* @public
3366+
*/
3367+
InsertionMode?: InsertionMode;
3368+
33433369
/**
33443370
* <p>The configuration for pre-roll ad insertion.</p>
33453371
* @public
@@ -3840,6 +3866,12 @@ export interface PutPlaybackConfigurationRequest {
38403866
*/
38413867
DashConfiguration?: DashConfigurationForPut;
38423868

3869+
/**
3870+
* <p>The setting that controls whether players can use stitched or guided ad insertion. The default, <code>STITCHED_ONLY</code>, forces all player sessions to use stitched (server-side) ad insertion. Choosing <code>PLAYER_SELECT</code> allows players to select either stitched or guided ad insertion at session-initialization time. The default for players that do not specify an insertion mode is stitched.</p>
3871+
* @public
3872+
*/
3873+
InsertionMode?: InsertionMode;
3874+
38433875
/**
38443876
* <p>The configuration for pre-roll ad insertion.</p>
38453877
* @public
@@ -3935,6 +3967,12 @@ export interface PutPlaybackConfigurationResponse {
39353967
*/
39363968
HlsConfiguration?: HlsConfiguration;
39373969

3970+
/**
3971+
* <p>The setting that controls whether players can use stitched or guided ad insertion. The default, <code>STITCHED_ONLY</code>, forces all player sessions to use stitched (server-side) ad insertion. Choosing <code>PLAYER_SELECT</code> allows players to select either stitched or guided ad insertion at session-initialization time. The default for players that do not specify an insertion mode is stitched.</p>
3972+
* @public
3973+
*/
3974+
InsertionMode?: InsertionMode;
3975+
39383976
/**
39393977
* <p>The configuration for pre-roll ad insertion.</p>
39403978
* @public

clients/client-mediatailor/src/protocols/Aws_restJson1.ts

+4
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,7 @@ export const se_PutPlaybackConfigurationCommand = async (
864864
CdnConfiguration: (_) => _json(_),
865865
ConfigurationAliases: (_) => _json(_),
866866
DashConfiguration: (_) => _json(_),
867+
InsertionMode: [],
867868
LivePreRollConfiguration: (_) => _json(_),
868869
ManifestProcessingRules: (_) => _json(_),
869870
Name: [],
@@ -1648,6 +1649,7 @@ export const de_GetPlaybackConfigurationCommand = async (
16481649
ConfigurationAliases: _json,
16491650
DashConfiguration: _json,
16501651
HlsConfiguration: _json,
1652+
InsertionMode: __expectString,
16511653
LivePreRollConfiguration: _json,
16521654
LogConfiguration: _json,
16531655
ManifestProcessingRules: _json,
@@ -1905,6 +1907,7 @@ export const de_PutPlaybackConfigurationCommand = async (
19051907
ConfigurationAliases: _json,
19061908
DashConfiguration: _json,
19071909
HlsConfiguration: _json,
1910+
InsertionMode: __expectString,
19081911
LivePreRollConfiguration: _json,
19091912
LogConfiguration: _json,
19101913
ManifestProcessingRules: _json,
@@ -2533,6 +2536,7 @@ const de_PlaybackConfiguration = (output: any, context: __SerdeContext): Playbac
25332536
ConfigurationAliases: _json,
25342537
DashConfiguration: _json,
25352538
HlsConfiguration: _json,
2539+
InsertionMode: __expectString,
25362540
LivePreRollConfiguration: _json,
25372541
LogConfiguration: _json,
25382542
ManifestProcessingRules: _json,

codegen/sdk-codegen/aws-models/mediatailor.json

+48
Original file line numberDiff line numberDiff line change
@@ -2633,6 +2633,13 @@
26332633
"smithy.api#documentation": "<p>The configuration for HLS content.</p>"
26342634
}
26352635
},
2636+
"InsertionMode": {
2637+
"target": "com.amazonaws.mediatailor#InsertionMode",
2638+
"traits": {
2639+
"smithy.api#default": "STITCHED_ONLY",
2640+
"smithy.api#documentation": "<p>The setting that controls whether players can use stitched or guided ad insertion. The default, <code>STITCHED_ONLY</code>, forces all player sessions to use stitched (server-side) ad insertion. Choosing <code>PLAYER_SELECT</code> allows players to select either stitched or guided ad insertion at session-initialization time. The default for players that do not specify an insertion mode is stitched.</p>"
2641+
}
2642+
},
26362643
"LivePreRollConfiguration": {
26372644
"target": "com.amazonaws.mediatailor#LivePreRollConfiguration",
26382645
"traits": {
@@ -2875,6 +2882,26 @@
28752882
"smithy.api#documentation": "<p>The VOD source's HTTP package configuration settings.</p>"
28762883
}
28772884
},
2885+
"com.amazonaws.mediatailor#InsertionMode": {
2886+
"type": "enum",
2887+
"members": {
2888+
"STITCHED_ONLY": {
2889+
"target": "smithy.api#Unit",
2890+
"traits": {
2891+
"smithy.api#enumValue": "STITCHED_ONLY"
2892+
}
2893+
},
2894+
"PLAYER_SELECT": {
2895+
"target": "smithy.api#Unit",
2896+
"traits": {
2897+
"smithy.api#enumValue": "PLAYER_SELECT"
2898+
}
2899+
}
2900+
},
2901+
"traits": {
2902+
"smithy.api#documentation": "<p>Insertion Mode controls whether players can use stitched or guided ad insertion.</p>"
2903+
}
2904+
},
28782905
"com.amazonaws.mediatailor#KeyValuePair": {
28792906
"type": "structure",
28802907
"members": {
@@ -4486,6 +4513,13 @@
44864513
"smithy.api#documentation": "<p>The configuration for HLS content.</p>"
44874514
}
44884515
},
4516+
"InsertionMode": {
4517+
"target": "com.amazonaws.mediatailor#InsertionMode",
4518+
"traits": {
4519+
"smithy.api#default": "STITCHED_ONLY",
4520+
"smithy.api#documentation": "<p>The setting that controls whether players can use stitched or guided ad insertion. The default, <code>STITCHED_ONLY</code>, forces all player sessions to use stitched (server-side) ad insertion. Choosing <code>PLAYER_SELECT</code> allows players to select either stitched or guided ad insertion at session-initialization time. The default for players that do not specify an insertion mode is stitched.</p>"
4521+
}
4522+
},
44894523
"LivePreRollConfiguration": {
44904524
"target": "com.amazonaws.mediatailor#LivePreRollConfiguration",
44914525
"traits": {
@@ -4876,6 +4910,13 @@
48764910
"smithy.api#documentation": "<p>The configuration for DASH content.</p>"
48774911
}
48784912
},
4913+
"InsertionMode": {
4914+
"target": "com.amazonaws.mediatailor#InsertionMode",
4915+
"traits": {
4916+
"smithy.api#default": "STITCHED_ONLY",
4917+
"smithy.api#documentation": "<p>The setting that controls whether players can use stitched or guided ad insertion. The default, <code>STITCHED_ONLY</code>, forces all player sessions to use stitched (server-side) ad insertion. Choosing <code>PLAYER_SELECT</code> allows players to select either stitched or guided ad insertion at session-initialization time. The default for players that do not specify an insertion mode is stitched.</p>"
4918+
}
4919+
},
48794920
"LivePreRollConfiguration": {
48804921
"target": "com.amazonaws.mediatailor#LivePreRollConfiguration",
48814922
"traits": {
@@ -4973,6 +5014,13 @@
49735014
"smithy.api#documentation": "<p>The configuration for HLS content.</p>"
49745015
}
49755016
},
5017+
"InsertionMode": {
5018+
"target": "com.amazonaws.mediatailor#InsertionMode",
5019+
"traits": {
5020+
"smithy.api#default": "STITCHED_ONLY",
5021+
"smithy.api#documentation": "<p>The setting that controls whether players can use stitched or guided ad insertion. The default, <code>STITCHED_ONLY</code>, forces all player sessions to use stitched (server-side) ad insertion. Choosing <code>PLAYER_SELECT</code> allows players to select either stitched or guided ad insertion at session-initialization time. The default for players that do not specify an insertion mode is stitched.</p>"
5022+
}
5023+
},
49765024
"LivePreRollConfiguration": {
49775025
"target": "com.amazonaws.mediatailor#LivePreRollConfiguration",
49785026
"traits": {

0 commit comments

Comments
 (0)