Skip to content

Commit 8733191

Browse files
Updated API models and rebuilt service gems.
1 parent 641f4f1 commit 8733191

File tree

79 files changed

+2462
-192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+2462
-192
lines changed

apis/bedrock/2023-04-20/api-2.json

Lines changed: 91 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,27 @@
209209
],
210210
"idempotent":true
211211
},
212+
"CreatePromptRouter":{
213+
"name":"CreatePromptRouter",
214+
"http":{
215+
"method":"POST",
216+
"requestUri":"/prompt-routers",
217+
"responseCode":200
218+
},
219+
"input":{"shape":"CreatePromptRouterRequest"},
220+
"output":{"shape":"CreatePromptRouterResponse"},
221+
"errors":[
222+
{"shape":"ResourceNotFoundException"},
223+
{"shape":"AccessDeniedException"},
224+
{"shape":"ValidationException"},
225+
{"shape":"ConflictException"},
226+
{"shape":"InternalServerException"},
227+
{"shape":"TooManyTagsException"},
228+
{"shape":"ServiceQuotaExceededException"},
229+
{"shape":"ThrottlingException"}
230+
],
231+
"idempotent":true
232+
},
212233
"CreateProvisionedModelThroughput":{
213234
"name":"CreateProvisionedModelThroughput",
214235
"http":{
@@ -339,6 +360,24 @@
339360
],
340361
"idempotent":true
341362
},
363+
"DeletePromptRouter":{
364+
"name":"DeletePromptRouter",
365+
"http":{
366+
"method":"DELETE",
367+
"requestUri":"/prompt-routers/{promptRouterArn}",
368+
"responseCode":200
369+
},
370+
"input":{"shape":"DeletePromptRouterRequest"},
371+
"output":{"shape":"DeletePromptRouterResponse"},
372+
"errors":[
373+
{"shape":"ResourceNotFoundException"},
374+
{"shape":"AccessDeniedException"},
375+
{"shape":"ValidationException"},
376+
{"shape":"InternalServerException"},
377+
{"shape":"ThrottlingException"}
378+
],
379+
"idempotent":true
380+
},
342381
"DeleteProvisionedModelThroughput":{
343382
"name":"DeleteProvisionedModelThroughput",
344383
"http":{
@@ -1496,6 +1535,33 @@
14961535
"jobArn":{"shape":"ModelInvocationJobArn"}
14971536
}
14981537
},
1538+
"CreatePromptRouterRequest":{
1539+
"type":"structure",
1540+
"required":[
1541+
"promptRouterName",
1542+
"models",
1543+
"routingCriteria",
1544+
"fallbackModel"
1545+
],
1546+
"members":{
1547+
"clientRequestToken":{
1548+
"shape":"IdempotencyToken",
1549+
"idempotencyToken":true
1550+
},
1551+
"promptRouterName":{"shape":"PromptRouterName"},
1552+
"models":{"shape":"PromptRouterTargetModels"},
1553+
"description":{"shape":"PromptRouterDescription"},
1554+
"routingCriteria":{"shape":"RoutingCriteria"},
1555+
"fallbackModel":{"shape":"PromptRouterTargetModel"},
1556+
"tags":{"shape":"TagList"}
1557+
}
1558+
},
1559+
"CreatePromptRouterResponse":{
1560+
"type":"structure",
1561+
"members":{
1562+
"promptRouterArn":{"shape":"PromptRouterArn"}
1563+
}
1564+
},
14991565
"CreateProvisionedModelThroughputRequest":{
15001566
"type":"structure",
15011567
"required":[
@@ -1667,6 +1733,22 @@
16671733
"members":{
16681734
}
16691735
},
1736+
"DeletePromptRouterRequest":{
1737+
"type":"structure",
1738+
"required":["promptRouterArn"],
1739+
"members":{
1740+
"promptRouterArn":{
1741+
"shape":"PromptRouterArn",
1742+
"location":"uri",
1743+
"locationName":"promptRouterArn"
1744+
}
1745+
}
1746+
},
1747+
"DeletePromptRouterResponse":{
1748+
"type":"structure",
1749+
"members":{
1750+
}
1751+
},
16701752
"DeleteProvisionedModelThroughputRequest":{
16711753
"type":"structure",
16721754
"required":["provisionedModelId"],
@@ -4011,6 +4093,11 @@
40114093
"shape":"PaginationToken",
40124094
"location":"querystring",
40134095
"locationName":"nextToken"
4096+
},
4097+
"type":{
4098+
"shape":"PromptRouterType",
4099+
"location":"querystring",
4100+
"locationName":"type"
40144101
}
40154102
}
40164103
},
@@ -4579,6 +4666,7 @@
45794666
},
45804667
"PromptRouterTargetModel":{
45814668
"type":"structure",
4669+
"required":["modelArn"],
45824670
"members":{
45834671
"modelArn":{"shape":"PromptRouterTargetModelArn"}
45844672
}
@@ -4587,7 +4675,7 @@
45874675
"type":"string",
45884676
"max":2048,
45894677
"min":1,
4590-
"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})|(^arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{0,20}):(|[0-9]{12}):inference-profile/[a-zA-Z0-9-:.]+)"
4678+
"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})|(^arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{0,20}):(|[0-9]{12}):(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+)"
45914679
},
45924680
"PromptRouterTargetModels":{
45934681
"type":"list",
@@ -4863,7 +4951,7 @@
48634951
"RoutingCriteriaResponseQualityDifferenceDouble":{
48644952
"type":"double",
48654953
"box":true,
4866-
"max":1,
4954+
"max":100,
48674955
"min":0
48684956
},
48694957
"S3Config":{
@@ -5100,7 +5188,7 @@
51005188
"type":"string",
51015189
"max":1011,
51025190
"min":20,
5103-
"pattern":".*(^[a-zA-Z0-9][a-zA-Z0-9\\-]*$)|(^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:([0-9]{12}|)((:(fine-tuning-job|model-customization-job|custom-model)/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}(/[a-z0-9]{12})$)|(:guardrail/[a-z0-9]+$)|(:(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+$)|(:(provisioned-model|model-invocation-job|model-evaluation-job|evaluation-job|model-import-job|imported-model|async-invoke)/[a-z0-9]{12}$))).*"
5191+
"pattern":".*(^[a-zA-Z0-9][a-zA-Z0-9\\-]*$)|(^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:([0-9]{12}|)((:(fine-tuning-job|model-customization-job|custom-model)/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}(/[a-z0-9]{12})$)|(:guardrail/[a-z0-9]+$)|(:automated-reasoning-policy/[a-zA-Z0-9]+(:[a-zA-Z0-9]+)?$)|(:(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+$)|(:(provisioned-model|model-invocation-job|model-evaluation-job|evaluation-job|model-import-job|imported-model|async-invoke|provisioned-model-v2|provisioned-model-reservation|prompt-router)/[a-z0-9]{12}$))).*"
51045192
},
51055193
"TeacherModelConfig":{
51065194
"type":"structure",

apis/bedrock/2023-04-20/docs-2.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@
1212
"CreateModelCustomizationJob": "<p>Creates a fine-tuning job to customize a base model.</p> <p>You specify the base foundation model and the location of the training data. After the model-customization job completes successfully, your custom model resource will be ready to use. Amazon Bedrock returns validation loss metrics and output generations after the job completes. </p> <p>For information on the format of training and validation data, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-prepare.html\">Prepare the datasets</a>.</p> <p> Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size. To monitor a job, use the <code>GetModelCustomizationJob</code> operation to retrieve the job status.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html\">Custom models</a> in the <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html\">Amazon Bedrock User Guide</a>.</p>",
1313
"CreateModelImportJob": "<p>Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html\">Import a customized model</a> </p>",
1414
"CreateModelInvocationJob": "<p>Creates a batch inference job to invoke a model on multiple prompts. Format your data according to <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference-data\">Format your inference data</a> and upload it to an Amazon S3 bucket. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference.html\">Process multiple prompts with batch inference</a>.</p> <p>The response returns a <code>jobArn</code> that you can use to stop or get details about the job.</p>",
15+
"CreatePromptRouter": "<p>Creates a prompt router that manages the routing of requests between multiple foundation models based on the routing criteria.</p>",
1516
"CreateProvisionedModelThroughput": "<p>Creates dedicated throughput for a base or custom model with the model units and for the duration that you specify. For pricing details, see <a href=\"http://aws.amazon.com/bedrock/pricing/\">Amazon Bedrock Pricing</a>. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html\">Provisioned Throughput</a> in the <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html\">Amazon Bedrock User Guide</a>.</p>",
1617
"DeleteCustomModel": "<p>Deletes a custom model that you created earlier. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html\">Custom models</a> in the <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html\">Amazon Bedrock User Guide</a>.</p>",
1718
"DeleteGuardrail": "<p>Deletes a guardrail.</p> <ul> <li> <p>To delete a guardrail, only specify the ARN of the guardrail in the <code>guardrailIdentifier</code> field. If you delete a guardrail, all of its versions will be deleted.</p> </li> <li> <p>To delete a version of a guardrail, specify the ARN of the guardrail in the <code>guardrailIdentifier</code> field and the version in the <code>guardrailVersion</code> field.</p> </li> </ul>",
1819
"DeleteImportedModel": "<p>Deletes a custom model that you imported earlier. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html\">Import a customized model</a> in the <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html\">Amazon Bedrock User Guide</a>. </p>",
1920
"DeleteInferenceProfile": "<p>Deletes an application inference profile. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html\">Increase throughput and resilience with cross-region inference in Amazon Bedrock</a>. in the Amazon Bedrock User Guide.</p>",
2021
"DeleteMarketplaceModelEndpoint": "<p>Deletes an endpoint for a model from Amazon Bedrock Marketplace.</p>",
2122
"DeleteModelInvocationLoggingConfiguration": "<p>Delete the invocation logging. </p>",
23+
"DeletePromptRouter": "<p>Deletes a specified prompt router. This action cannot be undone.</p>",
2224
"DeleteProvisionedModelThroughput": "<p>Deletes a Provisioned Throughput. You can't delete a Provisioned Throughput before the commitment term is over. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html\">Provisioned Throughput</a> in the <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html\">Amazon Bedrock User Guide</a>.</p>",
2325
"DeregisterMarketplaceModelEndpoint": "<p>Deregisters an endpoint for a model from Amazon Bedrock Marketplace. This operation removes the endpoint's association with Amazon Bedrock but does not delete the underlying Amazon SageMaker endpoint.</p>",
2426
"GetCustomModel": "<p>Get the properties associated with a Amazon Bedrock custom model that you have created.For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html\">Custom models</a> in the <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html\">Amazon Bedrock User Guide</a>.</p>",
@@ -349,6 +351,16 @@
349351
"refs": {
350352
}
351353
},
354+
"CreatePromptRouterRequest": {
355+
"base": null,
356+
"refs": {
357+
}
358+
},
359+
"CreatePromptRouterResponse": {
360+
"base": null,
361+
"refs": {
362+
}
363+
},
352364
"CreateProvisionedModelThroughputRequest": {
353365
"base": null,
354366
"refs": {
@@ -476,6 +488,16 @@
476488
"refs": {
477489
}
478490
},
491+
"DeletePromptRouterRequest": {
492+
"base": null,
493+
"refs": {
494+
}
495+
},
496+
"DeletePromptRouterResponse": {
497+
"base": null,
498+
"refs": {
499+
}
500+
},
479501
"DeleteProvisionedModelThroughputRequest": {
480502
"base": null,
481503
"refs": {
@@ -1572,6 +1594,7 @@
15721594
"CreateModelCopyJobRequest$clientRequestToken": "<p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html\">Ensuring idempotency</a>.</p>",
15731595
"CreateModelCustomizationJobRequest$clientRequestToken": "<p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html\">Ensuring idempotency</a>.</p>",
15741596
"CreateModelImportJobRequest$clientRequestToken": "<p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html\">Ensuring idempotency</a>.</p>",
1597+
"CreatePromptRouterRequest$clientRequestToken": "<p>A unique, case-sensitive identifier that you provide to ensure idempotency of your requests. If not specified, the Amazon Web Services SDK automatically generates one for you.</p>",
15751598
"CreateProvisionedModelThroughputRequest$clientRequestToken": "<p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html\">Ensuring idempotency</a> in the Amazon S3 User Guide.</p>",
15761599
"GetModelCustomizationJobResponse$clientRequestToken": "<p>The token that you specified in the <code>CreateCustomizationJob</code> request.</p>",
15771600
"UpdateMarketplaceModelEndpointRequest$clientRequestToken": "<p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This token is listed as not required because Amazon Web Services SDKs automatically generate it for you and set this parameter. If you're not using the Amazon Web Services SDK or the CLI, you must provide this token or the action will fail.</p>"
@@ -2447,6 +2470,8 @@
24472470
"PromptRouterArn": {
24482471
"base": null,
24492472
"refs": {
2473+
"CreatePromptRouterResponse$promptRouterArn": "<p>The Amazon Resource Name (ARN) that uniquely identifies the prompt router.</p>",
2474+
"DeletePromptRouterRequest$promptRouterArn": "<p>The Amazon Resource Name (ARN) of the prompt router to delete.</p>",
24502475
"GetPromptRouterRequest$promptRouterArn": "<p>The prompt router's ARN</p>",
24512476
"GetPromptRouterResponse$promptRouterArn": "<p>The prompt router's ARN</p>",
24522477
"PromptRouterSummary$promptRouterArn": "<p>The router's ARN.</p>"
@@ -2455,13 +2480,15 @@
24552480
"PromptRouterDescription": {
24562481
"base": null,
24572482
"refs": {
2483+
"CreatePromptRouterRequest$description": "<p>An optional description of the prompt router to help identify its purpose.</p>",
24582484
"GetPromptRouterResponse$description": "<p>The router's description.</p>",
24592485
"PromptRouterSummary$description": "<p>The router's description.</p>"
24602486
}
24612487
},
24622488
"PromptRouterName": {
24632489
"base": null,
24642490
"refs": {
2491+
"CreatePromptRouterRequest$promptRouterName": "<p>The name of the prompt router. The name must be unique within your Amazon Web Services account in the current region.</p>",
24652492
"GetPromptRouterResponse$promptRouterName": "<p>The router's name.</p>",
24662493
"PromptRouterSummary$promptRouterName": "<p>The router's name.</p>"
24672494
}
@@ -2488,6 +2515,7 @@
24882515
"PromptRouterTargetModel": {
24892516
"base": "<p>The target model for a prompt router.</p>",
24902517
"refs": {
2518+
"CreatePromptRouterRequest$fallbackModel": "<p>The default model to use when the routing criteria is not met.</p>",
24912519
"GetPromptRouterResponse$fallbackModel": "<p>The router's fallback model.</p>",
24922520
"PromptRouterSummary$fallbackModel": "<p>The router's fallback model.</p>",
24932521
"PromptRouterTargetModels$member": null
@@ -2502,6 +2530,7 @@
25022530
"PromptRouterTargetModels": {
25032531
"base": null,
25042532
"refs": {
2533+
"CreatePromptRouterRequest$models": "<p>A list of foundation models that the prompt router can route requests to. At least one model must be specified.</p>",
25052534
"GetPromptRouterResponse$models": "<p>The router's models.</p>",
25062535
"PromptRouterSummary$models": "<p>The router's models.</p>"
25072536
}
@@ -2510,6 +2539,7 @@
25102539
"base": null,
25112540
"refs": {
25122541
"GetPromptRouterResponse$type": "<p>The router's type.</p>",
2542+
"ListPromptRoutersRequest$type": "<p>The type of the prompt routers, such as whether it's default or custom.</p>",
25132543
"PromptRouterSummary$type": "<p>The summary's type.</p>"
25142544
}
25152545
},
@@ -2730,6 +2760,7 @@
27302760
"RoutingCriteria": {
27312761
"base": "<p>Routing criteria for a prompt router.</p>",
27322762
"refs": {
2763+
"CreatePromptRouterRequest$routingCriteria": "<p>The criteria, which is the response quality difference, used to determine how incoming requests are routed to different models.</p>",
27332764
"GetPromptRouterResponse$routingCriteria": "<p>The router's routing criteria.</p>",
27342765
"PromptRouterSummary$routingCriteria": "<p>The router's routing criteria.</p>"
27352766
}
@@ -2950,6 +2981,7 @@
29502981
"CreateModelImportJobRequest$jobTags": "<p>Tags to attach to this import job. </p>",
29512982
"CreateModelImportJobRequest$importedModelTags": "<p>Tags to attach to the imported model.</p>",
29522983
"CreateModelInvocationJobRequest$tags": "<p>Any tags to associate with the batch inference job. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html\">Tagging Amazon Bedrock resources</a>.</p>",
2984+
"CreatePromptRouterRequest$tags": "<p>An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your Amazon Web Services resources.</p>",
29532985
"CreateProvisionedModelThroughputRequest$tags": "<p>Tags to associate with this Provisioned Throughput.</p>",
29542986
"GetModelCopyJobResponse$targetModelTags": "<p>The tags associated with the copied model.</p>",
29552987
"ListTagsForResourceResponse$tags": "<p>An array of the tags associated with this resource.</p>",

0 commit comments

Comments
 (0)