Skip to content

Commit 9437d07

Browse files
author
AWS SDK for Go v2 automation user
committed
Update API model
1 parent 3f09c24 commit 9437d07

File tree

5 files changed

+573
-57
lines changed

5 files changed

+573
-57
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@
10511051
"clientRequestToken": {
10521052
"target": "com.amazonaws.bedrock#IdempotencyToken",
10531053
"traits": {
1054-
"smithy.api#documentation": "<p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,\n Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html\">Ensuring idempotency</a>.</p>",
1054+
"smithy.api#documentation": "<p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,\n Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html\">Ensuring idempotency</a>.</p>",
10551055
"smithy.api#idempotencyToken": {}
10561056
}
10571057
},
@@ -1084,7 +1084,7 @@
10841084
"inferenceConfig": {
10851085
"target": "com.amazonaws.bedrock#EvaluationInferenceConfig",
10861086
"traits": {
1087-
"smithy.api#documentation": "<p>Specify the models you want to use in your model evaluation job. Automatic model evaluation jobs support a single model, and model evaluation job that use human workers support two models.</p>",
1087+
"smithy.api#documentation": "<p>Specify the models you want to use in your model evaluation job. Automatic model evaluation jobs support a single model or <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html\">inference profile</a>, and model evaluation job that use human workers support two models or inference profiles.</p>",
10881088
"smithy.api#required": {}
10891089
}
10901090
},
@@ -2386,7 +2386,7 @@
23862386
"modelIdentifier": {
23872387
"target": "com.amazonaws.bedrock#EvaluationModelIdentifier",
23882388
"traits": {
2389-
"smithy.api#documentation": "<p>The ARN of the Amazon Bedrock model specified.</p>",
2389+
"smithy.api#documentation": "<p>The ARN of the Amazon Bedrock model or inference profile specified.</p>",
23902390
"smithy.api#required": {}
23912391
}
23922392
},
@@ -2399,7 +2399,7 @@
23992399
}
24002400
},
24012401
"traits": {
2402-
"smithy.api#documentation": "<p>Contains the ARN of the Amazon Bedrock models specified in your model evaluation job. Each Amazon Bedrock model supports different <code>inferenceParams</code>. To learn more about supported inference parameters for Amazon Bedrock models, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html\">Inference parameters for foundation models</a>.</p>\n <p>The <code>inferenceParams</code> are specified using JSON. To successfully insert JSON as string make sure that all quotations are properly escaped. For example, <code>\"temperature\":\"0.25\"</code> key value pair would need to be formatted as <code>\\\"temperature\\\":\\\"0.25\\\"</code> to successfully accepted in the request.</p>"
2402+
"smithy.api#documentation": "<p>Contains the ARN of the Amazon Bedrock model or <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html\">inference profile</a> specified in your model evaluation job. Each Amazon Bedrock model supports different <code>inferenceParams</code>. To learn more about supported inference parameters for Amazon Bedrock models, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html\">Inference parameters for foundation models</a>.</p>\n <p>The <code>inferenceParams</code> are specified using JSON. To successfully insert JSON as string make sure that all quotations are properly escaped. For example, <code>\"temperature\":\"0.25\"</code> key value pair would need to be formatted as <code>\\\"temperature\\\":\\\"0.25\\\"</code> to successfully accepted in the request.</p>"
24032403
}
24042404
},
24052405
"com.amazonaws.bedrock#EvaluationConfig": {
@@ -2693,7 +2693,7 @@
26932693
"bedrockModel": {
26942694
"target": "com.amazonaws.bedrock#EvaluationBedrockModel",
26952695
"traits": {
2696-
"smithy.api#documentation": "<p>Defines the Amazon Bedrock model and inference parameters you want used.</p>"
2696+
"smithy.api#documentation": "<p>Defines the Amazon Bedrock model or inference profile and inference parameters you want used.</p>"
26972697
}
26982698
}
26992699
},
@@ -2720,7 +2720,7 @@
27202720
"min": 1,
27212721
"max": 2048
27222722
},
2723-
"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-]{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][_-]?)+)$"
2723+
"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-9]{12}:inference-profile/(([a-z]{2}.)[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63})))))|(([a-z]{2}[.]{1})([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))$"
27242724
}
27252725
},
27262726
"com.amazonaws.bedrock#EvaluationModelIdentifiers": {

‎codegen/sdk-codegen/aws-models/budgets.json

Lines changed: 148 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,108 @@
340340
},
341341
"type": "endpoint"
342342
},
343+
{
344+
"conditions": [
345+
{
346+
"fn": "stringEquals",
347+
"argv": [
348+
{
349+
"fn": "getAttr",
350+
"argv": [
351+
{
352+
"ref": "PartitionResult"
353+
},
354+
"name"
355+
]
356+
},
357+
"aws-iso-e"
358+
]
359+
},
360+
{
361+
"fn": "booleanEquals",
362+
"argv": [
363+
{
364+
"ref": "UseFIPS"
365+
},
366+
false
367+
]
368+
},
369+
{
370+
"fn": "booleanEquals",
371+
"argv": [
372+
{
373+
"ref": "UseDualStack"
374+
},
375+
false
376+
]
377+
}
378+
],
379+
"endpoint": {
380+
"url": "https://budgets.global.cloud.adc-e.uk",
381+
"properties": {
382+
"authSchemes": [
383+
{
384+
"name": "sigv4",
385+
"signingName": "budgets",
386+
"signingRegion": "eu-isoe-west-1"
387+
}
388+
]
389+
},
390+
"headers": {}
391+
},
392+
"type": "endpoint"
393+
},
394+
{
395+
"conditions": [
396+
{
397+
"fn": "stringEquals",
398+
"argv": [
399+
{
400+
"fn": "getAttr",
401+
"argv": [
402+
{
403+
"ref": "PartitionResult"
404+
},
405+
"name"
406+
]
407+
},
408+
"aws-iso-f"
409+
]
410+
},
411+
{
412+
"fn": "booleanEquals",
413+
"argv": [
414+
{
415+
"ref": "UseFIPS"
416+
},
417+
false
418+
]
419+
},
420+
{
421+
"fn": "booleanEquals",
422+
"argv": [
423+
{
424+
"ref": "UseDualStack"
425+
},
426+
false
427+
]
428+
}
429+
],
430+
"endpoint": {
431+
"url": "https://budgets.global.csp.hci.ic.gov",
432+
"properties": {
433+
"authSchemes": [
434+
{
435+
"name": "sigv4",
436+
"signingName": "budgets",
437+
"signingRegion": "us-isof-south-1"
438+
}
439+
]
440+
},
441+
"headers": {}
442+
},
443+
"type": "endpoint"
444+
},
343445
{
344446
"conditions": [
345447
{
@@ -858,6 +960,50 @@
858960
"UseDualStack": false
859961
}
860962
},
963+
{
964+
"documentation": "For region eu-isoe-west-1 with FIPS disabled and DualStack disabled",
965+
"expect": {
966+
"endpoint": {
967+
"properties": {
968+
"authSchemes": [
969+
{
970+
"name": "sigv4",
971+
"signingName": "budgets",
972+
"signingRegion": "eu-isoe-west-1"
973+
}
974+
]
975+
},
976+
"url": "https://budgets.global.cloud.adc-e.uk"
977+
}
978+
},
979+
"params": {
980+
"Region": "eu-isoe-west-1",
981+
"UseFIPS": false,
982+
"UseDualStack": false
983+
}
984+
},
985+
{
986+
"documentation": "For region us-isof-south-1 with FIPS disabled and DualStack disabled",
987+
"expect": {
988+
"endpoint": {
989+
"properties": {
990+
"authSchemes": [
991+
{
992+
"name": "sigv4",
993+
"signingName": "budgets",
994+
"signingRegion": "us-isof-south-1"
995+
}
996+
]
997+
},
998+
"url": "https://budgets.global.csp.hci.ic.gov"
999+
}
1000+
},
1001+
"params": {
1002+
"Region": "us-isof-south-1",
1003+
"UseFIPS": false,
1004+
"UseDualStack": false
1005+
}
1006+
},
8611007
{
8621008
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
8631009
"expect": {
@@ -3861,7 +4007,7 @@
38614007
"min": 25,
38624008
"max": 684
38634009
},
3864-
"smithy.api#pattern": "^arn:(aws|aws-cn|aws-us-gov|us-iso-east-1|us-isob-east-1):iam::(\\d{12}|aws):policy(\\u002F[\\u0021-\\u007F]+\\u002F|\\u002F)[\\w+=,.@-]+$"
4010+
"smithy.api#pattern": "^arn:aws(-cn|-us-gov|-iso|-iso-[a-z]{1})?:iam::(\\d{12}|aws):policy(\\u002F[\\u0021-\\u007F]+\\u002F|\\u002F)[\\w+=,.@-]+$"
38654011
}
38664012
},
38674013
"com.amazonaws.budgets#PolicyId": {
@@ -3978,7 +4124,7 @@
39784124
"min": 32,
39794125
"max": 618
39804126
},
3981-
"smithy.api#pattern": "^arn:(aws|aws-cn|aws-us-gov|us-iso-east-1|us-isob-east-1):iam::\\d{12}:role(\\u002F[\\u0021-\\u007F]+\\u002F|\\u002F)[\\w+=,.@-]+$"
4127+
"smithy.api#pattern": "^arn:aws(-cn|-us-gov|-iso|-iso-[a-z]{1})?:iam::\\d{12}:role(\\u002F[\\u0021-\\u007F]+\\u002F|\\u002F)[\\w+=,.@-]+$"
39824128
}
39834129
},
39844130
"com.amazonaws.budgets#Roles": {

0 commit comments

Comments
 (0)