Skip to content

Commit 707b387

Browse files
author
awstools
committed
feat(client-bedrock): Add support for Cross Region Inference in Bedrock Model Evaluations.
1 parent 6b99b6b commit 707b387

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

clients/client-bedrock/src/models/models_0.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -449,13 +449,13 @@ export namespace EvaluationConfig {
449449
}
450450

451451
/**
452-
* <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>
452+
* <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>
453453
* <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>
454454
* @public
455455
*/
456456
export interface EvaluationBedrockModel {
457457
/**
458-
* <p>The ARN of the Amazon Bedrock model specified.</p>
458+
* <p>The ARN of the Amazon Bedrock model or inference profile specified.</p>
459459
* @public
460460
*/
461461
modelIdentifier: string | undefined;
@@ -478,7 +478,7 @@ export type EvaluationModelConfig = EvaluationModelConfig.BedrockModelMember | E
478478
*/
479479
export namespace EvaluationModelConfig {
480480
/**
481-
* <p>Defines the Amazon Bedrock model and inference parameters you want used.</p>
481+
* <p>Defines the Amazon Bedrock model or inference profile and inference parameters you want used.</p>
482482
* @public
483483
*/
484484
export interface BedrockModelMember {
@@ -593,7 +593,7 @@ export interface CreateEvaluationJobRequest {
593593

594594
/**
595595
* <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,
596-
* 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>
596+
* 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>
597597
* @public
598598
*/
599599
clientRequestToken?: string;
@@ -623,7 +623,7 @@ export interface CreateEvaluationJobRequest {
623623
evaluationConfig: EvaluationConfig | undefined;
624624

625625
/**
626-
* <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>
626+
* <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>
627627
* @public
628628
*/
629629
inferenceConfig: EvaluationInferenceConfig | undefined;

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

+6-6
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": {

0 commit comments

Comments
 (0)