|
1244 | 1244 | "min": 1, |
1245 | 1245 | "max": 2048 |
1246 | 1246 | }, |
1247 | | - "smithy.api#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}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:imported-model/[a-z0-9]{12})|([0-9]{12}:provisioned-model/[a-z0-9]{12})|([0-9]{12}:(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+)))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|([a-zA-Z0-9-:.]+)|(^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:prompt/[0-9a-zA-Z]{10}(?::[0-9]{1,5})?))$" |
| 1247 | + "smithy.api#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}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:imported-model/[a-z0-9]{12})|([0-9]{12}:provisioned-model/[a-z0-9]{12})|([0-9]{12}:(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+)))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|([a-zA-Z0-9-:.]+)|(^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:prompt/[0-9a-zA-Z]{10}(?::[0-9]{1,5})?))$|(^arn:aws:sagemaker:[a-z0-9-]+:[0-9]{12}:endpoint/[a-zA-Z0-9-]+$)|(^arn:aws(-[^:]+)?:bedrock:([0-9a-z-]{1,20}):([0-9]{12}):default-prompt-router/[a-zA-Z0-9-:.]+$)$" |
1248 | 1248 | } |
1249 | 1249 | }, |
1250 | 1250 | "com.amazonaws.bedrockruntime#Converse": { |
|
1727 | 1727 | "traits": { |
1728 | 1728 | "smithy.api#documentation": "<p>The guardrail trace object. </p>" |
1729 | 1729 | } |
| 1730 | + }, |
| 1731 | + "promptRouter": { |
| 1732 | + "target": "com.amazonaws.bedrockruntime#PromptRouterTrace", |
| 1733 | + "traits": { |
| 1734 | + "smithy.api#documentation": "<p>The request's prompt router.</p>" |
| 1735 | + } |
1730 | 1736 | } |
1731 | 1737 | }, |
1732 | 1738 | "traits": { |
|
1741 | 1747 | "traits": { |
1742 | 1748 | "smithy.api#documentation": "<p>The guardrail trace object. </p>" |
1743 | 1749 | } |
| 1750 | + }, |
| 1751 | + "promptRouter": { |
| 1752 | + "target": "com.amazonaws.bedrockruntime#PromptRouterTrace", |
| 1753 | + "traits": { |
| 1754 | + "smithy.api#documentation": "<p>The request's prompt router.</p>" |
| 1755 | + } |
1744 | 1756 | } |
1745 | 1757 | }, |
1746 | 1758 | "traits": { |
|
2093 | 2105 | "traits": { |
2094 | 2106 | "smithy.api#documentation": "<p>Text within content block to be evaluated by the guardrail.</p>" |
2095 | 2107 | } |
| 2108 | + }, |
| 2109 | + "image": { |
| 2110 | + "target": "com.amazonaws.bedrockruntime#GuardrailImageBlock", |
| 2111 | + "traits": { |
| 2112 | + "smithy.api#documentation": "<p>Image within guardrail content block to be evaluated by the guardrail.</p>" |
| 2113 | + } |
2096 | 2114 | } |
2097 | 2115 | }, |
2098 | 2116 | "traits": { |
|
2429 | 2447 | "traits": { |
2430 | 2448 | "smithy.api#documentation": "<p>The text to guard.</p>" |
2431 | 2449 | } |
| 2450 | + }, |
| 2451 | + "image": { |
| 2452 | + "target": "com.amazonaws.bedrockruntime#GuardrailConverseImageBlock", |
| 2453 | + "traits": { |
| 2454 | + "smithy.api#documentation": "<p>Image within converse content block to be evaluated by the guardrail.</p>" |
| 2455 | + } |
2432 | 2456 | } |
2433 | 2457 | }, |
2434 | 2458 | "traits": { |
|
2464 | 2488 | "target": "com.amazonaws.bedrockruntime#GuardrailConverseContentQualifier" |
2465 | 2489 | } |
2466 | 2490 | }, |
| 2491 | + "com.amazonaws.bedrockruntime#GuardrailConverseImageBlock": { |
| 2492 | + "type": "structure", |
| 2493 | + "members": { |
| 2494 | + "format": { |
| 2495 | + "target": "com.amazonaws.bedrockruntime#GuardrailConverseImageFormat", |
| 2496 | + "traits": { |
| 2497 | + "smithy.api#documentation": "<p>The format details for the image type of the guardrail converse image block.</p>", |
| 2498 | + "smithy.api#required": {} |
| 2499 | + } |
| 2500 | + }, |
| 2501 | + "source": { |
| 2502 | + "target": "com.amazonaws.bedrockruntime#GuardrailConverseImageSource", |
| 2503 | + "traits": { |
| 2504 | + "smithy.api#documentation": "<p>The image source (image bytes) of the guardrail converse image block.</p>", |
| 2505 | + "smithy.api#required": {} |
| 2506 | + } |
| 2507 | + } |
| 2508 | + }, |
| 2509 | + "traits": { |
| 2510 | + "smithy.api#documentation": "<p>An image block that contains images that you want to assess with a guardrail.</p>", |
| 2511 | + "smithy.api#sensitive": {} |
| 2512 | + } |
| 2513 | + }, |
| 2514 | + "com.amazonaws.bedrockruntime#GuardrailConverseImageFormat": { |
| 2515 | + "type": "enum", |
| 2516 | + "members": { |
| 2517 | + "PNG": { |
| 2518 | + "target": "smithy.api#Unit", |
| 2519 | + "traits": { |
| 2520 | + "smithy.api#enumValue": "png" |
| 2521 | + } |
| 2522 | + }, |
| 2523 | + "JPEG": { |
| 2524 | + "target": "smithy.api#Unit", |
| 2525 | + "traits": { |
| 2526 | + "smithy.api#enumValue": "jpeg" |
| 2527 | + } |
| 2528 | + } |
| 2529 | + } |
| 2530 | + }, |
| 2531 | + "com.amazonaws.bedrockruntime#GuardrailConverseImageSource": { |
| 2532 | + "type": "union", |
| 2533 | + "members": { |
| 2534 | + "bytes": { |
| 2535 | + "target": "smithy.api#Blob", |
| 2536 | + "traits": { |
| 2537 | + "smithy.api#documentation": "<p>The raw image bytes for the image.</p>", |
| 2538 | + "smithy.api#length": { |
| 2539 | + "min": 1 |
| 2540 | + } |
| 2541 | + } |
| 2542 | + } |
| 2543 | + }, |
| 2544 | + "traits": { |
| 2545 | + "smithy.api#documentation": "<p>The image source (image bytes) of the guardrail converse image source.</p>", |
| 2546 | + "smithy.api#sensitive": {} |
| 2547 | + } |
| 2548 | + }, |
2467 | 2549 | "com.amazonaws.bedrockruntime#GuardrailConverseTextBlock": { |
2468 | 2550 | "type": "structure", |
2469 | 2551 | "members": { |
|
2493 | 2575 | "traits": { |
2494 | 2576 | "smithy.api#documentation": "<p>The text characters of the guardrail coverage details.</p>" |
2495 | 2577 | } |
| 2578 | + }, |
| 2579 | + "images": { |
| 2580 | + "target": "com.amazonaws.bedrockruntime#GuardrailImageCoverage", |
| 2581 | + "traits": { |
| 2582 | + "smithy.api#documentation": "<p>The guardrail coverage for images (the number of images that guardrails guarded).</p>" |
| 2583 | + } |
2496 | 2584 | } |
2497 | 2585 | }, |
2498 | 2586 | "traits": { |
|
2536 | 2624 | "smithy.api#pattern": "^(([a-z0-9]+)|(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:guardrail/[a-z0-9]+))$" |
2537 | 2625 | } |
2538 | 2626 | }, |
| 2627 | + "com.amazonaws.bedrockruntime#GuardrailImageBlock": { |
| 2628 | + "type": "structure", |
| 2629 | + "members": { |
| 2630 | + "format": { |
| 2631 | + "target": "com.amazonaws.bedrockruntime#GuardrailImageFormat", |
| 2632 | + "traits": { |
| 2633 | + "smithy.api#documentation": "<p>The format details for the file type of the image blocked by the guardrail.</p>", |
| 2634 | + "smithy.api#required": {} |
| 2635 | + } |
| 2636 | + }, |
| 2637 | + "source": { |
| 2638 | + "target": "com.amazonaws.bedrockruntime#GuardrailImageSource", |
| 2639 | + "traits": { |
| 2640 | + "smithy.api#documentation": "<p>The image source (image bytes) details of the image blocked by the guardrail.</p>", |
| 2641 | + "smithy.api#required": {} |
| 2642 | + } |
| 2643 | + } |
| 2644 | + }, |
| 2645 | + "traits": { |
| 2646 | + "smithy.api#documentation": "<p>Contain an image which user wants guarded. This block is accepted by the guardrails independent API.</p>", |
| 2647 | + "smithy.api#sensitive": {} |
| 2648 | + } |
| 2649 | + }, |
| 2650 | + "com.amazonaws.bedrockruntime#GuardrailImageCoverage": { |
| 2651 | + "type": "structure", |
| 2652 | + "members": { |
| 2653 | + "guarded": { |
| 2654 | + "target": "com.amazonaws.bedrockruntime#ImagesGuarded", |
| 2655 | + "traits": { |
| 2656 | + "smithy.api#documentation": "<p>The count (integer) of images guardrails guarded.</p>" |
| 2657 | + } |
| 2658 | + }, |
| 2659 | + "total": { |
| 2660 | + "target": "com.amazonaws.bedrockruntime#ImagesTotal", |
| 2661 | + "traits": { |
| 2662 | + "smithy.api#documentation": "<p>Represents the total number of images (integer) that were in the request (guarded and unguarded).</p>" |
| 2663 | + } |
| 2664 | + } |
| 2665 | + }, |
| 2666 | + "traits": { |
| 2667 | + "smithy.api#documentation": "<p>The details of the guardrail image coverage.</p>" |
| 2668 | + } |
| 2669 | + }, |
| 2670 | + "com.amazonaws.bedrockruntime#GuardrailImageFormat": { |
| 2671 | + "type": "enum", |
| 2672 | + "members": { |
| 2673 | + "PNG": { |
| 2674 | + "target": "smithy.api#Unit", |
| 2675 | + "traits": { |
| 2676 | + "smithy.api#enumValue": "png" |
| 2677 | + } |
| 2678 | + }, |
| 2679 | + "JPEG": { |
| 2680 | + "target": "smithy.api#Unit", |
| 2681 | + "traits": { |
| 2682 | + "smithy.api#enumValue": "jpeg" |
| 2683 | + } |
| 2684 | + } |
| 2685 | + } |
| 2686 | + }, |
| 2687 | + "com.amazonaws.bedrockruntime#GuardrailImageSource": { |
| 2688 | + "type": "union", |
| 2689 | + "members": { |
| 2690 | + "bytes": { |
| 2691 | + "target": "smithy.api#Blob", |
| 2692 | + "traits": { |
| 2693 | + "smithy.api#documentation": "<p>The bytes details of the guardrail image source. Object used in independent api.</p>", |
| 2694 | + "smithy.api#length": { |
| 2695 | + "min": 1 |
| 2696 | + } |
| 2697 | + } |
| 2698 | + } |
| 2699 | + }, |
| 2700 | + "traits": { |
| 2701 | + "smithy.api#documentation": "<p>The image source (image bytes) of the guardrail image source. Object used in independent api.</p>", |
| 2702 | + "smithy.api#sensitive": {} |
| 2703 | + } |
| 2704 | + }, |
2539 | 2705 | "com.amazonaws.bedrockruntime#GuardrailInvocationMetrics": { |
2540 | 2706 | "type": "structure", |
2541 | 2707 | "members": { |
|
3324 | 3490 | "smithy.api#documentation": "<p>The source for an image.</p>" |
3325 | 3491 | } |
3326 | 3492 | }, |
| 3493 | + "com.amazonaws.bedrockruntime#ImagesGuarded": { |
| 3494 | + "type": "integer" |
| 3495 | + }, |
| 3496 | + "com.amazonaws.bedrockruntime#ImagesTotal": { |
| 3497 | + "type": "integer" |
| 3498 | + }, |
3327 | 3499 | "com.amazonaws.bedrockruntime#InferenceConfiguration": { |
3328 | 3500 | "type": "structure", |
3329 | 3501 | "members": { |
|
3466 | 3638 | "min": 1, |
3467 | 3639 | "max": 2048 |
3468 | 3640 | }, |
3469 | | - "smithy.api#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}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:imported-model/[a-z0-9]{12})|([0-9]{12}:provisioned-model/[a-z0-9]{12})|([0-9]{12}:(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+)))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|([a-zA-Z0-9-:.]+)$|(^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:prompt/[0-9a-zA-Z]{10}(?::[0-9]{1,5})?))$" |
| 3641 | + "smithy.api#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}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:imported-model/[a-z0-9]{12})|([0-9]{12}:provisioned-model/[a-z0-9]{12})|([0-9]{12}:(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+)))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|([a-zA-Z0-9-:.]+)$|(^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:prompt/[0-9a-zA-Z]{10}(?::[0-9]{1,5})?))$|(^arn:aws:sagemaker:[a-z0-9-]+:[0-9]{12}:endpoint/[a-zA-Z0-9-]+$)|(^arn:aws(-[^:]+)?:bedrock:([0-9a-z-]{1,20}):([0-9]{12}):default-prompt-router/[a-zA-Z0-9-:.]+$)$" |
3470 | 3642 | } |
3471 | 3643 | }, |
3472 | 3644 | "com.amazonaws.bedrockruntime#InvokeModelRequest": { |
|
3715 | 3887 | "smithy.api#output": {} |
3716 | 3888 | } |
3717 | 3889 | }, |
| 3890 | + "com.amazonaws.bedrockruntime#InvokedModelId": { |
| 3891 | + "type": "string", |
| 3892 | + "traits": { |
| 3893 | + "smithy.api#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}[.]){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-]{1,20}):(|[0-9]{12}):inference-profile/[a-zA-Z0-9-:.]+)$" |
| 3894 | + } |
| 3895 | + }, |
3718 | 3896 | "com.amazonaws.bedrockruntime#KmsKeyId": { |
3719 | 3897 | "type": "string", |
3720 | 3898 | "traits": { |
|
4101 | 4279 | "smithy.api#documentation": "<p>Performance settings for a model.</p>" |
4102 | 4280 | } |
4103 | 4281 | }, |
| 4282 | + "com.amazonaws.bedrockruntime#PromptRouterTrace": { |
| 4283 | + "type": "structure", |
| 4284 | + "members": { |
| 4285 | + "invokedModelId": { |
| 4286 | + "target": "com.amazonaws.bedrockruntime#InvokedModelId", |
| 4287 | + "traits": { |
| 4288 | + "smithy.api#documentation": "<p>The ID of the invoked model.</p>" |
| 4289 | + } |
| 4290 | + } |
| 4291 | + }, |
| 4292 | + "traits": { |
| 4293 | + "smithy.api#documentation": "<p>A prompt router trace.</p>" |
| 4294 | + } |
| 4295 | + }, |
4104 | 4296 | "com.amazonaws.bedrockruntime#PromptVariableMap": { |
4105 | 4297 | "type": "map", |
4106 | 4298 | "key": { |
|
0 commit comments