@aws-sdk/client-bedrock-agent 3.478.0 → 3.479.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.
@@ -192,6 +192,7 @@ exports.KnowledgeBaseType = {
192
192
  exports.KnowledgeBaseStorageType = {
193
193
  OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
194
194
  PINECONE: "PINECONE",
195
+ RDS: "RDS",
195
196
  REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD",
196
197
  };
197
198
  exports.KnowledgeBaseStatus = {
@@ -182,6 +182,7 @@ export const KnowledgeBaseType = {
182
182
  export const KnowledgeBaseStorageType = {
183
183
  OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
184
184
  PINECONE: "PINECONE",
185
+ RDS: "RDS",
185
186
  REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD",
186
187
  };
187
188
  export const KnowledgeBaseStatus = {
@@ -42,7 +42,7 @@ export interface CreateKnowledgeBaseCommandOutput extends CreateKnowledgeBaseRes
42
42
  * },
43
43
  * },
44
44
  * storageConfiguration: { // StorageConfiguration
45
- * type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD", // required
45
+ * type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS", // required
46
46
  * opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
47
47
  * collectionArn: "STRING_VALUE", // required
48
48
  * vectorIndexName: "STRING_VALUE", // required
@@ -71,6 +71,18 @@ export interface CreateKnowledgeBaseCommandOutput extends CreateKnowledgeBaseRes
71
71
  * metadataField: "STRING_VALUE", // required
72
72
  * },
73
73
  * },
74
+ * rdsConfiguration: { // RdsConfiguration
75
+ * resourceArn: "STRING_VALUE", // required
76
+ * credentialsSecretArn: "STRING_VALUE", // required
77
+ * databaseName: "STRING_VALUE", // required
78
+ * tableName: "STRING_VALUE", // required
79
+ * fieldMapping: { // RdsFieldMapping
80
+ * primaryKeyField: "STRING_VALUE", // required
81
+ * vectorField: "STRING_VALUE", // required
82
+ * textField: "STRING_VALUE", // required
83
+ * metadataField: "STRING_VALUE", // required
84
+ * },
85
+ * },
74
86
  * },
75
87
  * tags: { // TagsMap
76
88
  * "<keys>": "STRING_VALUE",
@@ -92,7 +104,7 @@ export interface CreateKnowledgeBaseCommandOutput extends CreateKnowledgeBaseRes
92
104
  * // },
93
105
  * // },
94
106
  * // storageConfiguration: { // StorageConfiguration
95
- * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD", // required
107
+ * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS", // required
96
108
  * // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
97
109
  * // collectionArn: "STRING_VALUE", // required
98
110
  * // vectorIndexName: "STRING_VALUE", // required
@@ -121,6 +133,18 @@ export interface CreateKnowledgeBaseCommandOutput extends CreateKnowledgeBaseRes
121
133
  * // metadataField: "STRING_VALUE", // required
122
134
  * // },
123
135
  * // },
136
+ * // rdsConfiguration: { // RdsConfiguration
137
+ * // resourceArn: "STRING_VALUE", // required
138
+ * // credentialsSecretArn: "STRING_VALUE", // required
139
+ * // databaseName: "STRING_VALUE", // required
140
+ * // tableName: "STRING_VALUE", // required
141
+ * // fieldMapping: { // RdsFieldMapping
142
+ * // primaryKeyField: "STRING_VALUE", // required
143
+ * // vectorField: "STRING_VALUE", // required
144
+ * // textField: "STRING_VALUE", // required
145
+ * // metadataField: "STRING_VALUE", // required
146
+ * // },
147
+ * // },
124
148
  * // },
125
149
  * // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED", // required
126
150
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -49,7 +49,7 @@ export interface GetKnowledgeBaseCommandOutput extends GetKnowledgeBaseResponse,
49
49
  * // },
50
50
  * // },
51
51
  * // storageConfiguration: { // StorageConfiguration
52
- * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD", // required
52
+ * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS", // required
53
53
  * // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
54
54
  * // collectionArn: "STRING_VALUE", // required
55
55
  * // vectorIndexName: "STRING_VALUE", // required
@@ -78,6 +78,18 @@ export interface GetKnowledgeBaseCommandOutput extends GetKnowledgeBaseResponse,
78
78
  * // metadataField: "STRING_VALUE", // required
79
79
  * // },
80
80
  * // },
81
+ * // rdsConfiguration: { // RdsConfiguration
82
+ * // resourceArn: "STRING_VALUE", // required
83
+ * // credentialsSecretArn: "STRING_VALUE", // required
84
+ * // databaseName: "STRING_VALUE", // required
85
+ * // tableName: "STRING_VALUE", // required
86
+ * // fieldMapping: { // RdsFieldMapping
87
+ * // primaryKeyField: "STRING_VALUE", // required
88
+ * // vectorField: "STRING_VALUE", // required
89
+ * // textField: "STRING_VALUE", // required
90
+ * // metadataField: "STRING_VALUE", // required
91
+ * // },
92
+ * // },
81
93
  * // },
82
94
  * // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED", // required
83
95
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -42,7 +42,7 @@ export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseRes
42
42
  * },
43
43
  * },
44
44
  * storageConfiguration: { // StorageConfiguration
45
- * type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD", // required
45
+ * type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS", // required
46
46
  * opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
47
47
  * collectionArn: "STRING_VALUE", // required
48
48
  * vectorIndexName: "STRING_VALUE", // required
@@ -71,6 +71,18 @@ export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseRes
71
71
  * metadataField: "STRING_VALUE", // required
72
72
  * },
73
73
  * },
74
+ * rdsConfiguration: { // RdsConfiguration
75
+ * resourceArn: "STRING_VALUE", // required
76
+ * credentialsSecretArn: "STRING_VALUE", // required
77
+ * databaseName: "STRING_VALUE", // required
78
+ * tableName: "STRING_VALUE", // required
79
+ * fieldMapping: { // RdsFieldMapping
80
+ * primaryKeyField: "STRING_VALUE", // required
81
+ * vectorField: "STRING_VALUE", // required
82
+ * textField: "STRING_VALUE", // required
83
+ * metadataField: "STRING_VALUE", // required
84
+ * },
85
+ * },
74
86
  * },
75
87
  * };
76
88
  * const command = new UpdateKnowledgeBaseCommand(input);
@@ -89,7 +101,7 @@ export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseRes
89
101
  * // },
90
102
  * // },
91
103
  * // storageConfiguration: { // StorageConfiguration
92
- * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD", // required
104
+ * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS", // required
93
105
  * // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
94
106
  * // collectionArn: "STRING_VALUE", // required
95
107
  * // vectorIndexName: "STRING_VALUE", // required
@@ -118,6 +130,18 @@ export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseRes
118
130
  * // metadataField: "STRING_VALUE", // required
119
131
  * // },
120
132
  * // },
133
+ * // rdsConfiguration: { // RdsConfiguration
134
+ * // resourceArn: "STRING_VALUE", // required
135
+ * // credentialsSecretArn: "STRING_VALUE", // required
136
+ * // databaseName: "STRING_VALUE", // required
137
+ * // tableName: "STRING_VALUE", // required
138
+ * // fieldMapping: { // RdsFieldMapping
139
+ * // primaryKeyField: "STRING_VALUE", // required
140
+ * // vectorField: "STRING_VALUE", // required
141
+ * // textField: "STRING_VALUE", // required
142
+ * // metadataField: "STRING_VALUE", // required
143
+ * // },
144
+ * // },
121
145
  * // },
122
146
  * // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED", // required
123
147
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -2518,6 +2518,63 @@ export interface PineconeConfiguration {
2518
2518
  */
2519
2519
  fieldMapping: PineconeFieldMapping | undefined;
2520
2520
  }
2521
+ /**
2522
+ * @public
2523
+ * A mapping of Bedrock Knowledge Base fields to RDS column names
2524
+ */
2525
+ export interface RdsFieldMapping {
2526
+ /**
2527
+ * @public
2528
+ * Name of the column
2529
+ */
2530
+ primaryKeyField: string | undefined;
2531
+ /**
2532
+ * @public
2533
+ * Name of the column
2534
+ */
2535
+ vectorField: string | undefined;
2536
+ /**
2537
+ * @public
2538
+ * Name of the column
2539
+ */
2540
+ textField: string | undefined;
2541
+ /**
2542
+ * @public
2543
+ * Name of the column
2544
+ */
2545
+ metadataField: string | undefined;
2546
+ }
2547
+ /**
2548
+ * @public
2549
+ * Contains the configurations to use RDS to store knowledge base data.
2550
+ */
2551
+ export interface RdsConfiguration {
2552
+ /**
2553
+ * @public
2554
+ * Arn of a RDS Resource.
2555
+ */
2556
+ resourceArn: string | undefined;
2557
+ /**
2558
+ * @public
2559
+ * Arn of a SecretsManager Secret.
2560
+ */
2561
+ credentialsSecretArn: string | undefined;
2562
+ /**
2563
+ * @public
2564
+ * Name of the database within RDS
2565
+ */
2566
+ databaseName: string | undefined;
2567
+ /**
2568
+ * @public
2569
+ * Name of the table within RDS
2570
+ */
2571
+ tableName: string | undefined;
2572
+ /**
2573
+ * @public
2574
+ * A mapping of Bedrock Knowledge Base fields to RDS column names
2575
+ */
2576
+ fieldMapping: RdsFieldMapping | undefined;
2577
+ }
2521
2578
  /**
2522
2579
  * @public
2523
2580
  * A mapping of Bedrock Knowledge Base fields to Redis Cloud field names
@@ -2572,6 +2629,7 @@ export interface RedisEnterpriseCloudConfiguration {
2572
2629
  export declare const KnowledgeBaseStorageType: {
2573
2630
  readonly OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS";
2574
2631
  readonly PINECONE: "PINECONE";
2632
+ readonly RDS: "RDS";
2575
2633
  readonly REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD";
2576
2634
  };
2577
2635
  /**
@@ -2603,6 +2661,11 @@ export interface StorageConfiguration {
2603
2661
  * Contains the configurations to use Redis Enterprise Cloud to store knowledge base data.
2604
2662
  */
2605
2663
  redisEnterpriseCloudConfiguration?: RedisEnterpriseCloudConfiguration;
2664
+ /**
2665
+ * @public
2666
+ * Contains the configurations to use RDS to store knowledge base data.
2667
+ */
2668
+ rdsConfiguration?: RdsConfiguration;
2606
2669
  }
2607
2670
  /**
2608
2671
  * @public
@@ -698,6 +698,19 @@ export interface PineconeConfiguration {
698
698
  namespace?: string;
699
699
  fieldMapping: PineconeFieldMapping | undefined;
700
700
  }
701
+ export interface RdsFieldMapping {
702
+ primaryKeyField: string | undefined;
703
+ vectorField: string | undefined;
704
+ textField: string | undefined;
705
+ metadataField: string | undefined;
706
+ }
707
+ export interface RdsConfiguration {
708
+ resourceArn: string | undefined;
709
+ credentialsSecretArn: string | undefined;
710
+ databaseName: string | undefined;
711
+ tableName: string | undefined;
712
+ fieldMapping: RdsFieldMapping | undefined;
713
+ }
701
714
  export interface RedisEnterpriseCloudFieldMapping {
702
715
  vectorField: string | undefined;
703
716
  textField: string | undefined;
@@ -712,6 +725,7 @@ export interface RedisEnterpriseCloudConfiguration {
712
725
  export declare const KnowledgeBaseStorageType: {
713
726
  readonly OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS";
714
727
  readonly PINECONE: "PINECONE";
728
+ readonly RDS: "RDS";
715
729
  readonly REDIS_ENTERPRISE_CLOUD: "REDIS_ENTERPRISE_CLOUD";
716
730
  };
717
731
  export type KnowledgeBaseStorageType =
@@ -721,6 +735,7 @@ export interface StorageConfiguration {
721
735
  opensearchServerlessConfiguration?: OpenSearchServerlessConfiguration;
722
736
  pineconeConfiguration?: PineconeConfiguration;
723
737
  redisEnterpriseCloudConfiguration?: RedisEnterpriseCloudConfiguration;
738
+ rdsConfiguration?: RdsConfiguration;
724
739
  }
725
740
  export interface CreateKnowledgeBaseRequest {
726
741
  clientToken?: string;
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.478.0",
4
+ "version": "3.479.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",