Skip to content

Commit 7f32844

Browse files
Update API model
1 parent bd1a11b commit 7f32844

File tree

7 files changed

+866
-92
lines changed

7 files changed

+866
-92
lines changed

tools/code-generation/smithy/api-descriptions/bedrock.json

Lines changed: 191 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2258,6 +2258,119 @@
22582258
"smithy.api#output": {}
22592259
}
22602260
},
2261+
"com.amazonaws.bedrock#CreatePromptRouter": {
2262+
"type": "operation",
2263+
"input": {
2264+
"target": "com.amazonaws.bedrock#CreatePromptRouterRequest"
2265+
},
2266+
"output": {
2267+
"target": "com.amazonaws.bedrock#CreatePromptRouterResponse"
2268+
},
2269+
"errors": [
2270+
{
2271+
"target": "com.amazonaws.bedrock#AccessDeniedException"
2272+
},
2273+
{
2274+
"target": "com.amazonaws.bedrock#ConflictException"
2275+
},
2276+
{
2277+
"target": "com.amazonaws.bedrock#InternalServerException"
2278+
},
2279+
{
2280+
"target": "com.amazonaws.bedrock#ResourceNotFoundException"
2281+
},
2282+
{
2283+
"target": "com.amazonaws.bedrock#ServiceQuotaExceededException"
2284+
},
2285+
{
2286+
"target": "com.amazonaws.bedrock#ThrottlingException"
2287+
},
2288+
{
2289+
"target": "com.amazonaws.bedrock#TooManyTagsException"
2290+
},
2291+
{
2292+
"target": "com.amazonaws.bedrock#ValidationException"
2293+
}
2294+
],
2295+
"traits": {
2296+
"smithy.api#documentation": "<p>Creates a prompt router that manages the routing of requests between multiple foundation models based on the routing criteria.</p>",
2297+
"smithy.api#http": {
2298+
"code": 200,
2299+
"method": "POST",
2300+
"uri": "/prompt-routers"
2301+
},
2302+
"smithy.api#idempotent": {}
2303+
}
2304+
},
2305+
"com.amazonaws.bedrock#CreatePromptRouterRequest": {
2306+
"type": "structure",
2307+
"members": {
2308+
"clientRequestToken": {
2309+
"target": "com.amazonaws.bedrock#IdempotencyToken",
2310+
"traits": {
2311+
"smithy.api#documentation": "<p>A unique, case-sensitive identifier that you provide to ensure idempotency of your requests. If not specified, the Amazon Web Services SDK\n automatically generates one for you.</p>",
2312+
"smithy.api#idempotencyToken": {}
2313+
}
2314+
},
2315+
"promptRouterName": {
2316+
"target": "com.amazonaws.bedrock#PromptRouterName",
2317+
"traits": {
2318+
"smithy.api#documentation": "<p>The name of the prompt router. The name must be unique within your Amazon Web Services account in the current region.</p>",
2319+
"smithy.api#required": {}
2320+
}
2321+
},
2322+
"models": {
2323+
"target": "com.amazonaws.bedrock#PromptRouterTargetModels",
2324+
"traits": {
2325+
"smithy.api#documentation": "<p>A list of foundation models that the prompt router can route requests to. At least one model must be specified.</p>",
2326+
"smithy.api#required": {}
2327+
}
2328+
},
2329+
"description": {
2330+
"target": "com.amazonaws.bedrock#PromptRouterDescription",
2331+
"traits": {
2332+
"smithy.api#documentation": "<p>An optional description of the prompt router to help identify its purpose.</p>"
2333+
}
2334+
},
2335+
"routingCriteria": {
2336+
"target": "com.amazonaws.bedrock#RoutingCriteria",
2337+
"traits": {
2338+
"smithy.api#documentation": "<p>The criteria, which is the response quality difference, used to determine how incoming requests are routed to different models.</p>",
2339+
"smithy.api#required": {}
2340+
}
2341+
},
2342+
"fallbackModel": {
2343+
"target": "com.amazonaws.bedrock#PromptRouterTargetModel",
2344+
"traits": {
2345+
"smithy.api#documentation": "<p>The default model to use when the routing criteria is not met.</p>",
2346+
"smithy.api#required": {}
2347+
}
2348+
},
2349+
"tags": {
2350+
"target": "com.amazonaws.bedrock#TagList",
2351+
"traits": {
2352+
"smithy.api#documentation": "<p>An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your Amazon Web Services resources.</p>"
2353+
}
2354+
}
2355+
},
2356+
"traits": {
2357+
"smithy.api#input": {}
2358+
}
2359+
},
2360+
"com.amazonaws.bedrock#CreatePromptRouterResponse": {
2361+
"type": "structure",
2362+
"members": {
2363+
"promptRouterArn": {
2364+
"target": "com.amazonaws.bedrock#PromptRouterArn",
2365+
"traits": {
2366+
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) that uniquely identifies the prompt router.</p>"
2367+
}
2368+
}
2369+
},
2370+
"traits": {
2371+
"smithy.api#output": {}
2372+
}
2373+
},
22612374
"com.amazonaws.bedrock#CreateProvisionedModelThroughput": {
22622375
"type": "operation",
22632376
"input": {
@@ -2832,6 +2945,64 @@
28322945
"smithy.api#output": {}
28332946
}
28342947
},
2948+
"com.amazonaws.bedrock#DeletePromptRouter": {
2949+
"type": "operation",
2950+
"input": {
2951+
"target": "com.amazonaws.bedrock#DeletePromptRouterRequest"
2952+
},
2953+
"output": {
2954+
"target": "com.amazonaws.bedrock#DeletePromptRouterResponse"
2955+
},
2956+
"errors": [
2957+
{
2958+
"target": "com.amazonaws.bedrock#AccessDeniedException"
2959+
},
2960+
{
2961+
"target": "com.amazonaws.bedrock#InternalServerException"
2962+
},
2963+
{
2964+
"target": "com.amazonaws.bedrock#ResourceNotFoundException"
2965+
},
2966+
{
2967+
"target": "com.amazonaws.bedrock#ThrottlingException"
2968+
},
2969+
{
2970+
"target": "com.amazonaws.bedrock#ValidationException"
2971+
}
2972+
],
2973+
"traits": {
2974+
"smithy.api#documentation": "<p>Deletes a specified prompt router. This action cannot be undone.</p>",
2975+
"smithy.api#http": {
2976+
"code": 200,
2977+
"method": "DELETE",
2978+
"uri": "/prompt-routers/{promptRouterArn}"
2979+
},
2980+
"smithy.api#idempotent": {}
2981+
}
2982+
},
2983+
"com.amazonaws.bedrock#DeletePromptRouterRequest": {
2984+
"type": "structure",
2985+
"members": {
2986+
"promptRouterArn": {
2987+
"target": "com.amazonaws.bedrock#PromptRouterArn",
2988+
"traits": {
2989+
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the prompt router to delete.</p>",
2990+
"smithy.api#httpLabel": {},
2991+
"smithy.api#required": {}
2992+
}
2993+
}
2994+
},
2995+
"traits": {
2996+
"smithy.api#input": {}
2997+
}
2998+
},
2999+
"com.amazonaws.bedrock#DeletePromptRouterResponse": {
3000+
"type": "structure",
3001+
"members": {},
3002+
"traits": {
3003+
"smithy.api#output": {}
3004+
}
3005+
},
28353006
"com.amazonaws.bedrock#DeleteProvisionedModelThroughput": {
28363007
"type": "operation",
28373008
"input": {
@@ -9185,6 +9356,14 @@
91859356
"smithy.api#documentation": "<p>Specify the pagination token from a previous request to retrieve the next page of results.</p>",
91869357
"smithy.api#httpQuery": "nextToken"
91879358
}
9359+
},
9360+
"type": {
9361+
"target": "com.amazonaws.bedrock#PromptRouterType",
9362+
"traits": {
9363+
"smithy.api#default": "default",
9364+
"smithy.api#documentation": "<p>The type of the prompt routers, such as whether it's default or custom.</p>",
9365+
"smithy.api#httpQuery": "type"
9366+
}
91889367
}
91899368
},
91909369
"traits": {
@@ -10619,9 +10798,15 @@
1061910798
"target": "com.amazonaws.bedrock#PromptRouterArn"
1062010799
}
1062110800
},
10801+
"create": {
10802+
"target": "com.amazonaws.bedrock#CreatePromptRouter"
10803+
},
1062210804
"read": {
1062310805
"target": "com.amazonaws.bedrock#GetPromptRouter"
1062410806
},
10807+
"delete": {
10808+
"target": "com.amazonaws.bedrock#DeletePromptRouter"
10809+
},
1062510810
"list": {
1062610811
"target": "com.amazonaws.bedrock#ListPromptRouters"
1062710812
}
@@ -10724,7 +10909,9 @@
1072410909
"modelArn": {
1072510910
"target": "com.amazonaws.bedrock#PromptRouterTargetModelArn",
1072610911
"traits": {
10727-
"smithy.api#documentation": "<p>The target model's ARN.</p>"
10912+
"smithy.api#clientOptional": {},
10913+
"smithy.api#documentation": "<p>The target model's ARN.</p>",
10914+
"smithy.api#required": {}
1072810915
}
1072910916
}
1073010917
},
@@ -10739,7 +10926,7 @@
1073910926
"min": 1,
1074010927
"max": 2048
1074110928
},
10742-
"smithy.api#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})|(^arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{0,20}):(|[0-9]{12}):inference-profile/[a-zA-Z0-9-:.]+)$"
10929+
"smithy.api#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})|(^arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{0,20}):(|[0-9]{12}):(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+)$"
1074310930
}
1074410931
},
1074510932
"com.amazonaws.bedrock#PromptRouterTargetModels": {
@@ -11453,7 +11640,7 @@
1145311640
"smithy.api#documentation": "<p>The criteria's response quality difference.</p>",
1145411641
"smithy.api#range": {
1145511642
"min": 0,
11456-
"max": 1
11643+
"max": 100
1145711644
},
1145811645
"smithy.api#required": {}
1145911646
}
@@ -12060,7 +12247,7 @@
1206012247
"min": 20,
1206112248
"max": 1011
1206212249
},
12063-
"smithy.api#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]+$)|(:(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)/[a-z0-9]{12}$)))"
12250+
"smithy.api#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}$)))"
1206412251
}
1206512252
},
1206612253
"com.amazonaws.bedrock#TaggingResource": {

tools/code-generation/smithy/api-descriptions/cloudtrail.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,7 +2555,7 @@
25552555
"SnsTopicName": {
25562556
"target": "com.amazonaws.cloudtrail#String",
25572557
"traits": {
2558-
"smithy.api#documentation": "<p>Specifies the name of the Amazon SNS topic defined for notification of log file\n delivery. The maximum length is 256 characters.</p>"
2558+
"smithy.api#documentation": "<p>Specifies the name or ARN of the Amazon SNS topic defined for notification of log file\n delivery. The maximum length is 256 characters.</p>"
25592559
}
25602560
},
25612561
"IncludeGlobalServiceEvents": {
@@ -11111,7 +11111,7 @@
1111111111
"SnsTopicName": {
1111211112
"target": "com.amazonaws.cloudtrail#String",
1111311113
"traits": {
11114-
"smithy.api#documentation": "<p>Specifies the name of the Amazon SNS topic defined for notification of log file\n delivery. The maximum length is 256 characters.</p>"
11114+
"smithy.api#documentation": "<p>Specifies the name or ARN of the Amazon SNS topic defined for notification of log file\n delivery. The maximum length is 256 characters.</p>"
1111511115
}
1111611116
},
1111711117
"IncludeGlobalServiceEvents": {

0 commit comments

Comments
 (0)