@aws-sdk/client-bedrock-agent 3.609.0 → 3.614.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 +168 -0
- package/dist-cjs/index.js +2007 -14
- package/dist-es/BedrockAgent.js +42 -0
- package/dist-es/commands/CreateDataSourceCommand.js +2 -1
- package/dist-es/commands/CreateFlowAliasCommand.js +24 -0
- package/dist-es/commands/CreateFlowCommand.js +25 -0
- package/dist-es/commands/CreateFlowVersionCommand.js +25 -0
- package/dist-es/commands/CreatePromptCommand.js +25 -0
- package/dist-es/commands/CreatePromptVersionCommand.js +25 -0
- package/dist-es/commands/DeleteFlowAliasCommand.js +24 -0
- package/dist-es/commands/DeleteFlowCommand.js +24 -0
- package/dist-es/commands/DeleteFlowVersionCommand.js +24 -0
- package/dist-es/commands/DeletePromptCommand.js +24 -0
- package/dist-es/commands/GetDataSourceCommand.js +2 -1
- package/dist-es/commands/GetFlowAliasCommand.js +24 -0
- package/dist-es/commands/GetFlowCommand.js +25 -0
- package/dist-es/commands/GetFlowVersionCommand.js +25 -0
- package/dist-es/commands/GetPromptCommand.js +25 -0
- package/dist-es/commands/ListFlowAliasesCommand.js +24 -0
- package/dist-es/commands/ListFlowVersionsCommand.js +24 -0
- package/dist-es/commands/ListFlowsCommand.js +24 -0
- package/dist-es/commands/ListPromptsCommand.js +24 -0
- package/dist-es/commands/PrepareFlowCommand.js +24 -0
- package/dist-es/commands/UpdateDataSourceCommand.js +2 -1
- package/dist-es/commands/UpdateFlowAliasCommand.js +24 -0
- package/dist-es/commands/UpdateFlowCommand.js +25 -0
- package/dist-es/commands/UpdatePromptCommand.js +25 -0
- package/dist-es/commands/index.js +21 -0
- package/dist-es/models/models_0.js +418 -0
- package/dist-es/pagination/ListFlowAliasesPaginator.js +4 -0
- package/dist-es/pagination/ListFlowVersionsPaginator.js +4 -0
- package/dist-es/pagination/ListFlowsPaginator.js +4 -0
- package/dist-es/pagination/ListPromptsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +1041 -25
- package/dist-types/BedrockAgent.d.ts +149 -0
- package/dist-types/BedrockAgentClient.d.ts +23 -2
- package/dist-types/commands/CreateAgentActionGroupCommand.d.ts +7 -3
- package/dist-types/commands/CreateAgentCommand.d.ts +18 -1
- package/dist-types/commands/CreateDataSourceCommand.d.ts +280 -6
- package/dist-types/commands/CreateFlowAliasCommand.d.ts +103 -0
- package/dist-types/commands/CreateFlowCommand.d.ts +318 -0
- package/dist-types/commands/CreateFlowVersionCommand.d.ts +203 -0
- package/dist-types/commands/CreatePromptCommand.d.ts +149 -0
- package/dist-types/commands/CreatePromptVersionCommand.d.ts +122 -0
- package/dist-types/commands/DeleteFlowAliasCommand.d.ts +80 -0
- package/dist-types/commands/DeleteFlowCommand.d.ts +79 -0
- package/dist-types/commands/DeleteFlowVersionCommand.d.ts +81 -0
- package/dist-types/commands/DeletePromptCommand.d.ts +80 -0
- package/dist-types/commands/GetAgentActionGroupCommand.d.ts +1 -1
- package/dist-types/commands/GetAgentCommand.d.ts +6 -0
- package/dist-types/commands/GetAgentVersionCommand.d.ts +6 -0
- package/dist-types/commands/GetDataSourceCommand.d.ts +139 -2
- package/dist-types/commands/GetFlowAliasCommand.d.ts +87 -0
- package/dist-types/commands/GetFlowCommand.d.ts +202 -0
- package/dist-types/commands/GetFlowVersionCommand.d.ts +196 -0
- package/dist-types/commands/GetPromptCommand.d.ts +112 -0
- package/dist-types/commands/ListFlowAliasesCommand.d.ts +93 -0
- package/dist-types/commands/ListFlowVersionsCommand.d.ts +86 -0
- package/dist-types/commands/ListFlowsCommand.d.ts +85 -0
- package/dist-types/commands/ListPromptsCommand.d.ts +88 -0
- package/dist-types/commands/PrepareFlowCommand.d.ts +82 -0
- package/dist-types/commands/UpdateAgentActionGroupCommand.d.ts +2 -2
- package/dist-types/commands/UpdateAgentCommand.d.ts +12 -0
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +280 -6
- package/dist-types/commands/UpdateFlowAliasCommand.d.ts +100 -0
- package/dist-types/commands/UpdateFlowCommand.d.ts +318 -0
- package/dist-types/commands/UpdatePromptCommand.d.ts +149 -0
- package/dist-types/commands/index.d.ts +21 -0
- package/dist-types/models/models_0.d.ts +4252 -772
- package/dist-types/pagination/ListFlowAliasesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListFlowVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListFlowsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPromptsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +189 -0
- package/dist-types/ts3.4/BedrockAgent.d.ts +359 -0
- package/dist-types/ts3.4/BedrockAgentClient.d.ts +128 -2
- package/dist-types/ts3.4/commands/CreateFlowAliasCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateFlowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateFlowVersionCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/CreatePromptCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreatePromptVersionCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/DeleteFlowAliasCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteFlowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DeleteFlowVersionCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/DeletePromptCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetFlowAliasCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetFlowCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/GetFlowVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetPromptCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListFlowAliasesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListFlowVersionsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListFlowsCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListPromptsCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/PrepareFlowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/UpdateFlowAliasCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateFlowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/UpdatePromptCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/index.d.ts +21 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1179 -0
- package/dist-types/ts3.4/pagination/ListFlowAliasesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFlowVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFlowsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPromptsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +252 -0
- package/package.json +20 -20
|
@@ -27,9 +27,9 @@ declare const CreateDataSourceCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>
|
|
30
|
+
* <p>Creates a data source connector for a knowledge base.</p>
|
|
31
31
|
* <important>
|
|
32
|
-
* <p>You can't change the <code>chunkingConfiguration</code> after you create the data source.</p>
|
|
32
|
+
* <p>You can't change the <code>chunkingConfiguration</code> after you create the data source connector.</p>
|
|
33
33
|
* </important>
|
|
34
34
|
* @example
|
|
35
35
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -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", // required
|
|
46
|
+
* type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT", // required
|
|
47
47
|
* s3Configuration: { // S3DataSourceConfiguration
|
|
48
48
|
* bucketArn: "STRING_VALUE", // required
|
|
49
49
|
* inclusionPrefixes: [ // S3Prefixes
|
|
@@ -51,6 +51,104 @@ declare const CreateDataSourceCommand_base: {
|
|
|
51
51
|
* ],
|
|
52
52
|
* bucketOwnerAccountId: "STRING_VALUE",
|
|
53
53
|
* },
|
|
54
|
+
* webConfiguration: { // WebDataSourceConfiguration
|
|
55
|
+
* sourceConfiguration: { // WebSourceConfiguration
|
|
56
|
+
* urlConfiguration: { // UrlConfiguration
|
|
57
|
+
* seedUrls: [ // SeedUrls
|
|
58
|
+
* { // SeedUrl
|
|
59
|
+
* url: "STRING_VALUE",
|
|
60
|
+
* },
|
|
61
|
+
* ],
|
|
62
|
+
* },
|
|
63
|
+
* },
|
|
64
|
+
* crawlerConfiguration: { // WebCrawlerConfiguration
|
|
65
|
+
* crawlerLimits: { // WebCrawlerLimits
|
|
66
|
+
* rateLimit: Number("int"),
|
|
67
|
+
* },
|
|
68
|
+
* inclusionFilters: [ // FilterList
|
|
69
|
+
* "STRING_VALUE",
|
|
70
|
+
* ],
|
|
71
|
+
* exclusionFilters: [
|
|
72
|
+
* "STRING_VALUE",
|
|
73
|
+
* ],
|
|
74
|
+
* scope: "HOST_ONLY" || "SUBDOMAINS",
|
|
75
|
+
* },
|
|
76
|
+
* },
|
|
77
|
+
* confluenceConfiguration: { // ConfluenceDataSourceConfiguration
|
|
78
|
+
* sourceConfiguration: { // ConfluenceSourceConfiguration
|
|
79
|
+
* hostUrl: "STRING_VALUE", // required
|
|
80
|
+
* hostType: "SAAS", // required
|
|
81
|
+
* authType: "BASIC" || "OAUTH2_CLIENT_CREDENTIALS", // required
|
|
82
|
+
* credentialsSecretArn: "STRING_VALUE", // required
|
|
83
|
+
* },
|
|
84
|
+
* crawlerConfiguration: { // ConfluenceCrawlerConfiguration
|
|
85
|
+
* filterConfiguration: { // CrawlFilterConfiguration
|
|
86
|
+
* type: "PATTERN", // required
|
|
87
|
+
* patternObjectFilter: { // PatternObjectFilterConfiguration
|
|
88
|
+
* filters: [ // PatternObjectFilterList // required
|
|
89
|
+
* { // PatternObjectFilter
|
|
90
|
+
* objectType: "STRING_VALUE", // required
|
|
91
|
+
* inclusionFilters: [
|
|
92
|
+
* "STRING_VALUE",
|
|
93
|
+
* ],
|
|
94
|
+
* exclusionFilters: [
|
|
95
|
+
* "STRING_VALUE",
|
|
96
|
+
* ],
|
|
97
|
+
* },
|
|
98
|
+
* ],
|
|
99
|
+
* },
|
|
100
|
+
* },
|
|
101
|
+
* },
|
|
102
|
+
* },
|
|
103
|
+
* salesforceConfiguration: { // SalesforceDataSourceConfiguration
|
|
104
|
+
* sourceConfiguration: { // SalesforceSourceConfiguration
|
|
105
|
+
* hostUrl: "STRING_VALUE", // required
|
|
106
|
+
* authType: "OAUTH2_CLIENT_CREDENTIALS", // required
|
|
107
|
+
* credentialsSecretArn: "STRING_VALUE", // required
|
|
108
|
+
* },
|
|
109
|
+
* crawlerConfiguration: { // SalesforceCrawlerConfiguration
|
|
110
|
+
* filterConfiguration: {
|
|
111
|
+
* type: "PATTERN", // required
|
|
112
|
+
* patternObjectFilter: {
|
|
113
|
+
* filters: [ // required
|
|
114
|
+
* {
|
|
115
|
+
* objectType: "STRING_VALUE", // required
|
|
116
|
+
* inclusionFilters: [
|
|
117
|
+
* "STRING_VALUE",
|
|
118
|
+
* ],
|
|
119
|
+
* exclusionFilters: "<FilterList>",
|
|
120
|
+
* },
|
|
121
|
+
* ],
|
|
122
|
+
* },
|
|
123
|
+
* },
|
|
124
|
+
* },
|
|
125
|
+
* },
|
|
126
|
+
* sharePointConfiguration: { // SharePointDataSourceConfiguration
|
|
127
|
+
* sourceConfiguration: { // SharePointSourceConfiguration
|
|
128
|
+
* tenantId: "STRING_VALUE",
|
|
129
|
+
* domain: "STRING_VALUE", // required
|
|
130
|
+
* siteUrls: [ // SharePointSiteUrls // required
|
|
131
|
+
* "STRING_VALUE",
|
|
132
|
+
* ],
|
|
133
|
+
* hostType: "ONLINE", // required
|
|
134
|
+
* authType: "OAUTH2_CLIENT_CREDENTIALS", // required
|
|
135
|
+
* credentialsSecretArn: "STRING_VALUE", // required
|
|
136
|
+
* },
|
|
137
|
+
* crawlerConfiguration: { // SharePointCrawlerConfiguration
|
|
138
|
+
* filterConfiguration: {
|
|
139
|
+
* type: "PATTERN", // required
|
|
140
|
+
* patternObjectFilter: {
|
|
141
|
+
* filters: [ // required
|
|
142
|
+
* {
|
|
143
|
+
* objectType: "STRING_VALUE", // required
|
|
144
|
+
* inclusionFilters: "<FilterList>",
|
|
145
|
+
* exclusionFilters: "<FilterList>",
|
|
146
|
+
* },
|
|
147
|
+
* ],
|
|
148
|
+
* },
|
|
149
|
+
* },
|
|
150
|
+
* },
|
|
151
|
+
* },
|
|
54
152
|
* },
|
|
55
153
|
* dataDeletionPolicy: "RETAIN" || "DELETE",
|
|
56
154
|
* serverSideEncryptionConfiguration: { // ServerSideEncryptionConfiguration
|
|
@@ -58,11 +156,50 @@ declare const CreateDataSourceCommand_base: {
|
|
|
58
156
|
* },
|
|
59
157
|
* vectorIngestionConfiguration: { // VectorIngestionConfiguration
|
|
60
158
|
* chunkingConfiguration: { // ChunkingConfiguration
|
|
61
|
-
* chunkingStrategy: "FIXED_SIZE" || "NONE", // required
|
|
159
|
+
* chunkingStrategy: "FIXED_SIZE" || "NONE" || "HIERARCHICAL" || "SEMANTIC", // required
|
|
62
160
|
* fixedSizeChunkingConfiguration: { // FixedSizeChunkingConfiguration
|
|
63
161
|
* maxTokens: Number("int"), // required
|
|
64
162
|
* overlapPercentage: Number("int"), // required
|
|
65
163
|
* },
|
|
164
|
+
* hierarchicalChunkingConfiguration: { // HierarchicalChunkingConfiguration
|
|
165
|
+
* levelConfigurations: [ // HierarchicalChunkingLevelConfigurations // required
|
|
166
|
+
* { // HierarchicalChunkingLevelConfiguration
|
|
167
|
+
* maxTokens: Number("int"), // required
|
|
168
|
+
* },
|
|
169
|
+
* ],
|
|
170
|
+
* overlapTokens: Number("int"), // required
|
|
171
|
+
* },
|
|
172
|
+
* semanticChunkingConfiguration: { // SemanticChunkingConfiguration
|
|
173
|
+
* maxTokens: Number("int"), // required
|
|
174
|
+
* bufferSize: Number("int"), // required
|
|
175
|
+
* breakpointPercentileThreshold: Number("int"), // required
|
|
176
|
+
* },
|
|
177
|
+
* },
|
|
178
|
+
* customTransformationConfiguration: { // CustomTransformationConfiguration
|
|
179
|
+
* intermediateStorage: { // IntermediateStorage
|
|
180
|
+
* s3Location: { // S3Location
|
|
181
|
+
* uri: "STRING_VALUE", // required
|
|
182
|
+
* },
|
|
183
|
+
* },
|
|
184
|
+
* transformations: [ // Transformations // required
|
|
185
|
+
* { // Transformation
|
|
186
|
+
* transformationFunction: { // TransformationFunction
|
|
187
|
+
* transformationLambdaConfiguration: { // TransformationLambdaConfiguration
|
|
188
|
+
* lambdaArn: "STRING_VALUE", // required
|
|
189
|
+
* },
|
|
190
|
+
* },
|
|
191
|
+
* stepToApply: "POST_CHUNKING", // required
|
|
192
|
+
* },
|
|
193
|
+
* ],
|
|
194
|
+
* },
|
|
195
|
+
* parsingConfiguration: { // ParsingConfiguration
|
|
196
|
+
* parsingStrategy: "BEDROCK_FOUNDATION_MODEL", // required
|
|
197
|
+
* bedrockFoundationModelConfiguration: { // BedrockFoundationModelConfiguration
|
|
198
|
+
* modelArn: "STRING_VALUE", // required
|
|
199
|
+
* parsingPrompt: { // ParsingPrompt
|
|
200
|
+
* parsingPromptText: "STRING_VALUE", // required
|
|
201
|
+
* },
|
|
202
|
+
* },
|
|
66
203
|
* },
|
|
67
204
|
* },
|
|
68
205
|
* };
|
|
@@ -76,7 +213,7 @@ declare const CreateDataSourceCommand_base: {
|
|
|
76
213
|
* // status: "AVAILABLE" || "DELETING" || "DELETE_UNSUCCESSFUL", // required
|
|
77
214
|
* // description: "STRING_VALUE",
|
|
78
215
|
* // dataSourceConfiguration: { // DataSourceConfiguration
|
|
79
|
-
* // type: "S3", // required
|
|
216
|
+
* // type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT", // required
|
|
80
217
|
* // s3Configuration: { // S3DataSourceConfiguration
|
|
81
218
|
* // bucketArn: "STRING_VALUE", // required
|
|
82
219
|
* // inclusionPrefixes: [ // S3Prefixes
|
|
@@ -84,17 +221,154 @@ declare const CreateDataSourceCommand_base: {
|
|
|
84
221
|
* // ],
|
|
85
222
|
* // bucketOwnerAccountId: "STRING_VALUE",
|
|
86
223
|
* // },
|
|
224
|
+
* // webConfiguration: { // WebDataSourceConfiguration
|
|
225
|
+
* // sourceConfiguration: { // WebSourceConfiguration
|
|
226
|
+
* // urlConfiguration: { // UrlConfiguration
|
|
227
|
+
* // seedUrls: [ // SeedUrls
|
|
228
|
+
* // { // SeedUrl
|
|
229
|
+
* // url: "STRING_VALUE",
|
|
230
|
+
* // },
|
|
231
|
+
* // ],
|
|
232
|
+
* // },
|
|
233
|
+
* // },
|
|
234
|
+
* // crawlerConfiguration: { // WebCrawlerConfiguration
|
|
235
|
+
* // crawlerLimits: { // WebCrawlerLimits
|
|
236
|
+
* // rateLimit: Number("int"),
|
|
237
|
+
* // },
|
|
238
|
+
* // inclusionFilters: [ // FilterList
|
|
239
|
+
* // "STRING_VALUE",
|
|
240
|
+
* // ],
|
|
241
|
+
* // exclusionFilters: [
|
|
242
|
+
* // "STRING_VALUE",
|
|
243
|
+
* // ],
|
|
244
|
+
* // scope: "HOST_ONLY" || "SUBDOMAINS",
|
|
245
|
+
* // },
|
|
246
|
+
* // },
|
|
247
|
+
* // confluenceConfiguration: { // ConfluenceDataSourceConfiguration
|
|
248
|
+
* // sourceConfiguration: { // ConfluenceSourceConfiguration
|
|
249
|
+
* // hostUrl: "STRING_VALUE", // required
|
|
250
|
+
* // hostType: "SAAS", // required
|
|
251
|
+
* // authType: "BASIC" || "OAUTH2_CLIENT_CREDENTIALS", // required
|
|
252
|
+
* // credentialsSecretArn: "STRING_VALUE", // required
|
|
253
|
+
* // },
|
|
254
|
+
* // crawlerConfiguration: { // ConfluenceCrawlerConfiguration
|
|
255
|
+
* // filterConfiguration: { // CrawlFilterConfiguration
|
|
256
|
+
* // type: "PATTERN", // required
|
|
257
|
+
* // patternObjectFilter: { // PatternObjectFilterConfiguration
|
|
258
|
+
* // filters: [ // PatternObjectFilterList // required
|
|
259
|
+
* // { // PatternObjectFilter
|
|
260
|
+
* // objectType: "STRING_VALUE", // required
|
|
261
|
+
* // inclusionFilters: [
|
|
262
|
+
* // "STRING_VALUE",
|
|
263
|
+
* // ],
|
|
264
|
+
* // exclusionFilters: [
|
|
265
|
+
* // "STRING_VALUE",
|
|
266
|
+
* // ],
|
|
267
|
+
* // },
|
|
268
|
+
* // ],
|
|
269
|
+
* // },
|
|
270
|
+
* // },
|
|
271
|
+
* // },
|
|
272
|
+
* // },
|
|
273
|
+
* // salesforceConfiguration: { // SalesforceDataSourceConfiguration
|
|
274
|
+
* // sourceConfiguration: { // SalesforceSourceConfiguration
|
|
275
|
+
* // hostUrl: "STRING_VALUE", // required
|
|
276
|
+
* // authType: "OAUTH2_CLIENT_CREDENTIALS", // required
|
|
277
|
+
* // credentialsSecretArn: "STRING_VALUE", // required
|
|
278
|
+
* // },
|
|
279
|
+
* // crawlerConfiguration: { // SalesforceCrawlerConfiguration
|
|
280
|
+
* // filterConfiguration: {
|
|
281
|
+
* // type: "PATTERN", // required
|
|
282
|
+
* // patternObjectFilter: {
|
|
283
|
+
* // filters: [ // required
|
|
284
|
+
* // {
|
|
285
|
+
* // objectType: "STRING_VALUE", // required
|
|
286
|
+
* // inclusionFilters: [
|
|
287
|
+
* // "STRING_VALUE",
|
|
288
|
+
* // ],
|
|
289
|
+
* // exclusionFilters: "<FilterList>",
|
|
290
|
+
* // },
|
|
291
|
+
* // ],
|
|
292
|
+
* // },
|
|
293
|
+
* // },
|
|
294
|
+
* // },
|
|
295
|
+
* // },
|
|
296
|
+
* // sharePointConfiguration: { // SharePointDataSourceConfiguration
|
|
297
|
+
* // sourceConfiguration: { // SharePointSourceConfiguration
|
|
298
|
+
* // tenantId: "STRING_VALUE",
|
|
299
|
+
* // domain: "STRING_VALUE", // required
|
|
300
|
+
* // siteUrls: [ // SharePointSiteUrls // required
|
|
301
|
+
* // "STRING_VALUE",
|
|
302
|
+
* // ],
|
|
303
|
+
* // hostType: "ONLINE", // required
|
|
304
|
+
* // authType: "OAUTH2_CLIENT_CREDENTIALS", // required
|
|
305
|
+
* // credentialsSecretArn: "STRING_VALUE", // required
|
|
306
|
+
* // },
|
|
307
|
+
* // crawlerConfiguration: { // SharePointCrawlerConfiguration
|
|
308
|
+
* // filterConfiguration: {
|
|
309
|
+
* // type: "PATTERN", // required
|
|
310
|
+
* // patternObjectFilter: {
|
|
311
|
+
* // filters: [ // required
|
|
312
|
+
* // {
|
|
313
|
+
* // objectType: "STRING_VALUE", // required
|
|
314
|
+
* // inclusionFilters: "<FilterList>",
|
|
315
|
+
* // exclusionFilters: "<FilterList>",
|
|
316
|
+
* // },
|
|
317
|
+
* // ],
|
|
318
|
+
* // },
|
|
319
|
+
* // },
|
|
320
|
+
* // },
|
|
321
|
+
* // },
|
|
87
322
|
* // },
|
|
88
323
|
* // serverSideEncryptionConfiguration: { // ServerSideEncryptionConfiguration
|
|
89
324
|
* // kmsKeyArn: "STRING_VALUE",
|
|
90
325
|
* // },
|
|
91
326
|
* // vectorIngestionConfiguration: { // VectorIngestionConfiguration
|
|
92
327
|
* // chunkingConfiguration: { // ChunkingConfiguration
|
|
93
|
-
* // chunkingStrategy: "FIXED_SIZE" || "NONE", // required
|
|
328
|
+
* // chunkingStrategy: "FIXED_SIZE" || "NONE" || "HIERARCHICAL" || "SEMANTIC", // required
|
|
94
329
|
* // fixedSizeChunkingConfiguration: { // FixedSizeChunkingConfiguration
|
|
95
330
|
* // maxTokens: Number("int"), // required
|
|
96
331
|
* // overlapPercentage: Number("int"), // required
|
|
97
332
|
* // },
|
|
333
|
+
* // hierarchicalChunkingConfiguration: { // HierarchicalChunkingConfiguration
|
|
334
|
+
* // levelConfigurations: [ // HierarchicalChunkingLevelConfigurations // required
|
|
335
|
+
* // { // HierarchicalChunkingLevelConfiguration
|
|
336
|
+
* // maxTokens: Number("int"), // required
|
|
337
|
+
* // },
|
|
338
|
+
* // ],
|
|
339
|
+
* // overlapTokens: Number("int"), // required
|
|
340
|
+
* // },
|
|
341
|
+
* // semanticChunkingConfiguration: { // SemanticChunkingConfiguration
|
|
342
|
+
* // maxTokens: Number("int"), // required
|
|
343
|
+
* // bufferSize: Number("int"), // required
|
|
344
|
+
* // breakpointPercentileThreshold: Number("int"), // required
|
|
345
|
+
* // },
|
|
346
|
+
* // },
|
|
347
|
+
* // customTransformationConfiguration: { // CustomTransformationConfiguration
|
|
348
|
+
* // intermediateStorage: { // IntermediateStorage
|
|
349
|
+
* // s3Location: { // S3Location
|
|
350
|
+
* // uri: "STRING_VALUE", // required
|
|
351
|
+
* // },
|
|
352
|
+
* // },
|
|
353
|
+
* // transformations: [ // Transformations // required
|
|
354
|
+
* // { // Transformation
|
|
355
|
+
* // transformationFunction: { // TransformationFunction
|
|
356
|
+
* // transformationLambdaConfiguration: { // TransformationLambdaConfiguration
|
|
357
|
+
* // lambdaArn: "STRING_VALUE", // required
|
|
358
|
+
* // },
|
|
359
|
+
* // },
|
|
360
|
+
* // stepToApply: "POST_CHUNKING", // required
|
|
361
|
+
* // },
|
|
362
|
+
* // ],
|
|
363
|
+
* // },
|
|
364
|
+
* // parsingConfiguration: { // ParsingConfiguration
|
|
365
|
+
* // parsingStrategy: "BEDROCK_FOUNDATION_MODEL", // required
|
|
366
|
+
* // bedrockFoundationModelConfiguration: { // BedrockFoundationModelConfiguration
|
|
367
|
+
* // modelArn: "STRING_VALUE", // required
|
|
368
|
+
* // parsingPrompt: { // ParsingPrompt
|
|
369
|
+
* // parsingPromptText: "STRING_VALUE", // required
|
|
370
|
+
* // },
|
|
371
|
+
* // },
|
|
98
372
|
* // },
|
|
99
373
|
* // },
|
|
100
374
|
* // dataDeletionPolicy: "RETAIN" || "DELETE",
|
|
@@ -0,0 +1,103 @@
|
|
|
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 { CreateFlowAliasRequest, CreateFlowAliasResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateFlowAliasCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateFlowAliasCommandInput extends CreateFlowAliasRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateFlowAliasCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateFlowAliasCommandOutput extends CreateFlowAliasResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateFlowAliasCommand_base: {
|
|
25
|
+
new (input: CreateFlowAliasCommandInput): import("@smithy/smithy-client").CommandImpl<CreateFlowAliasCommandInput, CreateFlowAliasCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateFlowAliasCommandInput): import("@smithy/smithy-client").CommandImpl<CreateFlowAliasCommandInput, CreateFlowAliasCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates an alias of a flow for deployment. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-deploy.html">Deploy a flow in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentClient, CreateFlowAliasCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentClient, CreateFlowAliasCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
36
|
+
* const client = new BedrockAgentClient(config);
|
|
37
|
+
* const input = { // CreateFlowAliasRequest
|
|
38
|
+
* name: "STRING_VALUE", // required
|
|
39
|
+
* description: "STRING_VALUE",
|
|
40
|
+
* routingConfiguration: [ // FlowAliasRoutingConfiguration // required
|
|
41
|
+
* { // FlowAliasRoutingConfigurationListItem
|
|
42
|
+
* flowVersion: "STRING_VALUE",
|
|
43
|
+
* },
|
|
44
|
+
* ],
|
|
45
|
+
* flowIdentifier: "STRING_VALUE", // required
|
|
46
|
+
* clientToken: "STRING_VALUE",
|
|
47
|
+
* tags: { // TagsMap
|
|
48
|
+
* "<keys>": "STRING_VALUE",
|
|
49
|
+
* },
|
|
50
|
+
* };
|
|
51
|
+
* const command = new CreateFlowAliasCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // CreateFlowAliasResponse
|
|
54
|
+
* // name: "STRING_VALUE", // required
|
|
55
|
+
* // description: "STRING_VALUE",
|
|
56
|
+
* // routingConfiguration: [ // FlowAliasRoutingConfiguration // required
|
|
57
|
+
* // { // FlowAliasRoutingConfigurationListItem
|
|
58
|
+
* // flowVersion: "STRING_VALUE",
|
|
59
|
+
* // },
|
|
60
|
+
* // ],
|
|
61
|
+
* // flowId: "STRING_VALUE", // required
|
|
62
|
+
* // id: "STRING_VALUE", // required
|
|
63
|
+
* // arn: "STRING_VALUE", // required
|
|
64
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
65
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
66
|
+
* // };
|
|
67
|
+
*
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* @param CreateFlowAliasCommandInput - {@link CreateFlowAliasCommandInput}
|
|
71
|
+
* @returns {@link CreateFlowAliasCommandOutput}
|
|
72
|
+
* @see {@link CreateFlowAliasCommandInput} for command's `input` shape.
|
|
73
|
+
* @see {@link CreateFlowAliasCommandOutput} for command's `response` shape.
|
|
74
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
77
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ConflictException} (client fault)
|
|
80
|
+
* <p>There was a conflict performing an operation.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link InternalServerException} (server fault)
|
|
83
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
86
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
89
|
+
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
92
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ValidationException} (client fault)
|
|
95
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link BedrockAgentServiceException}
|
|
98
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
99
|
+
*
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export declare class CreateFlowAliasCommand extends CreateFlowAliasCommand_base {
|
|
103
|
+
}
|