@aws-sdk/client-bedrock 3.808.0 → 3.810.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -621,8 +621,8 @@ var EvaluatorModelConfig;
621
621
  }, "visit");
622
622
  })(EvaluatorModelConfig || (EvaluatorModelConfig = {}));
623
623
  var EvaluationConfig;
624
- ((EvaluationConfig2) => {
625
- EvaluationConfig2.visit = /* @__PURE__ */ __name((value, visitor) => {
624
+ ((EvaluationConfig3) => {
625
+ EvaluationConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
626
626
  if (value.automated !== void 0) return visitor.automated(value.automated);
627
627
  if (value.human !== void 0) return visitor.human(value.human);
628
628
  return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -980,8 +980,8 @@ var RAGConfig;
980
980
  }, "visit");
981
981
  })(RAGConfig || (RAGConfig = {}));
982
982
  var EvaluationInferenceConfig;
983
- ((EvaluationInferenceConfig2) => {
984
- EvaluationInferenceConfig2.visit = /* @__PURE__ */ __name((value, visitor) => {
983
+ ((EvaluationInferenceConfig3) => {
984
+ EvaluationInferenceConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
985
985
  if (value.models !== void 0) return visitor.models(value.models);
986
986
  if (value.ragConfigs !== void 0) return visitor.ragConfigs(value.ragConfigs);
987
987
  return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -1469,12 +1469,6 @@ var CreateEvaluationJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj)
1469
1469
  ...obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) },
1470
1470
  ...obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }
1471
1471
  }), "CreateEvaluationJobRequestFilterSensitiveLog");
1472
- var GetEvaluationJobResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1473
- ...obj,
1474
- ...obj.jobDescription && { jobDescription: import_smithy_client.SENSITIVE_STRING },
1475
- ...obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) },
1476
- ...obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }
1477
- }), "GetEvaluationJobResponseFilterSensitiveLog");
1478
1472
 
1479
1473
  // src/protocols/Aws_restJson1.ts
1480
1474
  var import_core2 = require("@aws-sdk/core");
@@ -1534,6 +1528,7 @@ var se_CreateGuardrailCommand = /* @__PURE__ */ __name(async (input, context) =>
1534
1528
  clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1535
1529
  contentPolicyConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "contentPolicyConfig"),
1536
1530
  contextualGroundingPolicyConfig: /* @__PURE__ */ __name((_) => se_GuardrailContextualGroundingPolicyConfig(_, context), "contextualGroundingPolicyConfig"),
1531
+ crossRegionConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "crossRegionConfig"),
1537
1532
  description: [],
1538
1533
  kmsKeyId: [],
1539
1534
  name: [],
@@ -2282,6 +2277,7 @@ var se_UpdateGuardrailCommand = /* @__PURE__ */ __name(async (input, context) =>
2282
2277
  blockedOutputsMessaging: [],
2283
2278
  contentPolicyConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "contentPolicyConfig"),
2284
2279
  contextualGroundingPolicyConfig: /* @__PURE__ */ __name((_) => se_GuardrailContextualGroundingPolicyConfig(_, context), "contextualGroundingPolicyConfig"),
2280
+ crossRegionConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "crossRegionConfig"),
2285
2281
  description: [],
2286
2282
  kmsKeyId: [],
2287
2283
  name: [],
@@ -2674,6 +2670,7 @@ var de_GetGuardrailCommand = /* @__PURE__ */ __name(async (output, context) => {
2674
2670
  contentPolicy: import_smithy_client._json,
2675
2671
  contextualGroundingPolicy: /* @__PURE__ */ __name((_) => de_GuardrailContextualGroundingPolicy(_, context), "contextualGroundingPolicy"),
2676
2672
  createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
2673
+ crossRegionDetails: import_smithy_client._json,
2677
2674
  description: import_smithy_client.expectString,
2678
2675
  failureRecommendations: import_smithy_client._json,
2679
2676
  guardrailArn: import_smithy_client.expectString,
@@ -3851,6 +3848,7 @@ var de_GuardrailSummary = /* @__PURE__ */ __name((output, context) => {
3851
3848
  return (0, import_smithy_client.take)(output, {
3852
3849
  arn: import_smithy_client.expectString,
3853
3850
  createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
3851
+ crossRegionDetails: import_smithy_client._json,
3854
3852
  description: import_smithy_client.expectString,
3855
3853
  id: import_smithy_client.expectString,
3856
3854
  name: import_smithy_client.expectString,
@@ -4632,6 +4630,17 @@ var GetCustomModelCommand = class extends import_smithy_client.Command.classBuil
4632
4630
 
4633
4631
 
4634
4632
 
4633
+
4634
+ // src/models/models_1.ts
4635
+
4636
+ var GetEvaluationJobResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4637
+ ...obj,
4638
+ ...obj.jobDescription && { jobDescription: import_smithy_client.SENSITIVE_STRING },
4639
+ ...obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) },
4640
+ ...obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }
4641
+ }), "GetEvaluationJobResponseFilterSensitiveLog");
4642
+
4643
+ // src/commands/GetEvaluationJobCommand.ts
4635
4644
  var GetEvaluationJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4636
4645
  return [
4637
4646
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -2,7 +2,8 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { GetEvaluationJobRequestFilterSensitiveLog, GetEvaluationJobResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { GetEvaluationJobRequestFilterSensitiveLog } from "../models/models_0";
6
+ import { GetEvaluationJobResponseFilterSensitiveLog } from "../models/models_1";
6
7
  import { de_GetEvaluationJobCommand, se_GetEvaluationJobCommand } from "../protocols/Aws_restJson1";
7
8
  export { $Command };
8
9
  export class GetEvaluationJobCommand extends $Command
@@ -1 +1,2 @@
1
1
  export * from "./models_0";
2
+ export * from "./models_1";
@@ -1044,9 +1044,3 @@ export const CreateEvaluationJobRequestFilterSensitiveLog = (obj) => ({
1044
1044
  ...(obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) }),
1045
1045
  ...(obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }),
1046
1046
  });
1047
- export const GetEvaluationJobResponseFilterSensitiveLog = (obj) => ({
1048
- ...obj,
1049
- ...(obj.jobDescription && { jobDescription: SENSITIVE_STRING }),
1050
- ...(obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) }),
1051
- ...(obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }),
1052
- });
@@ -0,0 +1,8 @@
1
+ import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
+ import { EvaluationConfigFilterSensitiveLog, EvaluationInferenceConfigFilterSensitiveLog, } from "./models_0";
3
+ export const GetEvaluationJobResponseFilterSensitiveLog = (obj) => ({
4
+ ...obj,
5
+ ...(obj.jobDescription && { jobDescription: SENSITIVE_STRING }),
6
+ ...(obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) }),
7
+ ...(obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }),
8
+ });
@@ -52,6 +52,7 @@ export const se_CreateGuardrailCommand = async (input, context) => {
52
52
  clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
53
53
  contentPolicyConfig: (_) => _json(_),
54
54
  contextualGroundingPolicyConfig: (_) => se_GuardrailContextualGroundingPolicyConfig(_, context),
55
+ crossRegionConfig: (_) => _json(_),
55
56
  description: [],
56
57
  kmsKeyId: [],
57
58
  name: [],
@@ -770,6 +771,7 @@ export const se_UpdateGuardrailCommand = async (input, context) => {
770
771
  blockedOutputsMessaging: [],
771
772
  contentPolicyConfig: (_) => _json(_),
772
773
  contextualGroundingPolicyConfig: (_) => se_GuardrailContextualGroundingPolicyConfig(_, context),
774
+ crossRegionConfig: (_) => _json(_),
773
775
  description: [],
774
776
  kmsKeyId: [],
775
777
  name: [],
@@ -1157,6 +1159,7 @@ export const de_GetGuardrailCommand = async (output, context) => {
1157
1159
  contentPolicy: _json,
1158
1160
  contextualGroundingPolicy: (_) => de_GuardrailContextualGroundingPolicy(_, context),
1159
1161
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1162
+ crossRegionDetails: _json,
1160
1163
  description: __expectString,
1161
1164
  failureRecommendations: _json,
1162
1165
  guardrailArn: __expectString,
@@ -2358,6 +2361,7 @@ const de_GuardrailSummary = (output, context) => {
2358
2361
  return take(output, {
2359
2362
  arn: __expectString,
2360
2363
  createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2364
+ crossRegionDetails: _json,
2361
2365
  description: __expectString,
2362
2366
  id: __expectString,
2363
2367
  name: __expectString,
@@ -157,6 +157,9 @@ declare const CreateGuardrailCommand_base: {
157
157
  * },
158
158
  * ],
159
159
  * },
160
+ * crossRegionConfig: { // GuardrailCrossRegionConfig
161
+ * guardrailProfileIdentifier: "STRING_VALUE", // required
162
+ * },
160
163
  * blockedInputMessaging: "STRING_VALUE", // required
161
164
  * blockedOutputsMessaging: "STRING_VALUE", // required
162
165
  * kmsKeyId: "STRING_VALUE",
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
4
- import { GetEvaluationJobRequest, GetEvaluationJobResponse } from "../models/models_0";
4
+ import { GetEvaluationJobRequest } from "../models/models_0";
5
+ import { GetEvaluationJobResponse } from "../models/models_1";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -136,6 +136,10 @@ declare const GetGuardrailCommand_base: {
136
136
  * // },
137
137
  * // ],
138
138
  * // },
139
+ * // crossRegionDetails: { // GuardrailCrossRegionDetails
140
+ * // guardrailProfileId: "STRING_VALUE",
141
+ * // guardrailProfileArn: "STRING_VALUE",
142
+ * // },
139
143
  * // createdAt: new Date("TIMESTAMP"), // required
140
144
  * // updatedAt: new Date("TIMESTAMP"), // required
141
145
  * // statusReasons: [ // GuardrailStatusReasons
@@ -53,6 +53,10 @@ declare const ListGuardrailsCommand_base: {
53
53
  * // version: "STRING_VALUE", // required
54
54
  * // createdAt: new Date("TIMESTAMP"), // required
55
55
  * // updatedAt: new Date("TIMESTAMP"), // required
56
+ * // crossRegionDetails: { // GuardrailCrossRegionDetails
57
+ * // guardrailProfileId: "STRING_VALUE",
58
+ * // guardrailProfileArn: "STRING_VALUE",
59
+ * // },
56
60
  * // },
57
61
  * // ],
58
62
  * // nextToken: "STRING_VALUE",
@@ -163,6 +163,9 @@ declare const UpdateGuardrailCommand_base: {
163
163
  * },
164
164
  * ],
165
165
  * },
166
+ * crossRegionConfig: { // GuardrailCrossRegionConfig
167
+ * guardrailProfileIdentifier: "STRING_VALUE", // required
168
+ * },
166
169
  * blockedInputMessaging: "STRING_VALUE", // required
167
170
  * blockedOutputsMessaging: "STRING_VALUE", // required
168
171
  * kmsKeyId: "STRING_VALUE",
@@ -1 +1,2 @@
1
1
  export * from "./models_0";
2
+ export * from "./models_1";
@@ -1986,6 +1986,18 @@ export interface GuardrailContextualGroundingPolicyConfig {
1986
1986
  */
1987
1987
  filtersConfig: GuardrailContextualGroundingFilterConfig[] | undefined;
1988
1988
  }
1989
+ /**
1990
+ * <p>The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination Amazon Web Services Regions where guardrail inference requests can be automatically routed. Using guardrail profiles helps maintain guardrail performance and reliability when demand increases.</p>
1991
+ * <p>For more information, see the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html">Amazon Bedrock User Guide</a>.</p>
1992
+ * @public
1993
+ */
1994
+ export interface GuardrailCrossRegionConfig {
1995
+ /**
1996
+ * <p>The ID or Amazon Resource Name (ARN) of the guardrail profile that your guardrail is using. Guardrail profile availability depends on your current Amazon Web Services Region. For more information, see the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region-support.html">Amazon Bedrock User Guide</a>.</p>
1997
+ * @public
1998
+ */
1999
+ guardrailProfileIdentifier: string | undefined;
2000
+ }
1989
2001
  /**
1990
2002
  * @public
1991
2003
  * @enum
@@ -2821,6 +2833,12 @@ export interface CreateGuardrailRequest {
2821
2833
  * @public
2822
2834
  */
2823
2835
  contextualGroundingPolicyConfig?: GuardrailContextualGroundingPolicyConfig | undefined;
2836
+ /**
2837
+ * <p>The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination Amazon Web Services Regions where guardrail inference requests can be automatically routed.</p>
2838
+ * <p>For more information, see the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html">Amazon Bedrock User Guide</a>.</p>
2839
+ * @public
2840
+ */
2841
+ crossRegionConfig?: GuardrailCrossRegionConfig | undefined;
2824
2842
  /**
2825
2843
  * <p>The message to return when the guardrail blocks a prompt.</p>
2826
2844
  * @public
@@ -3153,6 +3171,24 @@ export interface GuardrailContextualGroundingPolicy {
3153
3171
  */
3154
3172
  filters: GuardrailContextualGroundingFilter[] | undefined;
3155
3173
  }
3174
+ /**
3175
+ * <p>Contains details about the system-defined guardrail profile that you're using with your guardrail for cross-Region inference.</p>
3176
+ * <p>For more information, see the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html">Amazon Bedrock User Guide</a>.</p>
3177
+ * @public
3178
+ */
3179
+ export interface GuardrailCrossRegionDetails {
3180
+ /**
3181
+ * <p>The ID of the guardrail profile that your guardrail is using. Profile availability
3182
+ * depends on your current Amazon Web Services Region. For more information, see the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region-support.html">Amazon Bedrock User Guide</a>.</p>
3183
+ * @public
3184
+ */
3185
+ guardrailProfileId?: string | undefined;
3186
+ /**
3187
+ * <p>The Amazon Resource Name (ARN) of the guardrail profile that you're using with your guardrail.</p>
3188
+ * @public
3189
+ */
3190
+ guardrailProfileArn?: string | undefined;
3191
+ }
3156
3192
  /**
3157
3193
  * <p>The PII entity configured for the guardrail.</p>
3158
3194
  * @public
@@ -3620,6 +3656,11 @@ export interface GetGuardrailResponse {
3620
3656
  * @public
3621
3657
  */
3622
3658
  contextualGroundingPolicy?: GuardrailContextualGroundingPolicy | undefined;
3659
+ /**
3660
+ * <p>Details about the system-defined guardrail profile that you're using with your guardrail, including the guardrail profile ID and Amazon Resource Name (ARN).</p>
3661
+ * @public
3662
+ */
3663
+ crossRegionDetails?: GuardrailCrossRegionDetails | undefined;
3623
3664
  /**
3624
3665
  * <p>The date and time at which the guardrail was created.</p>
3625
3666
  * @public
@@ -3729,6 +3770,11 @@ export interface GuardrailSummary {
3729
3770
  * @public
3730
3771
  */
3731
3772
  updatedAt: Date | undefined;
3773
+ /**
3774
+ * <p>Details about the system-defined guardrail profile that you're using with your guardrail, including the guardrail profile ID and Amazon Resource Name (ARN).</p>
3775
+ * @public
3776
+ */
3777
+ crossRegionDetails?: GuardrailCrossRegionDetails | undefined;
3732
3778
  }
3733
3779
  /**
3734
3780
  * @public
@@ -3789,6 +3835,12 @@ export interface UpdateGuardrailRequest {
3789
3835
  * @public
3790
3836
  */
3791
3837
  contextualGroundingPolicyConfig?: GuardrailContextualGroundingPolicyConfig | undefined;
3838
+ /**
3839
+ * <p>The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination Amazon Web Services Regions where guardrail inference requests can be automatically routed.</p>
3840
+ * <p>For more information, see the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html">Amazon Bedrock User Guide</a>.</p>
3841
+ * @public
3842
+ */
3843
+ crossRegionConfig?: GuardrailCrossRegionConfig | undefined;
3792
3844
  /**
3793
3845
  * <p>The message to return when the guardrail blocks a prompt.</p>
3794
3846
  * @public
@@ -8173,82 +8225,6 @@ export interface CreateEvaluationJobRequest {
8173
8225
  */
8174
8226
  outputDataConfig: EvaluationOutputDataConfig | undefined;
8175
8227
  }
8176
- /**
8177
- * @public
8178
- */
8179
- export interface GetEvaluationJobResponse {
8180
- /**
8181
- * <p>The name for the evaluation job.</p>
8182
- * @public
8183
- */
8184
- jobName: string | undefined;
8185
- /**
8186
- * <p>The current status of the evaluation job.</p>
8187
- * @public
8188
- */
8189
- status: EvaluationJobStatus | undefined;
8190
- /**
8191
- * <p>The Amazon Resource Name (ARN) of the evaluation job.</p>
8192
- * @public
8193
- */
8194
- jobArn: string | undefined;
8195
- /**
8196
- * <p>The description of the evaluation job.</p>
8197
- * @public
8198
- */
8199
- jobDescription?: string | undefined;
8200
- /**
8201
- * <p>The Amazon Resource Name (ARN) of the IAM service role used in the evaluation job.</p>
8202
- * @public
8203
- */
8204
- roleArn: string | undefined;
8205
- /**
8206
- * <p>The Amazon Resource Name (ARN) of the customer managed encryption key specified when the evaluation job was created.</p>
8207
- * @public
8208
- */
8209
- customerEncryptionKeyId?: string | undefined;
8210
- /**
8211
- * <p>Specifies whether the evaluation job is automated or human-based.</p>
8212
- * @public
8213
- */
8214
- jobType: EvaluationJobType | undefined;
8215
- /**
8216
- * <p>Specifies whether the evaluation job is for evaluating a model or evaluating a knowledge base (retrieval and response generation).</p>
8217
- * @public
8218
- */
8219
- applicationType?: ApplicationType | undefined;
8220
- /**
8221
- * <p>Contains the configuration details of either an automated or human-based evaluation job.</p>
8222
- * @public
8223
- */
8224
- evaluationConfig: EvaluationConfig | undefined;
8225
- /**
8226
- * <p>Contains the configuration details of the inference model used for the evaluation job. </p>
8227
- * @public
8228
- */
8229
- inferenceConfig: EvaluationInferenceConfig | undefined;
8230
- /**
8231
- * <p>Contains the configuration details of the Amazon S3 bucket for
8232
- * storing the results of the evaluation job.</p>
8233
- * @public
8234
- */
8235
- outputDataConfig: EvaluationOutputDataConfig | undefined;
8236
- /**
8237
- * <p>The time the evaluation job was created.</p>
8238
- * @public
8239
- */
8240
- creationTime: Date | undefined;
8241
- /**
8242
- * <p>The time the evaluation job was last modified.</p>
8243
- * @public
8244
- */
8245
- lastModifiedTime?: Date | undefined;
8246
- /**
8247
- * <p>A list of strings that specify why the evaluation job failed to create.</p>
8248
- * @public
8249
- */
8250
- failureMessages?: string[] | undefined;
8251
- }
8252
8228
  /**
8253
8229
  * @internal
8254
8230
  */
@@ -8553,7 +8529,3 @@ export declare const EvaluationInferenceConfigFilterSensitiveLog: (obj: Evaluati
8553
8529
  * @internal
8554
8530
  */
8555
8531
  export declare const CreateEvaluationJobRequestFilterSensitiveLog: (obj: CreateEvaluationJobRequest) => any;
8556
- /**
8557
- * @internal
8558
- */
8559
- export declare const GetEvaluationJobResponseFilterSensitiveLog: (obj: GetEvaluationJobResponse) => any;
@@ -0,0 +1,81 @@
1
+ import { ApplicationType, EvaluationConfig, EvaluationInferenceConfig, EvaluationJobStatus, EvaluationJobType, EvaluationOutputDataConfig } from "./models_0";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface GetEvaluationJobResponse {
6
+ /**
7
+ * <p>The name for the evaluation job.</p>
8
+ * @public
9
+ */
10
+ jobName: string | undefined;
11
+ /**
12
+ * <p>The current status of the evaluation job.</p>
13
+ * @public
14
+ */
15
+ status: EvaluationJobStatus | undefined;
16
+ /**
17
+ * <p>The Amazon Resource Name (ARN) of the evaluation job.</p>
18
+ * @public
19
+ */
20
+ jobArn: string | undefined;
21
+ /**
22
+ * <p>The description of the evaluation job.</p>
23
+ * @public
24
+ */
25
+ jobDescription?: string | undefined;
26
+ /**
27
+ * <p>The Amazon Resource Name (ARN) of the IAM service role used in the evaluation job.</p>
28
+ * @public
29
+ */
30
+ roleArn: string | undefined;
31
+ /**
32
+ * <p>The Amazon Resource Name (ARN) of the customer managed encryption key specified when the evaluation job was created.</p>
33
+ * @public
34
+ */
35
+ customerEncryptionKeyId?: string | undefined;
36
+ /**
37
+ * <p>Specifies whether the evaluation job is automated or human-based.</p>
38
+ * @public
39
+ */
40
+ jobType: EvaluationJobType | undefined;
41
+ /**
42
+ * <p>Specifies whether the evaluation job is for evaluating a model or evaluating a knowledge base (retrieval and response generation).</p>
43
+ * @public
44
+ */
45
+ applicationType?: ApplicationType | undefined;
46
+ /**
47
+ * <p>Contains the configuration details of either an automated or human-based evaluation job.</p>
48
+ * @public
49
+ */
50
+ evaluationConfig: EvaluationConfig | undefined;
51
+ /**
52
+ * <p>Contains the configuration details of the inference model used for the evaluation job. </p>
53
+ * @public
54
+ */
55
+ inferenceConfig: EvaluationInferenceConfig | undefined;
56
+ /**
57
+ * <p>Contains the configuration details of the Amazon S3 bucket for
58
+ * storing the results of the evaluation job.</p>
59
+ * @public
60
+ */
61
+ outputDataConfig: EvaluationOutputDataConfig | undefined;
62
+ /**
63
+ * <p>The time the evaluation job was created.</p>
64
+ * @public
65
+ */
66
+ creationTime: Date | undefined;
67
+ /**
68
+ * <p>The time the evaluation job was last modified.</p>
69
+ * @public
70
+ */
71
+ lastModifiedTime?: Date | undefined;
72
+ /**
73
+ * <p>A list of strings that specify why the evaluation job failed to create.</p>
74
+ * @public
75
+ */
76
+ failureMessages?: string[] | undefined;
77
+ }
78
+ /**
79
+ * @internal
80
+ */
81
+ export declare const GetEvaluationJobResponseFilterSensitiveLog: (obj: GetEvaluationJobResponse) => any;
@@ -5,10 +5,8 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../BedrockClient";
8
- import {
9
- GetEvaluationJobRequest,
10
- GetEvaluationJobResponse,
11
- } from "../models/models_0";
8
+ import { GetEvaluationJobRequest } from "../models/models_0";
9
+ import { GetEvaluationJobResponse } from "../models/models_1";
12
10
  export { __MetadataBearer };
13
11
  export { $Command };
14
12
  export interface GetEvaluationJobCommandInput extends GetEvaluationJobRequest {}
@@ -1 +1,2 @@
1
1
  export * from "./models_0";
2
+ export * from "./models_1";
@@ -663,6 +663,9 @@ export interface GuardrailContextualGroundingFilterConfig {
663
663
  export interface GuardrailContextualGroundingPolicyConfig {
664
664
  filtersConfig: GuardrailContextualGroundingFilterConfig[] | undefined;
665
665
  }
666
+ export interface GuardrailCrossRegionConfig {
667
+ guardrailProfileIdentifier: string | undefined;
668
+ }
666
669
  export declare const GuardrailSensitiveInformationAction: {
667
670
  readonly ANONYMIZE: "ANONYMIZE";
668
671
  readonly BLOCK: "BLOCK";
@@ -792,6 +795,7 @@ export interface CreateGuardrailRequest {
792
795
  contextualGroundingPolicyConfig?:
793
796
  | GuardrailContextualGroundingPolicyConfig
794
797
  | undefined;
798
+ crossRegionConfig?: GuardrailCrossRegionConfig | undefined;
795
799
  blockedInputMessaging: string | undefined;
796
800
  blockedOutputsMessaging: string | undefined;
797
801
  kmsKeyId?: string | undefined;
@@ -853,6 +857,10 @@ export interface GuardrailContextualGroundingFilter {
853
857
  export interface GuardrailContextualGroundingPolicy {
854
858
  filters: GuardrailContextualGroundingFilter[] | undefined;
855
859
  }
860
+ export interface GuardrailCrossRegionDetails {
861
+ guardrailProfileId?: string | undefined;
862
+ guardrailProfileArn?: string | undefined;
863
+ }
856
864
  export interface GuardrailPiiEntity {
857
865
  type: GuardrailPiiEntityType | undefined;
858
866
  action: GuardrailSensitiveInformationAction | undefined;
@@ -928,6 +936,7 @@ export interface GetGuardrailResponse {
928
936
  wordPolicy?: GuardrailWordPolicy | undefined;
929
937
  sensitiveInformationPolicy?: GuardrailSensitiveInformationPolicy | undefined;
930
938
  contextualGroundingPolicy?: GuardrailContextualGroundingPolicy | undefined;
939
+ crossRegionDetails?: GuardrailCrossRegionDetails | undefined;
931
940
  createdAt: Date | undefined;
932
941
  updatedAt: Date | undefined;
933
942
  statusReasons?: string[] | undefined;
@@ -950,6 +959,7 @@ export interface GuardrailSummary {
950
959
  version: string | undefined;
951
960
  createdAt: Date | undefined;
952
961
  updatedAt: Date | undefined;
962
+ crossRegionDetails?: GuardrailCrossRegionDetails | undefined;
953
963
  }
954
964
  export interface ListGuardrailsResponse {
955
965
  guardrails: GuardrailSummary[] | undefined;
@@ -968,6 +978,7 @@ export interface UpdateGuardrailRequest {
968
978
  contextualGroundingPolicyConfig?:
969
979
  | GuardrailContextualGroundingPolicyConfig
970
980
  | undefined;
981
+ crossRegionConfig?: GuardrailCrossRegionConfig | undefined;
971
982
  blockedInputMessaging: string | undefined;
972
983
  blockedOutputsMessaging: string | undefined;
973
984
  kmsKeyId?: string | undefined;
@@ -2347,22 +2358,6 @@ export interface CreateEvaluationJobRequest {
2347
2358
  inferenceConfig: EvaluationInferenceConfig | undefined;
2348
2359
  outputDataConfig: EvaluationOutputDataConfig | undefined;
2349
2360
  }
2350
- export interface GetEvaluationJobResponse {
2351
- jobName: string | undefined;
2352
- status: EvaluationJobStatus | undefined;
2353
- jobArn: string | undefined;
2354
- jobDescription?: string | undefined;
2355
- roleArn: string | undefined;
2356
- customerEncryptionKeyId?: string | undefined;
2357
- jobType: EvaluationJobType | undefined;
2358
- applicationType?: ApplicationType | undefined;
2359
- evaluationConfig: EvaluationConfig | undefined;
2360
- inferenceConfig: EvaluationInferenceConfig | undefined;
2361
- outputDataConfig: EvaluationOutputDataConfig | undefined;
2362
- creationTime: Date | undefined;
2363
- lastModifiedTime?: Date | undefined;
2364
- failureMessages?: string[] | undefined;
2365
- }
2366
2361
  export declare const BatchDeleteEvaluationJobRequestFilterSensitiveLog: (
2367
2362
  obj: BatchDeleteEvaluationJobRequest
2368
2363
  ) => any;
@@ -2589,6 +2584,3 @@ export declare const EvaluationInferenceConfigFilterSensitiveLog: (
2589
2584
  export declare const CreateEvaluationJobRequestFilterSensitiveLog: (
2590
2585
  obj: CreateEvaluationJobRequest
2591
2586
  ) => any;
2592
- export declare const GetEvaluationJobResponseFilterSensitiveLog: (
2593
- obj: GetEvaluationJobResponse
2594
- ) => any;
@@ -0,0 +1,27 @@
1
+ import {
2
+ ApplicationType,
3
+ EvaluationConfig,
4
+ EvaluationInferenceConfig,
5
+ EvaluationJobStatus,
6
+ EvaluationJobType,
7
+ EvaluationOutputDataConfig,
8
+ } from "./models_0";
9
+ export interface GetEvaluationJobResponse {
10
+ jobName: string | undefined;
11
+ status: EvaluationJobStatus | undefined;
12
+ jobArn: string | undefined;
13
+ jobDescription?: string | undefined;
14
+ roleArn: string | undefined;
15
+ customerEncryptionKeyId?: string | undefined;
16
+ jobType: EvaluationJobType | undefined;
17
+ applicationType?: ApplicationType | undefined;
18
+ evaluationConfig: EvaluationConfig | undefined;
19
+ inferenceConfig: EvaluationInferenceConfig | undefined;
20
+ outputDataConfig: EvaluationOutputDataConfig | undefined;
21
+ creationTime: Date | undefined;
22
+ lastModifiedTime?: Date | undefined;
23
+ failureMessages?: string[] | undefined;
24
+ }
25
+ export declare const GetEvaluationJobResponseFilterSensitiveLog: (
26
+ obj: GetEvaluationJobResponse
27
+ ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock",
3
3
  "description": "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
4
- "version": "3.808.0",
4
+ "version": "3.810.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.808.0",
24
- "@aws-sdk/credential-provider-node": "3.808.0",
23
+ "@aws-sdk/core": "3.810.0",
24
+ "@aws-sdk/credential-provider-node": "3.810.0",
25
25
  "@aws-sdk/middleware-host-header": "3.804.0",
26
26
  "@aws-sdk/middleware-logger": "3.804.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.804.0",
28
- "@aws-sdk/middleware-user-agent": "3.808.0",
28
+ "@aws-sdk/middleware-user-agent": "3.810.0",
29
29
  "@aws-sdk/region-config-resolver": "3.808.0",
30
30
  "@aws-sdk/types": "3.804.0",
31
31
  "@aws-sdk/util-endpoints": "3.808.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.804.0",
33
- "@aws-sdk/util-user-agent-node": "3.808.0",
33
+ "@aws-sdk/util-user-agent-node": "3.810.0",
34
34
  "@smithy/config-resolver": "^4.1.2",
35
- "@smithy/core": "^3.3.1",
35
+ "@smithy/core": "^3.3.3",
36
36
  "@smithy/fetch-http-handler": "^5.0.2",
37
37
  "@smithy/hash-node": "^4.0.2",
38
38
  "@smithy/invalid-dependency": "^4.0.2",
39
39
  "@smithy/middleware-content-length": "^4.0.2",
40
- "@smithy/middleware-endpoint": "^4.1.4",
41
- "@smithy/middleware-retry": "^4.1.5",
42
- "@smithy/middleware-serde": "^4.0.3",
40
+ "@smithy/middleware-endpoint": "^4.1.6",
41
+ "@smithy/middleware-retry": "^4.1.7",
42
+ "@smithy/middleware-serde": "^4.0.5",
43
43
  "@smithy/middleware-stack": "^4.0.2",
44
44
  "@smithy/node-config-provider": "^4.1.1",
45
45
  "@smithy/node-http-handler": "^4.0.4",
46
46
  "@smithy/protocol-http": "^5.1.0",
47
- "@smithy/smithy-client": "^4.2.4",
47
+ "@smithy/smithy-client": "^4.2.6",
48
48
  "@smithy/types": "^4.2.0",
49
49
  "@smithy/url-parser": "^4.0.2",
50
50
  "@smithy/util-base64": "^4.0.0",
51
51
  "@smithy/util-body-length-browser": "^4.0.0",
52
52
  "@smithy/util-body-length-node": "^4.0.0",
53
- "@smithy/util-defaults-mode-browser": "^4.0.12",
54
- "@smithy/util-defaults-mode-node": "^4.0.12",
53
+ "@smithy/util-defaults-mode-browser": "^4.0.14",
54
+ "@smithy/util-defaults-mode-node": "^4.0.14",
55
55
  "@smithy/util-endpoints": "^3.0.4",
56
56
  "@smithy/util-middleware": "^4.0.2",
57
57
  "@smithy/util-retry": "^4.0.3",