Skip to content

Commit

Permalink
feat(client-bedrock): Add support for Cross Region Inference in Bedro…
Browse files Browse the repository at this point in the history
…ck Model Evaluations.
  • Loading branch information
awstools committed Sep 24, 2024
1 parent 6b99b6b commit 707b387
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions clients/client-bedrock/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,13 +449,13 @@ export namespace EvaluationConfig {
}

/**
* <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>
* <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>
* <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>
* @public
*/
export interface EvaluationBedrockModel {
/**
* <p>The ARN of the Amazon Bedrock model specified.</p>
* <p>The ARN of the Amazon Bedrock model or inference profile specified.</p>
* @public
*/
modelIdentifier: string | undefined;
Expand All @@ -478,7 +478,7 @@ export type EvaluationModelConfig = EvaluationModelConfig.BedrockModelMember | E
*/
export namespace EvaluationModelConfig {
/**
* <p>Defines the Amazon Bedrock model and inference parameters you want used.</p>
* <p>Defines the Amazon Bedrock model or inference profile and inference parameters you want used.</p>
* @public
*/
export interface BedrockModelMember {
Expand Down Expand Up @@ -593,7 +593,7 @@ export interface CreateEvaluationJobRequest {

/**
* <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,
* 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>
* 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>
* @public
*/
clientRequestToken?: string;
Expand Down Expand Up @@ -623,7 +623,7 @@ export interface CreateEvaluationJobRequest {
evaluationConfig: EvaluationConfig | undefined;

/**
* <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>
* <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>
* @public
*/
inferenceConfig: EvaluationInferenceConfig | undefined;
Expand Down
12 changes: 6 additions & 6 deletions codegen/sdk-codegen/aws-models/bedrock.json
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@
"clientRequestToken": {
"target": "com.amazonaws.bedrock#IdempotencyToken",
"traits": {
"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>",
"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>",
"smithy.api#idempotencyToken": {}
}
},
Expand Down Expand Up @@ -1084,7 +1084,7 @@
"inferenceConfig": {
"target": "com.amazonaws.bedrock#EvaluationInferenceConfig",
"traits": {
"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>",
"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>",
"smithy.api#required": {}
}
},
Expand Down Expand Up @@ -2386,7 +2386,7 @@
"modelIdentifier": {
"target": "com.amazonaws.bedrock#EvaluationModelIdentifier",
"traits": {
"smithy.api#documentation": "<p>The ARN of the Amazon Bedrock model specified.</p>",
"smithy.api#documentation": "<p>The ARN of the Amazon Bedrock model or inference profile specified.</p>",
"smithy.api#required": {}
}
},
Expand All @@ -2399,7 +2399,7 @@
}
},
"traits": {
"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>"
"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>"
}
},
"com.amazonaws.bedrock#EvaluationConfig": {
Expand Down Expand Up @@ -2693,7 +2693,7 @@
"bedrockModel": {
"target": "com.amazonaws.bedrock#EvaluationBedrockModel",
"traits": {
"smithy.api#documentation": "<p>Defines the Amazon Bedrock model and inference parameters you want used.</p>"
"smithy.api#documentation": "<p>Defines the Amazon Bedrock model or inference profile and inference parameters you want used.</p>"
}
}
},
Expand All @@ -2720,7 +2720,7 @@
"min": 1,
"max": 2048
},
"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][_-]?)+)$"
"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}))$"
}
},
"com.amazonaws.bedrock#EvaluationModelIdentifiers": {
Expand Down

0 comments on commit 707b387

Please sign in to comment.