@aws-sdk/client-bedrock-agent 3.928.0 → 3.929.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 +4469 -4748
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/BedrockAgentClient.js +2 -0
- package/dist-es/commands/AssociateAgentCollaboratorCommand.js +3 -10
- package/dist-es/commands/AssociateAgentKnowledgeBaseCommand.js +3 -9
- package/dist-es/commands/CreateAgentActionGroupCommand.js +3 -10
- package/dist-es/commands/CreateAgentAliasCommand.js +3 -9
- package/dist-es/commands/CreateAgentCommand.js +3 -10
- package/dist-es/commands/CreateDataSourceCommand.js +3 -10
- package/dist-es/commands/CreateFlowAliasCommand.js +3 -9
- package/dist-es/commands/CreateFlowCommand.js +3 -10
- package/dist-es/commands/CreateFlowVersionCommand.js +3 -10
- package/dist-es/commands/CreateKnowledgeBaseCommand.js +3 -10
- package/dist-es/commands/CreatePromptCommand.js +3 -10
- package/dist-es/commands/CreatePromptVersionCommand.js +3 -10
- package/dist-es/commands/DeleteAgentActionGroupCommand.js +3 -9
- package/dist-es/commands/DeleteAgentAliasCommand.js +3 -9
- package/dist-es/commands/DeleteAgentCommand.js +3 -9
- package/dist-es/commands/DeleteAgentVersionCommand.js +3 -9
- package/dist-es/commands/DeleteDataSourceCommand.js +3 -9
- package/dist-es/commands/DeleteFlowAliasCommand.js +3 -9
- package/dist-es/commands/DeleteFlowCommand.js +3 -9
- package/dist-es/commands/DeleteFlowVersionCommand.js +3 -9
- package/dist-es/commands/DeleteKnowledgeBaseCommand.js +3 -9
- package/dist-es/commands/DeleteKnowledgeBaseDocumentsCommand.js +3 -9
- package/dist-es/commands/DeletePromptCommand.js +3 -9
- package/dist-es/commands/DisassociateAgentCollaboratorCommand.js +3 -9
- package/dist-es/commands/DisassociateAgentKnowledgeBaseCommand.js +3 -9
- package/dist-es/commands/GetAgentActionGroupCommand.js +3 -10
- package/dist-es/commands/GetAgentAliasCommand.js +3 -9
- package/dist-es/commands/GetAgentCollaboratorCommand.js +3 -10
- package/dist-es/commands/GetAgentCommand.js +3 -10
- package/dist-es/commands/GetAgentKnowledgeBaseCommand.js +3 -9
- package/dist-es/commands/GetAgentVersionCommand.js +3 -10
- package/dist-es/commands/GetDataSourceCommand.js +3 -10
- package/dist-es/commands/GetFlowAliasCommand.js +3 -9
- package/dist-es/commands/GetFlowCommand.js +3 -10
- package/dist-es/commands/GetFlowVersionCommand.js +3 -10
- package/dist-es/commands/GetIngestionJobCommand.js +3 -9
- package/dist-es/commands/GetKnowledgeBaseCommand.js +3 -10
- package/dist-es/commands/GetKnowledgeBaseDocumentsCommand.js +3 -9
- package/dist-es/commands/GetPromptCommand.js +3 -10
- package/dist-es/commands/IngestKnowledgeBaseDocumentsCommand.js +3 -10
- package/dist-es/commands/ListAgentActionGroupsCommand.js +3 -9
- package/dist-es/commands/ListAgentAliasesCommand.js +3 -9
- package/dist-es/commands/ListAgentCollaboratorsCommand.js +3 -10
- package/dist-es/commands/ListAgentKnowledgeBasesCommand.js +3 -9
- package/dist-es/commands/ListAgentVersionsCommand.js +3 -9
- package/dist-es/commands/ListAgentsCommand.js +3 -9
- package/dist-es/commands/ListDataSourcesCommand.js +3 -9
- package/dist-es/commands/ListFlowAliasesCommand.js +3 -9
- package/dist-es/commands/ListFlowVersionsCommand.js +3 -9
- package/dist-es/commands/ListFlowsCommand.js +3 -9
- package/dist-es/commands/ListIngestionJobsCommand.js +3 -9
- package/dist-es/commands/ListKnowledgeBaseDocumentsCommand.js +3 -9
- package/dist-es/commands/ListKnowledgeBasesCommand.js +3 -9
- package/dist-es/commands/ListPromptsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/PrepareAgentCommand.js +3 -9
- package/dist-es/commands/PrepareFlowCommand.js +3 -9
- package/dist-es/commands/StartIngestionJobCommand.js +3 -9
- package/dist-es/commands/StopIngestionJobCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateAgentActionGroupCommand.js +3 -10
- package/dist-es/commands/UpdateAgentAliasCommand.js +3 -9
- package/dist-es/commands/UpdateAgentCollaboratorCommand.js +3 -10
- package/dist-es/commands/UpdateAgentCommand.js +3 -10
- package/dist-es/commands/UpdateAgentKnowledgeBaseCommand.js +3 -9
- package/dist-es/commands/UpdateDataSourceCommand.js +3 -10
- package/dist-es/commands/UpdateFlowAliasCommand.js +3 -9
- package/dist-es/commands/UpdateFlowCommand.js +3 -10
- package/dist-es/commands/UpdateKnowledgeBaseCommand.js +3 -10
- package/dist-es/commands/UpdatePromptCommand.js +3 -10
- package/dist-es/commands/ValidateFlowDefinitionCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -453
- package/dist-es/models/models_1.js +0 -277
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +4319 -0
- package/dist-types/BedrockAgentClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -276
- package/dist-types/models/models_1.d.ts +0 -196
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +550 -0
- package/dist-types/ts3.4/BedrockAgentClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -193
- package/dist-types/ts3.4/models/models_1.d.ts +0 -145
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +557 -0
- package/package.json +2 -3
- package/dist-es/protocols/Aws_restJson1.js +0 -3385
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -650
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -869
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
|
-
import { AgentVersionFilterSensitiveLog, ConditionFlowNodeConfigurationFilterSensitiveLog, FlowNodeInputFilterSensitiveLog, FlowValidationFilterSensitiveLog, InlineCodeFlowNodeConfigurationFilterSensitiveLog, KnowledgeBaseFlowNodeConfigurationFilterSensitiveLog, LoopControllerFlowNodeConfigurationFilterSensitiveLog, PromptFlowNodeConfigurationFilterSensitiveLog, PromptTemplateConfigurationFilterSensitiveLog, } from "./models_0";
|
|
3
1
|
export const IngestionJobStatus = {
|
|
4
2
|
COMPLETE: "COMPLETE",
|
|
5
3
|
FAILED: "FAILED",
|
|
@@ -158,278 +156,3 @@ export var FlowNodeConfiguration;
|
|
|
158
156
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
159
157
|
};
|
|
160
158
|
})(FlowNodeConfiguration || (FlowNodeConfiguration = {}));
|
|
161
|
-
export const ByteContentDocFilterSensitiveLog = (obj) => ({
|
|
162
|
-
...obj,
|
|
163
|
-
...(obj.data && { data: SENSITIVE_STRING }),
|
|
164
|
-
});
|
|
165
|
-
export const TextContentDocFilterSensitiveLog = (obj) => ({
|
|
166
|
-
...obj,
|
|
167
|
-
...(obj.data && { data: SENSITIVE_STRING }),
|
|
168
|
-
});
|
|
169
|
-
export const InlineContentFilterSensitiveLog = (obj) => ({
|
|
170
|
-
...obj,
|
|
171
|
-
...(obj.byteContent && { byteContent: ByteContentDocFilterSensitiveLog(obj.byteContent) }),
|
|
172
|
-
...(obj.textContent && { textContent: TextContentDocFilterSensitiveLog(obj.textContent) }),
|
|
173
|
-
});
|
|
174
|
-
export const CustomContentFilterSensitiveLog = (obj) => ({
|
|
175
|
-
...obj,
|
|
176
|
-
...(obj.inlineContent && { inlineContent: InlineContentFilterSensitiveLog(obj.inlineContent) }),
|
|
177
|
-
});
|
|
178
|
-
export const DocumentContentFilterSensitiveLog = (obj) => ({
|
|
179
|
-
...obj,
|
|
180
|
-
...(obj.custom && { custom: CustomContentFilterSensitiveLog(obj.custom) }),
|
|
181
|
-
});
|
|
182
|
-
export const MetadataAttributeValueFilterSensitiveLog = (obj) => ({
|
|
183
|
-
...obj,
|
|
184
|
-
...(obj.numberValue && { numberValue: SENSITIVE_STRING }),
|
|
185
|
-
...(obj.stringValue && { stringValue: SENSITIVE_STRING }),
|
|
186
|
-
...(obj.stringListValue && { stringListValue: SENSITIVE_STRING }),
|
|
187
|
-
});
|
|
188
|
-
export const MetadataAttributeFilterSensitiveLog = (obj) => ({
|
|
189
|
-
...obj,
|
|
190
|
-
...(obj.key && { key: SENSITIVE_STRING }),
|
|
191
|
-
...(obj.value && { value: MetadataAttributeValueFilterSensitiveLog(obj.value) }),
|
|
192
|
-
});
|
|
193
|
-
export const DocumentMetadataFilterSensitiveLog = (obj) => ({
|
|
194
|
-
...obj,
|
|
195
|
-
...(obj.inlineAttributes && {
|
|
196
|
-
inlineAttributes: obj.inlineAttributes.map((item) => MetadataAttributeFilterSensitiveLog(item)),
|
|
197
|
-
}),
|
|
198
|
-
});
|
|
199
|
-
export const KnowledgeBaseDocumentFilterSensitiveLog = (obj) => ({
|
|
200
|
-
...obj,
|
|
201
|
-
...(obj.metadata && { metadata: DocumentMetadataFilterSensitiveLog(obj.metadata) }),
|
|
202
|
-
...(obj.content && { content: DocumentContentFilterSensitiveLog(obj.content) }),
|
|
203
|
-
});
|
|
204
|
-
export const IngestKnowledgeBaseDocumentsRequestFilterSensitiveLog = (obj) => ({
|
|
205
|
-
...obj,
|
|
206
|
-
...(obj.documents && { documents: obj.documents.map((item) => KnowledgeBaseDocumentFilterSensitiveLog(item)) }),
|
|
207
|
-
});
|
|
208
|
-
export const QueryGenerationContextFilterSensitiveLog = (obj) => ({
|
|
209
|
-
...obj,
|
|
210
|
-
});
|
|
211
|
-
export const QueryGenerationConfigurationFilterSensitiveLog = (obj) => ({
|
|
212
|
-
...obj,
|
|
213
|
-
...(obj.generationContext && { generationContext: SENSITIVE_STRING }),
|
|
214
|
-
});
|
|
215
|
-
export const RedshiftConfigurationFilterSensitiveLog = (obj) => ({
|
|
216
|
-
...obj,
|
|
217
|
-
...(obj.queryGenerationConfiguration && {
|
|
218
|
-
queryGenerationConfiguration: QueryGenerationConfigurationFilterSensitiveLog(obj.queryGenerationConfiguration),
|
|
219
|
-
}),
|
|
220
|
-
});
|
|
221
|
-
export const SqlKnowledgeBaseConfigurationFilterSensitiveLog = (obj) => ({
|
|
222
|
-
...obj,
|
|
223
|
-
...(obj.redshiftConfiguration && {
|
|
224
|
-
redshiftConfiguration: RedshiftConfigurationFilterSensitiveLog(obj.redshiftConfiguration),
|
|
225
|
-
}),
|
|
226
|
-
});
|
|
227
|
-
export const KnowledgeBaseConfigurationFilterSensitiveLog = (obj) => ({
|
|
228
|
-
...obj,
|
|
229
|
-
...(obj.sqlKnowledgeBaseConfiguration && {
|
|
230
|
-
sqlKnowledgeBaseConfiguration: SqlKnowledgeBaseConfigurationFilterSensitiveLog(obj.sqlKnowledgeBaseConfiguration),
|
|
231
|
-
}),
|
|
232
|
-
});
|
|
233
|
-
export const NeptuneAnalyticsConfigurationFilterSensitiveLog = (obj) => ({
|
|
234
|
-
...obj,
|
|
235
|
-
...(obj.graphArn && { graphArn: SENSITIVE_STRING }),
|
|
236
|
-
});
|
|
237
|
-
export const OpenSearchManagedClusterConfigurationFilterSensitiveLog = (obj) => ({
|
|
238
|
-
...obj,
|
|
239
|
-
...(obj.vectorIndexName && { vectorIndexName: SENSITIVE_STRING }),
|
|
240
|
-
});
|
|
241
|
-
export const S3VectorsConfigurationFilterSensitiveLog = (obj) => ({
|
|
242
|
-
...obj,
|
|
243
|
-
...(obj.vectorBucketArn && { vectorBucketArn: SENSITIVE_STRING }),
|
|
244
|
-
...(obj.indexArn && { indexArn: SENSITIVE_STRING }),
|
|
245
|
-
...(obj.indexName && { indexName: SENSITIVE_STRING }),
|
|
246
|
-
});
|
|
247
|
-
export const StorageConfigurationFilterSensitiveLog = (obj) => ({
|
|
248
|
-
...obj,
|
|
249
|
-
...(obj.opensearchManagedClusterConfiguration && {
|
|
250
|
-
opensearchManagedClusterConfiguration: OpenSearchManagedClusterConfigurationFilterSensitiveLog(obj.opensearchManagedClusterConfiguration),
|
|
251
|
-
}),
|
|
252
|
-
...(obj.neptuneAnalyticsConfiguration && {
|
|
253
|
-
neptuneAnalyticsConfiguration: NeptuneAnalyticsConfigurationFilterSensitiveLog(obj.neptuneAnalyticsConfiguration),
|
|
254
|
-
}),
|
|
255
|
-
...(obj.s3VectorsConfiguration && {
|
|
256
|
-
s3VectorsConfiguration: S3VectorsConfigurationFilterSensitiveLog(obj.s3VectorsConfiguration),
|
|
257
|
-
}),
|
|
258
|
-
});
|
|
259
|
-
export const CreateKnowledgeBaseRequestFilterSensitiveLog = (obj) => ({
|
|
260
|
-
...obj,
|
|
261
|
-
...(obj.knowledgeBaseConfiguration && {
|
|
262
|
-
knowledgeBaseConfiguration: KnowledgeBaseConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration),
|
|
263
|
-
}),
|
|
264
|
-
...(obj.storageConfiguration && {
|
|
265
|
-
storageConfiguration: StorageConfigurationFilterSensitiveLog(obj.storageConfiguration),
|
|
266
|
-
}),
|
|
267
|
-
});
|
|
268
|
-
export const KnowledgeBaseFilterSensitiveLog = (obj) => ({
|
|
269
|
-
...obj,
|
|
270
|
-
...(obj.knowledgeBaseConfiguration && {
|
|
271
|
-
knowledgeBaseConfiguration: KnowledgeBaseConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration),
|
|
272
|
-
}),
|
|
273
|
-
...(obj.storageConfiguration && {
|
|
274
|
-
storageConfiguration: StorageConfigurationFilterSensitiveLog(obj.storageConfiguration),
|
|
275
|
-
}),
|
|
276
|
-
});
|
|
277
|
-
export const CreateKnowledgeBaseResponseFilterSensitiveLog = (obj) => ({
|
|
278
|
-
...obj,
|
|
279
|
-
...(obj.knowledgeBase && { knowledgeBase: KnowledgeBaseFilterSensitiveLog(obj.knowledgeBase) }),
|
|
280
|
-
});
|
|
281
|
-
export const GetKnowledgeBaseResponseFilterSensitiveLog = (obj) => ({
|
|
282
|
-
...obj,
|
|
283
|
-
...(obj.knowledgeBase && { knowledgeBase: KnowledgeBaseFilterSensitiveLog(obj.knowledgeBase) }),
|
|
284
|
-
});
|
|
285
|
-
export const UpdateKnowledgeBaseRequestFilterSensitiveLog = (obj) => ({
|
|
286
|
-
...obj,
|
|
287
|
-
...(obj.knowledgeBaseConfiguration && {
|
|
288
|
-
knowledgeBaseConfiguration: KnowledgeBaseConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration),
|
|
289
|
-
}),
|
|
290
|
-
...(obj.storageConfiguration && {
|
|
291
|
-
storageConfiguration: StorageConfigurationFilterSensitiveLog(obj.storageConfiguration),
|
|
292
|
-
}),
|
|
293
|
-
});
|
|
294
|
-
export const UpdateKnowledgeBaseResponseFilterSensitiveLog = (obj) => ({
|
|
295
|
-
...obj,
|
|
296
|
-
...(obj.knowledgeBase && { knowledgeBase: KnowledgeBaseFilterSensitiveLog(obj.knowledgeBase) }),
|
|
297
|
-
});
|
|
298
|
-
export const PromptAgentResourceFilterSensitiveLog = (obj) => ({
|
|
299
|
-
...obj,
|
|
300
|
-
});
|
|
301
|
-
export const PromptGenAiResourceFilterSensitiveLog = (obj) => {
|
|
302
|
-
if (obj.agent !== undefined)
|
|
303
|
-
return { agent: SENSITIVE_STRING };
|
|
304
|
-
if (obj.$unknown !== undefined)
|
|
305
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
306
|
-
};
|
|
307
|
-
export const PromptMetadataEntryFilterSensitiveLog = (obj) => ({
|
|
308
|
-
...obj,
|
|
309
|
-
...(obj.key && { key: SENSITIVE_STRING }),
|
|
310
|
-
...(obj.value && { value: SENSITIVE_STRING }),
|
|
311
|
-
});
|
|
312
|
-
export const PromptVariantFilterSensitiveLog = (obj) => ({
|
|
313
|
-
...obj,
|
|
314
|
-
...(obj.templateConfiguration && {
|
|
315
|
-
templateConfiguration: PromptTemplateConfigurationFilterSensitiveLog(obj.templateConfiguration),
|
|
316
|
-
}),
|
|
317
|
-
...(obj.inferenceConfiguration && { inferenceConfiguration: obj.inferenceConfiguration }),
|
|
318
|
-
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
319
|
-
...(obj.genAiResource && { genAiResource: SENSITIVE_STRING }),
|
|
320
|
-
});
|
|
321
|
-
export const CreatePromptRequestFilterSensitiveLog = (obj) => ({
|
|
322
|
-
...obj,
|
|
323
|
-
...(obj.variants && { variants: SENSITIVE_STRING }),
|
|
324
|
-
});
|
|
325
|
-
export const CreatePromptResponseFilterSensitiveLog = (obj) => ({
|
|
326
|
-
...obj,
|
|
327
|
-
...(obj.variants && { variants: SENSITIVE_STRING }),
|
|
328
|
-
});
|
|
329
|
-
export const CreatePromptVersionResponseFilterSensitiveLog = (obj) => ({
|
|
330
|
-
...obj,
|
|
331
|
-
...(obj.variants && { variants: SENSITIVE_STRING }),
|
|
332
|
-
});
|
|
333
|
-
export const GetPromptResponseFilterSensitiveLog = (obj) => ({
|
|
334
|
-
...obj,
|
|
335
|
-
...(obj.variants && { variants: SENSITIVE_STRING }),
|
|
336
|
-
});
|
|
337
|
-
export const UpdatePromptRequestFilterSensitiveLog = (obj) => ({
|
|
338
|
-
...obj,
|
|
339
|
-
...(obj.variants && { variants: SENSITIVE_STRING }),
|
|
340
|
-
});
|
|
341
|
-
export const UpdatePromptResponseFilterSensitiveLog = (obj) => ({
|
|
342
|
-
...obj,
|
|
343
|
-
...(obj.variants && { variants: SENSITIVE_STRING }),
|
|
344
|
-
});
|
|
345
|
-
export const ValidateFlowDefinitionResponseFilterSensitiveLog = (obj) => ({
|
|
346
|
-
...obj,
|
|
347
|
-
...(obj.validations && { validations: obj.validations.map((item) => FlowValidationFilterSensitiveLog(item)) }),
|
|
348
|
-
});
|
|
349
|
-
export const GetAgentVersionResponseFilterSensitiveLog = (obj) => ({
|
|
350
|
-
...obj,
|
|
351
|
-
...(obj.agentVersion && { agentVersion: AgentVersionFilterSensitiveLog(obj.agentVersion) }),
|
|
352
|
-
});
|
|
353
|
-
export const FlowDefinitionFilterSensitiveLog = (obj) => ({
|
|
354
|
-
...obj,
|
|
355
|
-
...(obj.nodes && { nodes: obj.nodes.map((item) => FlowNodeFilterSensitiveLog(item)) }),
|
|
356
|
-
...(obj.connections && { connections: obj.connections.map((item) => item) }),
|
|
357
|
-
});
|
|
358
|
-
export const FlowNodeFilterSensitiveLog = (obj) => ({
|
|
359
|
-
...obj,
|
|
360
|
-
...(obj.configuration && { configuration: FlowNodeConfigurationFilterSensitiveLog(obj.configuration) }),
|
|
361
|
-
...(obj.inputs && { inputs: obj.inputs.map((item) => FlowNodeInputFilterSensitiveLog(item)) }),
|
|
362
|
-
});
|
|
363
|
-
export const FlowNodeConfigurationFilterSensitiveLog = (obj) => {
|
|
364
|
-
if (obj.input !== undefined)
|
|
365
|
-
return { input: obj.input };
|
|
366
|
-
if (obj.output !== undefined)
|
|
367
|
-
return { output: obj.output };
|
|
368
|
-
if (obj.knowledgeBase !== undefined)
|
|
369
|
-
return { knowledgeBase: KnowledgeBaseFlowNodeConfigurationFilterSensitiveLog(obj.knowledgeBase) };
|
|
370
|
-
if (obj.condition !== undefined)
|
|
371
|
-
return { condition: ConditionFlowNodeConfigurationFilterSensitiveLog(obj.condition) };
|
|
372
|
-
if (obj.lex !== undefined)
|
|
373
|
-
return { lex: obj.lex };
|
|
374
|
-
if (obj.prompt !== undefined)
|
|
375
|
-
return { prompt: PromptFlowNodeConfigurationFilterSensitiveLog(obj.prompt) };
|
|
376
|
-
if (obj.lambdaFunction !== undefined)
|
|
377
|
-
return { lambdaFunction: obj.lambdaFunction };
|
|
378
|
-
if (obj.storage !== undefined)
|
|
379
|
-
return { storage: obj.storage };
|
|
380
|
-
if (obj.agent !== undefined)
|
|
381
|
-
return { agent: obj.agent };
|
|
382
|
-
if (obj.retrieval !== undefined)
|
|
383
|
-
return { retrieval: obj.retrieval };
|
|
384
|
-
if (obj.iterator !== undefined)
|
|
385
|
-
return { iterator: obj.iterator };
|
|
386
|
-
if (obj.collector !== undefined)
|
|
387
|
-
return { collector: obj.collector };
|
|
388
|
-
if (obj.inlineCode !== undefined)
|
|
389
|
-
return { inlineCode: InlineCodeFlowNodeConfigurationFilterSensitiveLog(obj.inlineCode) };
|
|
390
|
-
if (obj.loop !== undefined)
|
|
391
|
-
return { loop: LoopFlowNodeConfigurationFilterSensitiveLog(obj.loop) };
|
|
392
|
-
if (obj.loopInput !== undefined)
|
|
393
|
-
return { loopInput: obj.loopInput };
|
|
394
|
-
if (obj.loopController !== undefined)
|
|
395
|
-
return { loopController: LoopControllerFlowNodeConfigurationFilterSensitiveLog(obj.loopController) };
|
|
396
|
-
if (obj.$unknown !== undefined)
|
|
397
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
398
|
-
};
|
|
399
|
-
export const LoopFlowNodeConfigurationFilterSensitiveLog = (obj) => ({
|
|
400
|
-
...obj,
|
|
401
|
-
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
402
|
-
});
|
|
403
|
-
export const CreateFlowRequestFilterSensitiveLog = (obj) => ({
|
|
404
|
-
...obj,
|
|
405
|
-
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
406
|
-
});
|
|
407
|
-
export const CreateFlowResponseFilterSensitiveLog = (obj) => ({
|
|
408
|
-
...obj,
|
|
409
|
-
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
410
|
-
});
|
|
411
|
-
export const CreateFlowVersionResponseFilterSensitiveLog = (obj) => ({
|
|
412
|
-
...obj,
|
|
413
|
-
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
414
|
-
});
|
|
415
|
-
export const GetFlowResponseFilterSensitiveLog = (obj) => ({
|
|
416
|
-
...obj,
|
|
417
|
-
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
418
|
-
...(obj.validations && { validations: obj.validations.map((item) => FlowValidationFilterSensitiveLog(item)) }),
|
|
419
|
-
});
|
|
420
|
-
export const GetFlowVersionResponseFilterSensitiveLog = (obj) => ({
|
|
421
|
-
...obj,
|
|
422
|
-
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
423
|
-
});
|
|
424
|
-
export const UpdateFlowRequestFilterSensitiveLog = (obj) => ({
|
|
425
|
-
...obj,
|
|
426
|
-
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
427
|
-
});
|
|
428
|
-
export const UpdateFlowResponseFilterSensitiveLog = (obj) => ({
|
|
429
|
-
...obj,
|
|
430
|
-
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
431
|
-
});
|
|
432
|
-
export const ValidateFlowDefinitionRequestFilterSensitiveLog = (obj) => ({
|
|
433
|
-
...obj,
|
|
434
|
-
...(obj.definition && { definition: SENSITIVE_STRING }),
|
|
435
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.bedrockagent" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "Bedrock Agent",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|