Skip to content

Commit 83f780d

Browse files
feat: update AWS API models
1 parent 4cde1cb commit 83f780d

File tree

8 files changed

+10821
-143
lines changed

8 files changed

+10821
-143
lines changed

codegen/sdk/aws-models/bedrock-agent-runtime.json

Lines changed: 439 additions & 5 deletions
Large diffs are not rendered by default.

codegen/sdk/aws-models/bedrock-agent.json

Lines changed: 761 additions & 19 deletions
Large diffs are not rendered by default.

codegen/sdk/aws-models/bedrock-data-automation-runtime.json

Lines changed: 1310 additions & 0 deletions
Large diffs are not rendered by default.

codegen/sdk/aws-models/bedrock-data-automation.json

Lines changed: 3043 additions & 0 deletions
Large diffs are not rendered by default.

codegen/sdk/aws-models/bedrock-runtime.json

Lines changed: 194 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@
12441244
"min": 1,
12451245
"max": 2048
12461246
},
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-:.]+$)$"
12481248
}
12491249
},
12501250
"com.amazonaws.bedrockruntime#Converse": {
@@ -1727,6 +1727,12 @@
17271727
"traits": {
17281728
"smithy.api#documentation": "<p>The guardrail trace object. </p>"
17291729
}
1730+
},
1731+
"promptRouter": {
1732+
"target": "com.amazonaws.bedrockruntime#PromptRouterTrace",
1733+
"traits": {
1734+
"smithy.api#documentation": "<p>The request's prompt router.</p>"
1735+
}
17301736
}
17311737
},
17321738
"traits": {
@@ -1741,6 +1747,12 @@
17411747
"traits": {
17421748
"smithy.api#documentation": "<p>The guardrail trace object. </p>"
17431749
}
1750+
},
1751+
"promptRouter": {
1752+
"target": "com.amazonaws.bedrockruntime#PromptRouterTrace",
1753+
"traits": {
1754+
"smithy.api#documentation": "<p>The request's prompt router.</p>"
1755+
}
17441756
}
17451757
},
17461758
"traits": {
@@ -2093,6 +2105,12 @@
20932105
"traits": {
20942106
"smithy.api#documentation": "<p>Text within content block to be evaluated by the guardrail.</p>"
20952107
}
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+
}
20962114
}
20972115
},
20982116
"traits": {
@@ -2429,6 +2447,12 @@
24292447
"traits": {
24302448
"smithy.api#documentation": "<p>The text to guard.</p>"
24312449
}
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+
}
24322456
}
24332457
},
24342458
"traits": {
@@ -2464,6 +2488,64 @@
24642488
"target": "com.amazonaws.bedrockruntime#GuardrailConverseContentQualifier"
24652489
}
24662490
},
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+
},
24672549
"com.amazonaws.bedrockruntime#GuardrailConverseTextBlock": {
24682550
"type": "structure",
24692551
"members": {
@@ -2493,6 +2575,12 @@
24932575
"traits": {
24942576
"smithy.api#documentation": "<p>The text characters of the guardrail coverage details.</p>"
24952577
}
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+
}
24962584
}
24972585
},
24982586
"traits": {
@@ -2536,6 +2624,84 @@
25362624
"smithy.api#pattern": "^(([a-z0-9]+)|(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:guardrail/[a-z0-9]+))$"
25372625
}
25382626
},
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+
},
25392705
"com.amazonaws.bedrockruntime#GuardrailInvocationMetrics": {
25402706
"type": "structure",
25412707
"members": {
@@ -3324,6 +3490,12 @@
33243490
"smithy.api#documentation": "<p>The source for an image.</p>"
33253491
}
33263492
},
3493+
"com.amazonaws.bedrockruntime#ImagesGuarded": {
3494+
"type": "integer"
3495+
},
3496+
"com.amazonaws.bedrockruntime#ImagesTotal": {
3497+
"type": "integer"
3498+
},
33273499
"com.amazonaws.bedrockruntime#InferenceConfiguration": {
33283500
"type": "structure",
33293501
"members": {
@@ -3466,7 +3638,7 @@
34663638
"min": 1,
34673639
"max": 2048
34683640
},
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-:.]+$)$"
34703642
}
34713643
},
34723644
"com.amazonaws.bedrockruntime#InvokeModelRequest": {
@@ -3715,6 +3887,12 @@
37153887
"smithy.api#output": {}
37163888
}
37173889
},
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+
},
37183896
"com.amazonaws.bedrockruntime#KmsKeyId": {
37193897
"type": "string",
37203898
"traits": {
@@ -4101,6 +4279,20 @@
41014279
"smithy.api#documentation": "<p>Performance settings for a model.</p>"
41024280
}
41034281
},
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+
},
41044296
"com.amazonaws.bedrockruntime#PromptVariableMap": {
41054297
"type": "map",
41064298
"key": {

0 commit comments

Comments
 (0)