Skip to content

Commit 9cc7df4

Browse files
You can now specify a cross region inference profile as a teacher model for the CreateModelCustomizationJob API. Additionally, the GetModelCustomizationJob API has been enhanced to return the sub-task statuses of a customization job within the StatusDetails response field.
1 parent e04445d commit 9cc7df4

18 files changed

+1091
-7
lines changed

generator/ServiceModels/bedrock/bedrock-2023-04-20.api.json

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1712,6 +1712,14 @@
17121712
"DISTILLATION"
17131713
]
17141714
},
1715+
"DataProcessingDetails":{
1716+
"type":"structure",
1717+
"members":{
1718+
"status":{"shape":"JobStatusDetails"},
1719+
"creationTime":{"shape":"Timestamp"},
1720+
"lastModifiedTime":{"shape":"Timestamp"}
1721+
}
1722+
},
17151723
"DeleteCustomModelRequest":{
17161724
"type":"structure",
17171725
"required":["modelIdentifier"],
@@ -2665,6 +2673,7 @@
26652673
"roleArn":{"shape":"RoleArn"},
26662674
"status":{"shape":"ModelCustomizationJobStatus"},
26672675
"failureMessage":{"shape":"ErrorMessage"},
2676+
"statusDetails":{"shape":"StatusDetails"},
26682677
"creationTime":{"shape":"Timestamp"},
26692678
"lastModifiedTime":{"shape":"Timestamp"},
26702679
"endTime":{"shape":"Timestamp"},
@@ -3769,6 +3778,17 @@
37693778
"min":1,
37703779
"pattern":"[a-zA-Z0-9](-*[a-zA-Z0-9\\+\\-\\.])*"
37713780
},
3781+
"JobStatusDetails":{
3782+
"type":"string",
3783+
"enum":[
3784+
"InProgress",
3785+
"Completed",
3786+
"Stopping",
3787+
"Stopped",
3788+
"Failed",
3789+
"NotStarted"
3790+
]
3791+
},
37723792
"KbInferenceConfig":{
37733793
"type":"structure",
37743794
"members":{
@@ -4628,6 +4648,7 @@
46284648
"jobName":{"shape":"JobName"},
46294649
"status":{"shape":"ModelCustomizationJobStatus"},
46304650
"lastModifiedTime":{"shape":"Timestamp"},
4651+
"statusDetails":{"shape":"StatusDetails"},
46314652
"creationTime":{"shape":"Timestamp"},
46324653
"endTime":{"shape":"Timestamp"},
46334654
"customModelArn":{"shape":"CustomModelArn"},
@@ -5366,6 +5387,14 @@
53665387
"INCOMPATIBLE_ENDPOINT"
53675388
]
53685389
},
5390+
"StatusDetails":{
5391+
"type":"structure",
5392+
"members":{
5393+
"validationDetails":{"shape":"ValidationDetails"},
5394+
"dataProcessingDetails":{"shape":"DataProcessingDetails"},
5395+
"trainingDetails":{"shape":"TrainingDetails"}
5396+
}
5397+
},
53695398
"StopEvaluationJobRequest":{
53705399
"type":"structure",
53715400
"required":["jobIdentifier"],
@@ -5494,7 +5523,7 @@
54945523
},
54955524
"TeacherModelIdentifier":{
54965525
"type":"string",
5497-
"pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}::foundation-model/[a-z0-9-]{1,63}[.]{1}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})|(([0-9a-zA-Z][_-]?)+)"
5526+
"pattern":"(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:((:foundation-model/([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})|(([0-9a-zA-Z][_-]?)+)$)|([0-9]{12}:inference-profile/[a-zA-Z0-9-:.]+$)))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})"
54985527
},
54995528
"Temperature":{
55005529
"type":"float",
@@ -5557,6 +5586,14 @@
55575586
"invocationLogsConfig":{"shape":"InvocationLogsConfig"}
55585587
}
55595588
},
5589+
"TrainingDetails":{
5590+
"type":"structure",
5591+
"members":{
5592+
"status":{"shape":"JobStatusDetails"},
5593+
"creationTime":{"shape":"Timestamp"},
5594+
"lastModifiedTime":{"shape":"Timestamp"}
5595+
}
5596+
},
55605597
"TrainingMetrics":{
55615598
"type":"structure",
55625599
"members":{
@@ -5672,6 +5709,14 @@
56725709
"validators":{"shape":"Validators"}
56735710
}
56745711
},
5712+
"ValidationDetails":{
5713+
"type":"structure",
5714+
"members":{
5715+
"status":{"shape":"JobStatusDetails"},
5716+
"creationTime":{"shape":"Timestamp"},
5717+
"lastModifiedTime":{"shape":"Timestamp"}
5718+
}
5719+
},
56755720
"ValidationException":{
56765721
"type":"structure",
56775722
"members":{

generator/ServiceModels/bedrock/bedrock-2023-04-20.docs.json

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,12 @@
514514
"ModelCustomizationJobSummary$customizationType": "<p>Specifies whether to carry out continued pre-training of a model or whether to fine-tune it. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html\">Custom models</a>.</p>"
515515
}
516516
},
517+
"DataProcessingDetails": {
518+
"base": "<p>For a Distillation job, the status details for the data processing sub-task of the job.</p>",
519+
"refs": {
520+
"StatusDetails$dataProcessingDetails": "<p>The status details for the data processing sub-task of the job.</p>"
521+
}
522+
},
517523
"DeleteCustomModelRequest": {
518524
"base": null,
519525
"refs": {
@@ -607,7 +613,7 @@
607613
"DistillationConfig": {
608614
"base": "<p>Settings for distilling a foundation model into a smaller and more efficient model.</p>",
609615
"refs": {
610-
"CustomizationConfig$distillationConfig": "<p>The distillation configuration for the custom model.</p>"
616+
"CustomizationConfig$distillationConfig": "<p>The Distillation configuration for the custom model.</p>"
611617
}
612618
},
613619
"EndpointConfig": {
@@ -2025,6 +2031,14 @@
20252031
"ModelImportJobSummary$jobName": "<p>The name of the import job.</p>"
20262032
}
20272033
},
2034+
"JobStatusDetails": {
2035+
"base": null,
2036+
"refs": {
2037+
"DataProcessingDetails$status": "<p>The status of the data processing sub-task of the job.</p>",
2038+
"TrainingDetails$status": "<p>The status of the training sub-task of the job.</p>",
2039+
"ValidationDetails$status": "<p>The status of the validation sub-task of the job.</p>"
2040+
}
2041+
},
20282042
"KbInferenceConfig": {
20292043
"base": "<p>Contains configuration details of the inference for knowledge base retrieval and response generation.</p>",
20302044
"refs": {
@@ -3141,6 +3155,13 @@
31413155
"MarketplaceModelEndpointSummary$status": "<p>The overall status of the endpoint in Amazon Bedrock Marketplace.</p>"
31423156
}
31433157
},
3158+
"StatusDetails": {
3159+
"base": "<p>For a Distillation job, the status details for sub-tasks of the job. Possible statuses for each sub-task include the following:</p> <ul> <li> <p>NotStarted</p> </li> <li> <p>InProgress</p> </li> <li> <p>Completed</p> </li> <li> <p>Stopping</p> </li> <li> <p>Stopped</p> </li> <li> <p>Failed</p> </li> </ul>",
3160+
"refs": {
3161+
"GetModelCustomizationJobResponse$statusDetails": "<p>For a Distillation job, the details about the statuses of the sub-tasks of the customization job. </p>",
3162+
"ModelCustomizationJobSummary$statusDetails": "<p>Details about the status of the data processing sub-task of the job.</p>"
3163+
}
3164+
},
31443165
"StopEvaluationJobRequest": {
31453166
"base": null,
31463167
"refs": {
@@ -3302,6 +3323,8 @@
33023323
"refs": {
33033324
"CreateGuardrailResponse$createdAt": "<p>The time at which the guardrail was created.</p>",
33043325
"CustomModelSummary$creationTime": "<p>Creation time of the model.</p>",
3326+
"DataProcessingDetails$creationTime": "<p>The start time of the data processing sub-task of the job.</p>",
3327+
"DataProcessingDetails$lastModifiedTime": "<p>The latest update to the data processing sub-task of the job.</p>",
33053328
"EvaluationSummary$creationTime": "<p>The time the evaluation job was created.</p>",
33063329
"GetCustomModelResponse$creationTime": "<p>Creation time of the model.</p>",
33073330
"GetEvaluationJobResponse$creationTime": "<p>The time the evaluation job was created.</p>",
@@ -3368,7 +3391,11 @@
33683391
"ProvisionedModelSummary$commitmentExpirationTime": "<p>The timestamp for when the commitment term of the Provisioned Throughput expires.</p>",
33693392
"ProvisionedModelSummary$creationTime": "<p>The time that the Provisioned Throughput was created. </p>",
33703393
"ProvisionedModelSummary$lastModifiedTime": "<p>The time that the Provisioned Throughput was last modified. </p>",
3371-
"UpdateGuardrailResponse$updatedAt": "<p>The date and time at which the guardrail was updated.</p>"
3394+
"TrainingDetails$creationTime": "<p>The start time of the training sub-task of the job.</p>",
3395+
"TrainingDetails$lastModifiedTime": "<p>The latest update to the training sub-task of the job.</p>",
3396+
"UpdateGuardrailResponse$updatedAt": "<p>The date and time at which the guardrail was updated.</p>",
3397+
"ValidationDetails$creationTime": "<p>The start time of the validation sub-task of the job.</p>",
3398+
"ValidationDetails$lastModifiedTime": "<p>The latest update to the validation sub-task of the job.</p>"
33723399
}
33733400
},
33743401
"TooManyTagsException": {
@@ -3390,6 +3417,12 @@
33903417
"GetModelCustomizationJobResponse$trainingDataConfig": "<p>Contains information about the training dataset.</p>"
33913418
}
33923419
},
3420+
"TrainingDetails": {
3421+
"base": "<p>For a Distillation job, the status details for the training sub-task of the job.</p>",
3422+
"refs": {
3423+
"StatusDetails$trainingDetails": "<p>The status details for the training sub-task of the job.</p>"
3424+
}
3425+
},
33933426
"TrainingMetrics": {
33943427
"base": "<p>Metrics associated with the custom job.</p>",
33953428
"refs": {
@@ -3451,6 +3484,12 @@
34513484
"GetModelCustomizationJobResponse$validationDataConfig": "<p>Contains information about the validation dataset.</p>"
34523485
}
34533486
},
3487+
"ValidationDetails": {
3488+
"base": "<p>For a Distillation job, the status details for the validation sub-task of the job.</p>",
3489+
"refs": {
3490+
"StatusDetails$validationDetails": "<p>The status details for the validation sub-task of the job.</p>"
3491+
}
3492+
},
34543493
"ValidationException": {
34553494
"base": "<p>Input validation failed. Check your request parameters and retry the request.</p>",
34563495
"refs": {

generator/ServiceModels/bedrock/bedrock-2023-04-20.normal.json

Lines changed: 93 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2168,7 +2168,7 @@
21682168
"members":{
21692169
"distillationConfig":{
21702170
"shape":"DistillationConfig",
2171-
"documentation":"<p>The distillation configuration for the custom model.</p>"
2171+
"documentation":"<p>The Distillation configuration for the custom model.</p>"
21722172
}
21732173
},
21742174
"documentation":"<p>A model customization configuration</p>",
@@ -2182,6 +2182,24 @@
21822182
"DISTILLATION"
21832183
]
21842184
},
2185+
"DataProcessingDetails":{
2186+
"type":"structure",
2187+
"members":{
2188+
"status":{
2189+
"shape":"JobStatusDetails",
2190+
"documentation":"<p>The status of the data processing sub-task of the job.</p>"
2191+
},
2192+
"creationTime":{
2193+
"shape":"Timestamp",
2194+
"documentation":"<p>The start time of the data processing sub-task of the job.</p>"
2195+
},
2196+
"lastModifiedTime":{
2197+
"shape":"Timestamp",
2198+
"documentation":"<p>The latest update to the data processing sub-task of the job.</p>"
2199+
}
2200+
},
2201+
"documentation":"<p>For a Distillation job, the status details for the data processing sub-task of the job.</p>"
2202+
},
21852203
"DeleteCustomModelRequest":{
21862204
"type":"structure",
21872205
"required":["modelIdentifier"],
@@ -3675,6 +3693,10 @@
36753693
"shape":"ErrorMessage",
36763694
"documentation":"<p>Information about why the job failed.</p>"
36773695
},
3696+
"statusDetails":{
3697+
"shape":"StatusDetails",
3698+
"documentation":"<p>For a Distillation job, the details about the statuses of the sub-tasks of the customization job. </p>"
3699+
},
36783700
"creationTime":{
36793701
"shape":"Timestamp",
36803702
"documentation":"<p>Time that the resource was created.</p>"
@@ -5443,6 +5465,17 @@
54435465
"min":1,
54445466
"pattern":"[a-zA-Z0-9](-*[a-zA-Z0-9\\+\\-\\.])*"
54455467
},
5468+
"JobStatusDetails":{
5469+
"type":"string",
5470+
"enum":[
5471+
"InProgress",
5472+
"Completed",
5473+
"Stopping",
5474+
"Stopped",
5475+
"Failed",
5476+
"NotStarted"
5477+
]
5478+
},
54465479
"KbInferenceConfig":{
54475480
"type":"structure",
54485481
"members":{
@@ -6624,6 +6657,10 @@
66246657
"shape":"Timestamp",
66256658
"documentation":"<p>Time that the customization job was last modified.</p>"
66266659
},
6660+
"statusDetails":{
6661+
"shape":"StatusDetails",
6662+
"documentation":"<p>Details about the status of the data processing sub-task of the job.</p>"
6663+
},
66276664
"creationTime":{
66286665
"shape":"Timestamp",
66296666
"documentation":"<p>Creation time of the custom model. </p>"
@@ -7720,6 +7757,24 @@
77207757
"INCOMPATIBLE_ENDPOINT"
77217758
]
77227759
},
7760+
"StatusDetails":{
7761+
"type":"structure",
7762+
"members":{
7763+
"validationDetails":{
7764+
"shape":"ValidationDetails",
7765+
"documentation":"<p>The status details for the validation sub-task of the job.</p>"
7766+
},
7767+
"dataProcessingDetails":{
7768+
"shape":"DataProcessingDetails",
7769+
"documentation":"<p>The status details for the data processing sub-task of the job.</p>"
7770+
},
7771+
"trainingDetails":{
7772+
"shape":"TrainingDetails",
7773+
"documentation":"<p>The status details for the training sub-task of the job.</p>"
7774+
}
7775+
},
7776+
"documentation":"<p>For a Distillation job, the status details for sub-tasks of the job. Possible statuses for each sub-task include the following:</p> <ul> <li> <p>NotStarted</p> </li> <li> <p>InProgress</p> </li> <li> <p>Completed</p> </li> <li> <p>Stopping</p> </li> <li> <p>Stopped</p> </li> <li> <p>Failed</p> </li> </ul>"
7777+
},
77237778
"StopEvaluationJobRequest":{
77247779
"type":"structure",
77257780
"required":["jobIdentifier"],
@@ -7871,7 +7926,7 @@
78717926
},
78727927
"TeacherModelIdentifier":{
78737928
"type":"string",
7874-
"pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}::foundation-model/[a-z0-9-]{1,63}[.]{1}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})|(([0-9a-zA-Z][_-]?)+)"
7929+
"pattern":"(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:((:foundation-model/([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})|(([0-9a-zA-Z][_-]?)+)$)|([0-9]{12}:inference-profile/[a-zA-Z0-9-:.]+$)))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})"
78757930
},
78767931
"Temperature":{
78777932
"type":"float",
@@ -7959,6 +8014,24 @@
79598014
},
79608015
"documentation":"<p>S3 Location of the training data.</p>"
79618016
},
8017+
"TrainingDetails":{
8018+
"type":"structure",
8019+
"members":{
8020+
"status":{
8021+
"shape":"JobStatusDetails",
8022+
"documentation":"<p>The status of the training sub-task of the job.</p>"
8023+
},
8024+
"creationTime":{
8025+
"shape":"Timestamp",
8026+
"documentation":"<p>The start time of the training sub-task of the job.</p>"
8027+
},
8028+
"lastModifiedTime":{
8029+
"shape":"Timestamp",
8030+
"documentation":"<p>The latest update to the training sub-task of the job.</p>"
8031+
}
8032+
},
8033+
"documentation":"<p>For a Distillation job, the status details for the training sub-task of the job.</p>"
8034+
},
79628035
"TrainingMetrics":{
79638036
"type":"structure",
79648037
"members":{
@@ -8146,6 +8219,24 @@
81468219
},
81478220
"documentation":"<p>Array of up to 10 validators.</p>"
81488221
},
8222+
"ValidationDetails":{
8223+
"type":"structure",
8224+
"members":{
8225+
"status":{
8226+
"shape":"JobStatusDetails",
8227+
"documentation":"<p>The status of the validation sub-task of the job.</p>"
8228+
},
8229+
"creationTime":{
8230+
"shape":"Timestamp",
8231+
"documentation":"<p>The start time of the validation sub-task of the job.</p>"
8232+
},
8233+
"lastModifiedTime":{
8234+
"shape":"Timestamp",
8235+
"documentation":"<p>The latest update to the validation sub-task of the job.</p>"
8236+
}
8237+
},
8238+
"documentation":"<p>For a Distillation job, the status details for the validation sub-task of the job.</p>"
8239+
},
81498240
"ValidationException":{
81508241
"type":"structure",
81518242
"members":{

sdk/code-analysis/ServiceAnalysis/Bedrock/Generated/PropertyValueRules.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2045,7 +2045,7 @@
20452045
</property-value-rule>
20462046
<property-value-rule>
20472047
<property>Amazon.Bedrock.Model.TeacherModelConfig.TeacherModelIdentifier</property>
2048-
<pattern>arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}::foundation-model/[a-z0-9-]{1,63}[.]{1}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})|(([0-9a-zA-Z][_-]?)+)</pattern>
2048+
<pattern>(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:((:foundation-model/([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})|(([0-9a-zA-Z][_-]?)+)$)|([0-9]{12}:inference-profile/[a-zA-Z0-9-:.]+$)))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})</pattern>
20492049
</property-value-rule>
20502050
<property-value-rule>
20512051
<property>Amazon.Bedrock.Model.TextInferenceConfig.MaxTokens</property>

sdk/src/Services/Bedrock/Generated/Model/CustomizationConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public partial class CustomizationConfig
3939
/// <summary>
4040
/// Gets and sets the property DistillationConfig.
4141
/// <para>
42-
/// The distillation configuration for the custom model.
42+
/// The Distillation configuration for the custom model.
4343
/// </para>
4444
/// </summary>
4545
public DistillationConfig DistillationConfig

0 commit comments

Comments
 (0)