|
2 | 2 | "version":"2.0",
|
3 | 3 | "metadata":{
|
4 | 4 | "apiVersion":"2023-04-20",
|
| 5 | + "auth":["aws.auth#sigv4"], |
5 | 6 | "endpointPrefix":"bedrock",
|
6 |
| - "jsonVersion":"1.1", |
7 | 7 | "protocol":"rest-json",
|
| 8 | + "protocols":["rest-json"], |
8 | 9 | "serviceFullName":"Amazon Bedrock",
|
9 | 10 | "serviceId":"Bedrock",
|
10 | 11 | "signatureVersion":"v4",
|
|
71 | 72 | {"shape":"ThrottlingException"}
|
72 | 73 | ]
|
73 | 74 | },
|
| 75 | + "CreateModelCopyJob":{ |
| 76 | + "name":"CreateModelCopyJob", |
| 77 | + "http":{ |
| 78 | + "method":"POST", |
| 79 | + "requestUri":"/model-copy-jobs", |
| 80 | + "responseCode":201 |
| 81 | + }, |
| 82 | + "input":{"shape":"CreateModelCopyJobRequest"}, |
| 83 | + "output":{"shape":"CreateModelCopyJobResponse"}, |
| 84 | + "errors":[ |
| 85 | + {"shape":"ResourceNotFoundException"}, |
| 86 | + {"shape":"AccessDeniedException"}, |
| 87 | + {"shape":"InternalServerException"}, |
| 88 | + {"shape":"TooManyTagsException"} |
| 89 | + ], |
| 90 | + "idempotent":true |
| 91 | + }, |
74 | 92 | "CreateModelCustomizationJob":{
|
75 | 93 | "name":"CreateModelCustomizationJob",
|
76 | 94 | "http":{
|
|
253 | 271 | {"shape":"ThrottlingException"}
|
254 | 272 | ]
|
255 | 273 | },
|
| 274 | + "GetModelCopyJob":{ |
| 275 | + "name":"GetModelCopyJob", |
| 276 | + "http":{ |
| 277 | + "method":"GET", |
| 278 | + "requestUri":"/model-copy-jobs/{jobArn}", |
| 279 | + "responseCode":200 |
| 280 | + }, |
| 281 | + "input":{"shape":"GetModelCopyJobRequest"}, |
| 282 | + "output":{"shape":"GetModelCopyJobResponse"}, |
| 283 | + "errors":[ |
| 284 | + {"shape":"ResourceNotFoundException"}, |
| 285 | + {"shape":"AccessDeniedException"}, |
| 286 | + {"shape":"ValidationException"}, |
| 287 | + {"shape":"InternalServerException"}, |
| 288 | + {"shape":"ThrottlingException"} |
| 289 | + ] |
| 290 | + }, |
256 | 291 | "GetModelCustomizationJob":{
|
257 | 292 | "name":"GetModelCustomizationJob",
|
258 | 293 | "http":{
|
|
367 | 402 | {"shape":"ThrottlingException"}
|
368 | 403 | ]
|
369 | 404 | },
|
| 405 | + "ListModelCopyJobs":{ |
| 406 | + "name":"ListModelCopyJobs", |
| 407 | + "http":{ |
| 408 | + "method":"GET", |
| 409 | + "requestUri":"/model-copy-jobs", |
| 410 | + "responseCode":200 |
| 411 | + }, |
| 412 | + "input":{"shape":"ListModelCopyJobsRequest"}, |
| 413 | + "output":{"shape":"ListModelCopyJobsResponse"}, |
| 414 | + "errors":[ |
| 415 | + {"shape":"ResourceNotFoundException"}, |
| 416 | + {"shape":"AccessDeniedException"}, |
| 417 | + {"shape":"ValidationException"}, |
| 418 | + {"shape":"InternalServerException"}, |
| 419 | + {"shape":"ThrottlingException"} |
| 420 | + ] |
| 421 | + }, |
370 | 422 | "ListModelCustomizationJobs":{
|
371 | 423 | "name":"ListModelCustomizationJobs",
|
372 | 424 | "http":{
|
|
556 | 608 | },
|
557 | 609 | "exception":true
|
558 | 610 | },
|
| 611 | + "AccountId":{ |
| 612 | + "type":"string", |
| 613 | + "pattern":"[0-9]{12}" |
| 614 | + }, |
559 | 615 | "AutomatedEvaluationConfig":{
|
560 | 616 | "type":"structure",
|
561 | 617 | "required":["datasetMetricConfigs"],
|
|
718 | 774 | "version":{"shape":"GuardrailNumericalVersion"}
|
719 | 775 | }
|
720 | 776 | },
|
| 777 | + "CreateModelCopyJobRequest":{ |
| 778 | + "type":"structure", |
| 779 | + "required":[ |
| 780 | + "sourceModelArn", |
| 781 | + "targetModelName" |
| 782 | + ], |
| 783 | + "members":{ |
| 784 | + "sourceModelArn":{"shape":"ModelArn"}, |
| 785 | + "targetModelName":{"shape":"CustomModelName"}, |
| 786 | + "modelKmsKeyId":{"shape":"KmsKeyId"}, |
| 787 | + "targetModelTags":{"shape":"TagList"}, |
| 788 | + "clientRequestToken":{ |
| 789 | + "shape":"IdempotencyToken", |
| 790 | + "idempotencyToken":true |
| 791 | + } |
| 792 | + } |
| 793 | + }, |
| 794 | + "CreateModelCopyJobResponse":{ |
| 795 | + "type":"structure", |
| 796 | + "required":["jobArn"], |
| 797 | + "members":{ |
| 798 | + "jobArn":{"shape":"ModelCopyJobArn"} |
| 799 | + } |
| 800 | + }, |
721 | 801 | "CreateModelCustomizationJobRequest":{
|
722 | 802 | "type":"structure",
|
723 | 803 | "required":[
|
|
792 | 872 | "type":"string",
|
793 | 873 | "max":63,
|
794 | 874 | "min":1,
|
795 |
| - "pattern":"([0-9a-zA-Z][_-]?)+" |
| 875 | + "pattern":"([0-9a-zA-Z][_-]?){1,63}" |
796 | 876 | },
|
797 | 877 | "CustomModelSummary":{
|
798 | 878 | "type":"structure",
|
|
809 | 889 | "creationTime":{"shape":"Timestamp"},
|
810 | 890 | "baseModelArn":{"shape":"ModelArn"},
|
811 | 891 | "baseModelName":{"shape":"ModelName"},
|
812 |
| - "customizationType":{"shape":"CustomizationType"} |
| 892 | + "customizationType":{"shape":"CustomizationType"}, |
| 893 | + "ownerAccountId":{"shape":"AccountId"} |
813 | 894 | }
|
814 | 895 | },
|
815 | 896 | "CustomModelSummaryList":{
|
|
1333 | 1414 | "kmsKeyArn":{"shape":"KmsKeyArn"}
|
1334 | 1415 | }
|
1335 | 1416 | },
|
| 1417 | + "GetModelCopyJobRequest":{ |
| 1418 | + "type":"structure", |
| 1419 | + "required":["jobArn"], |
| 1420 | + "members":{ |
| 1421 | + "jobArn":{ |
| 1422 | + "shape":"ModelCopyJobArn", |
| 1423 | + "location":"uri", |
| 1424 | + "locationName":"jobArn" |
| 1425 | + } |
| 1426 | + } |
| 1427 | + }, |
| 1428 | + "GetModelCopyJobResponse":{ |
| 1429 | + "type":"structure", |
| 1430 | + "required":[ |
| 1431 | + "jobArn", |
| 1432 | + "status", |
| 1433 | + "creationTime", |
| 1434 | + "targetModelArn", |
| 1435 | + "sourceAccountId", |
| 1436 | + "sourceModelArn" |
| 1437 | + ], |
| 1438 | + "members":{ |
| 1439 | + "jobArn":{"shape":"ModelCopyJobArn"}, |
| 1440 | + "status":{"shape":"ModelCopyJobStatus"}, |
| 1441 | + "creationTime":{"shape":"Timestamp"}, |
| 1442 | + "targetModelArn":{"shape":"CustomModelArn"}, |
| 1443 | + "targetModelName":{"shape":"CustomModelName"}, |
| 1444 | + "sourceAccountId":{"shape":"AccountId"}, |
| 1445 | + "sourceModelArn":{"shape":"ModelArn"}, |
| 1446 | + "targetModelKmsKeyArn":{"shape":"KmsKeyArn"}, |
| 1447 | + "targetModelTags":{"shape":"TagList"}, |
| 1448 | + "failureMessage":{"shape":"ErrorMessage"}, |
| 1449 | + "sourceModelName":{"shape":"CustomModelName"} |
| 1450 | + } |
| 1451 | + }, |
1336 | 1452 | "GetModelCustomizationJobRequest":{
|
1337 | 1453 | "type":"structure",
|
1338 | 1454 | "required":["jobIdentifier"],
|
|
2135 | 2251 | "shape":"SortOrder",
|
2136 | 2252 | "location":"querystring",
|
2137 | 2253 | "locationName":"sortOrder"
|
| 2254 | + }, |
| 2255 | + "isOwned":{ |
| 2256 | + "shape":"Boolean", |
| 2257 | + "location":"querystring", |
| 2258 | + "locationName":"isOwned" |
2138 | 2259 | }
|
2139 | 2260 | }
|
2140 | 2261 | },
|
|
2256 | 2377 | "nextToken":{"shape":"PaginationToken"}
|
2257 | 2378 | }
|
2258 | 2379 | },
|
| 2380 | + "ListModelCopyJobsRequest":{ |
| 2381 | + "type":"structure", |
| 2382 | + "members":{ |
| 2383 | + "creationTimeAfter":{ |
| 2384 | + "shape":"Timestamp", |
| 2385 | + "location":"querystring", |
| 2386 | + "locationName":"creationTimeAfter" |
| 2387 | + }, |
| 2388 | + "creationTimeBefore":{ |
| 2389 | + "shape":"Timestamp", |
| 2390 | + "location":"querystring", |
| 2391 | + "locationName":"creationTimeBefore" |
| 2392 | + }, |
| 2393 | + "statusEquals":{ |
| 2394 | + "shape":"ModelCopyJobStatus", |
| 2395 | + "location":"querystring", |
| 2396 | + "locationName":"statusEquals" |
| 2397 | + }, |
| 2398 | + "sourceAccountEquals":{ |
| 2399 | + "shape":"AccountId", |
| 2400 | + "location":"querystring", |
| 2401 | + "locationName":"sourceAccountEquals" |
| 2402 | + }, |
| 2403 | + "sourceModelArnEquals":{ |
| 2404 | + "shape":"ModelArn", |
| 2405 | + "location":"querystring", |
| 2406 | + "locationName":"sourceModelArnEquals" |
| 2407 | + }, |
| 2408 | + "targetModelNameContains":{ |
| 2409 | + "shape":"CustomModelName", |
| 2410 | + "location":"querystring", |
| 2411 | + "locationName":"outputModelNameContains" |
| 2412 | + }, |
| 2413 | + "maxResults":{ |
| 2414 | + "shape":"MaxResults", |
| 2415 | + "location":"querystring", |
| 2416 | + "locationName":"maxResults" |
| 2417 | + }, |
| 2418 | + "nextToken":{ |
| 2419 | + "shape":"PaginationToken", |
| 2420 | + "location":"querystring", |
| 2421 | + "locationName":"nextToken" |
| 2422 | + }, |
| 2423 | + "sortBy":{ |
| 2424 | + "shape":"SortJobsBy", |
| 2425 | + "location":"querystring", |
| 2426 | + "locationName":"sortBy" |
| 2427 | + }, |
| 2428 | + "sortOrder":{ |
| 2429 | + "shape":"SortOrder", |
| 2430 | + "location":"querystring", |
| 2431 | + "locationName":"sortOrder" |
| 2432 | + } |
| 2433 | + } |
| 2434 | + }, |
| 2435 | + "ListModelCopyJobsResponse":{ |
| 2436 | + "type":"structure", |
| 2437 | + "members":{ |
| 2438 | + "nextToken":{"shape":"PaginationToken"}, |
| 2439 | + "modelCopyJobSummaries":{"shape":"ModelCopyJobSummaries"} |
| 2440 | + } |
| 2441 | + }, |
2259 | 2442 | "ListModelCustomizationJobsRequest":{
|
2260 | 2443 | "type":"structure",
|
2261 | 2444 | "members":{
|
|
2409 | 2592 | "min":20,
|
2410 | 2593 | "pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(: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}))"
|
2411 | 2594 | },
|
| 2595 | + "ModelCopyJobArn":{ |
| 2596 | + "type":"string", |
| 2597 | + "max":1011, |
| 2598 | + "min":0, |
| 2599 | + "pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:model-copy-job/[a-z0-9]{12}" |
| 2600 | + }, |
| 2601 | + "ModelCopyJobStatus":{ |
| 2602 | + "type":"string", |
| 2603 | + "enum":[ |
| 2604 | + "InProgress", |
| 2605 | + "Completed", |
| 2606 | + "Failed" |
| 2607 | + ] |
| 2608 | + }, |
| 2609 | + "ModelCopyJobSummaries":{ |
| 2610 | + "type":"list", |
| 2611 | + "member":{"shape":"ModelCopyJobSummary"} |
| 2612 | + }, |
| 2613 | + "ModelCopyJobSummary":{ |
| 2614 | + "type":"structure", |
| 2615 | + "required":[ |
| 2616 | + "jobArn", |
| 2617 | + "status", |
| 2618 | + "creationTime", |
| 2619 | + "targetModelArn", |
| 2620 | + "sourceAccountId", |
| 2621 | + "sourceModelArn" |
| 2622 | + ], |
| 2623 | + "members":{ |
| 2624 | + "jobArn":{"shape":"ModelCopyJobArn"}, |
| 2625 | + "status":{"shape":"ModelCopyJobStatus"}, |
| 2626 | + "creationTime":{"shape":"Timestamp"}, |
| 2627 | + "targetModelArn":{"shape":"CustomModelArn"}, |
| 2628 | + "targetModelName":{"shape":"CustomModelName"}, |
| 2629 | + "sourceAccountId":{"shape":"AccountId"}, |
| 2630 | + "sourceModelArn":{"shape":"ModelArn"}, |
| 2631 | + "targetModelKmsKeyArn":{"shape":"KmsKeyArn"}, |
| 2632 | + "targetModelTags":{"shape":"TagList"}, |
| 2633 | + "failureMessage":{"shape":"ErrorMessage"}, |
| 2634 | + "sourceModelName":{"shape":"CustomModelName"} |
| 2635 | + } |
| 2636 | + }, |
2412 | 2637 | "ModelCustomization":{
|
2413 | 2638 | "type":"string",
|
2414 | 2639 | "enum":[
|
|
0 commit comments