Skip to content

Commit fa710fc

Browse files
Added support for Language Expansion feature for BDA Audio modality.
1 parent 2b37d94 commit fa710fc

10 files changed

+581
-10
lines changed

generator/ServiceModels/bedrock-data-automation/bedrock-data-automation-2023-07-26.api.json

Lines changed: 49 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@
121121
{"shape":"ThrottlingException"},
122122
{"shape":"AccessDeniedException"},
123123
{"shape":"ResourceNotFoundException"}
124-
]
124+
],
125+
"readonly":true
125126
},
126127
"GetDataAutomationProject":{
127128
"name":"GetDataAutomationProject",
@@ -138,7 +139,8 @@
138139
{"shape":"ThrottlingException"},
139140
{"shape":"AccessDeniedException"},
140141
{"shape":"ResourceNotFoundException"}
141-
]
142+
],
143+
"readonly":true
142144
},
143145
"ListBlueprints":{
144146
"name":"ListBlueprints",
@@ -155,7 +157,8 @@
155157
{"shape":"ThrottlingException"},
156158
{"shape":"AccessDeniedException"},
157159
{"shape":"ResourceNotFoundException"}
158-
]
160+
],
161+
"readonly":true
159162
},
160163
"ListDataAutomationProjects":{
161164
"name":"ListDataAutomationProjects",
@@ -172,7 +175,8 @@
172175
{"shape":"ThrottlingException"},
173176
{"shape":"AccessDeniedException"},
174177
{"shape":"ResourceNotFoundException"}
175-
]
178+
],
179+
"readonly":true
176180
},
177181
"ListTagsForResource":{
178182
"name":"ListTagsForResource",
@@ -305,10 +309,30 @@
305309
"type":"list",
306310
"member":{"shape":"AudioExtractionCategoryType"}
307311
},
312+
"AudioGenerativeOutputLanguage":{
313+
"type":"string",
314+
"enum":[
315+
"DEFAULT",
316+
"EN"
317+
]
318+
},
319+
"AudioInputLanguages":{
320+
"type":"list",
321+
"member":{"shape":"Language"}
322+
},
323+
"AudioLanguageConfiguration":{
324+
"type":"structure",
325+
"members":{
326+
"inputLanguages":{"shape":"AudioInputLanguages"},
327+
"generativeOutputLanguage":{"shape":"AudioGenerativeOutputLanguage"},
328+
"identifyMultipleLanguages":{"shape":"Boolean"}
329+
}
330+
},
308331
"AudioOverrideConfiguration":{
309332
"type":"structure",
310333
"members":{
311-
"modalityProcessing":{"shape":"ModalityProcessingConfiguration"}
334+
"modalityProcessing":{"shape":"ModalityProcessingConfiguration"},
335+
"languageConfiguration":{"shape":"AudioLanguageConfiguration"}
312336
}
313337
},
314338
"AudioStandardExtraction":{
@@ -449,6 +473,10 @@
449473
"type":"list",
450474
"member":{"shape":"BlueprintSummary"}
451475
},
476+
"Boolean":{
477+
"type":"boolean",
478+
"box":true
479+
},
452480
"ChannelLabelingConfiguration":{
453481
"type":"structure",
454482
"required":["state"],
@@ -948,6 +976,22 @@
948976
"min":1,
949977
"pattern":"[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]+"
950978
},
979+
"Language":{
980+
"type":"string",
981+
"enum":[
982+
"EN",
983+
"DE",
984+
"ES",
985+
"FR",
986+
"IT",
987+
"PT",
988+
"JA",
989+
"KO",
990+
"CN",
991+
"TW",
992+
"HK"
993+
]
994+
},
951995
"ListBlueprintsRequest":{
952996
"type":"structure",
953997
"members":{

generator/ServiceModels/bedrock-data-automation/bedrock-data-automation-2023-07-26.docs.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,24 @@
4646
"AudioExtractionCategory$types": null
4747
}
4848
},
49+
"AudioGenerativeOutputLanguage": {
50+
"base": "<p>Configuration for Audio output language</p>",
51+
"refs": {
52+
"AudioLanguageConfiguration$generativeOutputLanguage": null
53+
}
54+
},
55+
"AudioInputLanguages": {
56+
"base": "<p>List of supported audio languages</p>",
57+
"refs": {
58+
"AudioLanguageConfiguration$inputLanguages": null
59+
}
60+
},
61+
"AudioLanguageConfiguration": {
62+
"base": "<p>Optional configuration for audio language settings</p>",
63+
"refs": {
64+
"AudioOverrideConfiguration$languageConfiguration": null
65+
}
66+
},
4967
"AudioOverrideConfiguration": {
5068
"base": "<p>Override Configuration of Audio</p>",
5169
"refs": {
@@ -180,6 +198,12 @@
180198
"ListBlueprintsResponse$blueprints": null
181199
}
182200
},
201+
"Boolean": {
202+
"base": null,
203+
"refs": {
204+
"AudioLanguageConfiguration$identifyMultipleLanguages": "<p>Enable multiple language identification in audio</p>"
205+
}
206+
},
183207
"ChannelLabelingConfiguration": {
184208
"base": "<p>Channel labeling configuration</p>",
185209
"refs": {
@@ -544,6 +568,12 @@
544568
"EncryptionConfiguration$kmsKeyId": null
545569
}
546570
},
571+
"Language": {
572+
"base": "<p>Supported input languages</p>",
573+
"refs": {
574+
"AudioInputLanguages$member": null
575+
}
576+
},
547577
"ListBlueprintsRequest": {
548578
"base": "<p>List Blueprint Request</p>",
549579
"refs": {}

generator/ServiceModels/bedrock-data-automation/bedrock-data-automation-2023-07-26.normal.json

Lines changed: 56 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@
127127
{"shape":"AccessDeniedException"},
128128
{"shape":"ResourceNotFoundException"}
129129
],
130-
"documentation":"<p>Gets an existing Amazon Bedrock Data Automation Blueprint</p>"
130+
"documentation":"<p>Gets an existing Amazon Bedrock Data Automation Blueprint</p>",
131+
"readonly":true
131132
},
132133
"GetDataAutomationProject":{
133134
"name":"GetDataAutomationProject",
@@ -145,7 +146,8 @@
145146
{"shape":"AccessDeniedException"},
146147
{"shape":"ResourceNotFoundException"}
147148
],
148-
"documentation":"<p>Gets an existing Amazon Bedrock Data Automation Project</p>"
149+
"documentation":"<p>Gets an existing Amazon Bedrock Data Automation Project</p>",
150+
"readonly":true
149151
},
150152
"ListBlueprints":{
151153
"name":"ListBlueprints",
@@ -163,7 +165,8 @@
163165
{"shape":"AccessDeniedException"},
164166
{"shape":"ResourceNotFoundException"}
165167
],
166-
"documentation":"<p>Lists all existing Amazon Bedrock Data Automation Blueprints</p>"
168+
"documentation":"<p>Lists all existing Amazon Bedrock Data Automation Blueprints</p>",
169+
"readonly":true
167170
},
168171
"ListDataAutomationProjects":{
169172
"name":"ListDataAutomationProjects",
@@ -181,7 +184,8 @@
181184
{"shape":"AccessDeniedException"},
182185
{"shape":"ResourceNotFoundException"}
183186
],
184-
"documentation":"<p>Lists all existing Amazon Bedrock Data Automation Projects</p>"
187+
"documentation":"<p>Lists all existing Amazon Bedrock Data Automation Projects</p>",
188+
"readonly":true
185189
},
186190
"ListTagsForResource":{
187191
"name":"ListTagsForResource",
@@ -323,10 +327,36 @@
323327
"member":{"shape":"AudioExtractionCategoryType"},
324328
"documentation":"<p>List of Audio Extraction Category Type</p>"
325329
},
330+
"AudioGenerativeOutputLanguage":{
331+
"type":"string",
332+
"documentation":"<p>Configuration for Audio output language</p>",
333+
"enum":[
334+
"DEFAULT",
335+
"EN"
336+
]
337+
},
338+
"AudioInputLanguages":{
339+
"type":"list",
340+
"member":{"shape":"Language"},
341+
"documentation":"<p>List of supported audio languages</p>"
342+
},
343+
"AudioLanguageConfiguration":{
344+
"type":"structure",
345+
"members":{
346+
"inputLanguages":{"shape":"AudioInputLanguages"},
347+
"generativeOutputLanguage":{"shape":"AudioGenerativeOutputLanguage"},
348+
"identifyMultipleLanguages":{
349+
"shape":"Boolean",
350+
"documentation":"<p>Enable multiple language identification in audio</p>"
351+
}
352+
},
353+
"documentation":"<p>Optional configuration for audio language settings</p>"
354+
},
326355
"AudioOverrideConfiguration":{
327356
"type":"structure",
328357
"members":{
329-
"modalityProcessing":{"shape":"ModalityProcessingConfiguration"}
358+
"modalityProcessing":{"shape":"ModalityProcessingConfiguration"},
359+
"languageConfiguration":{"shape":"AudioLanguageConfiguration"}
330360
},
331361
"documentation":"<p>Override Configuration of Audio</p>"
332362
},
@@ -484,6 +514,10 @@
484514
"member":{"shape":"BlueprintSummary"},
485515
"documentation":"<p>List of Blueprints</p>"
486516
},
517+
"Boolean":{
518+
"type":"boolean",
519+
"box":true
520+
},
487521
"ChannelLabelingConfiguration":{
488522
"type":"structure",
489523
"required":["state"],
@@ -1053,6 +1087,23 @@
10531087
"min":1,
10541088
"pattern":"[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]+"
10551089
},
1090+
"Language":{
1091+
"type":"string",
1092+
"documentation":"<p>Supported input languages</p>",
1093+
"enum":[
1094+
"EN",
1095+
"DE",
1096+
"ES",
1097+
"FR",
1098+
"IT",
1099+
"PT",
1100+
"JA",
1101+
"KO",
1102+
"CN",
1103+
"TW",
1104+
"HK"
1105+
]
1106+
},
10561107
"ListBlueprintsRequest":{
10571108
"type":"structure",
10581109
"members":{
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the bedrock-data-automation-2023-07-26.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Xml.Serialization;
22+
using System.Text;
23+
using System.IO;
24+
using System.Net;
25+
26+
using Amazon.Runtime;
27+
using Amazon.Runtime.Internal;
28+
29+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.BedrockDataAutomation.Model
31+
{
32+
/// <summary>
33+
/// Optional configuration for audio language settings
34+
/// </summary>
35+
public partial class AudioLanguageConfiguration
36+
{
37+
private AudioGenerativeOutputLanguage _generativeOutputLanguage;
38+
private bool? _identifyMultipleLanguages;
39+
private List<string> _inputLanguages = AWSConfigs.InitializeCollections ? new List<string>() : null;
40+
41+
/// <summary>
42+
/// Gets and sets the property GenerativeOutputLanguage.
43+
/// </summary>
44+
public AudioGenerativeOutputLanguage GenerativeOutputLanguage
45+
{
46+
get { return this._generativeOutputLanguage; }
47+
set { this._generativeOutputLanguage = value; }
48+
}
49+
50+
// Check to see if GenerativeOutputLanguage property is set
51+
internal bool IsSetGenerativeOutputLanguage()
52+
{
53+
return this._generativeOutputLanguage != null;
54+
}
55+
56+
/// <summary>
57+
/// Gets and sets the property IdentifyMultipleLanguages.
58+
/// <para>
59+
/// Enable multiple language identification in audio
60+
/// </para>
61+
/// </summary>
62+
public bool IdentifyMultipleLanguages
63+
{
64+
get { return this._identifyMultipleLanguages.GetValueOrDefault(); }
65+
set { this._identifyMultipleLanguages = value; }
66+
}
67+
68+
// Check to see if IdentifyMultipleLanguages property is set
69+
internal bool IsSetIdentifyMultipleLanguages()
70+
{
71+
return this._identifyMultipleLanguages.HasValue;
72+
}
73+
74+
/// <summary>
75+
/// Gets and sets the property InputLanguages.
76+
/// </summary>
77+
public List<string> InputLanguages
78+
{
79+
get { return this._inputLanguages; }
80+
set { this._inputLanguages = value; }
81+
}
82+
83+
// Check to see if InputLanguages property is set
84+
internal bool IsSetInputLanguages()
85+
{
86+
return this._inputLanguages != null && (this._inputLanguages.Count > 0 || !AWSConfigs.InitializeCollections);
87+
}
88+
89+
}
90+
}

sdk/src/Services/BedrockDataAutomation/Generated/Model/AudioOverrideConfiguration.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,24 @@ namespace Amazon.BedrockDataAutomation.Model
3434
/// </summary>
3535
public partial class AudioOverrideConfiguration
3636
{
37+
private AudioLanguageConfiguration _languageConfiguration;
3738
private ModalityProcessingConfiguration _modalityProcessing;
3839

40+
/// <summary>
41+
/// Gets and sets the property LanguageConfiguration.
42+
/// </summary>
43+
public AudioLanguageConfiguration LanguageConfiguration
44+
{
45+
get { return this._languageConfiguration; }
46+
set { this._languageConfiguration = value; }
47+
}
48+
49+
// Check to see if LanguageConfiguration property is set
50+
internal bool IsSetLanguageConfiguration()
51+
{
52+
return this._languageConfiguration != null;
53+
}
54+
3955
/// <summary>
4056
/// Gets and sets the property ModalityProcessing.
4157
/// </summary>

0 commit comments

Comments
 (0)