@aws-sdk/client-bedrock-agent 3.703.0 → 3.706.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/README.md +40 -0
- package/dist-cjs/index.js +559 -88
- package/dist-es/BedrockAgent.js +10 -0
- package/dist-es/commands/AssociateAgentCollaboratorCommand.js +23 -0
- package/dist-es/commands/CreateKnowledgeBaseCommand.js +2 -1
- package/dist-es/commands/DisassociateAgentCollaboratorCommand.js +22 -0
- package/dist-es/commands/GetAgentCollaboratorCommand.js +23 -0
- package/dist-es/commands/GetKnowledgeBaseCommand.js +2 -1
- package/dist-es/commands/IngestKnowledgeBaseDocumentsCommand.js +1 -1
- package/dist-es/commands/ListAgentCollaboratorsCommand.js +23 -0
- package/dist-es/commands/UpdateAgentCollaboratorCommand.js +23 -0
- package/dist-es/commands/UpdateKnowledgeBaseCommand.js +2 -1
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +48 -57
- package/dist-es/models/models_1.js +142 -1
- package/dist-es/pagination/ListAgentCollaboratorsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +184 -0
- package/dist-types/BedrockAgent.d.ts +35 -0
- package/dist-types/BedrockAgentClient.d.ts +7 -2
- package/dist-types/commands/AssociateAgentCollaboratorCommand.d.ts +113 -0
- package/dist-types/commands/CreateAgentCommand.d.ts +4 -0
- package/dist-types/commands/CreateDataSourceCommand.d.ts +12 -4
- package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +150 -2
- package/dist-types/commands/DisassociateAgentCollaboratorCommand.d.ts +89 -0
- package/dist-types/commands/GetAgentCollaboratorCommand.d.ts +101 -0
- package/dist-types/commands/GetAgentCommand.d.ts +2 -0
- package/dist-types/commands/GetAgentVersionCommand.d.ts +2 -0
- package/dist-types/commands/GetDataSourceCommand.d.ts +6 -2
- package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +75 -1
- package/dist-types/commands/IngestKnowledgeBaseDocumentsCommand.d.ts +1 -1
- package/dist-types/commands/ListAgentCollaboratorsCommand.d.ts +104 -0
- package/dist-types/commands/ListKnowledgeBaseDocumentsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAgentCollaboratorCommand.d.ts +113 -0
- package/dist-types/commands/UpdateAgentCommand.d.ts +4 -0
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +12 -4
- package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +150 -2
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +434 -356
- package/dist-types/models/models_1.d.ts +802 -18
- package/dist-types/pagination/ListAgentCollaboratorsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/BedrockAgent.d.ts +85 -0
- package/dist-types/ts3.4/BedrockAgentClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/AssociateAgentCollaboratorCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisassociateAgentCollaboratorCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAgentCollaboratorCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/IngestKnowledgeBaseDocumentsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAgentCollaboratorsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListKnowledgeBaseDocumentsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAgentCollaboratorCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +130 -112
- package/dist-types/ts3.4/models/models_1.d.ts +283 -3
- package/dist-types/ts3.4/pagination/ListAgentCollaboratorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +1 -1
|
@@ -43,7 +43,7 @@ declare const CreateDataSourceCommand_base: {
|
|
|
43
43
|
* name: "STRING_VALUE", // required
|
|
44
44
|
* description: "STRING_VALUE",
|
|
45
45
|
* dataSourceConfiguration: { // DataSourceConfiguration
|
|
46
|
-
* type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT" || "CUSTOM", // required
|
|
46
|
+
* type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT" || "CUSTOM" || "REDSHIFT_METADATA", // required
|
|
47
47
|
* s3Configuration: { // S3DataSourceConfiguration
|
|
48
48
|
* bucketArn: "STRING_VALUE", // required
|
|
49
49
|
* inclusionPrefixes: [ // S3Prefixes
|
|
@@ -193,12 +193,16 @@ declare const CreateDataSourceCommand_base: {
|
|
|
193
193
|
* ],
|
|
194
194
|
* },
|
|
195
195
|
* parsingConfiguration: { // ParsingConfiguration
|
|
196
|
-
* parsingStrategy: "BEDROCK_FOUNDATION_MODEL", // required
|
|
196
|
+
* parsingStrategy: "BEDROCK_FOUNDATION_MODEL" || "BEDROCK_DATA_AUTOMATION", // required
|
|
197
197
|
* bedrockFoundationModelConfiguration: { // BedrockFoundationModelConfiguration
|
|
198
198
|
* modelArn: "STRING_VALUE", // required
|
|
199
199
|
* parsingPrompt: { // ParsingPrompt
|
|
200
200
|
* parsingPromptText: "STRING_VALUE", // required
|
|
201
201
|
* },
|
|
202
|
+
* parsingModality: "MULTIMODAL",
|
|
203
|
+
* },
|
|
204
|
+
* bedrockDataAutomationConfiguration: { // BedrockDataAutomationConfiguration
|
|
205
|
+
* parsingModality: "MULTIMODAL",
|
|
202
206
|
* },
|
|
203
207
|
* },
|
|
204
208
|
* },
|
|
@@ -213,7 +217,7 @@ declare const CreateDataSourceCommand_base: {
|
|
|
213
217
|
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
|
|
214
218
|
* // description: "STRING_VALUE",
|
|
215
219
|
* // dataSourceConfiguration: { // DataSourceConfiguration
|
|
216
|
-
* // type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT" || "CUSTOM", // required
|
|
220
|
+
* // type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT" || "CUSTOM" || "REDSHIFT_METADATA", // required
|
|
217
221
|
* // s3Configuration: { // S3DataSourceConfiguration
|
|
218
222
|
* // bucketArn: "STRING_VALUE", // required
|
|
219
223
|
* // inclusionPrefixes: [ // S3Prefixes
|
|
@@ -362,12 +366,16 @@ declare const CreateDataSourceCommand_base: {
|
|
|
362
366
|
* // ],
|
|
363
367
|
* // },
|
|
364
368
|
* // parsingConfiguration: { // ParsingConfiguration
|
|
365
|
-
* // parsingStrategy: "BEDROCK_FOUNDATION_MODEL", // required
|
|
369
|
+
* // parsingStrategy: "BEDROCK_FOUNDATION_MODEL" || "BEDROCK_DATA_AUTOMATION", // required
|
|
366
370
|
* // bedrockFoundationModelConfiguration: { // BedrockFoundationModelConfiguration
|
|
367
371
|
* // modelArn: "STRING_VALUE", // required
|
|
368
372
|
* // parsingPrompt: { // ParsingPrompt
|
|
369
373
|
* // parsingPromptText: "STRING_VALUE", // required
|
|
370
374
|
* // },
|
|
375
|
+
* // parsingModality: "MULTIMODAL",
|
|
376
|
+
* // },
|
|
377
|
+
* // bedrockDataAutomationConfiguration: { // BedrockDataAutomationConfiguration
|
|
378
|
+
* // parsingModality: "MULTIMODAL",
|
|
371
379
|
* // },
|
|
372
380
|
* // },
|
|
373
381
|
* // },
|
|
@@ -71,7 +71,7 @@ declare const CreateKnowledgeBaseCommand_base: {
|
|
|
71
71
|
* description: "STRING_VALUE",
|
|
72
72
|
* roleArn: "STRING_VALUE", // required
|
|
73
73
|
* knowledgeBaseConfiguration: { // KnowledgeBaseConfiguration
|
|
74
|
-
* type: "VECTOR", // required
|
|
74
|
+
* type: "VECTOR" || "KENDRA" || "SQL", // required
|
|
75
75
|
* vectorKnowledgeBaseConfiguration: { // VectorKnowledgeBaseConfiguration
|
|
76
76
|
* embeddingModelArn: "STRING_VALUE", // required
|
|
77
77
|
* embeddingModelConfiguration: { // EmbeddingModelConfiguration
|
|
@@ -80,6 +80,80 @@ declare const CreateKnowledgeBaseCommand_base: {
|
|
|
80
80
|
* embeddingDataType: "FLOAT32" || "BINARY",
|
|
81
81
|
* },
|
|
82
82
|
* },
|
|
83
|
+
* supplementalDataStorageConfiguration: { // SupplementalDataStorageConfiguration
|
|
84
|
+
* storageLocations: [ // SupplementalDataStorageLocations // required
|
|
85
|
+
* { // SupplementalDataStorageLocation
|
|
86
|
+
* type: "S3", // required
|
|
87
|
+
* s3Location: { // S3Location
|
|
88
|
+
* uri: "STRING_VALUE", // required
|
|
89
|
+
* },
|
|
90
|
+
* },
|
|
91
|
+
* ],
|
|
92
|
+
* },
|
|
93
|
+
* },
|
|
94
|
+
* kendraKnowledgeBaseConfiguration: { // KendraKnowledgeBaseConfiguration
|
|
95
|
+
* kendraIndexArn: "STRING_VALUE", // required
|
|
96
|
+
* },
|
|
97
|
+
* sqlKnowledgeBaseConfiguration: { // SqlKnowledgeBaseConfiguration
|
|
98
|
+
* type: "REDSHIFT", // required
|
|
99
|
+
* redshiftConfiguration: { // RedshiftConfiguration
|
|
100
|
+
* storageConfigurations: [ // RedshiftQueryEngineStorageConfigurations // required
|
|
101
|
+
* { // RedshiftQueryEngineStorageConfiguration
|
|
102
|
+
* type: "REDSHIFT" || "AWS_DATA_CATALOG", // required
|
|
103
|
+
* awsDataCatalogConfiguration: { // RedshiftQueryEngineAwsDataCatalogStorageConfiguration
|
|
104
|
+
* tableNames: [ // AwsDataCatalogTableNames // required
|
|
105
|
+
* "STRING_VALUE",
|
|
106
|
+
* ],
|
|
107
|
+
* },
|
|
108
|
+
* redshiftConfiguration: { // RedshiftQueryEngineRedshiftStorageConfiguration
|
|
109
|
+
* databaseName: "STRING_VALUE", // required
|
|
110
|
+
* },
|
|
111
|
+
* },
|
|
112
|
+
* ],
|
|
113
|
+
* queryEngineConfiguration: { // RedshiftQueryEngineConfiguration
|
|
114
|
+
* type: "SERVERLESS" || "PROVISIONED", // required
|
|
115
|
+
* serverlessConfiguration: { // RedshiftServerlessConfiguration
|
|
116
|
+
* workgroupArn: "STRING_VALUE", // required
|
|
117
|
+
* authConfiguration: { // RedshiftServerlessAuthConfiguration
|
|
118
|
+
* type: "IAM" || "USERNAME_PASSWORD", // required
|
|
119
|
+
* usernamePasswordSecretArn: "STRING_VALUE",
|
|
120
|
+
* },
|
|
121
|
+
* },
|
|
122
|
+
* provisionedConfiguration: { // RedshiftProvisionedConfiguration
|
|
123
|
+
* clusterIdentifier: "STRING_VALUE", // required
|
|
124
|
+
* authConfiguration: { // RedshiftProvisionedAuthConfiguration
|
|
125
|
+
* type: "IAM" || "USERNAME_PASSWORD" || "USERNAME", // required
|
|
126
|
+
* databaseUser: "STRING_VALUE",
|
|
127
|
+
* usernamePasswordSecretArn: "STRING_VALUE",
|
|
128
|
+
* },
|
|
129
|
+
* },
|
|
130
|
+
* },
|
|
131
|
+
* queryGenerationConfiguration: { // QueryGenerationConfiguration
|
|
132
|
+
* executionTimeoutSeconds: Number("int"),
|
|
133
|
+
* generationContext: { // QueryGenerationContext
|
|
134
|
+
* tables: [ // QueryGenerationTables
|
|
135
|
+
* { // QueryGenerationTable
|
|
136
|
+
* name: "STRING_VALUE", // required
|
|
137
|
+
* description: "STRING_VALUE",
|
|
138
|
+
* inclusion: "INCLUDE" || "EXCLUDE",
|
|
139
|
+
* columns: [ // QueryGenerationColumns
|
|
140
|
+
* { // QueryGenerationColumn
|
|
141
|
+
* name: "STRING_VALUE",
|
|
142
|
+
* description: "STRING_VALUE",
|
|
143
|
+
* inclusion: "INCLUDE" || "EXCLUDE",
|
|
144
|
+
* },
|
|
145
|
+
* ],
|
|
146
|
+
* },
|
|
147
|
+
* ],
|
|
148
|
+
* curatedQueries: [ // CuratedQueries
|
|
149
|
+
* { // CuratedQuery
|
|
150
|
+
* naturalLanguage: "STRING_VALUE", // required
|
|
151
|
+
* sql: "STRING_VALUE", // required
|
|
152
|
+
* },
|
|
153
|
+
* ],
|
|
154
|
+
* },
|
|
155
|
+
* },
|
|
156
|
+
* },
|
|
83
157
|
* },
|
|
84
158
|
* },
|
|
85
159
|
* storageConfiguration: { // StorageConfiguration
|
|
@@ -152,7 +226,7 @@ declare const CreateKnowledgeBaseCommand_base: {
|
|
|
152
226
|
* // description: "STRING_VALUE",
|
|
153
227
|
* // roleArn: "STRING_VALUE", // required
|
|
154
228
|
* // knowledgeBaseConfiguration: { // KnowledgeBaseConfiguration
|
|
155
|
-
* // type: "VECTOR", // required
|
|
229
|
+
* // type: "VECTOR" || "KENDRA" || "SQL", // required
|
|
156
230
|
* // vectorKnowledgeBaseConfiguration: { // VectorKnowledgeBaseConfiguration
|
|
157
231
|
* // embeddingModelArn: "STRING_VALUE", // required
|
|
158
232
|
* // embeddingModelConfiguration: { // EmbeddingModelConfiguration
|
|
@@ -161,6 +235,80 @@ declare const CreateKnowledgeBaseCommand_base: {
|
|
|
161
235
|
* // embeddingDataType: "FLOAT32" || "BINARY",
|
|
162
236
|
* // },
|
|
163
237
|
* // },
|
|
238
|
+
* // supplementalDataStorageConfiguration: { // SupplementalDataStorageConfiguration
|
|
239
|
+
* // storageLocations: [ // SupplementalDataStorageLocations // required
|
|
240
|
+
* // { // SupplementalDataStorageLocation
|
|
241
|
+
* // type: "S3", // required
|
|
242
|
+
* // s3Location: { // S3Location
|
|
243
|
+
* // uri: "STRING_VALUE", // required
|
|
244
|
+
* // },
|
|
245
|
+
* // },
|
|
246
|
+
* // ],
|
|
247
|
+
* // },
|
|
248
|
+
* // },
|
|
249
|
+
* // kendraKnowledgeBaseConfiguration: { // KendraKnowledgeBaseConfiguration
|
|
250
|
+
* // kendraIndexArn: "STRING_VALUE", // required
|
|
251
|
+
* // },
|
|
252
|
+
* // sqlKnowledgeBaseConfiguration: { // SqlKnowledgeBaseConfiguration
|
|
253
|
+
* // type: "REDSHIFT", // required
|
|
254
|
+
* // redshiftConfiguration: { // RedshiftConfiguration
|
|
255
|
+
* // storageConfigurations: [ // RedshiftQueryEngineStorageConfigurations // required
|
|
256
|
+
* // { // RedshiftQueryEngineStorageConfiguration
|
|
257
|
+
* // type: "REDSHIFT" || "AWS_DATA_CATALOG", // required
|
|
258
|
+
* // awsDataCatalogConfiguration: { // RedshiftQueryEngineAwsDataCatalogStorageConfiguration
|
|
259
|
+
* // tableNames: [ // AwsDataCatalogTableNames // required
|
|
260
|
+
* // "STRING_VALUE",
|
|
261
|
+
* // ],
|
|
262
|
+
* // },
|
|
263
|
+
* // redshiftConfiguration: { // RedshiftQueryEngineRedshiftStorageConfiguration
|
|
264
|
+
* // databaseName: "STRING_VALUE", // required
|
|
265
|
+
* // },
|
|
266
|
+
* // },
|
|
267
|
+
* // ],
|
|
268
|
+
* // queryEngineConfiguration: { // RedshiftQueryEngineConfiguration
|
|
269
|
+
* // type: "SERVERLESS" || "PROVISIONED", // required
|
|
270
|
+
* // serverlessConfiguration: { // RedshiftServerlessConfiguration
|
|
271
|
+
* // workgroupArn: "STRING_VALUE", // required
|
|
272
|
+
* // authConfiguration: { // RedshiftServerlessAuthConfiguration
|
|
273
|
+
* // type: "IAM" || "USERNAME_PASSWORD", // required
|
|
274
|
+
* // usernamePasswordSecretArn: "STRING_VALUE",
|
|
275
|
+
* // },
|
|
276
|
+
* // },
|
|
277
|
+
* // provisionedConfiguration: { // RedshiftProvisionedConfiguration
|
|
278
|
+
* // clusterIdentifier: "STRING_VALUE", // required
|
|
279
|
+
* // authConfiguration: { // RedshiftProvisionedAuthConfiguration
|
|
280
|
+
* // type: "IAM" || "USERNAME_PASSWORD" || "USERNAME", // required
|
|
281
|
+
* // databaseUser: "STRING_VALUE",
|
|
282
|
+
* // usernamePasswordSecretArn: "STRING_VALUE",
|
|
283
|
+
* // },
|
|
284
|
+
* // },
|
|
285
|
+
* // },
|
|
286
|
+
* // queryGenerationConfiguration: { // QueryGenerationConfiguration
|
|
287
|
+
* // executionTimeoutSeconds: Number("int"),
|
|
288
|
+
* // generationContext: { // QueryGenerationContext
|
|
289
|
+
* // tables: [ // QueryGenerationTables
|
|
290
|
+
* // { // QueryGenerationTable
|
|
291
|
+
* // name: "STRING_VALUE", // required
|
|
292
|
+
* // description: "STRING_VALUE",
|
|
293
|
+
* // inclusion: "INCLUDE" || "EXCLUDE",
|
|
294
|
+
* // columns: [ // QueryGenerationColumns
|
|
295
|
+
* // { // QueryGenerationColumn
|
|
296
|
+
* // name: "STRING_VALUE",
|
|
297
|
+
* // description: "STRING_VALUE",
|
|
298
|
+
* // inclusion: "INCLUDE" || "EXCLUDE",
|
|
299
|
+
* // },
|
|
300
|
+
* // ],
|
|
301
|
+
* // },
|
|
302
|
+
* // ],
|
|
303
|
+
* // curatedQueries: [ // CuratedQueries
|
|
304
|
+
* // { // CuratedQuery
|
|
305
|
+
* // naturalLanguage: "STRING_VALUE", // required
|
|
306
|
+
* // sql: "STRING_VALUE", // required
|
|
307
|
+
* // },
|
|
308
|
+
* // ],
|
|
309
|
+
* // },
|
|
310
|
+
* // },
|
|
311
|
+
* // },
|
|
164
312
|
* // },
|
|
165
313
|
* // },
|
|
166
314
|
* // storageConfiguration: { // StorageConfiguration
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
|
|
4
|
+
import { DisassociateAgentCollaboratorRequest, DisassociateAgentCollaboratorResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DisassociateAgentCollaboratorCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DisassociateAgentCollaboratorCommandInput extends DisassociateAgentCollaboratorRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DisassociateAgentCollaboratorCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DisassociateAgentCollaboratorCommandOutput extends DisassociateAgentCollaboratorResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DisassociateAgentCollaboratorCommand_base: {
|
|
25
|
+
new (input: DisassociateAgentCollaboratorCommandInput): import("@smithy/smithy-client").CommandImpl<DisassociateAgentCollaboratorCommandInput, DisassociateAgentCollaboratorCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DisassociateAgentCollaboratorCommandInput): import("@smithy/smithy-client").CommandImpl<DisassociateAgentCollaboratorCommandInput, DisassociateAgentCollaboratorCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Disassociates an agent collaborator.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentClient, DisassociateAgentCollaboratorCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentClient, DisassociateAgentCollaboratorCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
36
|
+
* const client = new BedrockAgentClient(config);
|
|
37
|
+
* const input = { // DisassociateAgentCollaboratorRequest
|
|
38
|
+
* agentId: "STRING_VALUE", // required
|
|
39
|
+
* agentVersion: "STRING_VALUE", // required
|
|
40
|
+
* collaboratorId: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new DisassociateAgentCollaboratorCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // {};
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param DisassociateAgentCollaboratorCommandInput - {@link DisassociateAgentCollaboratorCommandInput}
|
|
49
|
+
* @returns {@link DisassociateAgentCollaboratorCommandOutput}
|
|
50
|
+
* @see {@link DisassociateAgentCollaboratorCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link DisassociateAgentCollaboratorCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
55
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ConflictException} (client fault)
|
|
58
|
+
* <p>There was a conflict performing an operation.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link InternalServerException} (server fault)
|
|
61
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
64
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
67
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ValidationException} (client fault)
|
|
70
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link BedrockAgentServiceException}
|
|
73
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
74
|
+
*
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
export declare class DisassociateAgentCollaboratorCommand extends DisassociateAgentCollaboratorCommand_base {
|
|
78
|
+
/** @internal type navigation helper, not in runtime. */
|
|
79
|
+
protected static __types: {
|
|
80
|
+
api: {
|
|
81
|
+
input: DisassociateAgentCollaboratorRequest;
|
|
82
|
+
output: {};
|
|
83
|
+
};
|
|
84
|
+
sdk: {
|
|
85
|
+
input: DisassociateAgentCollaboratorCommandInput;
|
|
86
|
+
output: DisassociateAgentCollaboratorCommandOutput;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
|
|
4
|
+
import { GetAgentCollaboratorRequest, GetAgentCollaboratorResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetAgentCollaboratorCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetAgentCollaboratorCommandInput extends GetAgentCollaboratorRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetAgentCollaboratorCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetAgentCollaboratorCommandOutput extends GetAgentCollaboratorResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetAgentCollaboratorCommand_base: {
|
|
25
|
+
new (input: GetAgentCollaboratorCommandInput): import("@smithy/smithy-client").CommandImpl<GetAgentCollaboratorCommandInput, GetAgentCollaboratorCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetAgentCollaboratorCommandInput): import("@smithy/smithy-client").CommandImpl<GetAgentCollaboratorCommandInput, GetAgentCollaboratorCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves information about an agent's collaborator.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentClient, GetAgentCollaboratorCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentClient, GetAgentCollaboratorCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
36
|
+
* const client = new BedrockAgentClient(config);
|
|
37
|
+
* const input = { // GetAgentCollaboratorRequest
|
|
38
|
+
* agentId: "STRING_VALUE", // required
|
|
39
|
+
* agentVersion: "STRING_VALUE", // required
|
|
40
|
+
* collaboratorId: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetAgentCollaboratorCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetAgentCollaboratorResponse
|
|
45
|
+
* // agentCollaborator: { // AgentCollaborator
|
|
46
|
+
* // agentId: "STRING_VALUE", // required
|
|
47
|
+
* // agentVersion: "STRING_VALUE", // required
|
|
48
|
+
* // agentDescriptor: { // AgentDescriptor
|
|
49
|
+
* // aliasArn: "STRING_VALUE",
|
|
50
|
+
* // },
|
|
51
|
+
* // collaboratorId: "STRING_VALUE", // required
|
|
52
|
+
* // collaborationInstruction: "STRING_VALUE", // required
|
|
53
|
+
* // collaboratorName: "STRING_VALUE", // required
|
|
54
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
55
|
+
* // lastUpdatedAt: new Date("TIMESTAMP"), // required
|
|
56
|
+
* // relayConversationHistory: "TO_COLLABORATOR" || "DISABLED",
|
|
57
|
+
* // clientToken: "STRING_VALUE",
|
|
58
|
+
* // },
|
|
59
|
+
* // };
|
|
60
|
+
*
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @param GetAgentCollaboratorCommandInput - {@link GetAgentCollaboratorCommandInput}
|
|
64
|
+
* @returns {@link GetAgentCollaboratorCommandOutput}
|
|
65
|
+
* @see {@link GetAgentCollaboratorCommandInput} for command's `input` shape.
|
|
66
|
+
* @see {@link GetAgentCollaboratorCommandOutput} for command's `response` shape.
|
|
67
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
70
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link InternalServerException} (server fault)
|
|
73
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
76
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
79
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ValidationException} (client fault)
|
|
82
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link BedrockAgentServiceException}
|
|
85
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export declare class GetAgentCollaboratorCommand extends GetAgentCollaboratorCommand_base {
|
|
90
|
+
/** @internal type navigation helper, not in runtime. */
|
|
91
|
+
protected static __types: {
|
|
92
|
+
api: {
|
|
93
|
+
input: GetAgentCollaboratorRequest;
|
|
94
|
+
output: GetAgentCollaboratorResponse;
|
|
95
|
+
};
|
|
96
|
+
sdk: {
|
|
97
|
+
input: GetAgentCollaboratorCommandInput;
|
|
98
|
+
output: GetAgentCollaboratorCommandOutput;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -85,6 +85,7 @@ declare const GetAgentCommand_base: {
|
|
|
85
85
|
* // ],
|
|
86
86
|
* // },
|
|
87
87
|
* // parserMode: "DEFAULT" || "OVERRIDDEN",
|
|
88
|
+
* // foundationModel: "STRING_VALUE",
|
|
88
89
|
* // },
|
|
89
90
|
* // ],
|
|
90
91
|
* // overrideLambda: "STRING_VALUE",
|
|
@@ -99,6 +100,7 @@ declare const GetAgentCommand_base: {
|
|
|
99
100
|
* // ],
|
|
100
101
|
* // storageDays: Number("int"),
|
|
101
102
|
* // },
|
|
103
|
+
* // agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED",
|
|
102
104
|
* // },
|
|
103
105
|
* // };
|
|
104
106
|
*
|
|
@@ -78,6 +78,7 @@ declare const GetAgentVersionCommand_base: {
|
|
|
78
78
|
* // ],
|
|
79
79
|
* // },
|
|
80
80
|
* // parserMode: "DEFAULT" || "OVERRIDDEN",
|
|
81
|
+
* // foundationModel: "STRING_VALUE",
|
|
81
82
|
* // },
|
|
82
83
|
* // ],
|
|
83
84
|
* // overrideLambda: "STRING_VALUE",
|
|
@@ -92,6 +93,7 @@ declare const GetAgentVersionCommand_base: {
|
|
|
92
93
|
* // ],
|
|
93
94
|
* // storageDays: Number("int"),
|
|
94
95
|
* // },
|
|
96
|
+
* // agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED",
|
|
95
97
|
* // },
|
|
96
98
|
* // };
|
|
97
99
|
*
|
|
@@ -48,7 +48,7 @@ declare const GetDataSourceCommand_base: {
|
|
|
48
48
|
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
|
|
49
49
|
* // description: "STRING_VALUE",
|
|
50
50
|
* // dataSourceConfiguration: { // DataSourceConfiguration
|
|
51
|
-
* // type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT" || "CUSTOM", // required
|
|
51
|
+
* // type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT" || "CUSTOM" || "REDSHIFT_METADATA", // required
|
|
52
52
|
* // s3Configuration: { // S3DataSourceConfiguration
|
|
53
53
|
* // bucketArn: "STRING_VALUE", // required
|
|
54
54
|
* // inclusionPrefixes: [ // S3Prefixes
|
|
@@ -197,12 +197,16 @@ declare const GetDataSourceCommand_base: {
|
|
|
197
197
|
* // ],
|
|
198
198
|
* // },
|
|
199
199
|
* // parsingConfiguration: { // ParsingConfiguration
|
|
200
|
-
* // parsingStrategy: "BEDROCK_FOUNDATION_MODEL", // required
|
|
200
|
+
* // parsingStrategy: "BEDROCK_FOUNDATION_MODEL" || "BEDROCK_DATA_AUTOMATION", // required
|
|
201
201
|
* // bedrockFoundationModelConfiguration: { // BedrockFoundationModelConfiguration
|
|
202
202
|
* // modelArn: "STRING_VALUE", // required
|
|
203
203
|
* // parsingPrompt: { // ParsingPrompt
|
|
204
204
|
* // parsingPromptText: "STRING_VALUE", // required
|
|
205
205
|
* // },
|
|
206
|
+
* // parsingModality: "MULTIMODAL",
|
|
207
|
+
* // },
|
|
208
|
+
* // bedrockDataAutomationConfiguration: { // BedrockDataAutomationConfiguration
|
|
209
|
+
* // parsingModality: "MULTIMODAL",
|
|
206
210
|
* // },
|
|
207
211
|
* // },
|
|
208
212
|
* // },
|
|
@@ -47,7 +47,7 @@ declare const GetKnowledgeBaseCommand_base: {
|
|
|
47
47
|
* // description: "STRING_VALUE",
|
|
48
48
|
* // roleArn: "STRING_VALUE", // required
|
|
49
49
|
* // knowledgeBaseConfiguration: { // KnowledgeBaseConfiguration
|
|
50
|
-
* // type: "VECTOR", // required
|
|
50
|
+
* // type: "VECTOR" || "KENDRA" || "SQL", // required
|
|
51
51
|
* // vectorKnowledgeBaseConfiguration: { // VectorKnowledgeBaseConfiguration
|
|
52
52
|
* // embeddingModelArn: "STRING_VALUE", // required
|
|
53
53
|
* // embeddingModelConfiguration: { // EmbeddingModelConfiguration
|
|
@@ -56,6 +56,80 @@ declare const GetKnowledgeBaseCommand_base: {
|
|
|
56
56
|
* // embeddingDataType: "FLOAT32" || "BINARY",
|
|
57
57
|
* // },
|
|
58
58
|
* // },
|
|
59
|
+
* // supplementalDataStorageConfiguration: { // SupplementalDataStorageConfiguration
|
|
60
|
+
* // storageLocations: [ // SupplementalDataStorageLocations // required
|
|
61
|
+
* // { // SupplementalDataStorageLocation
|
|
62
|
+
* // type: "S3", // required
|
|
63
|
+
* // s3Location: { // S3Location
|
|
64
|
+
* // uri: "STRING_VALUE", // required
|
|
65
|
+
* // },
|
|
66
|
+
* // },
|
|
67
|
+
* // ],
|
|
68
|
+
* // },
|
|
69
|
+
* // },
|
|
70
|
+
* // kendraKnowledgeBaseConfiguration: { // KendraKnowledgeBaseConfiguration
|
|
71
|
+
* // kendraIndexArn: "STRING_VALUE", // required
|
|
72
|
+
* // },
|
|
73
|
+
* // sqlKnowledgeBaseConfiguration: { // SqlKnowledgeBaseConfiguration
|
|
74
|
+
* // type: "REDSHIFT", // required
|
|
75
|
+
* // redshiftConfiguration: { // RedshiftConfiguration
|
|
76
|
+
* // storageConfigurations: [ // RedshiftQueryEngineStorageConfigurations // required
|
|
77
|
+
* // { // RedshiftQueryEngineStorageConfiguration
|
|
78
|
+
* // type: "REDSHIFT" || "AWS_DATA_CATALOG", // required
|
|
79
|
+
* // awsDataCatalogConfiguration: { // RedshiftQueryEngineAwsDataCatalogStorageConfiguration
|
|
80
|
+
* // tableNames: [ // AwsDataCatalogTableNames // required
|
|
81
|
+
* // "STRING_VALUE",
|
|
82
|
+
* // ],
|
|
83
|
+
* // },
|
|
84
|
+
* // redshiftConfiguration: { // RedshiftQueryEngineRedshiftStorageConfiguration
|
|
85
|
+
* // databaseName: "STRING_VALUE", // required
|
|
86
|
+
* // },
|
|
87
|
+
* // },
|
|
88
|
+
* // ],
|
|
89
|
+
* // queryEngineConfiguration: { // RedshiftQueryEngineConfiguration
|
|
90
|
+
* // type: "SERVERLESS" || "PROVISIONED", // required
|
|
91
|
+
* // serverlessConfiguration: { // RedshiftServerlessConfiguration
|
|
92
|
+
* // workgroupArn: "STRING_VALUE", // required
|
|
93
|
+
* // authConfiguration: { // RedshiftServerlessAuthConfiguration
|
|
94
|
+
* // type: "IAM" || "USERNAME_PASSWORD", // required
|
|
95
|
+
* // usernamePasswordSecretArn: "STRING_VALUE",
|
|
96
|
+
* // },
|
|
97
|
+
* // },
|
|
98
|
+
* // provisionedConfiguration: { // RedshiftProvisionedConfiguration
|
|
99
|
+
* // clusterIdentifier: "STRING_VALUE", // required
|
|
100
|
+
* // authConfiguration: { // RedshiftProvisionedAuthConfiguration
|
|
101
|
+
* // type: "IAM" || "USERNAME_PASSWORD" || "USERNAME", // required
|
|
102
|
+
* // databaseUser: "STRING_VALUE",
|
|
103
|
+
* // usernamePasswordSecretArn: "STRING_VALUE",
|
|
104
|
+
* // },
|
|
105
|
+
* // },
|
|
106
|
+
* // },
|
|
107
|
+
* // queryGenerationConfiguration: { // QueryGenerationConfiguration
|
|
108
|
+
* // executionTimeoutSeconds: Number("int"),
|
|
109
|
+
* // generationContext: { // QueryGenerationContext
|
|
110
|
+
* // tables: [ // QueryGenerationTables
|
|
111
|
+
* // { // QueryGenerationTable
|
|
112
|
+
* // name: "STRING_VALUE", // required
|
|
113
|
+
* // description: "STRING_VALUE",
|
|
114
|
+
* // inclusion: "INCLUDE" || "EXCLUDE",
|
|
115
|
+
* // columns: [ // QueryGenerationColumns
|
|
116
|
+
* // { // QueryGenerationColumn
|
|
117
|
+
* // name: "STRING_VALUE",
|
|
118
|
+
* // description: "STRING_VALUE",
|
|
119
|
+
* // inclusion: "INCLUDE" || "EXCLUDE",
|
|
120
|
+
* // },
|
|
121
|
+
* // ],
|
|
122
|
+
* // },
|
|
123
|
+
* // ],
|
|
124
|
+
* // curatedQueries: [ // CuratedQueries
|
|
125
|
+
* // { // CuratedQuery
|
|
126
|
+
* // naturalLanguage: "STRING_VALUE", // required
|
|
127
|
+
* // sql: "STRING_VALUE", // required
|
|
128
|
+
* // },
|
|
129
|
+
* // ],
|
|
130
|
+
* // },
|
|
131
|
+
* // },
|
|
132
|
+
* // },
|
|
59
133
|
* // },
|
|
60
134
|
* // },
|
|
61
135
|
* // storageConfiguration: { // StorageConfiguration
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
|
|
4
|
-
import { IngestKnowledgeBaseDocumentsRequest, IngestKnowledgeBaseDocumentsResponse } from "../models/
|
|
4
|
+
import { IngestKnowledgeBaseDocumentsRequest, IngestKnowledgeBaseDocumentsResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|