@aws-sdk/client-bedrock-agent 3.637.0 → 3.645.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
@@ -151,6 +151,7 @@ __export(src_exports, {
151
151
  PromptFlowNodeSourceConfiguration: () => PromptFlowNodeSourceConfiguration,
152
152
  PromptFlowNodeSourceConfigurationFilterSensitiveLog: () => PromptFlowNodeSourceConfigurationFilterSensitiveLog,
153
153
  PromptInferenceConfiguration: () => PromptInferenceConfiguration,
154
+ PromptMetadataEntryFilterSensitiveLog: () => PromptMetadataEntryFilterSensitiveLog,
154
155
  PromptOverrideConfigurationFilterSensitiveLog: () => PromptOverrideConfigurationFilterSensitiveLog,
155
156
  PromptState: () => PromptState,
156
157
  PromptTemplateConfiguration: () => PromptTemplateConfiguration,
@@ -158,6 +159,7 @@ __export(src_exports, {
158
159
  PromptTemplateType: () => PromptTemplateType,
159
160
  PromptType: () => PromptType,
160
161
  PromptVariantFilterSensitiveLog: () => PromptVariantFilterSensitiveLog,
162
+ RequireConfirmation: () => RequireConfirmation,
161
163
  ResourceNotFoundException: () => ResourceNotFoundException,
162
164
  RetrievalFlowNodeServiceConfiguration: () => RetrievalFlowNodeServiceConfiguration,
163
165
  S3DataSourceConfigurationFilterSensitiveLog: () => S3DataSourceConfigurationFilterSensitiveLog,
@@ -452,6 +454,10 @@ var Type = {
452
454
  NUMBER: "number",
453
455
  STRING: "string"
454
456
  };
457
+ var RequireConfirmation = {
458
+ DISABLED: "DISABLED",
459
+ ENABLED: "ENABLED"
460
+ };
455
461
  var FunctionSchema;
456
462
  ((FunctionSchema3) => {
457
463
  FunctionSchema3.visit = /* @__PURE__ */ __name((value, visitor) => {
@@ -1098,12 +1104,18 @@ var UpdateFlowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1098
1104
  ...obj,
1099
1105
  ...obj.definition && { definition: FlowDefinitionFilterSensitiveLog(obj.definition) }
1100
1106
  }), "UpdateFlowResponseFilterSensitiveLog");
1107
+ var PromptMetadataEntryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1108
+ ...obj,
1109
+ ...obj.key && { key: import_smithy_client.SENSITIVE_STRING },
1110
+ ...obj.value && { value: import_smithy_client.SENSITIVE_STRING }
1111
+ }), "PromptMetadataEntryFilterSensitiveLog");
1101
1112
  var PromptVariantFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1102
1113
  ...obj,
1103
1114
  ...obj.templateConfiguration && {
1104
1115
  templateConfiguration: PromptTemplateConfigurationFilterSensitiveLog(obj.templateConfiguration)
1105
1116
  },
1106
- ...obj.inferenceConfiguration && { inferenceConfiguration: obj.inferenceConfiguration }
1117
+ ...obj.inferenceConfiguration && { inferenceConfiguration: obj.inferenceConfiguration },
1118
+ ...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
1107
1119
  }), "PromptVariantFilterSensitiveLog");
1108
1120
  var CreatePromptRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1109
1121
  ...obj,
@@ -3272,6 +3284,7 @@ var se_PromptOverrideConfiguration = /* @__PURE__ */ __name((input, context) =>
3272
3284
  var se_PromptVariant = /* @__PURE__ */ __name((input, context) => {
3273
3285
  return (0, import_smithy_client.take)(input, {
3274
3286
  inferenceConfiguration: (_) => se_PromptInferenceConfiguration(_, context),
3287
+ metadata: import_smithy_client._json,
3275
3288
  modelId: [],
3276
3289
  name: [],
3277
3290
  templateConfiguration: import_smithy_client._json,
@@ -3788,6 +3801,7 @@ var de_PromptSummary = /* @__PURE__ */ __name((output, context) => {
3788
3801
  var de_PromptVariant = /* @__PURE__ */ __name((output, context) => {
3789
3802
  return (0, import_smithy_client.take)(output, {
3790
3803
  inferenceConfiguration: (_) => de_PromptInferenceConfiguration((0, import_core2.awsExpectUnion)(_), context),
3804
+ metadata: import_smithy_client._json,
3791
3805
  modelId: import_smithy_client.expectString,
3792
3806
  name: import_smithy_client.expectString,
3793
3807
  templateConfiguration: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
@@ -4991,6 +5005,7 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
4991
5005
  ActionGroupState,
4992
5006
  APISchema,
4993
5007
  Type,
5008
+ RequireConfirmation,
4994
5009
  FunctionSchema,
4995
5010
  ActionGroupSignature,
4996
5011
  InternalServerException,
@@ -5092,6 +5107,7 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
5092
5107
  GetFlowResponseFilterSensitiveLog,
5093
5108
  UpdateFlowRequestFilterSensitiveLog,
5094
5109
  UpdateFlowResponseFilterSensitiveLog,
5110
+ PromptMetadataEntryFilterSensitiveLog,
5095
5111
  PromptVariantFilterSensitiveLog,
5096
5112
  CreatePromptRequestFilterSensitiveLog,
5097
5113
  CreatePromptResponseFilterSensitiveLog,
@@ -58,6 +58,10 @@ export const Type = {
58
58
  NUMBER: "number",
59
59
  STRING: "string",
60
60
  };
61
+ export const RequireConfirmation = {
62
+ DISABLED: "DISABLED",
63
+ ENABLED: "ENABLED",
64
+ };
61
65
  export var FunctionSchema;
62
66
  (function (FunctionSchema) {
63
67
  FunctionSchema.visit = (value, visitor) => {
@@ -679,12 +683,18 @@ export const UpdateFlowResponseFilterSensitiveLog = (obj) => ({
679
683
  ...obj,
680
684
  ...(obj.definition && { definition: FlowDefinitionFilterSensitiveLog(obj.definition) }),
681
685
  });
686
+ export const PromptMetadataEntryFilterSensitiveLog = (obj) => ({
687
+ ...obj,
688
+ ...(obj.key && { key: SENSITIVE_STRING }),
689
+ ...(obj.value && { value: SENSITIVE_STRING }),
690
+ });
682
691
  export const PromptVariantFilterSensitiveLog = (obj) => ({
683
692
  ...obj,
684
693
  ...(obj.templateConfiguration && {
685
694
  templateConfiguration: PromptTemplateConfigurationFilterSensitiveLog(obj.templateConfiguration),
686
695
  }),
687
696
  ...(obj.inferenceConfiguration && { inferenceConfiguration: obj.inferenceConfiguration }),
697
+ ...(obj.metadata && { metadata: SENSITIVE_STRING }),
688
698
  });
689
699
  export const CreatePromptRequestFilterSensitiveLog = (obj) => ({
690
700
  ...obj,
@@ -2085,6 +2085,7 @@ const se_PromptOverrideConfiguration = (input, context) => {
2085
2085
  const se_PromptVariant = (input, context) => {
2086
2086
  return take(input, {
2087
2087
  inferenceConfiguration: (_) => se_PromptInferenceConfiguration(_, context),
2088
+ metadata: _json,
2088
2089
  modelId: [],
2089
2090
  name: [],
2090
2091
  templateConfiguration: _json,
@@ -2633,6 +2634,7 @@ const de_PromptSummary = (output, context) => {
2633
2634
  const de_PromptVariant = (output, context) => {
2634
2635
  return take(output, {
2635
2636
  inferenceConfiguration: (_) => de_PromptInferenceConfiguration(__expectUnion(_), context),
2637
+ metadata: _json,
2636
2638
  modelId: __expectString,
2637
2639
  name: __expectString,
2638
2640
  templateConfiguration: (_) => _json(__expectUnion(_)),
@@ -70,6 +70,7 @@ declare const CreateAgentActionGroupCommand_base: {
70
70
  * required: true || false,
71
71
  * },
72
72
  * },
73
+ * requireConfirmation: "ENABLED" || "DISABLED",
73
74
  * },
74
75
  * ],
75
76
  * },
@@ -110,6 +111,7 @@ declare const CreateAgentActionGroupCommand_base: {
110
111
  * // required: true || false,
111
112
  * // },
112
113
  * // },
114
+ * // requireConfirmation: "ENABLED" || "DISABLED",
113
115
  * // },
114
116
  * // ],
115
117
  * // },
@@ -53,7 +53,10 @@ declare const CreateAgentCommand_base: {
53
53
  * For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html">Advanced prompts</a>.</p>
54
54
  * </li>
55
55
  * <li>
56
- * <p>If you agent fails to be created, the response returns a list of <code>failureReasons</code> alongside a list of <code>recommendedActions</code> for you to troubleshoot.</p>
56
+ * <p>If your agent fails to be created, the response returns a list of <code>failureReasons</code> alongside a list of <code>recommendedActions</code> for you to troubleshoot.</p>
57
+ * </li>
58
+ * <li>
59
+ * <p>The agent instructions will not be honored if your agent has only one knowledge base, uses default prompts, has no action group, and user input is disabled.</p>
57
60
  * </li>
58
61
  * </ul>
59
62
  * @example
@@ -65,6 +65,12 @@ declare const CreatePromptCommand_base: {
65
65
  * ],
66
66
  * },
67
67
  * },
68
+ * metadata: [ // PromptMetadataList
69
+ * { // PromptMetadataEntry
70
+ * key: "STRING_VALUE", // required
71
+ * value: "STRING_VALUE", // required
72
+ * },
73
+ * ],
68
74
  * },
69
75
  * ],
70
76
  * clientToken: "STRING_VALUE",
@@ -105,6 +111,12 @@ declare const CreatePromptCommand_base: {
105
111
  * // ],
106
112
  * // },
107
113
  * // },
114
+ * // metadata: [ // PromptMetadataList
115
+ * // { // PromptMetadataEntry
116
+ * // key: "STRING_VALUE", // required
117
+ * // value: "STRING_VALUE", // required
118
+ * // },
119
+ * // ],
108
120
  * // },
109
121
  * // ],
110
122
  * // id: "STRING_VALUE", // required
@@ -75,6 +75,12 @@ declare const CreatePromptVersionCommand_base: {
75
75
  * // ],
76
76
  * // },
77
77
  * // },
78
+ * // metadata: [ // PromptMetadataList
79
+ * // { // PromptMetadataEntry
80
+ * // key: "STRING_VALUE", // required
81
+ * // value: "STRING_VALUE", // required
82
+ * // },
83
+ * // ],
78
84
  * // },
79
85
  * // ],
80
86
  * // id: "STRING_VALUE", // required
@@ -27,7 +27,7 @@ declare const DeletePromptCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Deletes a prompt or a prompt version from the Prompt management tool. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-manage.html#prompt-management-delete.html">Delete prompts from the Prompt management tool</a> and <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-deploy.html#prompt-management-versions-delete.html">Delete a version of a prompt from the Prompt management tool</a> in the Amazon Bedrock User Guide.</p>
30
+ * <p>Deletes a prompt or a version of it, depending on whether you include the <code>promptVersion</code> field or not. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-manage.html#prompt-management-delete.html">Delete prompts from the Prompt management tool</a> and <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-deploy.html#prompt-management-versions-delete.html">Delete a version of a prompt from the Prompt management tool</a> in the Amazon Bedrock User Guide.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -75,6 +75,7 @@ declare const GetAgentActionGroupCommand_base: {
75
75
  * // required: true || false,
76
76
  * // },
77
77
  * // },
78
+ * // requireConfirmation: "ENABLED" || "DISABLED",
78
79
  * // },
79
80
  * // ],
80
81
  * // },
@@ -27,7 +27,7 @@ declare const GetPromptCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Retrieves information about a prompt or a version of it. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-manage.html#prompt-management-view.html">View information about prompts using Prompt management</a> and <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-deploy.html#prompt-management-versions-view.html">View information about a version of your prompt</a> in the Amazon Bedrock User Guide.</p>
30
+ * <p>Retrieves information about the working draft (<code>DRAFT</code> version) of a prompt or a version of it, depending on whether you include the <code>promptVersion</code> field or not. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-manage.html#prompt-management-view.html">View information about prompts using Prompt management</a> and <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-deploy.html#prompt-management-versions-view.html">View information about a version of your prompt</a> in the Amazon Bedrock User Guide.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -71,6 +71,12 @@ declare const GetPromptCommand_base: {
71
71
  * // ],
72
72
  * // },
73
73
  * // },
74
+ * // metadata: [ // PromptMetadataList
75
+ * // { // PromptMetadataEntry
76
+ * // key: "STRING_VALUE", // required
77
+ * // value: "STRING_VALUE", // required
78
+ * // },
79
+ * // ],
74
80
  * // },
75
81
  * // ],
76
82
  * // id: "STRING_VALUE", // required
@@ -27,7 +27,7 @@ declare const ListPromptsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Returns a list of prompts from the Prompt management tool and information about each prompt. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-manage.html#prompt-management-view.html">View information about prompts using Prompt management</a> in the Amazon Bedrock User Guide.</p>
30
+ * <p>Returns either information about the working draft (<code>DRAFT</code> version) of each prompt in an account, or information about of all versions of a prompt, depending on whether you include the <code>promptIdentifier</code> field or not. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-manage.html#prompt-management-view.html">View information about prompts using Prompt management</a> in the Amazon Bedrock User Guide.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -65,6 +65,7 @@ declare const UpdateAgentActionGroupCommand_base: {
65
65
  * required: true || false,
66
66
  * },
67
67
  * },
68
+ * requireConfirmation: "ENABLED" || "DISABLED",
68
69
  * },
69
70
  * ],
70
71
  * },
@@ -105,6 +106,7 @@ declare const UpdateAgentActionGroupCommand_base: {
105
106
  * // required: true || false,
106
107
  * // },
107
108
  * // },
109
+ * // requireConfirmation: "ENABLED" || "DISABLED",
108
110
  * // },
109
111
  * // ],
110
112
  * // },
@@ -65,6 +65,12 @@ declare const UpdatePromptCommand_base: {
65
65
  * ],
66
66
  * },
67
67
  * },
68
+ * metadata: [ // PromptMetadataList
69
+ * { // PromptMetadataEntry
70
+ * key: "STRING_VALUE", // required
71
+ * value: "STRING_VALUE", // required
72
+ * },
73
+ * ],
68
74
  * },
69
75
  * ],
70
76
  * promptIdentifier: "STRING_VALUE", // required
@@ -102,6 +108,12 @@ declare const UpdatePromptCommand_base: {
102
108
  * // ],
103
109
  * // },
104
110
  * // },
111
+ * // metadata: [ // PromptMetadataList
112
+ * // { // PromptMetadataEntry
113
+ * // key: "STRING_VALUE", // required
114
+ * // value: "STRING_VALUE", // required
115
+ * // },
116
+ * // ],
105
117
  * // },
106
118
  * // ],
107
119
  * // id: "STRING_VALUE", // required
@@ -211,6 +211,18 @@ export interface ParameterDetail {
211
211
  */
212
212
  required?: boolean;
213
213
  }
214
+ /**
215
+ * @public
216
+ * @enum
217
+ */
218
+ export declare const RequireConfirmation: {
219
+ readonly DISABLED: "DISABLED";
220
+ readonly ENABLED: "ENABLED";
221
+ };
222
+ /**
223
+ * @public
224
+ */
225
+ export type RequireConfirmation = (typeof RequireConfirmation)[keyof typeof RequireConfirmation];
214
226
  /**
215
227
  * <p>Defines parameters that the agent needs to invoke from the user to complete the function. Corresponds to an action in an action group.</p>
216
228
  * <p>This data type is used in the following API operations:</p>
@@ -259,6 +271,11 @@ export interface Function {
259
271
  * @public
260
272
  */
261
273
  parameters?: Record<string, ParameterDetail>;
274
+ /**
275
+ * <p>Contains information if user confirmation is required to invoke the function.</p>
276
+ * @public
277
+ */
278
+ requireConfirmation?: RequireConfirmation;
262
279
  }
263
280
  /**
264
281
  * <p>Defines functions that each define parameters that the agent needs to invoke from the user. Each function represents an action in an action group.</p>
@@ -2119,7 +2136,7 @@ export interface ConfluenceSourceConfiguration {
2119
2136
  authType: ConfluenceAuthType | undefined;
2120
2137
  /**
2121
2138
  * <p>The Amazon Resource Name of an Secrets Manager secret that
2122
- * stores your authentication credentials for your SharePoint site/sites.
2139
+ * stores your authentication credentials for your Confluence instance URL.
2123
2140
  * For more information on the key-value pairs that must be included in
2124
2141
  * your secret, depending on your authentication type, see
2125
2142
  * <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/confluence-data-source-connector.html#configuration-confluence-connector">Confluence connection configuration</a>.</p>
@@ -2209,7 +2226,7 @@ export interface SalesforceSourceConfiguration {
2209
2226
  authType: SalesforceAuthType | undefined;
2210
2227
  /**
2211
2228
  * <p>The Amazon Resource Name of an Secrets Manager secret that
2212
- * stores your authentication credentials for your SharePoint site/sites.
2229
+ * stores your authentication credentials for your Salesforce instance URL.
2213
2230
  * For more information on the key-value pairs that must be included in
2214
2231
  * your secret, depending on your authentication type, see
2215
2232
  * <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/salesforce-data-source-connector.html#configuration-salesforce-connector">Salesforce connection configuration</a>.</p>
@@ -2815,7 +2832,7 @@ export type ParsingStrategy = (typeof ParsingStrategy)[keyof typeof ParsingStrat
2815
2832
  * </p>
2816
2833
  * </li>
2817
2834
  * </ul>
2818
- * <p>You can get the ARN of a model with the action. Standard model usage
2835
+ * <p>You can get the ARN of a model with the <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListFoundationModels.html">ListFoundationModels</a> action. Standard model usage
2819
2836
  * charges apply for the foundation model parsing strategy.</p>
2820
2837
  * @public
2821
2838
  */
@@ -2887,14 +2904,16 @@ export interface CreateDataSourceRequest {
2887
2904
  * <p>You can set the data deletion policy to:</p>
2888
2905
  * <ul>
2889
2906
  * <li>
2890
- * <p>DELETE: Deletes all underlying data belonging to
2891
- * the data source from the vector store upon deletion of a knowledge base or data
2892
- * source resource. Note that the vector store itself is not deleted, only the
2893
- * underlying data. This flag is ignored if an Amazon Web Services account is deleted.</p>
2907
+ * <p>DELETE: Deletes all data from your data source that’s converted
2908
+ * into vector embeddings upon deletion of a knowledge base or data source resource.
2909
+ * Note that the <b>vector store itself is not deleted</b>,
2910
+ * only the data. This flag is ignored if an Amazon Web Services account is deleted.</p>
2894
2911
  * </li>
2895
2912
  * <li>
2896
- * <p>RETAIN: Retains all underlying data in your
2897
- * vector store upon deletion of a knowledge base or data source resource.</p>
2913
+ * <p>RETAIN: Retains all data from your data source that’s converted
2914
+ * into vector embeddings upon deletion of a knowledge base or data source resource.
2915
+ * Note that the <b>vector store itself is not deleted</b>
2916
+ * if you delete a knowledge base or data source resource.</p>
2898
2917
  * </li>
2899
2918
  * </ul>
2900
2919
  * @public
@@ -4400,7 +4419,7 @@ export interface GetFlowAliasRequest {
4400
4419
  */
4401
4420
  export interface GetFlowAliasResponse {
4402
4421
  /**
4403
- * <p>The name of the flow alias.</p>
4422
+ * <p>The name of the alias.</p>
4404
4423
  * @public
4405
4424
  */
4406
4425
  name: string | undefined;
@@ -4435,7 +4454,7 @@ export interface GetFlowAliasResponse {
4435
4454
  */
4436
4455
  createdAt: Date | undefined;
4437
4456
  /**
4438
- * <p>The time at which the flow alias was last updated.</p>
4457
+ * <p>The time at which the alias was last updated.</p>
4439
4458
  * @public
4440
4459
  */
4441
4460
  updatedAt: Date | undefined;
@@ -4499,7 +4518,7 @@ export interface FlowAliasSummary {
4499
4518
  */
4500
4519
  id: string | undefined;
4501
4520
  /**
4502
- * <p>The Amazon Resource Name (ARN) of the flow alias.</p>
4521
+ * <p>The Amazon Resource Name (ARN) of the alias.</p>
4503
4522
  * @public
4504
4523
  */
4505
4524
  arn: string | undefined;
@@ -4519,7 +4538,7 @@ export interface FlowAliasSummary {
4519
4538
  */
4520
4539
  export interface ListFlowAliasesResponse {
4521
4540
  /**
4522
- * <p>A list, each member of which contains information about a flow alias.</p>
4541
+ * <p>A list, each member of which contains information about an alias.</p>
4523
4542
  * @public
4524
4543
  */
4525
4544
  flowAliasSummaries: FlowAliasSummary[] | undefined;
@@ -4534,12 +4553,12 @@ export interface ListFlowAliasesResponse {
4534
4553
  */
4535
4554
  export interface UpdateFlowAliasRequest {
4536
4555
  /**
4537
- * <p>The name of the flow alias.</p>
4556
+ * <p>The name of the alias.</p>
4538
4557
  * @public
4539
4558
  */
4540
4559
  name: string | undefined;
4541
4560
  /**
4542
- * <p>A description for the flow alias.</p>
4561
+ * <p>A description for the alias.</p>
4543
4562
  * @public
4544
4563
  */
4545
4564
  description?: string;
@@ -4564,7 +4583,7 @@ export interface UpdateFlowAliasRequest {
4564
4583
  */
4565
4584
  export interface UpdateFlowAliasResponse {
4566
4585
  /**
4567
- * <p>The name of the flow alias.</p>
4586
+ * <p>The name of the alias.</p>
4568
4587
  * @public
4569
4588
  */
4570
4589
  name: string | undefined;
@@ -4599,7 +4618,7 @@ export interface UpdateFlowAliasResponse {
4599
4618
  */
4600
4619
  createdAt: Date | undefined;
4601
4620
  /**
4602
- * <p>The time at which the flow alias was last updated.</p>
4621
+ * <p>The time at which the alias was last updated.</p>
4603
4622
  * @public
4604
4623
  */
4605
4624
  updatedAt: Date | undefined;
@@ -4630,12 +4649,12 @@ export interface CreateFlowVersionRequest {
4630
4649
  */
4631
4650
  export interface CreateFlowVersionResponse {
4632
4651
  /**
4633
- * <p>The name of the flow version.</p>
4652
+ * <p>The name of the version.</p>
4634
4653
  * @public
4635
4654
  */
4636
4655
  name: string | undefined;
4637
4656
  /**
4638
- * <p>The description of the flow version.</p>
4657
+ * <p>The description of the version.</p>
4639
4658
  * @public
4640
4659
  */
4641
4660
  description?: string;
@@ -4735,7 +4754,7 @@ export interface GetFlowVersionRequest {
4735
4754
  */
4736
4755
  export interface GetFlowVersionResponse {
4737
4756
  /**
4738
- * <p>The name of the flow version.</p>
4757
+ * <p>The name of the version.</p>
4739
4758
  * @public
4740
4759
  */
4741
4760
  name: string | undefined;
@@ -4806,7 +4825,7 @@ export interface ListFlowVersionsRequest {
4806
4825
  nextToken?: string;
4807
4826
  }
4808
4827
  /**
4809
- * <p>Contains information about the flow version.</p>
4828
+ * <p>Contains information about a version of a flow.</p>
4810
4829
  * <p>This data type is used in the following API operations:</p>
4811
4830
  * <ul>
4812
4831
  * <li>
@@ -4834,7 +4853,7 @@ export interface FlowVersionSummary {
4834
4853
  */
4835
4854
  status: FlowStatus | undefined;
4836
4855
  /**
4837
- * <p>The time at the flow version was created.</p>
4856
+ * <p>The time at the version was created.</p>
4838
4857
  * @public
4839
4858
  */
4840
4859
  createdAt: Date | undefined;
@@ -6405,6 +6424,22 @@ export interface UpdateKnowledgeBaseResponse {
6405
6424
  */
6406
6425
  knowledgeBase: KnowledgeBase | undefined;
6407
6426
  }
6427
+ /**
6428
+ * <p>Contains a key-value pair that defines a metadata tag and value to attach to a prompt variant. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html">Create a prompt using Prompt management</a>.</p>
6429
+ * @public
6430
+ */
6431
+ export interface PromptMetadataEntry {
6432
+ /**
6433
+ * <p>The key of a metadata tag for a prompt variant.</p>
6434
+ * @public
6435
+ */
6436
+ key: string | undefined;
6437
+ /**
6438
+ * <p>The value of a metadata tag for a prompt variant.</p>
6439
+ * @public
6440
+ */
6441
+ value: string | undefined;
6442
+ }
6408
6443
  /**
6409
6444
  * <p>Contains details about a variant of the prompt.</p>
6410
6445
  * @public
@@ -6435,6 +6470,11 @@ export interface PromptVariant {
6435
6470
  * @public
6436
6471
  */
6437
6472
  inferenceConfiguration?: PromptInferenceConfiguration;
6473
+ /**
6474
+ * <p>An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html">Create a prompt using Prompt management</a>.</p>
6475
+ * @public
6476
+ */
6477
+ metadata?: PromptMetadataEntry[];
6438
6478
  }
6439
6479
  /**
6440
6480
  * @public
@@ -6563,12 +6603,12 @@ export interface CreatePromptVersionRequest {
6563
6603
  */
6564
6604
  export interface CreatePromptVersionResponse {
6565
6605
  /**
6566
- * <p>The name of the prompt version.</p>
6606
+ * <p>The name of the prompt.</p>
6567
6607
  * @public
6568
6608
  */
6569
6609
  name: string | undefined;
6570
6610
  /**
6571
- * <p>A description for the prompt version.</p>
6611
+ * <p>A description for the version.</p>
6572
6612
  * @public
6573
6613
  */
6574
6614
  description?: string;
@@ -6623,7 +6663,7 @@ export interface DeletePromptRequest {
6623
6663
  */
6624
6664
  promptIdentifier: string | undefined;
6625
6665
  /**
6626
- * <p>The version of the prompt to delete.</p>
6666
+ * <p>The version of the prompt to delete. To delete the prompt, omit this field.</p>
6627
6667
  * @public
6628
6668
  */
6629
6669
  promptVersion?: string;
@@ -6653,7 +6693,7 @@ export interface GetPromptRequest {
6653
6693
  */
6654
6694
  promptIdentifier: string | undefined;
6655
6695
  /**
6656
- * <p>The version of the prompt about which you want to retrieve information.</p>
6696
+ * <p>The version of the prompt about which you want to retrieve information. Omit this field to return information about the working draft of the prompt.</p>
6657
6697
  * @public
6658
6698
  */
6659
6699
  promptVersion?: string;
@@ -6693,7 +6733,7 @@ export interface GetPromptResponse {
6693
6733
  */
6694
6734
  id: string | undefined;
6695
6735
  /**
6696
- * <p>The Amazon Resource Name (ARN) of the prompt.</p>
6736
+ * <p>The Amazon Resource Name (ARN) of the prompt or the prompt version (if you specified a version in the request).</p>
6697
6737
  * @public
6698
6738
  */
6699
6739
  arn: string | undefined;
@@ -6718,7 +6758,7 @@ export interface GetPromptResponse {
6718
6758
  */
6719
6759
  export interface ListPromptsRequest {
6720
6760
  /**
6721
- * <p>The unique identifier of the prompt.</p>
6761
+ * <p>The unique identifier of the prompt for whose versions you want to return information. Omit this field to list information about all prompts in an account.</p>
6722
6762
  * @public
6723
6763
  */
6724
6764
  promptIdentifier?: string;
@@ -6762,7 +6802,7 @@ export interface PromptSummary {
6762
6802
  */
6763
6803
  id: string | undefined;
6764
6804
  /**
6765
- * <p>The Amazon Resource Name (ARN) of the prompt.</p>
6805
+ * <p>The Amazon Resource Name (ARN) of the prompt or the prompt version (if you specified a version in the request).</p>
6766
6806
  * @public
6767
6807
  */
6768
6808
  arn: string | undefined;
@@ -7259,6 +7299,10 @@ export declare const UpdateFlowRequestFilterSensitiveLog: (obj: UpdateFlowReques
7259
7299
  * @internal
7260
7300
  */
7261
7301
  export declare const UpdateFlowResponseFilterSensitiveLog: (obj: UpdateFlowResponse) => any;
7302
+ /**
7303
+ * @internal
7304
+ */
7305
+ export declare const PromptMetadataEntryFilterSensitiveLog: (obj: PromptMetadataEntry) => any;
7262
7306
  /**
7263
7307
  * @internal
7264
7308
  */
@@ -94,10 +94,17 @@ export interface ParameterDetail {
94
94
  type: Type | undefined;
95
95
  required?: boolean;
96
96
  }
97
+ export declare const RequireConfirmation: {
98
+ readonly DISABLED: "DISABLED";
99
+ readonly ENABLED: "ENABLED";
100
+ };
101
+ export type RequireConfirmation =
102
+ (typeof RequireConfirmation)[keyof typeof RequireConfirmation];
97
103
  export interface Function {
98
104
  name: string | undefined;
99
105
  description?: string;
100
106
  parameters?: Record<string, ParameterDetail>;
107
+ requireConfirmation?: RequireConfirmation;
101
108
  }
102
109
  export type FunctionSchema =
103
110
  | FunctionSchema.FunctionsMember
@@ -1887,12 +1894,17 @@ export interface UpdateKnowledgeBaseRequest {
1887
1894
  export interface UpdateKnowledgeBaseResponse {
1888
1895
  knowledgeBase: KnowledgeBase | undefined;
1889
1896
  }
1897
+ export interface PromptMetadataEntry {
1898
+ key: string | undefined;
1899
+ value: string | undefined;
1900
+ }
1890
1901
  export interface PromptVariant {
1891
1902
  name: string | undefined;
1892
1903
  templateType: PromptTemplateType | undefined;
1893
1904
  templateConfiguration?: PromptTemplateConfiguration;
1894
1905
  modelId?: string;
1895
1906
  inferenceConfiguration?: PromptInferenceConfiguration;
1907
+ metadata?: PromptMetadataEntry[];
1896
1908
  }
1897
1909
  export interface CreatePromptRequest {
1898
1910
  name: string | undefined;
@@ -2186,6 +2198,9 @@ export declare const UpdateFlowRequestFilterSensitiveLog: (
2186
2198
  export declare const UpdateFlowResponseFilterSensitiveLog: (
2187
2199
  obj: UpdateFlowResponse
2188
2200
  ) => any;
2201
+ export declare const PromptMetadataEntryFilterSensitiveLog: (
2202
+ obj: PromptMetadataEntry
2203
+ ) => any;
2189
2204
  export declare const PromptVariantFilterSensitiveLog: (
2190
2205
  obj: PromptVariant
2191
2206
  ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agent",
3
3
  "description": "AWS SDK for JavaScript Bedrock Agent Client for Node.js, Browser and React Native",
4
- "version": "3.637.0",
4
+ "version": "3.645.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-agent",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.637.0",
24
- "@aws-sdk/client-sts": "3.637.0",
23
+ "@aws-sdk/client-sso-oidc": "3.645.0",
24
+ "@aws-sdk/client-sts": "3.645.0",
25
25
  "@aws-sdk/core": "3.635.0",
26
- "@aws-sdk/credential-provider-node": "3.637.0",
26
+ "@aws-sdk/credential-provider-node": "3.645.0",
27
27
  "@aws-sdk/middleware-host-header": "3.620.0",
28
28
  "@aws-sdk/middleware-logger": "3.609.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.620.0",
30
- "@aws-sdk/middleware-user-agent": "3.637.0",
30
+ "@aws-sdk/middleware-user-agent": "3.645.0",
31
31
  "@aws-sdk/region-config-resolver": "3.614.0",
32
32
  "@aws-sdk/types": "3.609.0",
33
- "@aws-sdk/util-endpoints": "3.637.0",
33
+ "@aws-sdk/util-endpoints": "3.645.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.609.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.614.0",
36
36
  "@smithy/config-resolver": "^3.0.5",