@aws-sdk/client-bedrock-agent 3.1069.0 → 3.1071.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.
Files changed (46) hide show
  1. package/README.md +21 -0
  2. package/dist-cjs/index.js +73 -5
  3. package/dist-cjs/schemas/schemas_0.js +160 -21
  4. package/dist-es/BedrockAgent.js +6 -0
  5. package/dist-es/commands/DeleteResourcePolicyCommand.js +16 -0
  6. package/dist-es/commands/GetResourcePolicyCommand.js +16 -0
  7. package/dist-es/commands/PutResourcePolicyCommand.js +16 -0
  8. package/dist-es/commands/index.js +3 -0
  9. package/dist-es/models/enums.js +26 -4
  10. package/dist-es/schemas/schemas_0.js +146 -21
  11. package/dist-types/BedrockAgent.d.ts +21 -0
  12. package/dist-types/BedrockAgentClient.d.ts +5 -2
  13. package/dist-types/commands/CreateDataSourceCommand.d.ts +41 -5
  14. package/dist-types/commands/CreateKnowledgeBaseCommand.d.ts +58 -4
  15. package/dist-types/commands/DeleteDataSourceCommand.d.ts +1 -1
  16. package/dist-types/commands/DeleteKnowledgeBaseCommand.d.ts +1 -1
  17. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +96 -0
  18. package/dist-types/commands/GetDataSourceCommand.d.ts +21 -3
  19. package/dist-types/commands/GetIngestionJobCommand.d.ts +1 -0
  20. package/dist-types/commands/GetKnowledgeBaseCommand.d.ts +29 -2
  21. package/dist-types/commands/GetResourcePolicyCommand.d.ts +93 -0
  22. package/dist-types/commands/IngestKnowledgeBaseDocumentsCommand.d.ts +7 -0
  23. package/dist-types/commands/ListDataSourcesCommand.d.ts +1 -1
  24. package/dist-types/commands/ListIngestionJobsCommand.d.ts +1 -0
  25. package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +1 -1
  26. package/dist-types/commands/PutResourcePolicyCommand.d.ts +97 -0
  27. package/dist-types/commands/StartIngestionJobCommand.d.ts +1 -0
  28. package/dist-types/commands/StopIngestionJobCommand.d.ts +1 -0
  29. package/dist-types/commands/UpdateDataSourceCommand.d.ts +41 -5
  30. package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +57 -3
  31. package/dist-types/commands/index.d.ts +3 -0
  32. package/dist-types/models/enums.d.ts +66 -12
  33. package/dist-types/models/models_0.d.ts +248 -241
  34. package/dist-types/models/models_1.d.ts +269 -21
  35. package/dist-types/schemas/schemas_0.d.ts +17 -0
  36. package/dist-types/ts3.4/BedrockAgent.d.ts +51 -0
  37. package/dist-types/ts3.4/BedrockAgentClient.d.ts +18 -0
  38. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +53 -0
  39. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +53 -0
  40. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +53 -0
  41. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  42. package/dist-types/ts3.4/models/enums.d.ts +36 -6
  43. package/dist-types/ts3.4/models/models_0.d.ts +79 -74
  44. package/dist-types/ts3.4/models/models_1.d.ts +83 -13
  45. package/dist-types/ts3.4/schemas/schemas_0.d.ts +17 -0
  46. package/package.json +3 -3
package/README.md CHANGED
@@ -342,6 +342,13 @@ DeletePrompt
342
342
  </details>
343
343
  <details>
344
344
  <summary>
345
+ DeleteResourcePolicy
346
+ </summary>
347
+
348
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/DeleteResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/DeleteResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/DeleteResourcePolicyCommandOutput/)
349
+ </details>
350
+ <details>
351
+ <summary>
345
352
  DisassociateAgentCollaborator
346
353
  </summary>
347
354
 
@@ -454,6 +461,13 @@ GetPrompt
454
461
  </details>
455
462
  <details>
456
463
  <summary>
464
+ GetResourcePolicy
465
+ </summary>
466
+
467
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/GetResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/GetResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/GetResourcePolicyCommandOutput/)
468
+ </details>
469
+ <details>
470
+ <summary>
457
471
  IngestKnowledgeBaseDocuments
458
472
  </summary>
459
473
 
@@ -580,6 +594,13 @@ PrepareFlow
580
594
  </details>
581
595
  <details>
582
596
  <summary>
597
+ PutResourcePolicy
598
+ </summary>
599
+
600
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/PutResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/PutResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/PutResourcePolicyCommandOutput/)
601
+ </details>
602
+ <details>
603
+ <summary>
583
604
  StartIngestionJob
584
605
  </summary>
585
606
 
package/dist-cjs/index.js CHANGED
@@ -11,7 +11,7 @@ const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
11
  const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
12
  const { resolveHttpAuthSchemeConfig, defaultBedrockAgentHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
13
  const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { AssociateAgentCollaborator$, AssociateAgentKnowledgeBase$, CreateAgentActionGroup$, CreateAgentAlias$, CreateAgent$, CreateDataSource$, CreateFlowAlias$, CreateFlow$, CreateFlowVersion$, CreateKnowledgeBase$, CreatePrompt$, CreatePromptVersion$, DeleteAgentActionGroup$, DeleteAgentAlias$, DeleteAgent$, DeleteAgentVersion$, DeleteDataSource$, DeleteFlowAlias$, DeleteFlow$, DeleteFlowVersion$, DeleteKnowledgeBase$, DeleteKnowledgeBaseDocuments$, DeletePrompt$, DisassociateAgentCollaborator$, DisassociateAgentKnowledgeBase$, GetAgentActionGroup$, GetAgentAlias$, GetAgentCollaborator$, GetAgent$, GetAgentKnowledgeBase$, GetAgentVersion$, GetDataSource$, GetFlowAlias$, GetFlow$, GetFlowVersion$, GetIngestionJob$, GetKnowledgeBase$, GetKnowledgeBaseDocuments$, GetPrompt$, IngestKnowledgeBaseDocuments$, ListAgentActionGroups$, ListAgentAliases$, ListAgentCollaborators$, ListAgentKnowledgeBases$, ListAgents$, ListAgentVersions$, ListDataSources$, ListFlowAliases$, ListFlows$, ListFlowVersions$, ListIngestionJobs$, ListKnowledgeBaseDocuments$, ListKnowledgeBases$, ListPrompts$, ListTagsForResource$, PrepareAgent$, PrepareFlow$, StartIngestionJob$, StopIngestionJob$, TagResource$, UntagResource$, UpdateAgentActionGroup$, UpdateAgentAlias$, UpdateAgentCollaborator$, UpdateAgent$, UpdateAgentKnowledgeBase$, UpdateDataSource$, UpdateFlowAlias$, UpdateFlow$, UpdateKnowledgeBase$, UpdatePrompt$, ValidateFlowDefinition$ } = require("./schemas/schemas_0");
14
+ const { AssociateAgentCollaborator$, AssociateAgentKnowledgeBase$, CreateAgentActionGroup$, CreateAgentAlias$, CreateAgent$, CreateDataSource$, CreateFlowAlias$, CreateFlow$, CreateFlowVersion$, CreateKnowledgeBase$, CreatePrompt$, CreatePromptVersion$, DeleteAgentActionGroup$, DeleteAgentAlias$, DeleteAgent$, DeleteAgentVersion$, DeleteDataSource$, DeleteFlowAlias$, DeleteFlow$, DeleteFlowVersion$, DeleteKnowledgeBase$, DeleteKnowledgeBaseDocuments$, DeletePrompt$, DeleteResourcePolicy$, DisassociateAgentCollaborator$, DisassociateAgentKnowledgeBase$, GetAgentActionGroup$, GetAgentAlias$, GetAgentCollaborator$, GetAgent$, GetAgentKnowledgeBase$, GetAgentVersion$, GetDataSource$, GetFlowAlias$, GetFlow$, GetFlowVersion$, GetIngestionJob$, GetKnowledgeBase$, GetKnowledgeBaseDocuments$, GetPrompt$, GetResourcePolicy$, IngestKnowledgeBaseDocuments$, ListAgentActionGroups$, ListAgentAliases$, ListAgentCollaborators$, ListAgentKnowledgeBases$, ListAgents$, ListAgentVersions$, ListDataSources$, ListFlowAliases$, ListFlows$, ListFlowVersions$, ListIngestionJobs$, ListKnowledgeBaseDocuments$, ListKnowledgeBases$, ListPrompts$, ListTagsForResource$, PrepareAgent$, PrepareFlow$, PutResourcePolicy$, StartIngestionJob$, StopIngestionJob$, TagResource$, UntagResource$, UpdateAgentActionGroup$, UpdateAgentAlias$, UpdateAgentCollaborator$, UpdateAgent$, UpdateAgentKnowledgeBase$, UpdateDataSource$, UpdateFlowAlias$, UpdateFlow$, UpdateKnowledgeBase$, UpdatePrompt$, ValidateFlowDefinition$ } = require("./schemas/schemas_0");
15
15
  __exportStar(require("./schemas/schemas_0"), exports);
16
16
  __exportStar(require("./models/errors"), exports);
17
17
  const { BedrockAgentServiceException } = require("./models/BedrockAgentServiceException");
@@ -387,6 +387,18 @@ class DeletePromptCommand extends Command
387
387
  .build() {
388
388
  }
389
389
 
390
+ class DeleteResourcePolicyCommand extends Command
391
+ .classBuilder()
392
+ .ep(commonParams)
393
+ .m(function (Command, cs, config, o) {
394
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
395
+ })
396
+ .s("AmazonBedrockAgentBuildTimeLambda", "DeleteResourcePolicy", {})
397
+ .n("BedrockAgentClient", "DeleteResourcePolicyCommand")
398
+ .sc(DeleteResourcePolicy$)
399
+ .build() {
400
+ }
401
+
390
402
  class DisassociateAgentCollaboratorCommand extends Command
391
403
  .classBuilder()
392
404
  .ep(commonParams)
@@ -579,6 +591,18 @@ class GetPromptCommand extends Command
579
591
  .build() {
580
592
  }
581
593
 
594
+ class GetResourcePolicyCommand extends Command
595
+ .classBuilder()
596
+ .ep(commonParams)
597
+ .m(function (Command, cs, config, o) {
598
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
599
+ })
600
+ .s("AmazonBedrockAgentBuildTimeLambda", "GetResourcePolicy", {})
601
+ .n("BedrockAgentClient", "GetResourcePolicyCommand")
602
+ .sc(GetResourcePolicy$)
603
+ .build() {
604
+ }
605
+
582
606
  class IngestKnowledgeBaseDocumentsCommand extends Command
583
607
  .classBuilder()
584
608
  .ep(commonParams)
@@ -795,6 +819,18 @@ class PrepareFlowCommand extends Command
795
819
  .build() {
796
820
  }
797
821
 
822
+ class PutResourcePolicyCommand extends Command
823
+ .classBuilder()
824
+ .ep(commonParams)
825
+ .m(function (Command, cs, config, o) {
826
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
827
+ })
828
+ .s("AmazonBedrockAgentBuildTimeLambda", "PutResourcePolicy", {})
829
+ .n("BedrockAgentClient", "PutResourcePolicyCommand")
830
+ .sc(PutResourcePolicy$)
831
+ .build() {
832
+ }
833
+
798
834
  class StartIngestionJobCommand extends Command
799
835
  .classBuilder()
800
836
  .ep(commonParams)
@@ -1027,6 +1063,7 @@ const commands = {
1027
1063
  DeleteKnowledgeBaseCommand,
1028
1064
  DeleteKnowledgeBaseDocumentsCommand,
1029
1065
  DeletePromptCommand,
1066
+ DeleteResourcePolicyCommand,
1030
1067
  DisassociateAgentCollaboratorCommand,
1031
1068
  DisassociateAgentKnowledgeBaseCommand,
1032
1069
  GetAgentCommand,
@@ -1043,6 +1080,7 @@ const commands = {
1043
1080
  GetKnowledgeBaseCommand,
1044
1081
  GetKnowledgeBaseDocumentsCommand,
1045
1082
  GetPromptCommand,
1083
+ GetResourcePolicyCommand,
1046
1084
  IngestKnowledgeBaseDocumentsCommand,
1047
1085
  ListAgentActionGroupsCommand,
1048
1086
  ListAgentAliasesCommand,
@@ -1061,6 +1099,7 @@ const commands = {
1061
1099
  ListTagsForResourceCommand,
1062
1100
  PrepareAgentCommand,
1063
1101
  PrepareFlowCommand,
1102
+ PutResourcePolicyCommand,
1064
1103
  StartIngestionJobCommand,
1065
1104
  StopIngestionJobCommand,
1066
1105
  TagResourceCommand,
@@ -1097,6 +1136,13 @@ class BedrockAgent extends BedrockAgentClient {
1097
1136
  }
1098
1137
  createAggregatedClient(commands, BedrockAgent, { paginators });
1099
1138
 
1139
+ const AccessControlAccess = {
1140
+ ALLOW: "ALLOW",
1141
+ DENY: "DENY",
1142
+ };
1143
+ const AccessControlPrincipalType = {
1144
+ USER: "USER",
1145
+ };
1100
1146
  const CustomControlMethod = {
1101
1147
  RETURN_CONTROL: "RETURN_CONTROL",
1102
1148
  };
@@ -1193,6 +1239,10 @@ const ConfluenceAuthType = {
1193
1239
  const ConfluenceHostType = {
1194
1240
  SAAS: "SAAS",
1195
1241
  };
1242
+ const EnabledOrDisabledState = {
1243
+ DISABLED: "DISABLED",
1244
+ ENABLED: "ENABLED",
1245
+ };
1196
1246
  const SalesforceAuthType = {
1197
1247
  OAUTH2_CLIENT_CREDENTIALS: "OAUTH2_CLIENT_CREDENTIALS",
1198
1248
  };
@@ -1206,6 +1256,7 @@ const SharePointHostType = {
1206
1256
  const DataSourceType = {
1207
1257
  CONFLUENCE: "CONFLUENCE",
1208
1258
  CUSTOM: "CUSTOM",
1259
+ MANAGED_KNOWLEDGE_BASE_CONNECTOR: "MANAGED_KNOWLEDGE_BASE_CONNECTOR",
1209
1260
  REDSHIFT_METADATA: "REDSHIFT_METADATA",
1210
1261
  S3: "S3",
1211
1262
  SALESFORCE: "SALESFORCE",
@@ -1237,11 +1288,15 @@ const ParsingModality = {
1237
1288
  const ParsingStrategy = {
1238
1289
  BEDROCK_DATA_AUTOMATION: "BEDROCK_DATA_AUTOMATION",
1239
1290
  BEDROCK_FOUNDATION_MODEL: "BEDROCK_FOUNDATION_MODEL",
1291
+ SMART_PARSING: "SMART_PARSING",
1240
1292
  };
1241
1293
  const DataSourceStatus = {
1242
1294
  AVAILABLE: "AVAILABLE",
1295
+ CREATING: "CREATING",
1243
1296
  DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL",
1244
1297
  DELETING: "DELETING",
1298
+ FAILED: "FAILED",
1299
+ UPDATING: "UPDATING",
1245
1300
  };
1246
1301
  const FlowConnectionType = {
1247
1302
  CONDITIONAL: "Conditional",
@@ -1415,6 +1470,14 @@ const MetadataSourceType = {
1415
1470
  IN_LINE_ATTRIBUTE: "IN_LINE_ATTRIBUTE",
1416
1471
  S3_LOCATION: "S3_LOCATION",
1417
1472
  };
1473
+ const EmbeddingDataType = {
1474
+ BINARY: "BINARY",
1475
+ FLOAT32: "FLOAT32",
1476
+ };
1477
+ const EmbeddingModelType = {
1478
+ CUSTOM: "CUSTOM",
1479
+ MANAGED: "MANAGED",
1480
+ };
1418
1481
  const RedshiftProvisionedAuthType = {
1419
1482
  IAM: "IAM",
1420
1483
  USERNAME: "USERNAME",
@@ -1441,13 +1504,10 @@ const QueryEngineType = {
1441
1504
  };
1442
1505
  const KnowledgeBaseType = {
1443
1506
  KENDRA: "KENDRA",
1507
+ MANAGED: "MANAGED",
1444
1508
  SQL: "SQL",
1445
1509
  VECTOR: "VECTOR",
1446
1510
  };
1447
- const EmbeddingDataType = {
1448
- BINARY: "BINARY",
1449
- FLOAT32: "FLOAT32",
1450
- };
1451
1511
  const SupplementalDataStorageLocationType = {
1452
1512
  S3: "S3",
1453
1513
  };
@@ -1467,9 +1527,12 @@ const KnowledgeBaseStatus = {
1467
1527
  DELETE_UNSUCCESSFUL: "DELETE_UNSUCCESSFUL",
1468
1528
  DELETING: "DELETING",
1469
1529
  FAILED: "FAILED",
1530
+ UPDATE_UNSUCCESSFUL: "UPDATE_UNSUCCESSFUL",
1470
1531
  UPDATING: "UPDATING",
1471
1532
  };
1472
1533
 
1534
+ exports.AccessControlAccess = AccessControlAccess;
1535
+ exports.AccessControlPrincipalType = AccessControlPrincipalType;
1473
1536
  exports.ActionGroupSignature = ActionGroupSignature;
1474
1537
  exports.ActionGroupState = ActionGroupState;
1475
1538
  exports.AgentAliasStatus = AgentAliasStatus;
@@ -1516,10 +1579,13 @@ exports.DeleteFlowVersionCommand = DeleteFlowVersionCommand;
1516
1579
  exports.DeleteKnowledgeBaseCommand = DeleteKnowledgeBaseCommand;
1517
1580
  exports.DeleteKnowledgeBaseDocumentsCommand = DeleteKnowledgeBaseDocumentsCommand;
1518
1581
  exports.DeletePromptCommand = DeletePromptCommand;
1582
+ exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
1519
1583
  exports.DisassociateAgentCollaboratorCommand = DisassociateAgentCollaboratorCommand;
1520
1584
  exports.DisassociateAgentKnowledgeBaseCommand = DisassociateAgentKnowledgeBaseCommand;
1521
1585
  exports.DocumentStatus = DocumentStatus;
1522
1586
  exports.EmbeddingDataType = EmbeddingDataType;
1587
+ exports.EmbeddingModelType = EmbeddingModelType;
1588
+ exports.EnabledOrDisabledState = EnabledOrDisabledState;
1523
1589
  exports.EnrichmentStrategyMethod = EnrichmentStrategyMethod;
1524
1590
  exports.FlowConnectionType = FlowConnectionType;
1525
1591
  exports.FlowNodeIODataType = FlowNodeIODataType;
@@ -1542,6 +1608,7 @@ exports.GetIngestionJobCommand = GetIngestionJobCommand;
1542
1608
  exports.GetKnowledgeBaseCommand = GetKnowledgeBaseCommand;
1543
1609
  exports.GetKnowledgeBaseDocumentsCommand = GetKnowledgeBaseDocumentsCommand;
1544
1610
  exports.GetPromptCommand = GetPromptCommand;
1611
+ exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
1545
1612
  exports.IncludeExclude = IncludeExclude;
1546
1613
  exports.IncompatibleLoopNodeType = IncompatibleLoopNodeType;
1547
1614
  exports.IngestKnowledgeBaseDocumentsCommand = IngestKnowledgeBaseDocumentsCommand;
@@ -1581,6 +1648,7 @@ exports.PrepareFlowCommand = PrepareFlowCommand;
1581
1648
  exports.PromptState = PromptState;
1582
1649
  exports.PromptTemplateType = PromptTemplateType;
1583
1650
  exports.PromptType = PromptType;
1651
+ exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
1584
1652
  exports.QueryEngineType = QueryEngineType;
1585
1653
  exports.RedshiftProvisionedAuthType = RedshiftProvisionedAuthType;
1586
1654
  exports.RedshiftQueryEngineStorageType = RedshiftQueryEngineStorageType;