Skip to content

Commit e233a50

Browse files
author
awstools
committed
feat(client-mediaconvert): AWS Elemental MediaConvert SDK now supports conversion of 608 paint-on captions to pop-on captions for SCC sources.
1 parent 16d0576 commit e233a50

File tree

7 files changed

+206
-76
lines changed

7 files changed

+206
-76
lines changed

clients/client-mediaconvert/src/commands/GetJobCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ import {
1414
} from "@aws-sdk/types";
1515

1616
import { MediaConvertClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaConvertClient";
17-
import { GetJobRequest } from "../models/models_1";
18-
import { GetJobResponse } from "../models/models_2";
17+
import { GetJobRequest, GetJobResponse } from "../models/models_2";
1918
import { de_GetJobCommand, se_GetJobCommand } from "../protocols/Aws_restJson1";
2019

2120
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ q={[v]:"booleanEquals",[w]:[true,{[v]:f,[w]:[p,"supportsDualStack"]}]},
3030
r=[k],
3131
s=[l],
3232
t=[n];
33-
const _data={version:"1.0",parameters:{Region:h,UseDualStack:i,UseFIPS:i,Endpoint:h},rules:[{conditions:[{[v]:a,[w]:[j]}],type:b,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:j,properties:m,headers:m},type:d}]}]},{type:b,rules:[{conditions:[{[v]:a,[w]:t}],type:b,rules:[{conditions:[{[v]:"aws.partition",[w]:t,assign:e}],type:b,rules:[{conditions:[k,l],type:b,rules:[{conditions:[o,q],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://mediaconvert-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:r,type:b,rules:[{conditions:[o],type:b,rules:[{type:b,rules:[{conditions:[{[v]:g,[w]:["aws-us-gov",{[v]:f,[w]:[p,"name"]}]}],endpoint:{url:"https://mediaconvert.{Region}.amazonaws.com",properties:m,headers:m},type:d},{endpoint:{url:"https://mediaconvert-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:s,type:b,rules:[{conditions:[q],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://mediaconvert.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{conditions:[{[v]:g,[w]:[n,"cn-northwest-1"]}],endpoint:{url:"https://subscribe.mediaconvert.cn-northwest-1.amazonaws.com.cn",properties:m,headers:m},type:d},{conditions:[{[v]:g,[w]:[n,"us-gov-west-1"]}],endpoint:{url:"https://mediaconvert.us-gov-west-1.amazonaws.com",properties:m,headers:m},type:d},{endpoint:{url:"https://mediaconvert.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]};
33+
const _data={version:"1.0",parameters:{Region:h,UseDualStack:i,UseFIPS:i,Endpoint:h},rules:[{conditions:[{[v]:a,[w]:[j]}],type:b,rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:j,properties:m,headers:m},type:d}]}]},{type:b,rules:[{conditions:[{[v]:a,[w]:t}],type:b,rules:[{conditions:[{[v]:"aws.partition",[w]:t,assign:e}],type:b,rules:[{conditions:[k,l],type:b,rules:[{conditions:[o,q],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://mediaconvert-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:r,type:b,rules:[{conditions:[o],type:b,rules:[{type:b,rules:[{conditions:[{[v]:g,[w]:["aws-us-gov",{[v]:f,[w]:[p,"name"]}]}],endpoint:{url:"https://mediaconvert.{Region}.amazonaws.com",properties:m,headers:m},type:d},{endpoint:{url:"https://mediaconvert-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:s,type:b,rules:[{conditions:[q],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://mediaconvert.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{conditions:[{[v]:g,[w]:[n,"cn-northwest-1"]}],endpoint:{url:"https://subscribe.mediaconvert.cn-northwest-1.amazonaws.com.cn",properties:m,headers:m},type:d},{endpoint:{url:"https://mediaconvert.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]};
3434
export const ruleSet: RuleSetObject = _data;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2831,7 +2831,7 @@ export interface HopDestination {
28312831
Queue?: string;
28322832

28332833
/**
2834-
* Required for setting up a job to use queue hopping. Minimum wait time in minutes until the job can hop to the destination queue. Valid range is 1 to 1440 minutes, inclusive.
2834+
* Required for setting up a job to use queue hopping. Minimum wait time in minutes until the job can hop to the destination queue. Valid range is 1 to 4320 minutes, inclusive.
28352835
*/
28362836
WaitMinutes?: number;
28372837
}

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

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5688,6 +5688,22 @@ export interface Timing {
56885688
SubmitTime?: Date;
56895689
}
56905690

5691+
/**
5692+
* @public
5693+
* Contains any warning codes and their count for the job.
5694+
*/
5695+
export interface WarningGroup {
5696+
/**
5697+
* Warning code that identifies a specific warning in the job. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html
5698+
*/
5699+
Code: number | undefined;
5700+
5701+
/**
5702+
* The number of times this warning occurred in the job.
5703+
*/
5704+
Count: number | undefined;
5705+
}
5706+
56915707
/**
56925708
* @public
56935709
* Each job converts an input file into an output file or files. For more information, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
@@ -5713,6 +5729,11 @@ export interface Job {
57135729
*/
57145730
BillingTagsSource?: BillingTagsSource | string;
57155731

5732+
/**
5733+
* Prevent duplicate jobs from being created and ensure idempotency for your requests. A client request token can be any string that includes up to 64 ASCII characters. If you reuse a client request token within one minute of a successful request, the API returns the job details of the original request instead. For more information see https://docs.aws.amazon.com/mediaconvert/latest/apireference/idempotency.html.
5734+
*/
5735+
ClientRequestToken?: string;
5736+
57165737
/**
57175738
* The time, in Unix epoch format in seconds, when the job got created.
57185739
*/
@@ -5817,6 +5838,11 @@ export interface Job {
58175838
* User-defined metadata that you want to associate with an MediaConvert job. You specify metadata in key/value pairs.
58185839
*/
58195840
UserMetadata?: Record<string, string>;
5841+
5842+
/**
5843+
* Contains any warning messages for the job. Use to help identify potential issues with your input, output, or job. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html
5844+
*/
5845+
Warnings?: WarningGroup[];
58205846
}
58215847

58225848
/**
@@ -6740,13 +6766,3 @@ export interface DisassociateCertificateRequest {
67406766
* @public
67416767
*/
67426768
export interface DisassociateCertificateResponse {}
6743-
6744-
/**
6745-
* @public
6746-
*/
6747-
export interface GetJobRequest {
6748-
/**
6749-
* the job ID of the job.
6750-
*/
6751-
Id: string | undefined;
6752-
}

clients/client-mediaconvert/src/models/models_2.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ import {
1313
StatusUpdateInterval,
1414
} from "./models_1";
1515

16+
/**
17+
* @public
18+
*/
19+
export interface GetJobRequest {
20+
/**
21+
* the job ID of the job.
22+
*/
23+
Id: string | undefined;
24+
}
25+
1626
/**
1727
* @public
1828
*/

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ import {
236236
VideoPreprocessor,
237237
Vp8Settings,
238238
Vp9Settings,
239+
WarningGroup,
239240
Xavc4kIntraCbgProfileSettings,
240241
Xavc4kIntraVbrProfileSettings,
241242
Xavc4kProfileSettings,
@@ -6538,6 +6539,21 @@ const de___listOfTeletextPageType = (output: any, context: __SerdeContext): (Tel
65386539
return retVal;
65396540
};
65406541

6542+
/**
6543+
* deserializeAws_restJson1__listOfWarningGroup
6544+
*/
6545+
const de___listOfWarningGroup = (output: any, context: __SerdeContext): WarningGroup[] => {
6546+
const retVal = (output || [])
6547+
.filter((e: any) => e != null)
6548+
.map((entry: any) => {
6549+
if (entry === null) {
6550+
return null as any;
6551+
}
6552+
return de_WarningGroup(entry, context);
6553+
});
6554+
return retVal;
6555+
};
6556+
65416557
/**
65426558
* deserializeAws_restJson1__mapOf__string
65436559
*/
@@ -8048,6 +8064,7 @@ const de_Job = (output: any, context: __SerdeContext): Job => {
80488064
AccelerationStatus: __expectString(output.accelerationStatus),
80498065
Arn: __expectString(output.arn),
80508066
BillingTagsSource: __expectString(output.billingTagsSource),
8067+
ClientRequestToken: __expectString(output.clientRequestToken),
80518068
CreatedAt:
80528069
output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
80538070
CurrentPhase: __expectString(output.currentPhase),
@@ -8073,6 +8090,7 @@ const de_Job = (output: any, context: __SerdeContext): Job => {
80738090
StatusUpdateInterval: __expectString(output.statusUpdateInterval),
80748091
Timing: output.timing != null ? de_Timing(output.timing, context) : undefined,
80758092
UserMetadata: output.userMetadata != null ? de___mapOf__string(output.userMetadata, context) : undefined,
8093+
Warnings: output.warnings != null ? de___listOfWarningGroup(output.warnings, context) : undefined,
80768094
} as any;
80778095
};
80788096

@@ -9230,6 +9248,16 @@ const de_Vp9Settings = (output: any, context: __SerdeContext): Vp9Settings => {
92309248
} as any;
92319249
};
92329250

9251+
/**
9252+
* deserializeAws_restJson1WarningGroup
9253+
*/
9254+
const de_WarningGroup = (output: any, context: __SerdeContext): WarningGroup => {
9255+
return {
9256+
Code: __expectInt32(output.code),
9257+
Count: __expectInt32(output.count),
9258+
} as any;
9259+
};
9260+
92339261
/**
92349262
* deserializeAws_restJson1WavSettings
92359263
*/

0 commit comments

Comments
 (0)