| 1 | { |
| 2 | "version":"2.0", |
| 3 | "metadata":{ |
| 4 | "apiVersion":"2023-04-20", |
| 5 | "endpointPrefix":"bedrock", |
| 6 | "jsonVersion":"1.1", |
| 7 | "protocol":"rest-json", |
| 8 | "serviceFullName":"Amazon Bedrock", |
| 9 | "serviceId":"Bedrock", |
| 10 | "signatureVersion":"v4", |
| 11 | "signingName":"bedrock", |
| 12 | "uid":"bedrock-2023-04-20" |
| 13 | }, |
| 14 | "operations":{ |
| 15 | "CreateModelCustomizationJob":{ |
| 16 | "name":"CreateModelCustomizationJob", |
| 17 | "http":{ |
| 18 | "method":"POST", |
| 19 | "requestUri":"/model-customization-jobs", |
| 20 | "responseCode":201 |
| 21 | }, |
| 22 | "input":{"shape":"CreateModelCustomizationJobRequest"}, |
| 23 | "output":{"shape":"CreateModelCustomizationJobResponse"}, |
| 24 | "errors":[ |
| 25 | {"shape":"ResourceNotFoundException"}, |
| 26 | {"shape":"AccessDeniedException"}, |
| 27 | {"shape":"ValidationException"}, |
| 28 | {"shape":"ConflictException"}, |
| 29 | {"shape":"InternalServerException"}, |
| 30 | {"shape":"TooManyTagsException"}, |
| 31 | {"shape":"ServiceQuotaExceededException"}, |
| 32 | {"shape":"ThrottlingException"} |
| 33 | ], |
| 34 | "idempotent":true |
| 35 | }, |
| 36 | "CreateProvisionedModelThroughput":{ |
| 37 | "name":"CreateProvisionedModelThroughput", |
| 38 | "http":{ |
| 39 | "method":"POST", |
| 40 | "requestUri":"/provisioned-model-throughput", |
| 41 | "responseCode":201 |
| 42 | }, |
| 43 | "input":{"shape":"CreateProvisionedModelThroughputRequest"}, |
| 44 | "output":{"shape":"CreateProvisionedModelThroughputResponse"}, |
| 45 | "errors":[ |
| 46 | {"shape":"ResourceNotFoundException"}, |
| 47 | {"shape":"AccessDeniedException"}, |
| 48 | {"shape":"ValidationException"}, |
| 49 | {"shape":"InternalServerException"}, |
| 50 | {"shape":"TooManyTagsException"}, |
| 51 | {"shape":"ServiceQuotaExceededException"}, |
| 52 | {"shape":"ThrottlingException"} |
| 53 | ], |
| 54 | "idempotent":true |
| 55 | }, |
| 56 | "DeleteCustomModel":{ |
| 57 | "name":"DeleteCustomModel", |
| 58 | "http":{ |
| 59 | "method":"DELETE", |
| 60 | "requestUri":"/custom-models/{modelIdentifier}", |
| 61 | "responseCode":200 |
| 62 | }, |
| 63 | "input":{"shape":"DeleteCustomModelRequest"}, |
| 64 | "output":{"shape":"DeleteCustomModelResponse"}, |
| 65 | "errors":[ |
| 66 | {"shape":"ResourceNotFoundException"}, |
| 67 | {"shape":"AccessDeniedException"}, |
| 68 | {"shape":"ValidationException"}, |
| 69 | {"shape":"ConflictException"}, |
| 70 | {"shape":"InternalServerException"}, |
| 71 | {"shape":"ThrottlingException"} |
| 72 | ], |
| 73 | "idempotent":true |
| 74 | }, |
| 75 | "DeleteModelInvocationLoggingConfiguration":{ |
| 76 | "name":"DeleteModelInvocationLoggingConfiguration", |
| 77 | "http":{ |
| 78 | "method":"DELETE", |
| 79 | "requestUri":"/logging/modelinvocations", |
| 80 | "responseCode":200 |
| 81 | }, |
| 82 | "input":{"shape":"DeleteModelInvocationLoggingConfigurationRequest"}, |
| 83 | "output":{"shape":"DeleteModelInvocationLoggingConfigurationResponse"}, |
| 84 | "errors":[ |
| 85 | {"shape":"AccessDeniedException"}, |
| 86 | {"shape":"InternalServerException"}, |
| 87 | {"shape":"ThrottlingException"} |
| 88 | ], |
| 89 | "idempotent":true |
| 90 | }, |
| 91 | "DeleteProvisionedModelThroughput":{ |
| 92 | "name":"DeleteProvisionedModelThroughput", |
| 93 | "http":{ |
| 94 | "method":"DELETE", |
| 95 | "requestUri":"/provisioned-model-throughput/{provisionedModelId}", |
| 96 | "responseCode":200 |
| 97 | }, |
| 98 | "input":{"shape":"DeleteProvisionedModelThroughputRequest"}, |
| 99 | "output":{"shape":"DeleteProvisionedModelThroughputResponse"}, |
| 100 | "errors":[ |
| 101 | {"shape":"ResourceNotFoundException"}, |
| 102 | {"shape":"AccessDeniedException"}, |
| 103 | {"shape":"ValidationException"}, |
| 104 | {"shape":"ConflictException"}, |
| 105 | {"shape":"InternalServerException"}, |
| 106 | {"shape":"ThrottlingException"} |
| 107 | ], |
| 108 | "idempotent":true |
| 109 | }, |
| 110 | "GetCustomModel":{ |
| 111 | "name":"GetCustomModel", |
| 112 | "http":{ |
| 113 | "method":"GET", |
| 114 | "requestUri":"/custom-models/{modelIdentifier}", |
| 115 | "responseCode":200 |
| 116 | }, |
| 117 | "input":{"shape":"GetCustomModelRequest"}, |
| 118 | "output":{"shape":"GetCustomModelResponse"}, |
| 119 | "errors":[ |
| 120 | {"shape":"ResourceNotFoundException"}, |
| 121 | {"shape":"AccessDeniedException"}, |
| 122 | {"shape":"ValidationException"}, |
| 123 | {"shape":"InternalServerException"}, |
| 124 | {"shape":"ThrottlingException"} |
| 125 | ] |
| 126 | }, |
| 127 | "GetFoundationModel":{ |
| 128 | "name":"GetFoundationModel", |
| 129 | "http":{ |
| 130 | "method":"GET", |
| 131 | "requestUri":"/foundation-models/{modelIdentifier}", |
| 132 | "responseCode":200 |
| 133 | }, |
| 134 | "input":{"shape":"GetFoundationModelRequest"}, |
| 135 | "output":{"shape":"GetFoundationModelResponse"}, |
| 136 | "errors":[ |
| 137 | {"shape":"ResourceNotFoundException"}, |
| 138 | {"shape":"AccessDeniedException"}, |
| 139 | {"shape":"ValidationException"}, |
| 140 | {"shape":"InternalServerException"}, |
| 141 | {"shape":"ThrottlingException"} |
| 142 | ] |
| 143 | }, |
| 144 | "GetModelCustomizationJob":{ |
| 145 | "name":"GetModelCustomizationJob", |
| 146 | "http":{ |
| 147 | "method":"GET", |
| 148 | "requestUri":"/model-customization-jobs/{jobIdentifier}", |
| 149 | "responseCode":200 |
| 150 | }, |
| 151 | "input":{"shape":"GetModelCustomizationJobRequest"}, |
| 152 | "output":{"shape":"GetModelCustomizationJobResponse"}, |
| 153 | "errors":[ |
| 154 | {"shape":"ResourceNotFoundException"}, |
| 155 | {"shape":"AccessDeniedException"}, |
| 156 | {"shape":"ValidationException"}, |
| 157 | {"shape":"InternalServerException"}, |
| 158 | {"shape":"ThrottlingException"} |
| 159 | ] |
| 160 | }, |
| 161 | "GetModelInvocationLoggingConfiguration":{ |
| 162 | "name":"GetModelInvocationLoggingConfiguration", |
| 163 | "http":{ |
| 164 | "method":"GET", |
| 165 | "requestUri":"/logging/modelinvocations", |
| 166 | "responseCode":200 |
| 167 | }, |
| 168 | "input":{"shape":"GetModelInvocationLoggingConfigurationRequest"}, |
| 169 | "output":{"shape":"GetModelInvocationLoggingConfigurationResponse"}, |
| 170 | "errors":[ |
| 171 | {"shape":"AccessDeniedException"}, |
| 172 | {"shape":"InternalServerException"}, |
| 173 | {"shape":"ThrottlingException"} |
| 174 | ] |
| 175 | }, |
| 176 | "GetProvisionedModelThroughput":{ |
| 177 | "name":"GetProvisionedModelThroughput", |
| 178 | "http":{ |
| 179 | "method":"GET", |
| 180 | "requestUri":"/provisioned-model-throughput/{provisionedModelId}", |
| 181 | "responseCode":200 |
| 182 | }, |
| 183 | "input":{"shape":"GetProvisionedModelThroughputRequest"}, |
| 184 | "output":{"shape":"GetProvisionedModelThroughputResponse"}, |
| 185 | "errors":[ |
| 186 | {"shape":"ResourceNotFoundException"}, |
| 187 | {"shape":"AccessDeniedException"}, |
| 188 | {"shape":"ValidationException"}, |
| 189 | {"shape":"InternalServerException"}, |
| 190 | {"shape":"ThrottlingException"} |
| 191 | ] |
| 192 | }, |
| 193 | "ListCustomModels":{ |
| 194 | "name":"ListCustomModels", |
| 195 | "http":{ |
| 196 | "method":"GET", |
| 197 | "requestUri":"/custom-models", |
| 198 | "responseCode":200 |
| 199 | }, |
| 200 | "input":{"shape":"ListCustomModelsRequest"}, |
| 201 | "output":{"shape":"ListCustomModelsResponse"}, |
| 202 | "errors":[ |
| 203 | {"shape":"AccessDeniedException"}, |
| 204 | {"shape":"ValidationException"}, |
| 205 | {"shape":"InternalServerException"}, |
| 206 | {"shape":"ThrottlingException"} |
| 207 | ] |
| 208 | }, |
| 209 | "ListFoundationModels":{ |
| 210 | "name":"ListFoundationModels", |
| 211 | "http":{ |
| 212 | "method":"GET", |
| 213 | "requestUri":"/foundation-models", |
| 214 | "responseCode":200 |
| 215 | }, |
| 216 | "input":{"shape":"ListFoundationModelsRequest"}, |
| 217 | "output":{"shape":"ListFoundationModelsResponse"}, |
| 218 | "errors":[ |
| 219 | {"shape":"AccessDeniedException"}, |
| 220 | {"shape":"ValidationException"}, |
| 221 | {"shape":"InternalServerException"}, |
| 222 | {"shape":"ThrottlingException"} |
| 223 | ] |
| 224 | }, |
| 225 | "ListModelCustomizationJobs":{ |
| 226 | "name":"ListModelCustomizationJobs", |
| 227 | "http":{ |
| 228 | "method":"GET", |
| 229 | "requestUri":"/model-customization-jobs", |
| 230 | "responseCode":200 |
| 231 | }, |
| 232 | "input":{"shape":"ListModelCustomizationJobsRequest"}, |
| 233 | "output":{"shape":"ListModelCustomizationJobsResponse"}, |
| 234 | "errors":[ |
| 235 | {"shape":"AccessDeniedException"}, |
| 236 | {"shape":"ValidationException"}, |
| 237 | {"shape":"InternalServerException"}, |
| 238 | {"shape":"ThrottlingException"} |
| 239 | ] |
| 240 | }, |
| 241 | "ListProvisionedModelThroughputs":{ |
| 242 | "name":"ListProvisionedModelThroughputs", |
| 243 | "http":{ |
| 244 | "method":"GET", |
| 245 | "requestUri":"/provisioned-model-throughputs", |
| 246 | "responseCode":200 |
| 247 | }, |
| 248 | "input":{"shape":"ListProvisionedModelThroughputsRequest"}, |
| 249 | "output":{"shape":"ListProvisionedModelThroughputsResponse"}, |
| 250 | "errors":[ |
| 251 | {"shape":"AccessDeniedException"}, |
| 252 | {"shape":"ValidationException"}, |
| 253 | {"shape":"InternalServerException"}, |
| 254 | {"shape":"ThrottlingException"} |
| 255 | ] |
| 256 | }, |
| 257 | "ListTagsForResource":{ |
| 258 | "name":"ListTagsForResource", |
| 259 | "http":{ |
| 260 | "method":"POST", |
| 261 | "requestUri":"/listTagsForResource", |
| 262 | "responseCode":200 |
| 263 | }, |
| 264 | "input":{"shape":"ListTagsForResourceRequest"}, |
| 265 | "output":{"shape":"ListTagsForResourceResponse"}, |
| 266 | "errors":[ |
| 267 | {"shape":"ResourceNotFoundException"}, |
| 268 | {"shape":"AccessDeniedException"}, |
| 269 | {"shape":"ValidationException"}, |
| 270 | {"shape":"InternalServerException"}, |
| 271 | {"shape":"ThrottlingException"} |
| 272 | ] |
| 273 | }, |
| 274 | "PutModelInvocationLoggingConfiguration":{ |
| 275 | "name":"PutModelInvocationLoggingConfiguration", |
| 276 | "http":{ |
| 277 | "method":"PUT", |
| 278 | "requestUri":"/logging/modelinvocations", |
| 279 | "responseCode":200 |
| 280 | }, |
| 281 | "input":{"shape":"PutModelInvocationLoggingConfigurationRequest"}, |
| 282 | "output":{"shape":"PutModelInvocationLoggingConfigurationResponse"}, |
| 283 | "errors":[ |
| 284 | {"shape":"AccessDeniedException"}, |
| 285 | {"shape":"ValidationException"}, |
| 286 | {"shape":"InternalServerException"}, |
| 287 | {"shape":"ThrottlingException"} |
| 288 | ], |
| 289 | "idempotent":true |
| 290 | }, |
| 291 | "StopModelCustomizationJob":{ |
| 292 | "name":"StopModelCustomizationJob", |
| 293 | "http":{ |
| 294 | "method":"POST", |
| 295 | "requestUri":"/model-customization-jobs/{jobIdentifier}/stop", |
| 296 | "responseCode":200 |
| 297 | }, |
| 298 | "input":{"shape":"StopModelCustomizationJobRequest"}, |
| 299 | "output":{"shape":"StopModelCustomizationJobResponse"}, |
| 300 | "errors":[ |
| 301 | {"shape":"ResourceNotFoundException"}, |
| 302 | {"shape":"AccessDeniedException"}, |
| 303 | {"shape":"ValidationException"}, |
| 304 | {"shape":"ConflictException"}, |
| 305 | {"shape":"InternalServerException"}, |
| 306 | {"shape":"ThrottlingException"} |
| 307 | ], |
| 308 | "idempotent":true |
| 309 | }, |
| 310 | "TagResource":{ |
| 311 | "name":"TagResource", |
| 312 | "http":{ |
| 313 | "method":"POST", |
| 314 | "requestUri":"/tagResource", |
| 315 | "responseCode":200 |
| 316 | }, |
| 317 | "input":{"shape":"TagResourceRequest"}, |
| 318 | "output":{"shape":"TagResourceResponse"}, |
| 319 | "errors":[ |
| 320 | {"shape":"ResourceNotFoundException"}, |
| 321 | {"shape":"AccessDeniedException"}, |
| 322 | {"shape":"ValidationException"}, |
| 323 | {"shape":"InternalServerException"}, |
| 324 | {"shape":"TooManyTagsException"}, |
| 325 | {"shape":"ThrottlingException"} |
| 326 | ] |
| 327 | }, |
| 328 | "UntagResource":{ |
| 329 | "name":"UntagResource", |
| 330 | "http":{ |
| 331 | "method":"POST", |
| 332 | "requestUri":"/untagResource", |
| 333 | "responseCode":200 |
| 334 | }, |
| 335 | "input":{"shape":"UntagResourceRequest"}, |
| 336 | "output":{"shape":"UntagResourceResponse"}, |
| 337 | "errors":[ |
| 338 | {"shape":"ResourceNotFoundException"}, |
| 339 | {"shape":"AccessDeniedException"}, |
| 340 | {"shape":"ValidationException"}, |
| 341 | {"shape":"InternalServerException"}, |
| 342 | {"shape":"ThrottlingException"} |
| 343 | ] |
| 344 | }, |
| 345 | "UpdateProvisionedModelThroughput":{ |
| 346 | "name":"UpdateProvisionedModelThroughput", |
| 347 | "http":{ |
| 348 | "method":"PATCH", |
| 349 | "requestUri":"/provisioned-model-throughput/{provisionedModelId}", |
| 350 | "responseCode":200 |
| 351 | }, |
| 352 | "input":{"shape":"UpdateProvisionedModelThroughputRequest"}, |
| 353 | "output":{"shape":"UpdateProvisionedModelThroughputResponse"}, |
| 354 | "errors":[ |
| 355 | {"shape":"ResourceNotFoundException"}, |
| 356 | {"shape":"AccessDeniedException"}, |
| 357 | {"shape":"ValidationException"}, |
| 358 | {"shape":"InternalServerException"}, |
| 359 | {"shape":"ThrottlingException"} |
| 360 | ], |
| 361 | "idempotent":true |
| 362 | } |
| 363 | }, |
| 364 | "shapes":{ |
| 365 | "AccessDeniedException":{ |
| 366 | "type":"structure", |
| 367 | "members":{ |
| 368 | "message":{"shape":"NonBlankString"} |
| 369 | }, |
| 370 | "error":{ |
| 371 | "httpStatusCode":403, |
| 372 | "senderFault":true |
| 373 | }, |
| 374 | "exception":true |
| 375 | }, |
| 376 | "BaseModelIdentifier":{ |
| 377 | "type":"string", |
| 378 | "max":2048, |
| 379 | "min":1, |
| 380 | "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})([:][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}){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][_-]?)+)" |
| 381 | }, |
| 382 | "BedrockModelId":{ |
| 383 | "type":"string", |
| 384 | "max":140, |
| 385 | "min":0, |
| 386 | "pattern":"[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}|)" |
| 387 | }, |
| 388 | "Boolean":{ |
| 389 | "type":"boolean", |
| 390 | "box":true |
| 391 | }, |
| 392 | "BrandedName":{ |
| 393 | "type":"string", |
| 394 | "max":20, |
| 395 | "min":1, |
| 396 | "pattern":".*" |
| 397 | }, |
| 398 | "BucketName":{ |
| 399 | "type":"string", |
| 400 | "max":63, |
| 401 | "min":3 |
| 402 | }, |
| 403 | "CloudWatchConfig":{ |
| 404 | "type":"structure", |
| 405 | "required":[ |
| 406 | "logGroupName", |
| 407 | "roleArn" |
| 408 | ], |
| 409 | "members":{ |
| 410 | "logGroupName":{"shape":"LogGroupName"}, |
| 411 | "roleArn":{"shape":"RoleArn"}, |
| 412 | "largeDataDeliveryS3Config":{"shape":"S3Config"} |
| 413 | } |
| 414 | }, |
| 415 | "CommitmentDuration":{ |
| 416 | "type":"string", |
| 417 | "enum":[ |
| 418 | "OneMonth", |
| 419 | "SixMonths" |
| 420 | ] |
| 421 | }, |
| 422 | "ConflictException":{ |
| 423 | "type":"structure", |
| 424 | "members":{ |
| 425 | "message":{"shape":"NonBlankString"} |
| 426 | }, |
| 427 | "error":{ |
| 428 | "httpStatusCode":400, |
| 429 | "senderFault":true |
| 430 | }, |
| 431 | "exception":true |
| 432 | }, |
| 433 | "CreateModelCustomizationJobRequest":{ |
| 434 | "type":"structure", |
| 435 | "required":[ |
| 436 | "jobName", |
| 437 | "customModelName", |
| 438 | "roleArn", |
| 439 | "baseModelIdentifier", |
| 440 | "trainingDataConfig", |
| 441 | "outputDataConfig", |
| 442 | "hyperParameters" |
| 443 | ], |
| 444 | "members":{ |
| 445 | "jobName":{"shape":"JobName"}, |
| 446 | "customModelName":{"shape":"CustomModelName"}, |
| 447 | "roleArn":{"shape":"RoleArn"}, |
| 448 | "clientRequestToken":{ |
| 449 | "shape":"IdempotencyToken", |
| 450 | "idempotencyToken":true |
| 451 | }, |
| 452 | "baseModelIdentifier":{"shape":"BaseModelIdentifier"}, |
| 453 | "customizationType":{"shape":"CustomizationType"}, |
| 454 | "customModelKmsKeyId":{"shape":"KmsKeyId"}, |
| 455 | "jobTags":{"shape":"TagList"}, |
| 456 | "customModelTags":{"shape":"TagList"}, |
| 457 | "trainingDataConfig":{"shape":"TrainingDataConfig"}, |
| 458 | "validationDataConfig":{"shape":"ValidationDataConfig"}, |
| 459 | "outputDataConfig":{"shape":"OutputDataConfig"}, |
| 460 | "hyperParameters":{"shape":"ModelCustomizationHyperParameters"}, |
| 461 | "vpcConfig":{"shape":"VpcConfig"} |
| 462 | } |
| 463 | }, |
| 464 | "CreateModelCustomizationJobResponse":{ |
| 465 | "type":"structure", |
| 466 | "required":["jobArn"], |
| 467 | "members":{ |
| 468 | "jobArn":{"shape":"ModelCustomizationJobArn"} |
| 469 | } |
| 470 | }, |
| 471 | "CreateProvisionedModelThroughputRequest":{ |
| 472 | "type":"structure", |
| 473 | "required":[ |
| 474 | "modelUnits", |
| 475 | "provisionedModelName", |
| 476 | "modelId" |
| 477 | ], |
| 478 | "members":{ |
| 479 | "clientRequestToken":{ |
| 480 | "shape":"IdempotencyToken", |
| 481 | "idempotencyToken":true |
| 482 | }, |
| 483 | "modelUnits":{"shape":"PositiveInteger"}, |
| 484 | "provisionedModelName":{"shape":"ProvisionedModelName"}, |
| 485 | "modelId":{"shape":"ModelIdentifier"}, |
| 486 | "commitmentDuration":{"shape":"CommitmentDuration"}, |
| 487 | "tags":{"shape":"TagList"} |
| 488 | } |
| 489 | }, |
| 490 | "CreateProvisionedModelThroughputResponse":{ |
| 491 | "type":"structure", |
| 492 | "required":["provisionedModelArn"], |
| 493 | "members":{ |
| 494 | "provisionedModelArn":{"shape":"ProvisionedModelArn"} |
| 495 | } |
| 496 | }, |
| 497 | "CustomModelArn":{ |
| 498 | "type":"string", |
| 499 | "max":1011, |
| 500 | "min":20, |
| 501 | "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}" |
| 502 | }, |
| 503 | "CustomModelName":{ |
| 504 | "type":"string", |
| 505 | "max":63, |
| 506 | "min":1, |
| 507 | "pattern":"([0-9a-zA-Z][_-]?)+" |
| 508 | }, |
| 509 | "CustomModelSummary":{ |
| 510 | "type":"structure", |
| 511 | "required":[ |
| 512 | "modelArn", |
| 513 | "modelName", |
| 514 | "creationTime", |
| 515 | "baseModelArn", |
| 516 | "baseModelName" |
| 517 | ], |
| 518 | "members":{ |
| 519 | "modelArn":{"shape":"CustomModelArn"}, |
| 520 | "modelName":{"shape":"CustomModelName"}, |
| 521 | "creationTime":{"shape":"Timestamp"}, |
| 522 | "baseModelArn":{"shape":"ModelArn"}, |
| 523 | "baseModelName":{"shape":"ModelName"}, |
| 524 | "customizationType":{"shape":"CustomizationType"} |
| 525 | } |
| 526 | }, |
| 527 | "CustomModelSummaryList":{ |
| 528 | "type":"list", |
| 529 | "member":{"shape":"CustomModelSummary"} |
| 530 | }, |
| 531 | "CustomizationType":{ |
| 532 | "type":"string", |
| 533 | "enum":[ |
| 534 | "FINE_TUNING", |
| 535 | "CONTINUED_PRE_TRAINING" |
| 536 | ] |
| 537 | }, |
| 538 | "DeleteCustomModelRequest":{ |
| 539 | "type":"structure", |
| 540 | "required":["modelIdentifier"], |
| 541 | "members":{ |
| 542 | "modelIdentifier":{ |
| 543 | "shape":"ModelIdentifier", |
| 544 | "location":"uri", |
| 545 | "locationName":"modelIdentifier" |
| 546 | } |
| 547 | } |
| 548 | }, |
| 549 | "DeleteCustomModelResponse":{ |
| 550 | "type":"structure", |
| 551 | "members":{ |
| 552 | } |
| 553 | }, |
| 554 | "DeleteModelInvocationLoggingConfigurationRequest":{ |
| 555 | "type":"structure", |
| 556 | "members":{ |
| 557 | } |
| 558 | }, |
| 559 | "DeleteModelInvocationLoggingConfigurationResponse":{ |
| 560 | "type":"structure", |
| 561 | "members":{ |
| 562 | } |
| 563 | }, |
| 564 | "DeleteProvisionedModelThroughputRequest":{ |
| 565 | "type":"structure", |
| 566 | "required":["provisionedModelId"], |
| 567 | "members":{ |
| 568 | "provisionedModelId":{ |
| 569 | "shape":"ProvisionedModelId", |
| 570 | "location":"uri", |
| 571 | "locationName":"provisionedModelId" |
| 572 | } |
| 573 | } |
| 574 | }, |
| 575 | "DeleteProvisionedModelThroughputResponse":{ |
| 576 | "type":"structure", |
| 577 | "members":{ |
| 578 | } |
| 579 | }, |
| 580 | "ErrorMessage":{ |
| 581 | "type":"string", |
| 582 | "max":2048, |
| 583 | "min":0 |
| 584 | }, |
| 585 | "FineTuningJobStatus":{ |
| 586 | "type":"string", |
| 587 | "enum":[ |
| 588 | "InProgress", |
| 589 | "Completed", |
| 590 | "Failed", |
| 591 | "Stopping", |
| 592 | "Stopped" |
| 593 | ] |
| 594 | }, |
| 595 | "FoundationModelArn":{ |
| 596 | "type":"string", |
| 597 | "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}" |
| 598 | }, |
| 599 | "FoundationModelDetails":{ |
| 600 | "type":"structure", |
| 601 | "required":[ |
| 602 | "modelArn", |
| 603 | "modelId" |
| 604 | ], |
| 605 | "members":{ |
| 606 | "modelArn":{"shape":"FoundationModelArn"}, |
| 607 | "modelId":{"shape":"BedrockModelId"}, |
| 608 | "modelName":{"shape":"BrandedName"}, |
| 609 | "providerName":{"shape":"BrandedName"}, |
| 610 | "inputModalities":{"shape":"ModelModalityList"}, |
| 611 | "outputModalities":{"shape":"ModelModalityList"}, |
| 612 | "responseStreamingSupported":{"shape":"Boolean"}, |
| 613 | "customizationsSupported":{"shape":"ModelCustomizationList"}, |
| 614 | "inferenceTypesSupported":{"shape":"InferenceTypeList"}, |
| 615 | "modelLifecycle":{"shape":"FoundationModelLifecycle"} |
| 616 | } |
| 617 | }, |
| 618 | "FoundationModelLifecycle":{ |
| 619 | "type":"structure", |
| 620 | "required":["status"], |
| 621 | "members":{ |
| 622 | "status":{"shape":"FoundationModelLifecycleStatus"} |
| 623 | } |
| 624 | }, |
| 625 | "FoundationModelLifecycleStatus":{ |
| 626 | "type":"string", |
| 627 | "enum":[ |
| 628 | "ACTIVE", |
| 629 | "LEGACY" |
| 630 | ] |
| 631 | }, |
| 632 | "FoundationModelSummary":{ |
| 633 | "type":"structure", |
| 634 | "required":[ |
| 635 | "modelArn", |
| 636 | "modelId" |
| 637 | ], |
| 638 | "members":{ |
| 639 | "modelArn":{"shape":"FoundationModelArn"}, |
| 640 | "modelId":{"shape":"BedrockModelId"}, |
| 641 | "modelName":{"shape":"BrandedName"}, |
| 642 | "providerName":{"shape":"BrandedName"}, |
| 643 | "inputModalities":{"shape":"ModelModalityList"}, |
| 644 | "outputModalities":{"shape":"ModelModalityList"}, |
| 645 | "responseStreamingSupported":{"shape":"Boolean"}, |
| 646 | "customizationsSupported":{"shape":"ModelCustomizationList"}, |
| 647 | "inferenceTypesSupported":{"shape":"InferenceTypeList"}, |
| 648 | "modelLifecycle":{"shape":"FoundationModelLifecycle"} |
| 649 | } |
| 650 | }, |
| 651 | "FoundationModelSummaryList":{ |
| 652 | "type":"list", |
| 653 | "member":{"shape":"FoundationModelSummary"} |
| 654 | }, |
| 655 | "GetCustomModelRequest":{ |
| 656 | "type":"structure", |
| 657 | "required":["modelIdentifier"], |
| 658 | "members":{ |
| 659 | "modelIdentifier":{ |
| 660 | "shape":"ModelIdentifier", |
| 661 | "location":"uri", |
| 662 | "locationName":"modelIdentifier" |
| 663 | } |
| 664 | } |
| 665 | }, |
| 666 | "GetCustomModelResponse":{ |
| 667 | "type":"structure", |
| 668 | "required":[ |
| 669 | "modelArn", |
| 670 | "modelName", |
| 671 | "jobArn", |
| 672 | "baseModelArn", |
| 673 | "trainingDataConfig", |
| 674 | "outputDataConfig", |
| 675 | "creationTime" |
| 676 | ], |
| 677 | "members":{ |
| 678 | "modelArn":{"shape":"ModelArn"}, |
| 679 | "modelName":{"shape":"CustomModelName"}, |
| 680 | "jobName":{"shape":"JobName"}, |
| 681 | "jobArn":{"shape":"ModelCustomizationJobArn"}, |
| 682 | "baseModelArn":{"shape":"ModelArn"}, |
| 683 | "customizationType":{"shape":"CustomizationType"}, |
| 684 | "modelKmsKeyArn":{"shape":"KmsKeyArn"}, |
| 685 | "hyperParameters":{"shape":"ModelCustomizationHyperParameters"}, |
| 686 | "trainingDataConfig":{"shape":"TrainingDataConfig"}, |
| 687 | "validationDataConfig":{"shape":"ValidationDataConfig"}, |
| 688 | "outputDataConfig":{"shape":"OutputDataConfig"}, |
| 689 | "trainingMetrics":{"shape":"TrainingMetrics"}, |
| 690 | "validationMetrics":{"shape":"ValidationMetrics"}, |
| 691 | "creationTime":{"shape":"Timestamp"} |
| 692 | } |
| 693 | }, |
| 694 | "GetFoundationModelRequest":{ |
| 695 | "type":"structure", |
| 696 | "required":["modelIdentifier"], |
| 697 | "members":{ |
| 698 | "modelIdentifier":{ |
| 699 | "shape":"ModelIdentifier", |
| 700 | "location":"uri", |
| 701 | "locationName":"modelIdentifier" |
| 702 | } |
| 703 | } |
| 704 | }, |
| 705 | "GetFoundationModelResponse":{ |
| 706 | "type":"structure", |
| 707 | "members":{ |
| 708 | "modelDetails":{"shape":"FoundationModelDetails"} |
| 709 | } |
| 710 | }, |
| 711 | "GetModelCustomizationJobRequest":{ |
| 712 | "type":"structure", |
| 713 | "required":["jobIdentifier"], |
| 714 | "members":{ |
| 715 | "jobIdentifier":{ |
| 716 | "shape":"ModelCustomizationJobIdentifier", |
| 717 | "location":"uri", |
| 718 | "locationName":"jobIdentifier" |
| 719 | } |
| 720 | } |
| 721 | }, |
| 722 | "GetModelCustomizationJobResponse":{ |
| 723 | "type":"structure", |
| 724 | "required":[ |
| 725 | "jobArn", |
| 726 | "jobName", |
| 727 | "outputModelName", |
| 728 | "roleArn", |
| 729 | "creationTime", |
| 730 | "baseModelArn", |
| 731 | "hyperParameters", |
| 732 | "trainingDataConfig", |
| 733 | "validationDataConfig", |
| 734 | "outputDataConfig" |
| 735 | ], |
| 736 | "members":{ |
| 737 | "jobArn":{"shape":"ModelCustomizationJobArn"}, |
| 738 | "jobName":{"shape":"JobName"}, |
| 739 | "outputModelName":{"shape":"CustomModelName"}, |
| 740 | "outputModelArn":{"shape":"CustomModelArn"}, |
| 741 | "clientRequestToken":{"shape":"IdempotencyToken"}, |
| 742 | "roleArn":{"shape":"RoleArn"}, |
| 743 | "status":{"shape":"ModelCustomizationJobStatus"}, |
| 744 | "failureMessage":{"shape":"ErrorMessage"}, |
| 745 | "creationTime":{"shape":"Timestamp"}, |
| 746 | "lastModifiedTime":{"shape":"Timestamp"}, |
| 747 | "endTime":{"shape":"Timestamp"}, |
| 748 | "baseModelArn":{"shape":"FoundationModelArn"}, |
| 749 | "hyperParameters":{"shape":"ModelCustomizationHyperParameters"}, |
| 750 | "trainingDataConfig":{"shape":"TrainingDataConfig"}, |
| 751 | "validationDataConfig":{"shape":"ValidationDataConfig"}, |
| 752 | "outputDataConfig":{"shape":"OutputDataConfig"}, |
| 753 | "customizationType":{"shape":"CustomizationType"}, |
| 754 | "outputModelKmsKeyArn":{"shape":"KmsKeyArn"}, |
| 755 | "trainingMetrics":{"shape":"TrainingMetrics"}, |
| 756 | "validationMetrics":{"shape":"ValidationMetrics"}, |
| 757 | "vpcConfig":{"shape":"VpcConfig"} |
| 758 | } |
| 759 | }, |
| 760 | "GetModelInvocationLoggingConfigurationRequest":{ |
| 761 | "type":"structure", |
| 762 | "members":{ |
| 763 | } |
| 764 | }, |
| 765 | "GetModelInvocationLoggingConfigurationResponse":{ |
| 766 | "type":"structure", |
| 767 | "members":{ |
| 768 | "loggingConfig":{"shape":"LoggingConfig"} |
| 769 | } |
| 770 | }, |
| 771 | "GetProvisionedModelThroughputRequest":{ |
| 772 | "type":"structure", |
| 773 | "required":["provisionedModelId"], |
| 774 | "members":{ |
| 775 | "provisionedModelId":{ |
| 776 | "shape":"ProvisionedModelId", |
| 777 | "location":"uri", |
| 778 | "locationName":"provisionedModelId" |
| 779 | } |
| 780 | } |
| 781 | }, |
| 782 | "GetProvisionedModelThroughputResponse":{ |
| 783 | "type":"structure", |
| 784 | "required":[ |
| 785 | "modelUnits", |
| 786 | "desiredModelUnits", |
| 787 | "provisionedModelName", |
| 788 | "provisionedModelArn", |
| 789 | "modelArn", |
| 790 | "desiredModelArn", |
| 791 | "foundationModelArn", |
| 792 | "status", |
| 793 | "creationTime", |
| 794 | "lastModifiedTime" |
| 795 | ], |
| 796 | "members":{ |
| 797 | "modelUnits":{"shape":"PositiveInteger"}, |
| 798 | "desiredModelUnits":{"shape":"PositiveInteger"}, |
| 799 | "provisionedModelName":{"shape":"ProvisionedModelName"}, |
| 800 | "provisionedModelArn":{"shape":"ProvisionedModelArn"}, |
| 801 | "modelArn":{"shape":"ModelArn"}, |
| 802 | "desiredModelArn":{"shape":"ModelArn"}, |
| 803 | "foundationModelArn":{"shape":"FoundationModelArn"}, |
| 804 | "status":{"shape":"ProvisionedModelStatus"}, |
| 805 | "creationTime":{"shape":"Timestamp"}, |
| 806 | "lastModifiedTime":{"shape":"Timestamp"}, |
| 807 | "failureMessage":{"shape":"ErrorMessage"}, |
| 808 | "commitmentDuration":{"shape":"CommitmentDuration"}, |
| 809 | "commitmentExpirationTime":{"shape":"Timestamp"} |
| 810 | } |
| 811 | }, |
| 812 | "IdempotencyToken":{ |
| 813 | "type":"string", |
| 814 | "max":256, |
| 815 | "min":1, |
| 816 | "pattern":"[a-zA-Z0-9](-*[a-zA-Z0-9])*" |
| 817 | }, |
| 818 | "InferenceType":{ |
| 819 | "type":"string", |
| 820 | "enum":[ |
| 821 | "ON_DEMAND", |
| 822 | "PROVISIONED" |
| 823 | ] |
| 824 | }, |
| 825 | "InferenceTypeList":{ |
| 826 | "type":"list", |
| 827 | "member":{"shape":"InferenceType"} |
| 828 | }, |
| 829 | "InternalServerException":{ |
| 830 | "type":"structure", |
| 831 | "members":{ |
| 832 | "message":{"shape":"NonBlankString"} |
| 833 | }, |
| 834 | "error":{"httpStatusCode":500}, |
| 835 | "exception":true, |
| 836 | "fault":true |
| 837 | }, |
| 838 | "JobName":{ |
| 839 | "type":"string", |
| 840 | "max":63, |
| 841 | "min":1, |
| 842 | "pattern":"[a-zA-Z0-9](-*[a-zA-Z0-9\\+\\-\\.])*" |
| 843 | }, |
| 844 | "KeyPrefix":{ |
| 845 | "type":"string", |
| 846 | "max":1024, |
| 847 | "min":0 |
| 848 | }, |
| 849 | "KmsKeyArn":{ |
| 850 | "type":"string", |
| 851 | "max":2048, |
| 852 | "min":1, |
| 853 | "pattern":"arn:aws(-[^:]+)?:kms:[a-zA-Z0-9-]*:[0-9]{12}:key/[a-zA-Z0-9-]{36}" |
| 854 | }, |
| 855 | "KmsKeyId":{ |
| 856 | "type":"string", |
| 857 | "max":2048, |
| 858 | "min":1, |
| 859 | "pattern":"arn:aws(-[^:]+)?:kms:[a-zA-Z0-9-]*:[0-9]{12}:((key/[a-zA-Z0-9-]{36})|(alias/[a-zA-Z0-9-_/]+))" |
| 860 | }, |
| 861 | "ListCustomModelsRequest":{ |
| 862 | "type":"structure", |
| 863 | "members":{ |
| 864 | "creationTimeBefore":{ |
| 865 | "shape":"Timestamp", |
| 866 | "location":"querystring", |
| 867 | "locationName":"creationTimeBefore" |
| 868 | }, |
| 869 | "creationTimeAfter":{ |
| 870 | "shape":"Timestamp", |
| 871 | "location":"querystring", |
| 872 | "locationName":"creationTimeAfter" |
| 873 | }, |
| 874 | "nameContains":{ |
| 875 | "shape":"CustomModelName", |
| 876 | "location":"querystring", |
| 877 | "locationName":"nameContains" |
| 878 | }, |
| 879 | "baseModelArnEquals":{ |
| 880 | "shape":"ModelArn", |
| 881 | "location":"querystring", |
| 882 | "locationName":"baseModelArnEquals" |
| 883 | }, |
| 884 | "foundationModelArnEquals":{ |
| 885 | "shape":"FoundationModelArn", |
| 886 | "location":"querystring", |
| 887 | "locationName":"foundationModelArnEquals" |
| 888 | }, |
| 889 | "maxResults":{ |
| 890 | "shape":"MaxResults", |
| 891 | "location":"querystring", |
| 892 | "locationName":"maxResults" |
| 893 | }, |
| 894 | "nextToken":{ |
| 895 | "shape":"PaginationToken", |
| 896 | "location":"querystring", |
| 897 | "locationName":"nextToken" |
| 898 | }, |
| 899 | "sortBy":{ |
| 900 | "shape":"SortModelsBy", |
| 901 | "location":"querystring", |
| 902 | "locationName":"sortBy" |
| 903 | }, |
| 904 | "sortOrder":{ |
| 905 | "shape":"SortOrder", |
| 906 | "location":"querystring", |
| 907 | "locationName":"sortOrder" |
| 908 | } |
| 909 | } |
| 910 | }, |
| 911 | "ListCustomModelsResponse":{ |
| 912 | "type":"structure", |
| 913 | "members":{ |
| 914 | "nextToken":{"shape":"PaginationToken"}, |
| 915 | "modelSummaries":{"shape":"CustomModelSummaryList"} |
| 916 | } |
| 917 | }, |
| 918 | "ListFoundationModelsRequest":{ |
| 919 | "type":"structure", |
| 920 | "members":{ |
| 921 | "byProvider":{ |
| 922 | "shape":"Provider", |
| 923 | "location":"querystring", |
| 924 | "locationName":"byProvider" |
| 925 | }, |
| 926 | "byCustomizationType":{ |
| 927 | "shape":"ModelCustomization", |
| 928 | "location":"querystring", |
| 929 | "locationName":"byCustomizationType" |
| 930 | }, |
| 931 | "byOutputModality":{ |
| 932 | "shape":"ModelModality", |
| 933 | "location":"querystring", |
| 934 | "locationName":"byOutputModality" |
| 935 | }, |
| 936 | "byInferenceType":{ |
| 937 | "shape":"InferenceType", |
| 938 | "location":"querystring", |
| 939 | "locationName":"byInferenceType" |
| 940 | } |
| 941 | } |
| 942 | }, |
| 943 | "ListFoundationModelsResponse":{ |
| 944 | "type":"structure", |
| 945 | "members":{ |
| 946 | "modelSummaries":{"shape":"FoundationModelSummaryList"} |
| 947 | } |
| 948 | }, |
| 949 | "ListModelCustomizationJobsRequest":{ |
| 950 | "type":"structure", |
| 951 | "members":{ |
| 952 | "creationTimeAfter":{ |
| 953 | "shape":"Timestamp", |
| 954 | "location":"querystring", |
| 955 | "locationName":"creationTimeAfter" |
| 956 | }, |
| 957 | "creationTimeBefore":{ |
| 958 | "shape":"Timestamp", |
| 959 | "location":"querystring", |
| 960 | "locationName":"creationTimeBefore" |
| 961 | }, |
| 962 | "statusEquals":{ |
| 963 | "shape":"FineTuningJobStatus", |
| 964 | "location":"querystring", |
| 965 | "locationName":"statusEquals" |
| 966 | }, |
| 967 | "nameContains":{ |
| 968 | "shape":"JobName", |
| 969 | "location":"querystring", |
| 970 | "locationName":"nameContains" |
| 971 | }, |
| 972 | "maxResults":{ |
| 973 | "shape":"MaxResults", |
| 974 | "location":"querystring", |
| 975 | "locationName":"maxResults" |
| 976 | }, |
| 977 | "nextToken":{ |
| 978 | "shape":"PaginationToken", |
| 979 | "location":"querystring", |
| 980 | "locationName":"nextToken" |
| 981 | }, |
| 982 | "sortBy":{ |
| 983 | "shape":"SortJobsBy", |
| 984 | "location":"querystring", |
| 985 | "locationName":"sortBy" |
| 986 | }, |
| 987 | "sortOrder":{ |
| 988 | "shape":"SortOrder", |
| 989 | "location":"querystring", |
| 990 | "locationName":"sortOrder" |
| 991 | } |
| 992 | } |
| 993 | }, |
| 994 | "ListModelCustomizationJobsResponse":{ |
| 995 | "type":"structure", |
| 996 | "members":{ |
| 997 | "nextToken":{"shape":"PaginationToken"}, |
| 998 | "modelCustomizationJobSummaries":{"shape":"ModelCustomizationJobSummaries"} |
| 999 | } |
| 1000 | }, |
| 1001 | "ListProvisionedModelThroughputsRequest":{ |
| 1002 | "type":"structure", |
| 1003 | "members":{ |
| 1004 | "creationTimeAfter":{ |
| 1005 | "shape":"Timestamp", |
| 1006 | "location":"querystring", |
| 1007 | "locationName":"creationTimeAfter" |
| 1008 | }, |
| 1009 | "creationTimeBefore":{ |
| 1010 | "shape":"Timestamp", |
| 1011 | "location":"querystring", |
| 1012 | "locationName":"creationTimeBefore" |
| 1013 | }, |
| 1014 | "statusEquals":{ |
| 1015 | "shape":"ProvisionedModelStatus", |
| 1016 | "location":"querystring", |
| 1017 | "locationName":"statusEquals" |
| 1018 | }, |
| 1019 | "modelArnEquals":{ |
| 1020 | "shape":"ModelArn", |
| 1021 | "location":"querystring", |
| 1022 | "locationName":"modelArnEquals" |
| 1023 | }, |
| 1024 | "nameContains":{ |
| 1025 | "shape":"ProvisionedModelName", |
| 1026 | "location":"querystring", |
| 1027 | "locationName":"nameContains" |
| 1028 | }, |
| 1029 | "maxResults":{ |
| 1030 | "shape":"MaxResults", |
| 1031 | "location":"querystring", |
| 1032 | "locationName":"maxResults" |
| 1033 | }, |
| 1034 | "nextToken":{ |
| 1035 | "shape":"PaginationToken", |
| 1036 | "location":"querystring", |
| 1037 | "locationName":"nextToken" |
| 1038 | }, |
| 1039 | "sortBy":{ |
| 1040 | "shape":"SortByProvisionedModels", |
| 1041 | "location":"querystring", |
| 1042 | "locationName":"sortBy" |
| 1043 | }, |
| 1044 | "sortOrder":{ |
| 1045 | "shape":"SortOrder", |
| 1046 | "location":"querystring", |
| 1047 | "locationName":"sortOrder" |
| 1048 | } |
| 1049 | } |
| 1050 | }, |
| 1051 | "ListProvisionedModelThroughputsResponse":{ |
| 1052 | "type":"structure", |
| 1053 | "members":{ |
| 1054 | "nextToken":{"shape":"PaginationToken"}, |
| 1055 | "provisionedModelSummaries":{"shape":"ProvisionedModelSummaries"} |
| 1056 | } |
| 1057 | }, |
| 1058 | "ListTagsForResourceRequest":{ |
| 1059 | "type":"structure", |
| 1060 | "required":["resourceARN"], |
| 1061 | "members":{ |
| 1062 | "resourceARN":{"shape":"TaggableResourcesArn"} |
| 1063 | } |
| 1064 | }, |
| 1065 | "ListTagsForResourceResponse":{ |
| 1066 | "type":"structure", |
| 1067 | "members":{ |
| 1068 | "tags":{"shape":"TagList"} |
| 1069 | } |
| 1070 | }, |
| 1071 | "LogGroupName":{ |
| 1072 | "type":"string", |
| 1073 | "max":512, |
| 1074 | "min":1 |
| 1075 | }, |
| 1076 | "LoggingConfig":{ |
| 1077 | "type":"structure", |
| 1078 | "members":{ |
| 1079 | "cloudWatchConfig":{"shape":"CloudWatchConfig"}, |
| 1080 | "s3Config":{"shape":"S3Config"}, |
| 1081 | "textDataDeliveryEnabled":{"shape":"Boolean"}, |
| 1082 | "imageDataDeliveryEnabled":{"shape":"Boolean"}, |
| 1083 | "embeddingDataDeliveryEnabled":{"shape":"Boolean"} |
| 1084 | } |
| 1085 | }, |
| 1086 | "MaxResults":{ |
| 1087 | "type":"integer", |
| 1088 | "box":true, |
| 1089 | "max":1000, |
| 1090 | "min":1 |
| 1091 | }, |
| 1092 | "MetricFloat":{ |
| 1093 | "type":"float", |
| 1094 | "box":true |
| 1095 | }, |
| 1096 | "ModelArn":{ |
| 1097 | "type":"string", |
| 1098 | "max":1011, |
| 1099 | "min":20, |
| 1100 | "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}))" |
| 1101 | }, |
| 1102 | "ModelCustomization":{ |
| 1103 | "type":"string", |
| 1104 | "enum":[ |
| 1105 | "FINE_TUNING", |
| 1106 | "CONTINUED_PRE_TRAINING" |
| 1107 | ] |
| 1108 | }, |
| 1109 | "ModelCustomizationHyperParameters":{ |
| 1110 | "type":"map", |
| 1111 | "key":{"shape":"String"}, |
| 1112 | "value":{"shape":"String"} |
| 1113 | }, |
| 1114 | "ModelCustomizationJobArn":{ |
| 1115 | "type":"string", |
| 1116 | "max":1011, |
| 1117 | "min":0, |
| 1118 | "pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}: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}" |
| 1119 | }, |
| 1120 | "ModelCustomizationJobIdentifier":{ |
| 1121 | "type":"string", |
| 1122 | "max":1011, |
| 1123 | "min":0, |
| 1124 | "pattern":"(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}: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})|([a-zA-Z0-9](-*[a-zA-Z0-9\\+\\-\\.])*)" |
| 1125 | }, |
| 1126 | "ModelCustomizationJobStatus":{ |
| 1127 | "type":"string", |
| 1128 | "enum":[ |
| 1129 | "InProgress", |
| 1130 | "Completed", |
| 1131 | "Failed", |
| 1132 | "Stopping", |
| 1133 | "Stopped" |
| 1134 | ] |
| 1135 | }, |
| 1136 | "ModelCustomizationJobSummaries":{ |
| 1137 | "type":"list", |
| 1138 | "member":{"shape":"ModelCustomizationJobSummary"} |
| 1139 | }, |
| 1140 | "ModelCustomizationJobSummary":{ |
| 1141 | "type":"structure", |
| 1142 | "required":[ |
| 1143 | "jobArn", |
| 1144 | "baseModelArn", |
| 1145 | "jobName", |
| 1146 | "status", |
| 1147 | "creationTime" |
| 1148 | ], |
| 1149 | "members":{ |
| 1150 | "jobArn":{"shape":"ModelCustomizationJobArn"}, |
| 1151 | "baseModelArn":{"shape":"ModelArn"}, |
| 1152 | "jobName":{"shape":"JobName"}, |
| 1153 | "status":{"shape":"ModelCustomizationJobStatus"}, |
| 1154 | "lastModifiedTime":{"shape":"Timestamp"}, |
| 1155 | "creationTime":{"shape":"Timestamp"}, |
| 1156 | "endTime":{"shape":"Timestamp"}, |
| 1157 | "customModelArn":{"shape":"CustomModelArn"}, |
| 1158 | "customModelName":{"shape":"CustomModelName"}, |
| 1159 | "customizationType":{"shape":"CustomizationType"} |
| 1160 | } |
| 1161 | }, |
| 1162 | "ModelCustomizationList":{ |
| 1163 | "type":"list", |
| 1164 | "member":{"shape":"ModelCustomization"} |
| 1165 | }, |
| 1166 | "ModelIdentifier":{ |
| 1167 | "type":"string", |
| 1168 | "max":2048, |
| 1169 | "min":1, |
| 1170 | "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][_-]?)+)" |
| 1171 | }, |
| 1172 | "ModelModality":{ |
| 1173 | "type":"string", |
| 1174 | "enum":[ |
| 1175 | "TEXT", |
| 1176 | "IMAGE", |
| 1177 | "EMBEDDING" |
| 1178 | ] |
| 1179 | }, |
| 1180 | "ModelModalityList":{ |
| 1181 | "type":"list", |
| 1182 | "member":{"shape":"ModelModality"} |
| 1183 | }, |
| 1184 | "ModelName":{ |
| 1185 | "type":"string", |
| 1186 | "max":63, |
| 1187 | "min":1, |
| 1188 | "pattern":"([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63})" |
| 1189 | }, |
| 1190 | "NonBlankString":{ |
| 1191 | "type":"string", |
| 1192 | "pattern":"[\\s\\S]*" |
| 1193 | }, |
| 1194 | "OutputDataConfig":{ |
| 1195 | "type":"structure", |
| 1196 | "required":["s3Uri"], |
| 1197 | "members":{ |
| 1198 | "s3Uri":{"shape":"S3Uri"} |
| 1199 | } |
| 1200 | }, |
| 1201 | "PaginationToken":{ |
| 1202 | "type":"string", |
| 1203 | "max":2048, |
| 1204 | "min":1, |
| 1205 | "pattern":"\\S*" |
| 1206 | }, |
| 1207 | "PositiveInteger":{ |
| 1208 | "type":"integer", |
| 1209 | "box":true, |
| 1210 | "min":1 |
| 1211 | }, |
| 1212 | "Provider":{ |
| 1213 | "type":"string", |
| 1214 | "pattern":"[A-Za-z0-9- ]{1,63}" |
| 1215 | }, |
| 1216 | "ProvisionedModelArn":{ |
| 1217 | "type":"string", |
| 1218 | "pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:provisioned-model/[a-z0-9]{12}" |
| 1219 | }, |
| 1220 | "ProvisionedModelId":{ |
| 1221 | "type":"string", |
| 1222 | "pattern":"((([0-9a-zA-Z][_-]?)+)|(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:provisioned-model/[a-z0-9]{12}))" |
| 1223 | }, |
| 1224 | "ProvisionedModelName":{ |
| 1225 | "type":"string", |
| 1226 | "max":63, |
| 1227 | "min":1, |
| 1228 | "pattern":"([0-9a-zA-Z][_-]?)+" |
| 1229 | }, |
| 1230 | "ProvisionedModelStatus":{ |
| 1231 | "type":"string", |
| 1232 | "enum":[ |
| 1233 | "Creating", |
| 1234 | "InService", |
| 1235 | "Updating", |
| 1236 | "Failed" |
| 1237 | ] |
| 1238 | }, |
| 1239 | "ProvisionedModelSummaries":{ |
| 1240 | "type":"list", |
| 1241 | "member":{"shape":"ProvisionedModelSummary"} |
| 1242 | }, |
| 1243 | "ProvisionedModelSummary":{ |
| 1244 | "type":"structure", |
| 1245 | "required":[ |
| 1246 | "provisionedModelName", |
| 1247 | "provisionedModelArn", |
| 1248 | "modelArn", |
| 1249 | "desiredModelArn", |
| 1250 | "foundationModelArn", |
| 1251 | "modelUnits", |
| 1252 | "desiredModelUnits", |
| 1253 | "status", |
| 1254 | "creationTime", |
| 1255 | "lastModifiedTime" |
| 1256 | ], |
| 1257 | "members":{ |
| 1258 | "provisionedModelName":{"shape":"ProvisionedModelName"}, |
| 1259 | "provisionedModelArn":{"shape":"ProvisionedModelArn"}, |
| 1260 | "modelArn":{"shape":"ModelArn"}, |
| 1261 | "desiredModelArn":{"shape":"ModelArn"}, |
| 1262 | "foundationModelArn":{"shape":"FoundationModelArn"}, |
| 1263 | "modelUnits":{"shape":"PositiveInteger"}, |
| 1264 | "desiredModelUnits":{"shape":"PositiveInteger"}, |
| 1265 | "status":{"shape":"ProvisionedModelStatus"}, |
| 1266 | "commitmentDuration":{"shape":"CommitmentDuration"}, |
| 1267 | "commitmentExpirationTime":{"shape":"Timestamp"}, |
| 1268 | "creationTime":{"shape":"Timestamp"}, |
| 1269 | "lastModifiedTime":{"shape":"Timestamp"} |
| 1270 | } |
| 1271 | }, |
| 1272 | "PutModelInvocationLoggingConfigurationRequest":{ |
| 1273 | "type":"structure", |
| 1274 | "required":["loggingConfig"], |
| 1275 | "members":{ |
| 1276 | "loggingConfig":{"shape":"LoggingConfig"} |
| 1277 | } |
| 1278 | }, |
| 1279 | "PutModelInvocationLoggingConfigurationResponse":{ |
| 1280 | "type":"structure", |
| 1281 | "members":{ |
| 1282 | } |
| 1283 | }, |
| 1284 | "ResourceNotFoundException":{ |
| 1285 | "type":"structure", |
| 1286 | "members":{ |
| 1287 | "message":{"shape":"NonBlankString"} |
| 1288 | }, |
| 1289 | "error":{ |
| 1290 | "httpStatusCode":404, |
| 1291 | "senderFault":true |
| 1292 | }, |
| 1293 | "exception":true |
| 1294 | }, |
| 1295 | "RoleArn":{ |
| 1296 | "type":"string", |
| 1297 | "max":2048, |
| 1298 | "min":0, |
| 1299 | "pattern":"arn:aws(-[^:]+)?:iam::([0-9]{12})?:role/.+" |
| 1300 | }, |
| 1301 | "S3Config":{ |
| 1302 | "type":"structure", |
| 1303 | "required":["bucketName"], |
| 1304 | "members":{ |
| 1305 | "bucketName":{"shape":"BucketName"}, |
| 1306 | "keyPrefix":{"shape":"KeyPrefix"} |
| 1307 | } |
| 1308 | }, |
| 1309 | "S3Uri":{ |
| 1310 | "type":"string", |
| 1311 | "max":1024, |
| 1312 | "min":1, |
| 1313 | "pattern":"s3://[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9](/.*)?" |
| 1314 | }, |
| 1315 | "SecurityGroupId":{ |
| 1316 | "type":"string", |
| 1317 | "max":32, |
| 1318 | "min":0, |
| 1319 | "pattern":"[-0-9a-zA-Z]+" |
| 1320 | }, |
| 1321 | "SecurityGroupIds":{ |
| 1322 | "type":"list", |
| 1323 | "member":{"shape":"SecurityGroupId"}, |
| 1324 | "max":5, |
| 1325 | "min":1 |
| 1326 | }, |
| 1327 | "ServiceQuotaExceededException":{ |
| 1328 | "type":"structure", |
| 1329 | "members":{ |
| 1330 | "message":{"shape":"NonBlankString"} |
| 1331 | }, |
| 1332 | "error":{ |
| 1333 | "httpStatusCode":400, |
| 1334 | "senderFault":true |
| 1335 | }, |
| 1336 | "exception":true |
| 1337 | }, |
| 1338 | "SortByProvisionedModels":{ |
| 1339 | "type":"string", |
| 1340 | "enum":["CreationTime"] |
| 1341 | }, |
| 1342 | "SortJobsBy":{ |
| 1343 | "type":"string", |
| 1344 | "enum":["CreationTime"] |
| 1345 | }, |
| 1346 | "SortModelsBy":{ |
| 1347 | "type":"string", |
| 1348 | "enum":["CreationTime"] |
| 1349 | }, |
| 1350 | "SortOrder":{ |
| 1351 | "type":"string", |
| 1352 | "enum":[ |
| 1353 | "Ascending", |
| 1354 | "Descending" |
| 1355 | ] |
| 1356 | }, |
| 1357 | "StopModelCustomizationJobRequest":{ |
| 1358 | "type":"structure", |
| 1359 | "required":["jobIdentifier"], |
| 1360 | "members":{ |
| 1361 | "jobIdentifier":{ |
| 1362 | "shape":"ModelCustomizationJobIdentifier", |
| 1363 | "location":"uri", |
| 1364 | "locationName":"jobIdentifier" |
| 1365 | } |
| 1366 | } |
| 1367 | }, |
| 1368 | "StopModelCustomizationJobResponse":{ |
| 1369 | "type":"structure", |
| 1370 | "members":{ |
| 1371 | } |
| 1372 | }, |
| 1373 | "String":{"type":"string"}, |
| 1374 | "SubnetId":{ |
| 1375 | "type":"string", |
| 1376 | "max":32, |
| 1377 | "min":0, |
| 1378 | "pattern":"[-0-9a-zA-Z]+" |
| 1379 | }, |
| 1380 | "SubnetIds":{ |
| 1381 | "type":"list", |
| 1382 | "member":{"shape":"SubnetId"}, |
| 1383 | "max":16, |
| 1384 | "min":1 |
| 1385 | }, |
| 1386 | "Tag":{ |
| 1387 | "type":"structure", |
| 1388 | "required":[ |
| 1389 | "key", |
| 1390 | "value" |
| 1391 | ], |
| 1392 | "members":{ |
| 1393 | "key":{"shape":"TagKey"}, |
| 1394 | "value":{"shape":"TagValue"} |
| 1395 | } |
| 1396 | }, |
| 1397 | "TagKey":{ |
| 1398 | "type":"string", |
| 1399 | "max":128, |
| 1400 | "min":1, |
| 1401 | "pattern":"[a-zA-Z0-9\\s._:/=+@-]*" |
| 1402 | }, |
| 1403 | "TagKeyList":{ |
| 1404 | "type":"list", |
| 1405 | "member":{"shape":"TagKey"}, |
| 1406 | "max":200, |
| 1407 | "min":0 |
| 1408 | }, |
| 1409 | "TagList":{ |
| 1410 | "type":"list", |
| 1411 | "member":{"shape":"Tag"}, |
| 1412 | "max":200, |
| 1413 | "min":0 |
| 1414 | }, |
| 1415 | "TagResourceRequest":{ |
| 1416 | "type":"structure", |
| 1417 | "required":[ |
| 1418 | "resourceARN", |
| 1419 | "tags" |
| 1420 | ], |
| 1421 | "members":{ |
| 1422 | "resourceARN":{"shape":"TaggableResourcesArn"}, |
| 1423 | "tags":{"shape":"TagList"} |
| 1424 | } |
| 1425 | }, |
| 1426 | "TagResourceResponse":{ |
| 1427 | "type":"structure", |
| 1428 | "members":{ |
| 1429 | } |
| 1430 | }, |
| 1431 | "TagValue":{ |
| 1432 | "type":"string", |
| 1433 | "max":256, |
| 1434 | "min":0, |
| 1435 | "pattern":"[a-zA-Z0-9\\s._:/=+@-]*" |
| 1436 | }, |
| 1437 | "TaggableResourcesArn":{ |
| 1438 | "type":"string", |
| 1439 | "max":1011, |
| 1440 | "min":20, |
| 1441 | "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})$)|(:provisioned-model/[a-z0-9]{12}$))).*" |
| 1442 | }, |
| 1443 | "ThrottlingException":{ |
| 1444 | "type":"structure", |
| 1445 | "members":{ |
| 1446 | "message":{"shape":"NonBlankString"} |
| 1447 | }, |
| 1448 | "error":{ |
| 1449 | "httpStatusCode":429, |
| 1450 | "senderFault":true |
| 1451 | }, |
| 1452 | "exception":true |
| 1453 | }, |
| 1454 | "Timestamp":{ |
| 1455 | "type":"timestamp", |
| 1456 | "timestampFormat":"iso8601" |
| 1457 | }, |
| 1458 | "TooManyTagsException":{ |
| 1459 | "type":"structure", |
| 1460 | "members":{ |
| 1461 | "message":{"shape":"NonBlankString"}, |
| 1462 | "resourceName":{"shape":"TaggableResourcesArn"} |
| 1463 | }, |
| 1464 | "error":{ |
| 1465 | "httpStatusCode":400, |
| 1466 | "senderFault":true |
| 1467 | }, |
| 1468 | "exception":true |
| 1469 | }, |
| 1470 | "TrainingDataConfig":{ |
| 1471 | "type":"structure", |
| 1472 | "required":["s3Uri"], |
| 1473 | "members":{ |
| 1474 | "s3Uri":{"shape":"S3Uri"} |
| 1475 | } |
| 1476 | }, |
| 1477 | "TrainingMetrics":{ |
| 1478 | "type":"structure", |
| 1479 | "members":{ |
| 1480 | "trainingLoss":{"shape":"MetricFloat"} |
| 1481 | } |
| 1482 | }, |
| 1483 | "UntagResourceRequest":{ |
| 1484 | "type":"structure", |
| 1485 | "required":[ |
| 1486 | "resourceARN", |
| 1487 | "tagKeys" |
| 1488 | ], |
| 1489 | "members":{ |
| 1490 | "resourceARN":{"shape":"TaggableResourcesArn"}, |
| 1491 | "tagKeys":{"shape":"TagKeyList"} |
| 1492 | } |
| 1493 | }, |
| 1494 | "UntagResourceResponse":{ |
| 1495 | "type":"structure", |
| 1496 | "members":{ |
| 1497 | } |
| 1498 | }, |
| 1499 | "UpdateProvisionedModelThroughputRequest":{ |
| 1500 | "type":"structure", |
| 1501 | "required":["provisionedModelId"], |
| 1502 | "members":{ |
| 1503 | "provisionedModelId":{ |
| 1504 | "shape":"ProvisionedModelId", |
| 1505 | "location":"uri", |
| 1506 | "locationName":"provisionedModelId" |
| 1507 | }, |
| 1508 | "desiredProvisionedModelName":{"shape":"ProvisionedModelName"}, |
| 1509 | "desiredModelId":{"shape":"ModelIdentifier"} |
| 1510 | } |
| 1511 | }, |
| 1512 | "UpdateProvisionedModelThroughputResponse":{ |
| 1513 | "type":"structure", |
| 1514 | "members":{ |
| 1515 | } |
| 1516 | }, |
| 1517 | "ValidationDataConfig":{ |
| 1518 | "type":"structure", |
| 1519 | "required":["validators"], |
| 1520 | "members":{ |
| 1521 | "validators":{"shape":"Validators"} |
| 1522 | } |
| 1523 | }, |
| 1524 | "ValidationException":{ |
| 1525 | "type":"structure", |
| 1526 | "members":{ |
| 1527 | "message":{"shape":"NonBlankString"} |
| 1528 | }, |
| 1529 | "error":{ |
| 1530 | "httpStatusCode":400, |
| 1531 | "senderFault":true |
| 1532 | }, |
| 1533 | "exception":true |
| 1534 | }, |
| 1535 | "ValidationMetrics":{ |
| 1536 | "type":"list", |
| 1537 | "member":{"shape":"ValidatorMetric"} |
| 1538 | }, |
| 1539 | "Validator":{ |
| 1540 | "type":"structure", |
| 1541 | "required":["s3Uri"], |
| 1542 | "members":{ |
| 1543 | "s3Uri":{"shape":"S3Uri"} |
| 1544 | } |
| 1545 | }, |
| 1546 | "ValidatorMetric":{ |
| 1547 | "type":"structure", |
| 1548 | "members":{ |
| 1549 | "validationLoss":{"shape":"MetricFloat"} |
| 1550 | } |
| 1551 | }, |
| 1552 | "Validators":{ |
| 1553 | "type":"list", |
| 1554 | "member":{"shape":"Validator"}, |
| 1555 | "max":10, |
| 1556 | "min":0 |
| 1557 | }, |
| 1558 | "VpcConfig":{ |
| 1559 | "type":"structure", |
| 1560 | "required":[ |
| 1561 | "subnetIds", |
| 1562 | "securityGroupIds" |
| 1563 | ], |
| 1564 | "members":{ |
| 1565 | "subnetIds":{"shape":"SubnetIds"}, |
| 1566 | "securityGroupIds":{"shape":"SecurityGroupIds"} |
| 1567 | } |
| 1568 | } |
| 1569 | } |
| 1570 | } |