Skip to content

Commit e581155

Browse files
author
awstools
committed
feat(client-medialive): Link devices now support buffer size (latency) configuration. A higher latency value means a longer delay in transmitting from the device to MediaLive, but improved resiliency. A lower latency value means a shorter delay, but less resiliency.
1 parent fee4186 commit e581155

File tree

5 files changed

+104
-25
lines changed

5 files changed

+104
-25
lines changed

clients/client-medialive/src/endpoint/ruleset.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,6 @@ export const ruleSet: RuleSetObject = {
5858
},
5959
],
6060
},
61-
{
62-
fn: "parseURL",
63-
argv: [
64-
{
65-
ref: "Endpoint",
66-
},
67-
],
68-
assign: "url",
69-
},
7061
],
7162
type: "tree",
7263
rules: [

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2665,6 +2665,11 @@ export interface InputDeviceHdSettings {
26652665
* The width of the video source, in pixels.
26662666
*/
26672667
Width?: number;
2668+
2669+
/**
2670+
* The Link device's buffer size (latency) in milliseconds (ms). You can specify this value.
2671+
*/
2672+
LatencyMs?: number;
26682673
}
26692674

26702675
export enum InputDeviceIpScheme {
@@ -2704,6 +2709,7 @@ export interface InputDeviceNetworkSettings {
27042709

27052710
export enum InputDeviceType {
27062711
HD = "HD",
2712+
UHD = "UHD",
27072713
}
27082714

27092715
/**
@@ -2749,6 +2755,11 @@ export interface InputDeviceUhdSettings {
27492755
* The width of the video source, in pixels.
27502756
*/
27512757
Width?: number;
2758+
2759+
/**
2760+
* The Link device's buffer size (latency) in milliseconds (ms). You can specify this value.
2761+
*/
2762+
LatencyMs?: number;
27522763
}
27532764

27542765
/**

clients/client-medialive/src/models/models_1.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5226,6 +5226,11 @@ export interface InputDeviceConfigurableSettings {
52265226
* The maximum bitrate in bits per second. Set a value here to throttle the bitrate of the source video.
52275227
*/
52285228
MaxBitrate?: number;
5229+
5230+
/**
5231+
* The Link device's buffer size (latency) in milliseconds (ms).
5232+
*/
5233+
LatencyMs?: number;
52295234
}
52305235

52315236
/**

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7882,6 +7882,7 @@ const serializeAws_restJson1InputDeviceConfigurableSettings = (
78827882
): any => {
78837883
return {
78847884
...(input.ConfiguredInput != null && { configuredInput: input.ConfiguredInput }),
7885+
...(input.LatencyMs != null && { latencyMs: input.LatencyMs }),
78857886
...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
78867887
};
78877888
};
@@ -11178,6 +11179,7 @@ const deserializeAws_restJson1InputDeviceHdSettings = (output: any, context: __S
1117811179
DeviceState: __expectString(output.deviceState),
1117911180
Framerate: __limitedParseDouble(output.framerate),
1118011181
Height: __expectInt32(output.height),
11182+
LatencyMs: __expectInt32(output.latencyMs),
1118111183
MaxBitrate: __expectInt32(output.maxBitrate),
1118211184
ScanType: __expectString(output.scanType),
1118311185
Width: __expectInt32(output.width),
@@ -11240,6 +11242,7 @@ const deserializeAws_restJson1InputDeviceUhdSettings = (
1124011242
DeviceState: __expectString(output.deviceState),
1124111243
Framerate: __limitedParseDouble(output.framerate),
1124211244
Height: __expectInt32(output.height),
11245+
LatencyMs: __expectInt32(output.latencyMs),
1124311246
MaxBitrate: __expectInt32(output.maxBitrate),
1124411247
ScanType: __expectString(output.scanType),
1124511248
Width: __expectInt32(output.width),

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

Lines changed: 85 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12215,6 +12215,14 @@
1221512215
"smithy.api#documentation": "The maximum bitrate in bits per second. Set a value here to throttle the bitrate of the source video.",
1221612216
"smithy.api#jsonName": "maxBitrate"
1221712217
}
12218+
},
12219+
"LatencyMs": {
12220+
"target": "com.amazonaws.medialive#__integer",
12221+
"traits": {
12222+
"smithy.api#default": 0,
12223+
"smithy.api#documentation": "The Link device's buffer size (latency) in milliseconds (ms).",
12224+
"smithy.api#jsonName": "latencyMs"
12225+
}
1221812226
}
1221912227
},
1222012228
"traits": {
@@ -12329,6 +12337,14 @@
1232912337
"smithy.api#documentation": "The width of the video source, in pixels.",
1233012338
"smithy.api#jsonName": "width"
1233112339
}
12340+
},
12341+
"LatencyMs": {
12342+
"target": "com.amazonaws.medialive#__integer",
12343+
"traits": {
12344+
"smithy.api#default": 0,
12345+
"smithy.api#documentation": "The Link device's buffer size (latency) in milliseconds (ms). You can specify this value.",
12346+
"smithy.api#jsonName": "latencyMs"
12347+
}
1233212348
}
1233312349
},
1233412350
"traits": {
@@ -12595,6 +12611,12 @@
1259512611
"traits": {
1259612612
"smithy.api#enumValue": "HD"
1259712613
}
12614+
},
12615+
"UHD": {
12616+
"target": "smithy.api#Unit",
12617+
"traits": {
12618+
"smithy.api#enumValue": "UHD"
12619+
}
1259812620
}
1259912621
},
1260012622
"traits": {
@@ -12663,6 +12685,14 @@
1266312685
"smithy.api#documentation": "The width of the video source, in pixels.",
1266412686
"smithy.api#jsonName": "width"
1266512687
}
12688+
},
12689+
"LatencyMs": {
12690+
"target": "com.amazonaws.medialive#__integer",
12691+
"traits": {
12692+
"smithy.api#default": 0,
12693+
"smithy.api#documentation": "The Link device's buffer size (latency) in milliseconds (ms). You can specify this value.",
12694+
"smithy.api#jsonName": "latencyMs"
12695+
}
1266612696
}
1266712697
},
1266812698
"traits": {
@@ -15959,15 +15989,6 @@
1595915989
"ref": "Endpoint"
1596015990
}
1596115991
]
15962-
},
15963-
{
15964-
"fn": "parseURL",
15965-
"argv": [
15966-
{
15967-
"ref": "Endpoint"
15968-
}
15969-
],
15970-
"assign": "url"
1597115992
}
1597215993
],
1597315994
"type": "tree",
@@ -16228,8 +16249,8 @@
1622816249
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
1622916250
},
1623016251
"params": {
16231-
"UseDualStack": true,
1623216252
"UseFIPS": true,
16253+
"UseDualStack": true,
1623316254
"Region": "us-iso-east-1"
1623416255
}
1623516256
},
@@ -16241,8 +16262,8 @@
1624116262
}
1624216263
},
1624316264
"params": {
16244-
"UseDualStack": false,
1624516265
"UseFIPS": true,
16266+
"UseDualStack": false,
1624616267
"Region": "us-iso-east-1"
1624716268
}
1624816269
},
@@ -16252,8 +16273,8 @@
1625216273
"error": "DualStack is enabled but this partition does not support DualStack"
1625316274
},
1625416275
"params": {
16255-
"UseDualStack": true,
1625616276
"UseFIPS": false,
16277+
"UseDualStack": true,
1625716278
"Region": "us-iso-east-1"
1625816279
}
1625916280
},
@@ -16265,11 +16286,59 @@
1626516286
}
1626616287
},
1626716288
"params": {
16268-
"UseDualStack": false,
1626916289
"UseFIPS": false,
16290+
"UseDualStack": false,
1627016291
"Region": "us-iso-east-1"
1627116292
}
1627216293
},
16294+
{
16295+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
16296+
"expect": {
16297+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
16298+
},
16299+
"params": {
16300+
"UseFIPS": true,
16301+
"UseDualStack": true,
16302+
"Region": "us-isob-east-1"
16303+
}
16304+
},
16305+
{
16306+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
16307+
"expect": {
16308+
"endpoint": {
16309+
"url": "https://medialive-fips.us-isob-east-1.sc2s.sgov.gov"
16310+
}
16311+
},
16312+
"params": {
16313+
"UseFIPS": true,
16314+
"UseDualStack": false,
16315+
"Region": "us-isob-east-1"
16316+
}
16317+
},
16318+
{
16319+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
16320+
"expect": {
16321+
"error": "DualStack is enabled but this partition does not support DualStack"
16322+
},
16323+
"params": {
16324+
"UseFIPS": false,
16325+
"UseDualStack": true,
16326+
"Region": "us-isob-east-1"
16327+
}
16328+
},
16329+
{
16330+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
16331+
"expect": {
16332+
"endpoint": {
16333+
"url": "https://medialive.us-isob-east-1.sc2s.sgov.gov"
16334+
}
16335+
},
16336+
"params": {
16337+
"UseFIPS": false,
16338+
"UseDualStack": false,
16339+
"Region": "us-isob-east-1"
16340+
}
16341+
},
1627316342
{
1627416343
"documentation": "For custom endpoint with fips disabled and dualstack disabled",
1627516344
"expect": {
@@ -16278,8 +16347,8 @@
1627816347
}
1627916348
},
1628016349
"params": {
16281-
"UseDualStack": false,
1628216350
"UseFIPS": false,
16351+
"UseDualStack": false,
1628316352
"Region": "us-east-1",
1628416353
"Endpoint": "https://example.com"
1628516354
}
@@ -16290,8 +16359,8 @@
1629016359
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
1629116360
},
1629216361
"params": {
16293-
"UseDualStack": false,
1629416362
"UseFIPS": true,
16363+
"UseDualStack": false,
1629516364
"Region": "us-east-1",
1629616365
"Endpoint": "https://example.com"
1629716366
}
@@ -16302,8 +16371,8 @@
1630216371
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
1630316372
},
1630416373
"params": {
16305-
"UseDualStack": true,
1630616374
"UseFIPS": false,
16375+
"UseDualStack": true,
1630716376
"Region": "us-east-1",
1630816377
"Endpoint": "https://example.com"
1630916378
}

0 commit comments

Comments
 (0)