|
31 | 31 | {"shape":"ThrottlingException"}
|
32 | 32 | ]
|
33 | 33 | },
|
| 34 | + "CreateCustomModel":{ |
| 35 | + "name":"CreateCustomModel", |
| 36 | + "http":{ |
| 37 | + "method":"POST", |
| 38 | + "requestUri":"/custom-models/create-custom-model", |
| 39 | + "responseCode":200 |
| 40 | + }, |
| 41 | + "input":{"shape":"CreateCustomModelRequest"}, |
| 42 | + "output":{"shape":"CreateCustomModelResponse"}, |
| 43 | + "errors":[ |
| 44 | + {"shape":"ResourceNotFoundException"}, |
| 45 | + {"shape":"AccessDeniedException"}, |
| 46 | + {"shape":"ValidationException"}, |
| 47 | + {"shape":"ConflictException"}, |
| 48 | + {"shape":"InternalServerException"}, |
| 49 | + {"shape":"TooManyTagsException"}, |
| 50 | + {"shape":"ServiceQuotaExceededException"}, |
| 51 | + {"shape":"ThrottlingException"} |
| 52 | + ] |
| 53 | + }, |
34 | 54 | "CreateEvaluationJob":{
|
35 | 55 | "name":"CreateEvaluationJob",
|
36 | 56 | "http":{
|
|
1290 | 1310 | "type":"string",
|
1291 | 1311 | "pattern":".*[a-z]{1,20}/.{1,20}.*"
|
1292 | 1312 | },
|
| 1313 | + "CreateCustomModelRequest":{ |
| 1314 | + "type":"structure", |
| 1315 | + "required":[ |
| 1316 | + "modelName", |
| 1317 | + "modelSourceConfig" |
| 1318 | + ], |
| 1319 | + "members":{ |
| 1320 | + "modelName":{"shape":"CustomModelName"}, |
| 1321 | + "modelSourceConfig":{"shape":"ModelDataSource"}, |
| 1322 | + "modelKmsKeyArn":{"shape":"KmsKeyArn"}, |
| 1323 | + "roleArn":{"shape":"RoleArn"}, |
| 1324 | + "modelTags":{"shape":"TagList"}, |
| 1325 | + "clientRequestToken":{ |
| 1326 | + "shape":"IdempotencyToken", |
| 1327 | + "idempotencyToken":true |
| 1328 | + } |
| 1329 | + } |
| 1330 | + }, |
| 1331 | + "CreateCustomModelResponse":{ |
| 1332 | + "type":"structure", |
| 1333 | + "required":["modelArn"], |
| 1334 | + "members":{ |
| 1335 | + "modelArn":{"shape":"ModelArn"} |
| 1336 | + } |
| 1337 | + }, |
1293 | 1338 | "CreateEvaluationJobRequest":{
|
1294 | 1339 | "type":"structure",
|
1295 | 1340 | "required":[
|
|
1656 | 1701 | "type":"string",
|
1657 | 1702 | "max":1011,
|
1658 | 1703 | "min":20,
|
1659 |
| - "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-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}/[a-z0-9]{12}" |
| 1704 | + "pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:custom-model/(imported|[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})" |
1660 | 1705 | },
|
1661 | 1706 | "CustomModelName":{
|
1662 | 1707 | "type":"string",
|
|
1680 | 1725 | "baseModelArn":{"shape":"ModelArn"},
|
1681 | 1726 | "baseModelName":{"shape":"ModelName"},
|
1682 | 1727 | "customizationType":{"shape":"CustomizationType"},
|
1683 |
| - "ownerAccountId":{"shape":"AccountId"} |
| 1728 | + "ownerAccountId":{"shape":"AccountId"}, |
| 1729 | + "modelStatus":{"shape":"ModelStatus"} |
1684 | 1730 | }
|
1685 | 1731 | },
|
1686 | 1732 | "CustomModelSummaryList":{
|
|
1710 | 1756 | "enum":[
|
1711 | 1757 | "FINE_TUNING",
|
1712 | 1758 | "CONTINUED_PRE_TRAINING",
|
1713 |
| - "DISTILLATION" |
| 1759 | + "DISTILLATION", |
| 1760 | + "IMPORTED" |
1714 | 1761 | ]
|
1715 | 1762 | },
|
1716 | 1763 | "DataProcessingDetails":{
|
|
2398 | 2445 | "required":[
|
2399 | 2446 | "modelArn",
|
2400 | 2447 | "modelName",
|
2401 |
| - "jobArn", |
2402 |
| - "baseModelArn", |
2403 |
| - "trainingDataConfig", |
2404 |
| - "outputDataConfig", |
2405 | 2448 | "creationTime"
|
2406 | 2449 | ],
|
2407 | 2450 | "members":{
|
|
2419 | 2462 | "trainingMetrics":{"shape":"TrainingMetrics"},
|
2420 | 2463 | "validationMetrics":{"shape":"ValidationMetrics"},
|
2421 | 2464 | "creationTime":{"shape":"Timestamp"},
|
2422 |
| - "customizationConfig":{"shape":"CustomizationConfig"} |
| 2465 | + "customizationConfig":{"shape":"CustomizationConfig"}, |
| 2466 | + "modelStatus":{"shape":"ModelStatus"}, |
| 2467 | + "failureMessage":{"shape":"ErrorMessage"} |
2423 | 2468 | }
|
2424 | 2469 | },
|
2425 | 2470 | "GetEvaluationJobRequest":{
|
|
2674 | 2719 | "clientRequestToken":{"shape":"IdempotencyToken"},
|
2675 | 2720 | "roleArn":{"shape":"RoleArn"},
|
2676 | 2721 | "status":{"shape":"ModelCustomizationJobStatus"},
|
2677 |
| - "failureMessage":{"shape":"ErrorMessage"}, |
2678 | 2722 | "statusDetails":{"shape":"StatusDetails"},
|
| 2723 | + "failureMessage":{"shape":"ErrorMessage"}, |
2679 | 2724 | "creationTime":{"shape":"Timestamp"},
|
2680 | 2725 | "lastModifiedTime":{"shape":"Timestamp"},
|
2681 | 2726 | "endTime":{"shape":"Timestamp"},
|
|
3948 | 3993 | "shape":"Boolean",
|
3949 | 3994 | "location":"querystring",
|
3950 | 3995 | "locationName":"isOwned"
|
| 3996 | + }, |
| 3997 | + "modelStatus":{ |
| 3998 | + "shape":"ModelStatus", |
| 3999 | + "location":"querystring", |
| 4000 | + "locationName":"modelStatus" |
3951 | 4001 | }
|
3952 | 4002 | }
|
3953 | 4003 | },
|
|
4585 | 4635 | "type":"string",
|
4586 | 4636 | "max":1011,
|
4587 | 4637 | "min":20,
|
4588 |
| - "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-]{1,63}){0,2})?/[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}))" |
| 4638 | + "pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/((imported)|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}))(([:][a-z0-9-]{1,63}){0,2})?/[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}))" |
4589 | 4639 | },
|
4590 | 4640 | "ModelCopyJobArn":{
|
4591 | 4641 | "type":"string",
|
|
4682 | 4732 | "baseModelArn":{"shape":"ModelArn"},
|
4683 | 4733 | "jobName":{"shape":"JobName"},
|
4684 | 4734 | "status":{"shape":"ModelCustomizationJobStatus"},
|
4685 |
| - "lastModifiedTime":{"shape":"Timestamp"}, |
4686 | 4735 | "statusDetails":{"shape":"StatusDetails"},
|
| 4736 | + "lastModifiedTime":{"shape":"Timestamp"}, |
4687 | 4737 | "creationTime":{"shape":"Timestamp"},
|
4688 | 4738 | "endTime":{"shape":"Timestamp"},
|
4689 | 4739 | "customModelArn":{"shape":"CustomModelArn"},
|
|
4712 | 4762 | "type":"string",
|
4713 | 4763 | "max":2048,
|
4714 | 4764 | "min":1,
|
4715 |
| - "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-]{1,63}){0,2})?/[a-z0-9]{12})|(: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})))|(([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][_-]?)+)" |
| 4765 | + "pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/((imported)|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}))(([:][a-z0-9-]{1,63}){0,2})?/[a-z0-9]{12})|(: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})))|(([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][_-]?)+)" |
4716 | 4766 | },
|
4717 | 4767 | "ModelImportJobArn":{
|
4718 | 4768 | "type":"string",
|
|
4891 | 4941 | "min":0,
|
4892 | 4942 | "pattern":".*arn:aws:sagemaker:.*:hub-content/SageMakerPublicHub/Model/.*"
|
4893 | 4943 | },
|
| 4944 | + "ModelStatus":{ |
| 4945 | + "type":"string", |
| 4946 | + "enum":[ |
| 4947 | + "Active", |
| 4948 | + "Creating", |
| 4949 | + "Failed" |
| 4950 | + ] |
| 4951 | + }, |
4894 | 4952 | "NonBlankString":{
|
4895 | 4953 | "type":"string",
|
4896 | 4954 | "pattern":"[\\s\\S]*"
|
|
5546 | 5604 | "type":"string",
|
5547 | 5605 | "max":1011,
|
5548 | 5606 | "min":20,
|
5549 |
| - "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}$))).*" |
| 5607 | + "pattern":".*(^[a-zA-Z0-9][a-zA-Z0-9\\-]*$)|(^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:custom-model/([a-z0-9-]{1,63}[.][a-z0-9-]{1,63}(([:][a-z0-9-]{1,63}){0,2})?|imported)/[a-z0-9]{12}$)|(^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:([0-9]{12}|)((:(fine-tuning-job|model-customization-job)/[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|custom-model-deployment)/[a-z0-9]{12}$))).*" |
5550 | 5608 | },
|
5551 | 5609 | "TeacherModelConfig":{
|
5552 | 5610 | "type":"structure",
|
|
0 commit comments