Skip to content

Commit bbf9999

Browse files
author
awstools
committed
feat(client-bedrock-data-automation-runtime): Add AssetProcessingConfiguration for video segment to InputConfiguration
1 parent 88cb2cf commit bbf9999

File tree

4 files changed

+186
-0
lines changed

4 files changed

+186
-0
lines changed

clients/client-bedrock-data-automation-runtime/src/commands/InvokeDataAutomationAsyncCommand.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@ export interface InvokeDataAutomationAsyncCommandOutput extends InvokeDataAutoma
4343
* clientToken: "STRING_VALUE",
4444
* inputConfiguration: { // InputConfiguration
4545
* s3Uri: "STRING_VALUE", // required
46+
* assetProcessingConfiguration: { // AssetProcessingConfiguration
47+
* video: { // VideoAssetProcessingConfiguration
48+
* segmentConfiguration: { // VideoSegmentConfiguration Union: only one key present
49+
* timestampSegment: { // TimestampSegment
50+
* startTimeMillis: Number("long"), // required
51+
* endTimeMillis: Number("long"), // required
52+
* },
53+
* },
54+
* },
55+
* },
4656
* },
4757
* outputConfiguration: { // OutputConfiguration
4858
* s3Uri: "STRING_VALUE", // required

clients/client-bedrock-data-automation-runtime/src/models/models_0.ts

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,88 @@ export interface EncryptionConfiguration {
262262
kmsEncryptionContext?: Record<string, string> | undefined;
263263
}
264264

265+
/**
266+
* Timestamp segment
267+
* @public
268+
*/
269+
export interface TimestampSegment {
270+
/**
271+
* Start timestamp in milliseconds
272+
* @public
273+
*/
274+
startTimeMillis: number | undefined;
275+
276+
/**
277+
* End timestamp in milliseconds
278+
* @public
279+
*/
280+
endTimeMillis: number | undefined;
281+
}
282+
283+
/**
284+
* Delimits the segment of the input that will be processed
285+
* @public
286+
*/
287+
export type VideoSegmentConfiguration =
288+
| VideoSegmentConfiguration.TimestampSegmentMember
289+
| VideoSegmentConfiguration.$UnknownMember;
290+
291+
/**
292+
* @public
293+
*/
294+
export namespace VideoSegmentConfiguration {
295+
/**
296+
* Timestamp segment
297+
* @public
298+
*/
299+
export interface TimestampSegmentMember {
300+
timestampSegment: TimestampSegment;
301+
$unknown?: never;
302+
}
303+
304+
/**
305+
* @public
306+
*/
307+
export interface $UnknownMember {
308+
timestampSegment?: never;
309+
$unknown: [string, any];
310+
}
311+
312+
export interface Visitor<T> {
313+
timestampSegment: (value: TimestampSegment) => T;
314+
_: (name: string, value: any) => T;
315+
}
316+
317+
export const visit = <T>(value: VideoSegmentConfiguration, visitor: Visitor<T>): T => {
318+
if (value.timestampSegment !== undefined) return visitor.timestampSegment(value.timestampSegment);
319+
return visitor._(value.$unknown[0], value.$unknown[1]);
320+
};
321+
}
322+
323+
/**
324+
* Video asset processing configuration
325+
* @public
326+
*/
327+
export interface VideoAssetProcessingConfiguration {
328+
/**
329+
* Delimits the segment of the input that will be processed
330+
* @public
331+
*/
332+
segmentConfiguration?: VideoSegmentConfiguration | undefined;
333+
}
334+
335+
/**
336+
* Config containing asset processing related knobs for all modalities
337+
* @public
338+
*/
339+
export interface AssetProcessingConfiguration {
340+
/**
341+
* Video asset processing configuration
342+
* @public
343+
*/
344+
video?: VideoAssetProcessingConfiguration | undefined;
345+
}
346+
265347
/**
266348
* Input configuration.
267349
* @public
@@ -272,6 +354,12 @@ export interface InputConfiguration {
272354
* @public
273355
*/
274356
s3Uri: string | undefined;
357+
358+
/**
359+
* Asset processing configuration
360+
* @public
361+
*/
362+
assetProcessingConfiguration?: AssetProcessingConfiguration | undefined;
275363
}
276364

277365
/**

clients/client-bedrock-data-automation-runtime/src/protocols/Aws_json1_1.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../comman
3333
import { BedrockDataAutomationRuntimeServiceException as __BaseException } from "../models/BedrockDataAutomationRuntimeServiceException";
3434
import {
3535
AccessDeniedException,
36+
AssetProcessingConfiguration,
3637
Blueprint,
3738
DataAutomationConfiguration,
3839
EncryptionConfiguration,
@@ -49,8 +50,11 @@ import {
4950
Tag,
5051
TagResourceRequest,
5152
ThrottlingException,
53+
TimestampSegment,
5254
UntagResourceRequest,
5355
ValidationException,
56+
VideoAssetProcessingConfiguration,
57+
VideoSegmentConfiguration,
5458
} from "../models/models_0";
5559

5660
/**
@@ -346,6 +350,8 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont
346350
return __decorateServiceException(exception, body);
347351
};
348352

353+
// se_AssetProcessingConfiguration omitted.
354+
349355
// se_Blueprint omitted.
350356

351357
// se_BlueprintList omitted.
@@ -393,8 +399,14 @@ const se_InvokeDataAutomationAsyncRequest = (input: InvokeDataAutomationAsyncReq
393399

394400
// se_TagResourceRequest omitted.
395401

402+
// se_TimestampSegment omitted.
403+
396404
// se_UntagResourceRequest omitted.
397405

406+
// se_VideoAssetProcessingConfiguration omitted.
407+
408+
// se_VideoSegmentConfiguration omitted.
409+
398410
// de_AccessDeniedException omitted.
399411

400412
// de_GetDataAutomationStatusResponse omitted.

codegen/sdk-codegen/aws-models/bedrock-data-automation-runtime.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,20 @@
712712
}
713713
}
714714
},
715+
"com.amazonaws.bedrockdataautomationruntime#AssetProcessingConfiguration": {
716+
"type": "structure",
717+
"members": {
718+
"video": {
719+
"target": "com.amazonaws.bedrockdataautomationruntime#VideoAssetProcessingConfiguration",
720+
"traits": {
721+
"smithy.api#documentation": "Video asset processing configuration"
722+
}
723+
}
724+
},
725+
"traits": {
726+
"smithy.api#documentation": "Config containing asset processing related knobs for all modalities"
727+
}
728+
},
715729
"com.amazonaws.bedrockdataautomationruntime#AutomationJobResource": {
716730
"type": "resource",
717731
"identifiers": {
@@ -1089,6 +1103,12 @@
10891103
"smithy.api#documentation": "S3 uri.",
10901104
"smithy.api#required": {}
10911105
}
1106+
},
1107+
"assetProcessingConfiguration": {
1108+
"target": "com.amazonaws.bedrockdataautomationruntime#AssetProcessingConfiguration",
1109+
"traits": {
1110+
"smithy.api#documentation": "Asset processing configuration"
1111+
}
10921112
}
10931113
},
10941114
"traits": {
@@ -1525,6 +1545,34 @@
15251545
"smithy.api#httpError": 429
15261546
}
15271547
},
1548+
"com.amazonaws.bedrockdataautomationruntime#TimestampSegment": {
1549+
"type": "structure",
1550+
"members": {
1551+
"startTimeMillis": {
1552+
"target": "smithy.api#Long",
1553+
"traits": {
1554+
"smithy.api#documentation": "Start timestamp in milliseconds",
1555+
"smithy.api#range": {
1556+
"min": 0
1557+
},
1558+
"smithy.api#required": {}
1559+
}
1560+
},
1561+
"endTimeMillis": {
1562+
"target": "smithy.api#Long",
1563+
"traits": {
1564+
"smithy.api#documentation": "End timestamp in milliseconds",
1565+
"smithy.api#range": {
1566+
"min": 300000
1567+
},
1568+
"smithy.api#required": {}
1569+
}
1570+
}
1571+
},
1572+
"traits": {
1573+
"smithy.api#documentation": "Timestamp segment"
1574+
}
1575+
},
15281576
"com.amazonaws.bedrockdataautomationruntime#UntagResource": {
15291577
"type": "operation",
15301578
"input": {
@@ -1593,6 +1641,34 @@
15931641
"smithy.api#error": "client",
15941642
"smithy.api#httpError": 400
15951643
}
1644+
},
1645+
"com.amazonaws.bedrockdataautomationruntime#VideoAssetProcessingConfiguration": {
1646+
"type": "structure",
1647+
"members": {
1648+
"segmentConfiguration": {
1649+
"target": "com.amazonaws.bedrockdataautomationruntime#VideoSegmentConfiguration",
1650+
"traits": {
1651+
"smithy.api#documentation": "Delimits the segment of the input that will be processed"
1652+
}
1653+
}
1654+
},
1655+
"traits": {
1656+
"smithy.api#documentation": "Video asset processing configuration"
1657+
}
1658+
},
1659+
"com.amazonaws.bedrockdataautomationruntime#VideoSegmentConfiguration": {
1660+
"type": "union",
1661+
"members": {
1662+
"timestampSegment": {
1663+
"target": "com.amazonaws.bedrockdataautomationruntime#TimestampSegment",
1664+
"traits": {
1665+
"smithy.api#documentation": "Timestamp segment"
1666+
}
1667+
}
1668+
},
1669+
"traits": {
1670+
"smithy.api#documentation": "Delimits the segment of the input that will be processed"
1671+
}
15961672
}
15971673
}
15981674
}

0 commit comments

Comments
 (0)