Skip to content

Commit c1ae828

Browse files
author
awstools
committed
feat(client-bedrock-data-automation): Added support for modality routing and modality enablement on CreateDataAutomationProject and UpdateDataAutomationProject APIs
1 parent 34789ba commit c1ae828

File tree

6 files changed

+332
-0
lines changed

6 files changed

+332
-0
lines changed

clients/client-bedrock-data-automation/src/commands/CreateDataAutomationProjectCommand.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,30 @@ export interface CreateDataAutomationProjectCommandOutput
147147
* splitter: { // SplitterConfiguration
148148
* state: "ENABLED" || "DISABLED",
149149
* },
150+
* modalityProcessing: { // ModalityProcessingConfiguration
151+
* state: "ENABLED" || "DISABLED",
152+
* },
153+
* },
154+
* image: { // ImageOverrideConfiguration
155+
* modalityProcessing: {
156+
* state: "ENABLED" || "DISABLED",
157+
* },
158+
* },
159+
* video: { // VideoOverrideConfiguration
160+
* modalityProcessing: {
161+
* state: "ENABLED" || "DISABLED",
162+
* },
163+
* },
164+
* audio: { // AudioOverrideConfiguration
165+
* modalityProcessing: {
166+
* state: "ENABLED" || "DISABLED",
167+
* },
168+
* },
169+
* modalityRouting: { // ModalityRoutingConfiguration
170+
* jpeg: "IMAGE" || "DOCUMENT" || "AUDIO" || "VIDEO",
171+
* png: "IMAGE" || "DOCUMENT" || "AUDIO" || "VIDEO",
172+
* mp4: "IMAGE" || "DOCUMENT" || "AUDIO" || "VIDEO",
173+
* mov: "IMAGE" || "DOCUMENT" || "AUDIO" || "VIDEO",
150174
* },
151175
* },
152176
* clientToken: "STRING_VALUE",

clients/client-bedrock-data-automation/src/commands/GetDataAutomationProjectCommand.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,30 @@ export interface GetDataAutomationProjectCommandOutput extends GetDataAutomation
152152
* // splitter: { // SplitterConfiguration
153153
* // state: "ENABLED" || "DISABLED",
154154
* // },
155+
* // modalityProcessing: { // ModalityProcessingConfiguration
156+
* // state: "ENABLED" || "DISABLED",
157+
* // },
158+
* // },
159+
* // image: { // ImageOverrideConfiguration
160+
* // modalityProcessing: {
161+
* // state: "ENABLED" || "DISABLED",
162+
* // },
163+
* // },
164+
* // video: { // VideoOverrideConfiguration
165+
* // modalityProcessing: {
166+
* // state: "ENABLED" || "DISABLED",
167+
* // },
168+
* // },
169+
* // audio: { // AudioOverrideConfiguration
170+
* // modalityProcessing: {
171+
* // state: "ENABLED" || "DISABLED",
172+
* // },
173+
* // },
174+
* // modalityRouting: { // ModalityRoutingConfiguration
175+
* // jpeg: "IMAGE" || "DOCUMENT" || "AUDIO" || "VIDEO",
176+
* // png: "IMAGE" || "DOCUMENT" || "AUDIO" || "VIDEO",
177+
* // mp4: "IMAGE" || "DOCUMENT" || "AUDIO" || "VIDEO",
178+
* // mov: "IMAGE" || "DOCUMENT" || "AUDIO" || "VIDEO",
155179
* // },
156180
* // },
157181
* // status: "COMPLETED" || "IN_PROGRESS" || "FAILED", // required

clients/client-bedrock-data-automation/src/commands/UpdateDataAutomationProjectCommand.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,30 @@ export interface UpdateDataAutomationProjectCommandOutput
147147
* splitter: { // SplitterConfiguration
148148
* state: "ENABLED" || "DISABLED",
149149
* },
150+
* modalityProcessing: { // ModalityProcessingConfiguration
151+
* state: "ENABLED" || "DISABLED",
152+
* },
153+
* },
154+
* image: { // ImageOverrideConfiguration
155+
* modalityProcessing: {
156+
* state: "ENABLED" || "DISABLED",
157+
* },
158+
* },
159+
* video: { // VideoOverrideConfiguration
160+
* modalityProcessing: {
161+
* state: "ENABLED" || "DISABLED",
162+
* },
163+
* },
164+
* audio: { // AudioOverrideConfiguration
165+
* modalityProcessing: {
166+
* state: "ENABLED" || "DISABLED",
167+
* },
168+
* },
169+
* modalityRouting: { // ModalityRoutingConfiguration
170+
* jpeg: "IMAGE" || "DOCUMENT" || "AUDIO" || "VIDEO",
171+
* png: "IMAGE" || "DOCUMENT" || "AUDIO" || "VIDEO",
172+
* mp4: "IMAGE" || "DOCUMENT" || "AUDIO" || "VIDEO",
173+
* mov: "IMAGE" || "DOCUMENT" || "AUDIO" || "VIDEO",
150174
* },
151175
* },
152176
* encryptionConfiguration: { // EncryptionConfiguration

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

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,30 @@ export const State = {
703703
*/
704704
export type State = (typeof State)[keyof typeof State];
705705

706+
/**
707+
* Configuration to enable/disable processing of modality
708+
* @public
709+
*/
710+
export interface ModalityProcessingConfiguration {
711+
/**
712+
* State
713+
* @public
714+
*/
715+
state?: State | undefined;
716+
}
717+
718+
/**
719+
* Override Configuration of Audio
720+
* @public
721+
*/
722+
export interface AudioOverrideConfiguration {
723+
/**
724+
* Configuration to enable/disable processing of modality
725+
* @public
726+
*/
727+
modalityProcessing?: ModalityProcessingConfiguration | undefined;
728+
}
729+
706730
/**
707731
* Configuration of Splitter
708732
* @public
@@ -725,6 +749,82 @@ export interface DocumentOverrideConfiguration {
725749
* @public
726750
*/
727751
splitter?: SplitterConfiguration | undefined;
752+
753+
/**
754+
* Configuration to enable/disable processing of modality
755+
* @public
756+
*/
757+
modalityProcessing?: ModalityProcessingConfiguration | undefined;
758+
}
759+
760+
/**
761+
* Override Configuration of Image
762+
* @public
763+
*/
764+
export interface ImageOverrideConfiguration {
765+
/**
766+
* Configuration to enable/disable processing of modality
767+
* @public
768+
*/
769+
modalityProcessing?: ModalityProcessingConfiguration | undefined;
770+
}
771+
772+
/**
773+
* @public
774+
* @enum
775+
*/
776+
export const DesiredModality = {
777+
AUDIO: "AUDIO",
778+
DOCUMENT: "DOCUMENT",
779+
IMAGE: "IMAGE",
780+
VIDEO: "VIDEO",
781+
} as const;
782+
783+
/**
784+
* @public
785+
*/
786+
export type DesiredModality = (typeof DesiredModality)[keyof typeof DesiredModality];
787+
788+
/**
789+
* Configuration for routing file type to desired modality
790+
* @public
791+
*/
792+
export interface ModalityRoutingConfiguration {
793+
/**
794+
* Desired Modality types
795+
* @public
796+
*/
797+
jpeg?: DesiredModality | undefined;
798+
799+
/**
800+
* Desired Modality types
801+
* @public
802+
*/
803+
png?: DesiredModality | undefined;
804+
805+
/**
806+
* Desired Modality types
807+
* @public
808+
*/
809+
mp4?: DesiredModality | undefined;
810+
811+
/**
812+
* Desired Modality types
813+
* @public
814+
*/
815+
mov?: DesiredModality | undefined;
816+
}
817+
818+
/**
819+
* Override Configuration of Video
820+
* @public
821+
*/
822+
export interface VideoOverrideConfiguration {
823+
/**
824+
* Configuration to enable/disable processing of modality
825+
* @public
826+
*/
827+
modalityProcessing?: ModalityProcessingConfiguration | undefined;
728828
}
729829

730830
/**
@@ -737,6 +837,30 @@ export interface OverrideConfiguration {
737837
* @public
738838
*/
739839
document?: DocumentOverrideConfiguration | undefined;
840+
841+
/**
842+
* Override Configuration of Image
843+
* @public
844+
*/
845+
image?: ImageOverrideConfiguration | undefined;
846+
847+
/**
848+
* Override Configuration of Video
849+
* @public
850+
*/
851+
video?: VideoOverrideConfiguration | undefined;
852+
853+
/**
854+
* Override Configuration of Audio
855+
* @public
856+
*/
857+
audio?: AudioOverrideConfiguration | undefined;
858+
859+
/**
860+
* Configuration for routing file type to desired modality
861+
* @public
862+
*/
863+
modalityRouting?: ModalityRoutingConfiguration | undefined;
740864
}
741865

742866
/**

clients/client-bedrock-data-automation/src/protocols/Aws_restJson1.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ import {
6363
AccessDeniedException,
6464
AudioExtractionCategory,
6565
AudioExtractionCategoryType,
66+
AudioOverrideConfiguration,
6667
AudioStandardExtraction,
6768
AudioStandardGenerativeField,
6869
AudioStandardGenerativeFieldType,
@@ -91,11 +92,14 @@ import {
9192
ImageBoundingBox,
9293
ImageExtractionCategory,
9394
ImageExtractionCategoryType,
95+
ImageOverrideConfiguration,
9496
ImageStandardExtraction,
9597
ImageStandardGenerativeField,
9698
ImageStandardGenerativeFieldType,
9799
ImageStandardOutputConfiguration,
98100
InternalServerException,
101+
ModalityProcessingConfiguration,
102+
ModalityRoutingConfiguration,
99103
OverrideConfiguration,
100104
ResourceNotFoundException,
101105
ServiceQuotaExceededException,
@@ -107,6 +111,7 @@ import {
107111
VideoBoundingBox,
108112
VideoExtractionCategory,
109113
VideoExtractionCategoryType,
114+
VideoOverrideConfiguration,
110115
VideoStandardExtraction,
111116
VideoStandardGenerativeField,
112117
VideoStandardGenerativeFieldType,
@@ -917,6 +922,8 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont
917922

918923
// se_AudioExtractionCategoryTypes omitted.
919924

925+
// se_AudioOverrideConfiguration omitted.
926+
920927
// se_AudioStandardExtraction omitted.
921928

922929
// se_AudioStandardGenerativeField omitted.
@@ -965,6 +972,8 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont
965972

966973
// se_ImageExtractionCategoryTypes omitted.
967974

975+
// se_ImageOverrideConfiguration omitted.
976+
968977
// se_ImageStandardExtraction omitted.
969978

970979
// se_ImageStandardGenerativeField omitted.
@@ -975,6 +984,10 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont
975984

976985
// se_KmsEncryptionContext omitted.
977986

987+
// se_ModalityProcessingConfiguration omitted.
988+
989+
// se_ModalityRoutingConfiguration omitted.
990+
978991
// se_OverrideConfiguration omitted.
979992

980993
// se_SplitterConfiguration omitted.
@@ -993,6 +1006,8 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont
9931006

9941007
// se_VideoExtractionCategoryTypes omitted.
9951008

1009+
// se_VideoOverrideConfiguration omitted.
1010+
9961011
// se_VideoStandardExtraction omitted.
9971012

9981013
// se_VideoStandardGenerativeField omitted.
@@ -1005,6 +1020,8 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont
10051020

10061021
// de_AudioExtractionCategoryTypes omitted.
10071022

1023+
// de_AudioOverrideConfiguration omitted.
1024+
10081025
// de_AudioStandardExtraction omitted.
10091026

10101027
// de_AudioStandardGenerativeField omitted.
@@ -1135,6 +1152,8 @@ const de_DataAutomationProjectSummary = (output: any, context: __SerdeContext):
11351152

11361153
// de_ImageExtractionCategoryTypes omitted.
11371154

1155+
// de_ImageOverrideConfiguration omitted.
1156+
11381157
// de_ImageStandardExtraction omitted.
11391158

11401159
// de_ImageStandardGenerativeField omitted.
@@ -1145,6 +1164,10 @@ const de_DataAutomationProjectSummary = (output: any, context: __SerdeContext):
11451164

11461165
// de_KmsEncryptionContext omitted.
11471166

1167+
// de_ModalityProcessingConfiguration omitted.
1168+
1169+
// de_ModalityRoutingConfiguration omitted.
1170+
11481171
// de_OverrideConfiguration omitted.
11491172

11501173
// de_SplitterConfiguration omitted.
@@ -1165,6 +1188,8 @@ const de_DataAutomationProjectSummary = (output: any, context: __SerdeContext):
11651188

11661189
// de_VideoExtractionCategoryTypes omitted.
11671190

1191+
// de_VideoOverrideConfiguration omitted.
1192+
11681193
// de_VideoStandardExtraction omitted.
11691194

11701195
// de_VideoStandardGenerativeField omitted.

0 commit comments

Comments
 (0)