@aws-sdk/client-bedrock-agent 3.658.1 → 3.662.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 CHANGED
@@ -602,6 +602,14 @@ StartIngestionJob
602
602
 
603
603
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/StartIngestionJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/StartIngestionJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/StartIngestionJobCommandOutput/)
604
604
 
605
+ </details>
606
+ <details>
607
+ <summary>
608
+ StopIngestionJob
609
+ </summary>
610
+
611
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent/command/StopIngestionJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/StopIngestionJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent/Interface/StopIngestionJobCommandOutput/)
612
+
605
613
  </details>
606
614
  <details>
607
615
  <summary>
package/dist-cjs/index.js CHANGED
@@ -174,6 +174,7 @@ __export(src_exports, {
174
174
  SortOrder: () => SortOrder,
175
175
  StartIngestionJobCommand: () => StartIngestionJobCommand,
176
176
  StepType: () => StepType,
177
+ StopIngestionJobCommand: () => StopIngestionJobCommand,
177
178
  StorageFlowNodeServiceConfiguration: () => StorageFlowNodeServiceConfiguration,
178
179
  TagResourceCommand: () => TagResourceCommand,
179
180
  TextPromptTemplateConfigurationFilterSensitiveLog: () => TextPromptTemplateConfigurationFilterSensitiveLog,
@@ -769,7 +770,9 @@ var IngestionJobStatus = {
769
770
  COMPLETE: "COMPLETE",
770
771
  FAILED: "FAILED",
771
772
  IN_PROGRESS: "IN_PROGRESS",
772
- STARTING: "STARTING"
773
+ STARTING: "STARTING",
774
+ STOPPED: "STOPPED",
775
+ STOPPING: "STOPPING"
773
776
  };
774
777
  var IngestionJobFilterAttribute = {
775
778
  STATUS: "STATUS"
@@ -1859,6 +1862,17 @@ var se_StartIngestionJobCommand = /* @__PURE__ */ __name(async (input, context)
1859
1862
  b.m("PUT").h(headers).b(body);
1860
1863
  return b.build();
1861
1864
  }, "se_StartIngestionJobCommand");
1865
+ var se_StopIngestionJobCommand = /* @__PURE__ */ __name(async (input, context) => {
1866
+ const b = (0, import_core.requestBuilder)(input, context);
1867
+ const headers = {};
1868
+ b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/ingestionjobs/{ingestionJobId}/stop");
1869
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
1870
+ b.p("dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
1871
+ b.p("ingestionJobId", () => input.ingestionJobId, "{ingestionJobId}", false);
1872
+ let body;
1873
+ b.m("POST").h(headers).b(body);
1874
+ return b.build();
1875
+ }, "se_StopIngestionJobCommand");
1862
1876
  var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1863
1877
  const b = (0, import_core.requestBuilder)(input, context);
1864
1878
  const headers = {
@@ -2874,6 +2888,20 @@ var de_StartIngestionJobCommand = /* @__PURE__ */ __name(async (output, context)
2874
2888
  Object.assign(contents, doc);
2875
2889
  return contents;
2876
2890
  }, "de_StartIngestionJobCommand");
2891
+ var de_StopIngestionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
2892
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
2893
+ return de_CommandError(output, context);
2894
+ }
2895
+ const contents = (0, import_smithy_client.map)({
2896
+ $metadata: deserializeMetadata(output)
2897
+ });
2898
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2899
+ const doc = (0, import_smithy_client.take)(data, {
2900
+ ingestionJob: (_) => de_IngestionJob(_, context)
2901
+ });
2902
+ Object.assign(contents, doc);
2903
+ return contents;
2904
+ }, "de_StopIngestionJobCommand");
2877
2905
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2878
2906
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2879
2907
  return de_CommandError(output, context);
@@ -4521,6 +4549,20 @@ var _StartIngestionJobCommand = class _StartIngestionJobCommand extends import_s
4521
4549
  __name(_StartIngestionJobCommand, "StartIngestionJobCommand");
4522
4550
  var StartIngestionJobCommand = _StartIngestionJobCommand;
4523
4551
 
4552
+ // src/commands/StopIngestionJobCommand.ts
4553
+
4554
+
4555
+
4556
+ var _StopIngestionJobCommand = class _StopIngestionJobCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
4557
+ return [
4558
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4559
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4560
+ ];
4561
+ }).s("AmazonBedrockAgentBuildTimeLambda", "StopIngestionJob", {}).n("BedrockAgentClient", "StopIngestionJobCommand").f(void 0, void 0).ser(se_StopIngestionJobCommand).de(de_StopIngestionJobCommand).build() {
4562
+ };
4563
+ __name(_StopIngestionJobCommand, "StopIngestionJobCommand");
4564
+ var StopIngestionJobCommand = _StopIngestionJobCommand;
4565
+
4524
4566
  // src/commands/TagResourceCommand.ts
4525
4567
 
4526
4568
 
@@ -4727,6 +4769,7 @@ var commands = {
4727
4769
  PrepareAgentCommand,
4728
4770
  PrepareFlowCommand,
4729
4771
  StartIngestionJobCommand,
4772
+ StopIngestionJobCommand,
4730
4773
  TagResourceCommand,
4731
4774
  UntagResourceCommand,
4732
4775
  UpdateAgentCommand,
@@ -4850,6 +4893,7 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
4850
4893
  PrepareAgentCommand,
4851
4894
  PrepareFlowCommand,
4852
4895
  StartIngestionJobCommand,
4896
+ StopIngestionJobCommand,
4853
4897
  TagResourceCommand,
4854
4898
  UntagResourceCommand,
4855
4899
  UpdateAgentActionGroupCommand,
@@ -50,6 +50,7 @@ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceComma
50
50
  import { PrepareAgentCommand, } from "./commands/PrepareAgentCommand";
51
51
  import { PrepareFlowCommand } from "./commands/PrepareFlowCommand";
52
52
  import { StartIngestionJobCommand, } from "./commands/StartIngestionJobCommand";
53
+ import { StopIngestionJobCommand, } from "./commands/StopIngestionJobCommand";
53
54
  import { TagResourceCommand } from "./commands/TagResourceCommand";
54
55
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
55
56
  import { UpdateAgentActionGroupCommand, } from "./commands/UpdateAgentActionGroupCommand";
@@ -112,6 +113,7 @@ const commands = {
112
113
  PrepareAgentCommand,
113
114
  PrepareFlowCommand,
114
115
  StartIngestionJobCommand,
116
+ StopIngestionJobCommand,
115
117
  TagResourceCommand,
116
118
  UntagResourceCommand,
117
119
  UpdateAgentCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_StopIngestionJobCommand, se_StopIngestionJobCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class StopIngestionJobCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonBedrockAgentBuildTimeLambda", "StopIngestionJob", {})
17
+ .n("BedrockAgentClient", "StopIngestionJobCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_StopIngestionJobCommand)
20
+ .de(de_StopIngestionJobCommand)
21
+ .build() {
22
+ }
@@ -48,6 +48,7 @@ export * from "./ListTagsForResourceCommand";
48
48
  export * from "./PrepareAgentCommand";
49
49
  export * from "./PrepareFlowCommand";
50
50
  export * from "./StartIngestionJobCommand";
51
+ export * from "./StopIngestionJobCommand";
51
52
  export * from "./TagResourceCommand";
52
53
  export * from "./UntagResourceCommand";
53
54
  export * from "./UpdateAgentActionGroupCommand";
@@ -349,6 +349,8 @@ export const IngestionJobStatus = {
349
349
  FAILED: "FAILED",
350
350
  IN_PROGRESS: "IN_PROGRESS",
351
351
  STARTING: "STARTING",
352
+ STOPPED: "STOPPED",
353
+ STOPPING: "STOPPING",
352
354
  };
353
355
  export const IngestionJobFilterAttribute = {
354
356
  STATUS: "STATUS",
@@ -676,6 +676,17 @@ export const se_StartIngestionJobCommand = async (input, context) => {
676
676
  b.m("PUT").h(headers).b(body);
677
677
  return b.build();
678
678
  };
679
+ export const se_StopIngestionJobCommand = async (input, context) => {
680
+ const b = rb(input, context);
681
+ const headers = {};
682
+ b.bp("/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/ingestionjobs/{ingestionJobId}/stop");
683
+ b.p("knowledgeBaseId", () => input.knowledgeBaseId, "{knowledgeBaseId}", false);
684
+ b.p("dataSourceId", () => input.dataSourceId, "{dataSourceId}", false);
685
+ b.p("ingestionJobId", () => input.ingestionJobId, "{ingestionJobId}", false);
686
+ let body;
687
+ b.m("POST").h(headers).b(body);
688
+ return b.build();
689
+ };
679
690
  export const se_TagResourceCommand = async (input, context) => {
680
691
  const b = rb(input, context);
681
692
  const headers = {
@@ -1671,6 +1682,20 @@ export const de_StartIngestionJobCommand = async (output, context) => {
1671
1682
  Object.assign(contents, doc);
1672
1683
  return contents;
1673
1684
  };
1685
+ export const de_StopIngestionJobCommand = async (output, context) => {
1686
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1687
+ return de_CommandError(output, context);
1688
+ }
1689
+ const contents = map({
1690
+ $metadata: deserializeMetadata(output),
1691
+ });
1692
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1693
+ const doc = take(data, {
1694
+ ingestionJob: (_) => de_IngestionJob(_, context),
1695
+ });
1696
+ Object.assign(contents, doc);
1697
+ return contents;
1698
+ };
1674
1699
  export const de_TagResourceCommand = async (output, context) => {
1675
1700
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1676
1701
  return de_CommandError(output, context);
@@ -50,6 +50,7 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
50
50
  import { PrepareAgentCommandInput, PrepareAgentCommandOutput } from "./commands/PrepareAgentCommand";
51
51
  import { PrepareFlowCommandInput, PrepareFlowCommandOutput } from "./commands/PrepareFlowCommand";
52
52
  import { StartIngestionJobCommandInput, StartIngestionJobCommandOutput } from "./commands/StartIngestionJobCommand";
53
+ import { StopIngestionJobCommandInput, StopIngestionJobCommandOutput } from "./commands/StopIngestionJobCommand";
53
54
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
54
55
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
55
56
  import { UpdateAgentActionGroupCommandInput, UpdateAgentActionGroupCommandOutput } from "./commands/UpdateAgentActionGroupCommand";
@@ -366,6 +367,12 @@ export interface BedrockAgent {
366
367
  startIngestionJob(args: StartIngestionJobCommandInput, options?: __HttpHandlerOptions): Promise<StartIngestionJobCommandOutput>;
367
368
  startIngestionJob(args: StartIngestionJobCommandInput, cb: (err: any, data?: StartIngestionJobCommandOutput) => void): void;
368
369
  startIngestionJob(args: StartIngestionJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartIngestionJobCommandOutput) => void): void;
370
+ /**
371
+ * @see {@link StopIngestionJobCommand}
372
+ */
373
+ stopIngestionJob(args: StopIngestionJobCommandInput, options?: __HttpHandlerOptions): Promise<StopIngestionJobCommandOutput>;
374
+ stopIngestionJob(args: StopIngestionJobCommandInput, cb: (err: any, data?: StopIngestionJobCommandOutput) => void): void;
375
+ stopIngestionJob(args: StopIngestionJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopIngestionJobCommandOutput) => void): void;
369
376
  /**
370
377
  * @see {@link TagResourceCommand}
371
378
  */
@@ -57,6 +57,7 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
57
57
  import { PrepareAgentCommandInput, PrepareAgentCommandOutput } from "./commands/PrepareAgentCommand";
58
58
  import { PrepareFlowCommandInput, PrepareFlowCommandOutput } from "./commands/PrepareFlowCommand";
59
59
  import { StartIngestionJobCommandInput, StartIngestionJobCommandOutput } from "./commands/StartIngestionJobCommand";
60
+ import { StopIngestionJobCommandInput, StopIngestionJobCommandOutput } from "./commands/StopIngestionJobCommand";
60
61
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
61
62
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
62
63
  import { UpdateAgentActionGroupCommandInput, UpdateAgentActionGroupCommandOutput } from "./commands/UpdateAgentActionGroupCommand";
@@ -74,11 +75,11 @@ export { __Client };
74
75
  /**
75
76
  * @public
76
77
  */
77
- export type ServiceInputTypes = AssociateAgentKnowledgeBaseCommandInput | CreateAgentActionGroupCommandInput | CreateAgentAliasCommandInput | CreateAgentCommandInput | CreateDataSourceCommandInput | CreateFlowAliasCommandInput | CreateFlowCommandInput | CreateFlowVersionCommandInput | CreateKnowledgeBaseCommandInput | CreatePromptCommandInput | CreatePromptVersionCommandInput | DeleteAgentActionGroupCommandInput | DeleteAgentAliasCommandInput | DeleteAgentCommandInput | DeleteAgentVersionCommandInput | DeleteDataSourceCommandInput | DeleteFlowAliasCommandInput | DeleteFlowCommandInput | DeleteFlowVersionCommandInput | DeleteKnowledgeBaseCommandInput | DeletePromptCommandInput | DisassociateAgentKnowledgeBaseCommandInput | GetAgentActionGroupCommandInput | GetAgentAliasCommandInput | GetAgentCommandInput | GetAgentKnowledgeBaseCommandInput | GetAgentVersionCommandInput | GetDataSourceCommandInput | GetFlowAliasCommandInput | GetFlowCommandInput | GetFlowVersionCommandInput | GetIngestionJobCommandInput | GetKnowledgeBaseCommandInput | GetPromptCommandInput | ListAgentActionGroupsCommandInput | ListAgentAliasesCommandInput | ListAgentKnowledgeBasesCommandInput | ListAgentVersionsCommandInput | ListAgentsCommandInput | ListDataSourcesCommandInput | ListFlowAliasesCommandInput | ListFlowVersionsCommandInput | ListFlowsCommandInput | ListIngestionJobsCommandInput | ListKnowledgeBasesCommandInput | ListPromptsCommandInput | ListTagsForResourceCommandInput | PrepareAgentCommandInput | PrepareFlowCommandInput | StartIngestionJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAgentActionGroupCommandInput | UpdateAgentAliasCommandInput | UpdateAgentCommandInput | UpdateAgentKnowledgeBaseCommandInput | UpdateDataSourceCommandInput | UpdateFlowAliasCommandInput | UpdateFlowCommandInput | UpdateKnowledgeBaseCommandInput | UpdatePromptCommandInput;
78
+ export type ServiceInputTypes = AssociateAgentKnowledgeBaseCommandInput | CreateAgentActionGroupCommandInput | CreateAgentAliasCommandInput | CreateAgentCommandInput | CreateDataSourceCommandInput | CreateFlowAliasCommandInput | CreateFlowCommandInput | CreateFlowVersionCommandInput | CreateKnowledgeBaseCommandInput | CreatePromptCommandInput | CreatePromptVersionCommandInput | DeleteAgentActionGroupCommandInput | DeleteAgentAliasCommandInput | DeleteAgentCommandInput | DeleteAgentVersionCommandInput | DeleteDataSourceCommandInput | DeleteFlowAliasCommandInput | DeleteFlowCommandInput | DeleteFlowVersionCommandInput | DeleteKnowledgeBaseCommandInput | DeletePromptCommandInput | DisassociateAgentKnowledgeBaseCommandInput | GetAgentActionGroupCommandInput | GetAgentAliasCommandInput | GetAgentCommandInput | GetAgentKnowledgeBaseCommandInput | GetAgentVersionCommandInput | GetDataSourceCommandInput | GetFlowAliasCommandInput | GetFlowCommandInput | GetFlowVersionCommandInput | GetIngestionJobCommandInput | GetKnowledgeBaseCommandInput | GetPromptCommandInput | ListAgentActionGroupsCommandInput | ListAgentAliasesCommandInput | ListAgentKnowledgeBasesCommandInput | ListAgentVersionsCommandInput | ListAgentsCommandInput | ListDataSourcesCommandInput | ListFlowAliasesCommandInput | ListFlowVersionsCommandInput | ListFlowsCommandInput | ListIngestionJobsCommandInput | ListKnowledgeBasesCommandInput | ListPromptsCommandInput | ListTagsForResourceCommandInput | PrepareAgentCommandInput | PrepareFlowCommandInput | StartIngestionJobCommandInput | StopIngestionJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAgentActionGroupCommandInput | UpdateAgentAliasCommandInput | UpdateAgentCommandInput | UpdateAgentKnowledgeBaseCommandInput | UpdateDataSourceCommandInput | UpdateFlowAliasCommandInput | UpdateFlowCommandInput | UpdateKnowledgeBaseCommandInput | UpdatePromptCommandInput;
78
79
  /**
79
80
  * @public
80
81
  */
81
- export type ServiceOutputTypes = AssociateAgentKnowledgeBaseCommandOutput | CreateAgentActionGroupCommandOutput | CreateAgentAliasCommandOutput | CreateAgentCommandOutput | CreateDataSourceCommandOutput | CreateFlowAliasCommandOutput | CreateFlowCommandOutput | CreateFlowVersionCommandOutput | CreateKnowledgeBaseCommandOutput | CreatePromptCommandOutput | CreatePromptVersionCommandOutput | DeleteAgentActionGroupCommandOutput | DeleteAgentAliasCommandOutput | DeleteAgentCommandOutput | DeleteAgentVersionCommandOutput | DeleteDataSourceCommandOutput | DeleteFlowAliasCommandOutput | DeleteFlowCommandOutput | DeleteFlowVersionCommandOutput | DeleteKnowledgeBaseCommandOutput | DeletePromptCommandOutput | DisassociateAgentKnowledgeBaseCommandOutput | GetAgentActionGroupCommandOutput | GetAgentAliasCommandOutput | GetAgentCommandOutput | GetAgentKnowledgeBaseCommandOutput | GetAgentVersionCommandOutput | GetDataSourceCommandOutput | GetFlowAliasCommandOutput | GetFlowCommandOutput | GetFlowVersionCommandOutput | GetIngestionJobCommandOutput | GetKnowledgeBaseCommandOutput | GetPromptCommandOutput | ListAgentActionGroupsCommandOutput | ListAgentAliasesCommandOutput | ListAgentKnowledgeBasesCommandOutput | ListAgentVersionsCommandOutput | ListAgentsCommandOutput | ListDataSourcesCommandOutput | ListFlowAliasesCommandOutput | ListFlowVersionsCommandOutput | ListFlowsCommandOutput | ListIngestionJobsCommandOutput | ListKnowledgeBasesCommandOutput | ListPromptsCommandOutput | ListTagsForResourceCommandOutput | PrepareAgentCommandOutput | PrepareFlowCommandOutput | StartIngestionJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAgentActionGroupCommandOutput | UpdateAgentAliasCommandOutput | UpdateAgentCommandOutput | UpdateAgentKnowledgeBaseCommandOutput | UpdateDataSourceCommandOutput | UpdateFlowAliasCommandOutput | UpdateFlowCommandOutput | UpdateKnowledgeBaseCommandOutput | UpdatePromptCommandOutput;
82
+ export type ServiceOutputTypes = AssociateAgentKnowledgeBaseCommandOutput | CreateAgentActionGroupCommandOutput | CreateAgentAliasCommandOutput | CreateAgentCommandOutput | CreateDataSourceCommandOutput | CreateFlowAliasCommandOutput | CreateFlowCommandOutput | CreateFlowVersionCommandOutput | CreateKnowledgeBaseCommandOutput | CreatePromptCommandOutput | CreatePromptVersionCommandOutput | DeleteAgentActionGroupCommandOutput | DeleteAgentAliasCommandOutput | DeleteAgentCommandOutput | DeleteAgentVersionCommandOutput | DeleteDataSourceCommandOutput | DeleteFlowAliasCommandOutput | DeleteFlowCommandOutput | DeleteFlowVersionCommandOutput | DeleteKnowledgeBaseCommandOutput | DeletePromptCommandOutput | DisassociateAgentKnowledgeBaseCommandOutput | GetAgentActionGroupCommandOutput | GetAgentAliasCommandOutput | GetAgentCommandOutput | GetAgentKnowledgeBaseCommandOutput | GetAgentVersionCommandOutput | GetDataSourceCommandOutput | GetFlowAliasCommandOutput | GetFlowCommandOutput | GetFlowVersionCommandOutput | GetIngestionJobCommandOutput | GetKnowledgeBaseCommandOutput | GetPromptCommandOutput | ListAgentActionGroupsCommandOutput | ListAgentAliasesCommandOutput | ListAgentKnowledgeBasesCommandOutput | ListAgentVersionsCommandOutput | ListAgentsCommandOutput | ListDataSourcesCommandOutput | ListFlowAliasesCommandOutput | ListFlowVersionsCommandOutput | ListFlowsCommandOutput | ListIngestionJobsCommandOutput | ListKnowledgeBasesCommandOutput | ListPromptsCommandOutput | ListTagsForResourceCommandOutput | PrepareAgentCommandOutput | PrepareFlowCommandOutput | StartIngestionJobCommandOutput | StopIngestionJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAgentActionGroupCommandOutput | UpdateAgentAliasCommandOutput | UpdateAgentCommandOutput | UpdateAgentKnowledgeBaseCommandOutput | UpdateDataSourceCommandOutput | UpdateFlowAliasCommandOutput | UpdateFlowCommandOutput | UpdateKnowledgeBaseCommandOutput | UpdatePromptCommandOutput;
82
83
  /**
83
84
  * @public
84
85
  */
@@ -27,7 +27,7 @@ declare const CreateKnowledgeBaseCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Creates a knowledge base that contains data sources from which information can be queried and used by LLMs. To create a knowledge base, you must first set up your data sources and configure a supported vector store. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup.html">Set up your data for ingestion</a>.</p>
30
+ * <p>Creates a knowledge base. A knowledge base contains your data sources so that Large Language Models (LLMs) can use your data. To create a knowledge base, you must first set up your data sources and configure a supported vector store. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowlege-base-prereq.html">Set up a knowledge base</a>.</p>
31
31
  * <note>
32
32
  * <p>If you prefer to let Amazon Bedrock create and manage a vector store for you in Amazon OpenSearch Service, use the console. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-create">Create a knowledge base</a>.</p>
33
33
  * </note>
@@ -27,7 +27,7 @@ declare const GetIngestionJobCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Gets information about a ingestion job, in which a data source is added to a knowledge base.</p>
30
+ * <p>Gets information about a data ingestion job. Data sources are ingested into your knowledge base so that Large Lanaguage Models (LLMs) can use your data.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -47,7 +47,7 @@ declare const GetIngestionJobCommand_base: {
47
47
  * // dataSourceId: "STRING_VALUE", // required
48
48
  * // ingestionJobId: "STRING_VALUE", // required
49
49
  * // description: "STRING_VALUE",
50
- * // status: "STARTING" || "IN_PROGRESS" || "COMPLETE" || "FAILED", // required
50
+ * // status: "STARTING" || "IN_PROGRESS" || "COMPLETE" || "FAILED" || "STOPPING" || "STOPPED", // required
51
51
  * // statistics: { // IngestionJobStatistics
52
52
  * // numberOfDocumentsScanned: Number("long"),
53
53
  * // numberOfMetadataDocumentsScanned: Number("long"),
@@ -27,7 +27,7 @@ declare const ListIngestionJobsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Lists the ingestion jobs for a data source and information about each of them.</p>
30
+ * <p>Lists the data ingestion jobs for a data source. The list also includes information about each job.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -62,7 +62,7 @@ declare const ListIngestionJobsCommand_base: {
62
62
  * // dataSourceId: "STRING_VALUE", // required
63
63
  * // ingestionJobId: "STRING_VALUE", // required
64
64
  * // description: "STRING_VALUE",
65
- * // status: "STARTING" || "IN_PROGRESS" || "COMPLETE" || "FAILED", // required
65
+ * // status: "STARTING" || "IN_PROGRESS" || "COMPLETE" || "FAILED" || "STOPPING" || "STOPPED", // required
66
66
  * // startedAt: new Date("TIMESTAMP"), // required
67
67
  * // updatedAt: new Date("TIMESTAMP"), // required
68
68
  * // statistics: { // IngestionJobStatistics
@@ -27,7 +27,7 @@ declare const ListKnowledgeBasesCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Lists the knowledge bases in an account and information about each of them.</p>
30
+ * <p>Lists the knowledge bases in an account. The list also includesinformation about each knowledge base.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -27,7 +27,7 @@ declare const StartIngestionJobCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Begins an ingestion job, in which a data source is added to a knowledge base.</p>
30
+ * <p>Begins a data ingestion job. Data sources are ingested into your knowledge base so that Large Language Models (LLMs) can use your data.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -48,7 +48,7 @@ declare const StartIngestionJobCommand_base: {
48
48
  * // dataSourceId: "STRING_VALUE", // required
49
49
  * // ingestionJobId: "STRING_VALUE", // required
50
50
  * // description: "STRING_VALUE",
51
- * // status: "STARTING" || "IN_PROGRESS" || "COMPLETE" || "FAILED", // required
51
+ * // status: "STARTING" || "IN_PROGRESS" || "COMPLETE" || "FAILED" || "STOPPING" || "STOPPED", // required
52
52
  * // statistics: { // IngestionJobStatistics
53
53
  * // numberOfDocumentsScanned: Number("long"),
54
54
  * // numberOfMetadataDocumentsScanned: Number("long"),
@@ -0,0 +1,111 @@
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 { StopIngestionJobRequest, StopIngestionJobResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link StopIngestionJobCommand}.
14
+ */
15
+ export interface StopIngestionJobCommandInput extends StopIngestionJobRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link StopIngestionJobCommand}.
21
+ */
22
+ export interface StopIngestionJobCommandOutput extends StopIngestionJobResponse, __MetadataBearer {
23
+ }
24
+ declare const StopIngestionJobCommand_base: {
25
+ new (input: StopIngestionJobCommandInput): import("@smithy/smithy-client").CommandImpl<StopIngestionJobCommandInput, StopIngestionJobCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: StopIngestionJobCommandInput): import("@smithy/smithy-client").CommandImpl<StopIngestionJobCommandInput, StopIngestionJobCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Stops a currently running data ingestion job. You can send a <code>StartIngestionJob</code> request again to ingest the rest of your data when you are ready.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentClient, StopIngestionJobCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
35
+ * // const { BedrockAgentClient, StopIngestionJobCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
36
+ * const client = new BedrockAgentClient(config);
37
+ * const input = { // StopIngestionJobRequest
38
+ * knowledgeBaseId: "STRING_VALUE", // required
39
+ * dataSourceId: "STRING_VALUE", // required
40
+ * ingestionJobId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new StopIngestionJobCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // StopIngestionJobResponse
45
+ * // ingestionJob: { // IngestionJob
46
+ * // knowledgeBaseId: "STRING_VALUE", // required
47
+ * // dataSourceId: "STRING_VALUE", // required
48
+ * // ingestionJobId: "STRING_VALUE", // required
49
+ * // description: "STRING_VALUE",
50
+ * // status: "STARTING" || "IN_PROGRESS" || "COMPLETE" || "FAILED" || "STOPPING" || "STOPPED", // required
51
+ * // statistics: { // IngestionJobStatistics
52
+ * // numberOfDocumentsScanned: Number("long"),
53
+ * // numberOfMetadataDocumentsScanned: Number("long"),
54
+ * // numberOfNewDocumentsIndexed: Number("long"),
55
+ * // numberOfModifiedDocumentsIndexed: Number("long"),
56
+ * // numberOfMetadataDocumentsModified: Number("long"),
57
+ * // numberOfDocumentsDeleted: Number("long"),
58
+ * // numberOfDocumentsFailed: Number("long"),
59
+ * // },
60
+ * // failureReasons: [ // FailureReasons
61
+ * // "STRING_VALUE",
62
+ * // ],
63
+ * // startedAt: new Date("TIMESTAMP"), // required
64
+ * // updatedAt: new Date("TIMESTAMP"), // required
65
+ * // },
66
+ * // };
67
+ *
68
+ * ```
69
+ *
70
+ * @param StopIngestionJobCommandInput - {@link StopIngestionJobCommandInput}
71
+ * @returns {@link StopIngestionJobCommandOutput}
72
+ * @see {@link StopIngestionJobCommandInput} for command's `input` shape.
73
+ * @see {@link StopIngestionJobCommandOutput} 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 ThrottlingException} (client fault)
89
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
90
+ *
91
+ * @throws {@link ValidationException} (client fault)
92
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
93
+ *
94
+ * @throws {@link BedrockAgentServiceException}
95
+ * <p>Base exception class for all service exceptions from BedrockAgent service.</p>
96
+ *
97
+ * @public
98
+ */
99
+ export declare class StopIngestionJobCommand extends StopIngestionJobCommand_base {
100
+ /** @internal type navigation helper, not in runtime. */
101
+ protected static __types: {
102
+ api: {
103
+ input: StopIngestionJobRequest;
104
+ output: StopIngestionJobResponse;
105
+ };
106
+ sdk: {
107
+ input: StopIngestionJobCommandInput;
108
+ output: StopIngestionJobCommandOutput;
109
+ };
110
+ };
111
+ }
@@ -48,6 +48,7 @@ export * from "./ListTagsForResourceCommand";
48
48
  export * from "./PrepareAgentCommand";
49
49
  export * from "./PrepareFlowCommand";
50
50
  export * from "./StartIngestionJobCommand";
51
+ export * from "./StopIngestionJobCommand";
51
52
  export * from "./TagResourceCommand";
52
53
  export * from "./UntagResourceCommand";
53
54
  export * from "./UpdateAgentActionGroupCommand";
@@ -3067,7 +3067,7 @@ export interface DeleteDataSourceResponse {
3067
3067
  */
3068
3068
  export interface GetDataSourceRequest {
3069
3069
  /**
3070
- * <p>The unique identifier of the knowledge base that the data source was added to.</p>
3070
+ * <p>The unique identifier of the knowledge base for the data source.</p>
3071
3071
  * @public
3072
3072
  */
3073
3073
  knowledgeBaseId: string | undefined;
@@ -5223,23 +5223,23 @@ export interface UpdateFlowResponse {
5223
5223
  */
5224
5224
  export interface GetIngestionJobRequest {
5225
5225
  /**
5226
- * <p>The unique identifier of the knowledge base for which the ingestion job applies.</p>
5226
+ * <p>The unique identifier of the knowledge base for the data ingestion job you want to get information on.</p>
5227
5227
  * @public
5228
5228
  */
5229
5229
  knowledgeBaseId: string | undefined;
5230
5230
  /**
5231
- * <p>The unique identifier of the data source in the ingestion job.</p>
5231
+ * <p>The unique identifier of the data source for the data ingestion job you want to get information on.</p>
5232
5232
  * @public
5233
5233
  */
5234
5234
  dataSourceId: string | undefined;
5235
5235
  /**
5236
- * <p>The unique identifier of the ingestion job.</p>
5236
+ * <p>The unique identifier of the data ingestion job you want to get information on.</p>
5237
5237
  * @public
5238
5238
  */
5239
5239
  ingestionJobId: string | undefined;
5240
5240
  }
5241
5241
  /**
5242
- * <p>Contains the statistics for the ingestion job.</p>
5242
+ * <p>Contains the statistics for the data ingestion job.</p>
5243
5243
  * @public
5244
5244
  */
5245
5245
  export interface IngestionJobStatistics {
@@ -5269,7 +5269,7 @@ export interface IngestionJobStatistics {
5269
5269
  */
5270
5270
  numberOfMetadataDocumentsModified?: number;
5271
5271
  /**
5272
- * <p>The number of source documents that was deleted.</p>
5272
+ * <p>The number of source documents that were deleted.</p>
5273
5273
  * @public
5274
5274
  */
5275
5275
  numberOfDocumentsDeleted?: number;
@@ -5288,13 +5288,15 @@ export declare const IngestionJobStatus: {
5288
5288
  readonly FAILED: "FAILED";
5289
5289
  readonly IN_PROGRESS: "IN_PROGRESS";
5290
5290
  readonly STARTING: "STARTING";
5291
+ readonly STOPPED: "STOPPED";
5292
+ readonly STOPPING: "STOPPING";
5291
5293
  };
5292
5294
  /**
5293
5295
  * @public
5294
5296
  */
5295
5297
  export type IngestionJobStatus = (typeof IngestionJobStatus)[keyof typeof IngestionJobStatus];
5296
5298
  /**
5297
- * <p>Contains details about an ingestion job, which converts a data source to embeddings for a vector store in knowledge base.</p>
5299
+ * <p>Contains details about a data ingestion job. Data sources are ingested into a knowledge base so that Large Language Models (LLMs) can use your data.</p>
5298
5300
  * <p>This data type is used in the following API operations:</p>
5299
5301
  * <ul>
5300
5302
  * <li>
@@ -5317,47 +5319,49 @@ export type IngestionJobStatus = (typeof IngestionJobStatus)[keyof typeof Ingest
5317
5319
  */
5318
5320
  export interface IngestionJob {
5319
5321
  /**
5320
- * <p>The unique identifier of the knowledge base to which the data source is being added.</p>
5322
+ * <p>The unique identifier of the knowledge for the data ingestion job.</p>
5321
5323
  * @public
5322
5324
  */
5323
5325
  knowledgeBaseId: string | undefined;
5324
5326
  /**
5325
- * <p>The unique identifier of the ingested data source.</p>
5327
+ * <p>The unique identifier of the data source for the data ingestion job.</p>
5326
5328
  * @public
5327
5329
  */
5328
5330
  dataSourceId: string | undefined;
5329
5331
  /**
5330
- * <p>The unique identifier of the ingestion job.</p>
5332
+ * <p>The unique identifier of the data ingestion job.</p>
5331
5333
  * @public
5332
5334
  */
5333
5335
  ingestionJobId: string | undefined;
5334
5336
  /**
5335
- * <p>The description of the ingestion job.</p>
5337
+ * <p>The description of the data ingestion job.</p>
5336
5338
  * @public
5337
5339
  */
5338
5340
  description?: string;
5339
5341
  /**
5340
- * <p>The status of the ingestion job.</p>
5342
+ * <p>The status of the data ingestion job.</p>
5341
5343
  * @public
5342
5344
  */
5343
5345
  status: IngestionJobStatus | undefined;
5344
5346
  /**
5345
- * <p>Contains statistics about the ingestion job.</p>
5347
+ * <p>Contains statistics about the data ingestion job.</p>
5346
5348
  * @public
5347
5349
  */
5348
5350
  statistics?: IngestionJobStatistics;
5349
5351
  /**
5350
- * <p>A list of reasons that the ingestion job failed.</p>
5352
+ * <p>A list of reasons that the data ingestion job failed.</p>
5351
5353
  * @public
5352
5354
  */
5353
5355
  failureReasons?: string[];
5354
5356
  /**
5355
- * <p>The time at which the ingestion job started.</p>
5357
+ * <p>The time the data ingestion job started.</p>
5358
+ * <p>If you stop a data ingestion job, the <code>startedAt</code> time is the time the job was started before the job was stopped.</p>
5356
5359
  * @public
5357
5360
  */
5358
5361
  startedAt: Date | undefined;
5359
5362
  /**
5360
- * <p>The time at which the ingestion job was last updated.</p>
5363
+ * <p>The time the data ingestion job was last updated.</p>
5364
+ * <p>If you stop a data ingestion job, the <code>updatedAt</code> time is the time the job was stopped.</p>
5361
5365
  * @public
5362
5366
  */
5363
5367
  updatedAt: Date | undefined;
@@ -5367,7 +5371,7 @@ export interface IngestionJob {
5367
5371
  */
5368
5372
  export interface GetIngestionJobResponse {
5369
5373
  /**
5370
- * <p>Contains details about the ingestion job.</p>
5374
+ * <p>Contains details about the data ingestion job.</p>
5371
5375
  * @public
5372
5376
  */
5373
5377
  ingestionJob: IngestionJob | undefined;
@@ -5395,22 +5399,22 @@ export declare const IngestionJobFilterOperator: {
5395
5399
  */
5396
5400
  export type IngestionJobFilterOperator = (typeof IngestionJobFilterOperator)[keyof typeof IngestionJobFilterOperator];
5397
5401
  /**
5398
- * <p>Defines a filter by which to filter the results.</p>
5402
+ * <p>The definition of a filter to filter the data.</p>
5399
5403
  * @public
5400
5404
  */
5401
5405
  export interface IngestionJobFilter {
5402
5406
  /**
5403
- * <p>The attribute by which to filter the results.</p>
5407
+ * <p>The name of field or attribute to apply the filter.</p>
5404
5408
  * @public
5405
5409
  */
5406
5410
  attribute: IngestionJobFilterAttribute | undefined;
5407
5411
  /**
5408
- * <p>The operation to carry out between the attribute and the values.</p>
5412
+ * <p>The operation to apply to the field or attribute.</p>
5409
5413
  * @public
5410
5414
  */
5411
5415
  operator: IngestionJobFilterOperator | undefined;
5412
5416
  /**
5413
- * <p>A list of values for the attribute.</p>
5417
+ * <p>A list of values that belong to the field or attribute.</p>
5414
5418
  * @public
5415
5419
  */
5416
5420
  values: string[] | undefined;
@@ -5440,17 +5444,17 @@ export declare const SortOrder: {
5440
5444
  */
5441
5445
  export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
5442
5446
  /**
5443
- * <p>Parameters by which to sort the results.</p>
5447
+ * <p>The parameters of sorting the data.</p>
5444
5448
  * @public
5445
5449
  */
5446
5450
  export interface IngestionJobSortBy {
5447
5451
  /**
5448
- * <p>The attribute by which to sort the results.</p>
5452
+ * <p>The name of field or attribute to apply sorting of data.</p>
5449
5453
  * @public
5450
5454
  */
5451
5455
  attribute: IngestionJobSortByAttribute | undefined;
5452
5456
  /**
5453
- * <p>The order by which to sort the results.</p>
5457
+ * <p>The order for sorting the data.</p>
5454
5458
  * @public
5455
5459
  */
5456
5460
  order: SortOrder | undefined;
@@ -5460,22 +5464,22 @@ export interface IngestionJobSortBy {
5460
5464
  */
5461
5465
  export interface ListIngestionJobsRequest {
5462
5466
  /**
5463
- * <p>The unique identifier of the knowledge base for which to return ingestion jobs.</p>
5467
+ * <p>The unique identifier of the knowledge base for the list of data ingestion jobs.</p>
5464
5468
  * @public
5465
5469
  */
5466
5470
  knowledgeBaseId: string | undefined;
5467
5471
  /**
5468
- * <p>The unique identifier of the data source for which to return ingestion jobs.</p>
5472
+ * <p>The unique identifier of the data source for the list of data ingestion jobs.</p>
5469
5473
  * @public
5470
5474
  */
5471
5475
  dataSourceId: string | undefined;
5472
5476
  /**
5473
- * <p>Contains a definition of a filter for which to filter the results.</p>
5477
+ * <p>Contains information about the filters for filtering the data.</p>
5474
5478
  * @public
5475
5479
  */
5476
5480
  filters?: IngestionJobFilter[];
5477
5481
  /**
5478
- * <p>Contains details about how to sort the results.</p>
5482
+ * <p>Contains details about how to sort the data.</p>
5479
5483
  * @public
5480
5484
  */
5481
5485
  sortBy?: IngestionJobSortBy;
@@ -5491,47 +5495,47 @@ export interface ListIngestionJobsRequest {
5491
5495
  nextToken?: string;
5492
5496
  }
5493
5497
  /**
5494
- * <p>Contains details about an ingestion job.</p>
5498
+ * <p>Contains details about a data ingestion job.</p>
5495
5499
  * @public
5496
5500
  */
5497
5501
  export interface IngestionJobSummary {
5498
5502
  /**
5499
- * <p>The unique identifier of the knowledge base to which the data source is added.</p>
5503
+ * <p>The unique identifier of the knowledge base for the data ingestion job.</p>
5500
5504
  * @public
5501
5505
  */
5502
5506
  knowledgeBaseId: string | undefined;
5503
5507
  /**
5504
- * <p>The unique identifier of the data source in the ingestion job.</p>
5508
+ * <p>The unique identifier of the data source for the data ingestion job.</p>
5505
5509
  * @public
5506
5510
  */
5507
5511
  dataSourceId: string | undefined;
5508
5512
  /**
5509
- * <p>The unique identifier of the ingestion job.</p>
5513
+ * <p>The unique identifier of the data ingestion job.</p>
5510
5514
  * @public
5511
5515
  */
5512
5516
  ingestionJobId: string | undefined;
5513
5517
  /**
5514
- * <p>The description of the ingestion job.</p>
5518
+ * <p>The description of the data ingestion job.</p>
5515
5519
  * @public
5516
5520
  */
5517
5521
  description?: string;
5518
5522
  /**
5519
- * <p>The status of the ingestion job.</p>
5523
+ * <p>The status of the data ingestion job.</p>
5520
5524
  * @public
5521
5525
  */
5522
5526
  status: IngestionJobStatus | undefined;
5523
5527
  /**
5524
- * <p>The time at which the ingestion job was started.</p>
5528
+ * <p>The time the data ingestion job started.</p>
5525
5529
  * @public
5526
5530
  */
5527
5531
  startedAt: Date | undefined;
5528
5532
  /**
5529
- * <p>The time at which the ingestion job was last updated.</p>
5533
+ * <p>The time the data ingestion job was last updated.</p>
5530
5534
  * @public
5531
5535
  */
5532
5536
  updatedAt: Date | undefined;
5533
5537
  /**
5534
- * <p>Contains statistics for the ingestion job.</p>
5538
+ * <p>Contains statistics for the data ingestion job.</p>
5535
5539
  * @public
5536
5540
  */
5537
5541
  statistics?: IngestionJobStatistics;
@@ -5541,7 +5545,7 @@ export interface IngestionJobSummary {
5541
5545
  */
5542
5546
  export interface ListIngestionJobsResponse {
5543
5547
  /**
5544
- * <p>A list of objects, each of which contains information about an ingestion job.</p>
5548
+ * <p>A list of data ingestion jobs with information about each job.</p>
5545
5549
  * @public
5546
5550
  */
5547
5551
  ingestionJobSummaries: IngestionJobSummary[] | undefined;
@@ -5556,12 +5560,12 @@ export interface ListIngestionJobsResponse {
5556
5560
  */
5557
5561
  export interface StartIngestionJobRequest {
5558
5562
  /**
5559
- * <p>The unique identifier of the knowledge base to which to add the data source.</p>
5563
+ * <p>The unique identifier of the knowledge base for the data ingestion job.</p>
5560
5564
  * @public
5561
5565
  */
5562
5566
  knowledgeBaseId: string | undefined;
5563
5567
  /**
5564
- * <p>The unique identifier of the data source to ingest.</p>
5568
+ * <p>The unique identifier of the data source you want to ingest into your knowledge base.</p>
5565
5569
  * @public
5566
5570
  */
5567
5571
  dataSourceId: string | undefined;
@@ -5572,7 +5576,7 @@ export interface StartIngestionJobRequest {
5572
5576
  */
5573
5577
  clientToken?: string;
5574
5578
  /**
5575
- * <p>A description of the ingestion job.</p>
5579
+ * <p>A description of the data ingestion job.</p>
5576
5580
  * @public
5577
5581
  */
5578
5582
  description?: string;
@@ -5582,7 +5586,37 @@ export interface StartIngestionJobRequest {
5582
5586
  */
5583
5587
  export interface StartIngestionJobResponse {
5584
5588
  /**
5585
- * <p>An object containing information about the ingestion job.</p>
5589
+ * <p>Contains information about the data ingestion job.</p>
5590
+ * @public
5591
+ */
5592
+ ingestionJob: IngestionJob | undefined;
5593
+ }
5594
+ /**
5595
+ * @public
5596
+ */
5597
+ export interface StopIngestionJobRequest {
5598
+ /**
5599
+ * <p>The unique identifier of the knowledge base for the data ingestion job you want to stop.</p>
5600
+ * @public
5601
+ */
5602
+ knowledgeBaseId: string | undefined;
5603
+ /**
5604
+ * <p>The unique identifier of the data source for the data ingestion job you want to stop.</p>
5605
+ * @public
5606
+ */
5607
+ dataSourceId: string | undefined;
5608
+ /**
5609
+ * <p>The unique identifier of the data ingestion job you want to stop.</p>
5610
+ * @public
5611
+ */
5612
+ ingestionJobId: string | undefined;
5613
+ }
5614
+ /**
5615
+ * @public
5616
+ */
5617
+ export interface StopIngestionJobResponse {
5618
+ /**
5619
+ * <p>Contains information about the stopped data ingestion job.</p>
5586
5620
  * @public
5587
5621
  */
5588
5622
  ingestionJob: IngestionJob | undefined;
@@ -5677,7 +5711,7 @@ export interface VectorKnowledgeBaseConfiguration {
5677
5711
  embeddingModelConfiguration?: EmbeddingModelConfiguration;
5678
5712
  }
5679
5713
  /**
5680
- * <p>Contains details about the embeddings configuration of the knowledge base.</p>
5714
+ * <p>Contains details about the vector embeddings configuration of the knowledge base.</p>
5681
5715
  * @public
5682
5716
  */
5683
5717
  export interface KnowledgeBaseConfiguration {
@@ -5687,7 +5721,7 @@ export interface KnowledgeBaseConfiguration {
5687
5721
  */
5688
5722
  type: KnowledgeBaseType | undefined;
5689
5723
  /**
5690
- * <p>Contains details about the embeddings model that'sused to convert the data source.</p>
5724
+ * <p>Contains details about the model that's used to convert the data source into vector embeddings.</p>
5691
5725
  * @public
5692
5726
  */
5693
5727
  vectorKnowledgeBaseConfiguration?: VectorKnowledgeBaseConfiguration;
@@ -6113,12 +6147,12 @@ export interface KnowledgeBase {
6113
6147
  */
6114
6148
  status: KnowledgeBaseStatus | undefined;
6115
6149
  /**
6116
- * <p>The time at which the knowledge base was created.</p>
6150
+ * <p>The time the knowledge base was created.</p>
6117
6151
  * @public
6118
6152
  */
6119
6153
  createdAt: Date | undefined;
6120
6154
  /**
6121
- * <p>The time at which the knowledge base was last updated.</p>
6155
+ * <p>The time the knowledge base was last updated.</p>
6122
6156
  * @public
6123
6157
  */
6124
6158
  updatedAt: Date | undefined;
@@ -6223,7 +6257,7 @@ export interface GetAgentKnowledgeBaseResponse {
6223
6257
  */
6224
6258
  export interface GetKnowledgeBaseRequest {
6225
6259
  /**
6226
- * <p>The unique identifier of the knowledge base for which to get information.</p>
6260
+ * <p>The unique identifier of the knowledge base you want to get information on.</p>
6227
6261
  * @public
6228
6262
  */
6229
6263
  knowledgeBaseId: string | undefined;
@@ -6319,7 +6353,7 @@ export interface KnowledgeBaseSummary {
6319
6353
  */
6320
6354
  status: KnowledgeBaseStatus | undefined;
6321
6355
  /**
6322
- * <p>The time at which the knowledge base was last updated.</p>
6356
+ * <p>The time the knowledge base was last updated.</p>
6323
6357
  * @public
6324
6358
  */
6325
6359
  updatedAt: Date | undefined;
@@ -6329,7 +6363,7 @@ export interface KnowledgeBaseSummary {
6329
6363
  */
6330
6364
  export interface ListKnowledgeBasesResponse {
6331
6365
  /**
6332
- * <p>A list of objects, each of which contains information about a knowledge base.</p>
6366
+ * <p>A list of knowledge bases with information about each knowledge base.</p>
6333
6367
  * @public
6334
6368
  */
6335
6369
  knowledgeBaseSummaries: KnowledgeBaseSummary[] | undefined;
@@ -50,6 +50,7 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
50
50
  import { PrepareAgentCommandInput, PrepareAgentCommandOutput } from "../commands/PrepareAgentCommand";
51
51
  import { PrepareFlowCommandInput, PrepareFlowCommandOutput } from "../commands/PrepareFlowCommand";
52
52
  import { StartIngestionJobCommandInput, StartIngestionJobCommandOutput } from "../commands/StartIngestionJobCommand";
53
+ import { StopIngestionJobCommandInput, StopIngestionJobCommandOutput } from "../commands/StopIngestionJobCommand";
53
54
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
54
55
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
55
56
  import { UpdateAgentActionGroupCommandInput, UpdateAgentActionGroupCommandOutput } from "../commands/UpdateAgentActionGroupCommand";
@@ -261,6 +262,10 @@ export declare const se_PrepareFlowCommand: (input: PrepareFlowCommandInput, con
261
262
  * serializeAws_restJson1StartIngestionJobCommand
262
263
  */
263
264
  export declare const se_StartIngestionJobCommand: (input: StartIngestionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
265
+ /**
266
+ * serializeAws_restJson1StopIngestionJobCommand
267
+ */
268
+ export declare const se_StopIngestionJobCommand: (input: StopIngestionJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
264
269
  /**
265
270
  * serializeAws_restJson1TagResourceCommand
266
271
  */
@@ -505,6 +510,10 @@ export declare const de_PrepareFlowCommand: (output: __HttpResponse, context: __
505
510
  * deserializeAws_restJson1StartIngestionJobCommand
506
511
  */
507
512
  export declare const de_StartIngestionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartIngestionJobCommandOutput>;
513
+ /**
514
+ * deserializeAws_restJson1StopIngestionJobCommand
515
+ */
516
+ export declare const de_StopIngestionJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopIngestionJobCommandOutput>;
508
517
  /**
509
518
  * deserializeAws_restJson1TagResourceCommand
510
519
  */
@@ -200,6 +200,10 @@ import {
200
200
  StartIngestionJobCommandInput,
201
201
  StartIngestionJobCommandOutput,
202
202
  } from "./commands/StartIngestionJobCommand";
203
+ import {
204
+ StopIngestionJobCommandInput,
205
+ StopIngestionJobCommandOutput,
206
+ } from "./commands/StopIngestionJobCommand";
203
207
  import {
204
208
  TagResourceCommandInput,
205
209
  TagResourceCommandOutput,
@@ -899,6 +903,19 @@ export interface BedrockAgent {
899
903
  options: __HttpHandlerOptions,
900
904
  cb: (err: any, data?: StartIngestionJobCommandOutput) => void
901
905
  ): void;
906
+ stopIngestionJob(
907
+ args: StopIngestionJobCommandInput,
908
+ options?: __HttpHandlerOptions
909
+ ): Promise<StopIngestionJobCommandOutput>;
910
+ stopIngestionJob(
911
+ args: StopIngestionJobCommandInput,
912
+ cb: (err: any, data?: StopIngestionJobCommandOutput) => void
913
+ ): void;
914
+ stopIngestionJob(
915
+ args: StopIngestionJobCommandInput,
916
+ options: __HttpHandlerOptions,
917
+ cb: (err: any, data?: StopIngestionJobCommandOutput) => void
918
+ ): void;
902
919
  tagResource(
903
920
  args: TagResourceCommandInput,
904
921
  options?: __HttpHandlerOptions
@@ -245,6 +245,10 @@ import {
245
245
  StartIngestionJobCommandInput,
246
246
  StartIngestionJobCommandOutput,
247
247
  } from "./commands/StartIngestionJobCommand";
248
+ import {
249
+ StopIngestionJobCommandInput,
250
+ StopIngestionJobCommandOutput,
251
+ } from "./commands/StopIngestionJobCommand";
248
252
  import {
249
253
  TagResourceCommandInput,
250
254
  TagResourceCommandOutput,
@@ -347,6 +351,7 @@ export type ServiceInputTypes =
347
351
  | PrepareAgentCommandInput
348
352
  | PrepareFlowCommandInput
349
353
  | StartIngestionJobCommandInput
354
+ | StopIngestionJobCommandInput
350
355
  | TagResourceCommandInput
351
356
  | UntagResourceCommandInput
352
357
  | UpdateAgentActionGroupCommandInput
@@ -409,6 +414,7 @@ export type ServiceOutputTypes =
409
414
  | PrepareAgentCommandOutput
410
415
  | PrepareFlowCommandOutput
411
416
  | StartIngestionJobCommandOutput
417
+ | StopIngestionJobCommandOutput
412
418
  | TagResourceCommandOutput
413
419
  | UntagResourceCommandOutput
414
420
  | UpdateAgentActionGroupCommandOutput
@@ -0,0 +1,50 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ BedrockAgentClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../BedrockAgentClient";
8
+ import {
9
+ StopIngestionJobRequest,
10
+ StopIngestionJobResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface StopIngestionJobCommandInput extends StopIngestionJobRequest {}
15
+ export interface StopIngestionJobCommandOutput
16
+ extends StopIngestionJobResponse,
17
+ __MetadataBearer {}
18
+ declare const StopIngestionJobCommand_base: {
19
+ new (
20
+ input: StopIngestionJobCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ StopIngestionJobCommandInput,
23
+ StopIngestionJobCommandOutput,
24
+ BedrockAgentClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ __0_0: StopIngestionJobCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ StopIngestionJobCommandInput,
32
+ StopIngestionJobCommandOutput,
33
+ BedrockAgentClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class StopIngestionJobCommand extends StopIngestionJobCommand_base {
40
+ protected static __types: {
41
+ api: {
42
+ input: StopIngestionJobRequest;
43
+ output: StopIngestionJobResponse;
44
+ };
45
+ sdk: {
46
+ input: StopIngestionJobCommandInput;
47
+ output: StopIngestionJobCommandOutput;
48
+ };
49
+ };
50
+ }
@@ -48,6 +48,7 @@ export * from "./ListTagsForResourceCommand";
48
48
  export * from "./PrepareAgentCommand";
49
49
  export * from "./PrepareFlowCommand";
50
50
  export * from "./StartIngestionJobCommand";
51
+ export * from "./StopIngestionJobCommand";
51
52
  export * from "./TagResourceCommand";
52
53
  export * from "./UntagResourceCommand";
53
54
  export * from "./UpdateAgentActionGroupCommand";
@@ -1604,6 +1604,8 @@ export declare const IngestionJobStatus: {
1604
1604
  readonly FAILED: "FAILED";
1605
1605
  readonly IN_PROGRESS: "IN_PROGRESS";
1606
1606
  readonly STARTING: "STARTING";
1607
+ readonly STOPPED: "STOPPED";
1608
+ readonly STOPPING: "STOPPING";
1607
1609
  };
1608
1610
  export type IngestionJobStatus =
1609
1611
  (typeof IngestionJobStatus)[keyof typeof IngestionJobStatus];
@@ -1682,6 +1684,14 @@ export interface StartIngestionJobRequest {
1682
1684
  export interface StartIngestionJobResponse {
1683
1685
  ingestionJob: IngestionJob | undefined;
1684
1686
  }
1687
+ export interface StopIngestionJobRequest {
1688
+ knowledgeBaseId: string | undefined;
1689
+ dataSourceId: string | undefined;
1690
+ ingestionJobId: string | undefined;
1691
+ }
1692
+ export interface StopIngestionJobResponse {
1693
+ ingestionJob: IngestionJob | undefined;
1694
+ }
1685
1695
  export interface AssociateAgentKnowledgeBaseRequest {
1686
1696
  agentId: string | undefined;
1687
1697
  agentVersion: string | undefined;
@@ -203,6 +203,10 @@ import {
203
203
  StartIngestionJobCommandInput,
204
204
  StartIngestionJobCommandOutput,
205
205
  } from "../commands/StartIngestionJobCommand";
206
+ import {
207
+ StopIngestionJobCommandInput,
208
+ StopIngestionJobCommandOutput,
209
+ } from "../commands/StopIngestionJobCommand";
206
210
  import {
207
211
  TagResourceCommandInput,
208
212
  TagResourceCommandOutput,
@@ -447,6 +451,10 @@ export declare const se_StartIngestionJobCommand: (
447
451
  input: StartIngestionJobCommandInput,
448
452
  context: __SerdeContext
449
453
  ) => Promise<__HttpRequest>;
454
+ export declare const se_StopIngestionJobCommand: (
455
+ input: StopIngestionJobCommandInput,
456
+ context: __SerdeContext
457
+ ) => Promise<__HttpRequest>;
450
458
  export declare const se_TagResourceCommand: (
451
459
  input: TagResourceCommandInput,
452
460
  context: __SerdeContext
@@ -691,6 +699,10 @@ export declare const de_StartIngestionJobCommand: (
691
699
  output: __HttpResponse,
692
700
  context: __SerdeContext
693
701
  ) => Promise<StartIngestionJobCommandOutput>;
702
+ export declare const de_StopIngestionJobCommand: (
703
+ output: __HttpResponse,
704
+ context: __SerdeContext
705
+ ) => Promise<StopIngestionJobCommandOutput>;
694
706
  export declare const de_TagResourceCommand: (
695
707
  output: __HttpResponse,
696
708
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agent",
3
3
  "description": "AWS SDK for JavaScript Bedrock Agent Client for Node.js, Browser and React Native",
4
- "version": "3.658.1",
4
+ "version": "3.662.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent",
@@ -20,43 +20,43 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.658.1",
24
- "@aws-sdk/client-sts": "3.658.1",
25
- "@aws-sdk/core": "3.658.1",
26
- "@aws-sdk/credential-provider-node": "3.658.1",
27
- "@aws-sdk/middleware-host-header": "3.654.0",
28
- "@aws-sdk/middleware-logger": "3.654.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.654.0",
30
- "@aws-sdk/middleware-user-agent": "3.654.0",
31
- "@aws-sdk/region-config-resolver": "3.654.0",
32
- "@aws-sdk/types": "3.654.0",
33
- "@aws-sdk/util-endpoints": "3.654.0",
34
- "@aws-sdk/util-user-agent-browser": "3.654.0",
35
- "@aws-sdk/util-user-agent-node": "3.654.0",
36
- "@smithy/config-resolver": "^3.0.8",
37
- "@smithy/core": "^2.4.6",
38
- "@smithy/fetch-http-handler": "^3.2.8",
39
- "@smithy/hash-node": "^3.0.6",
40
- "@smithy/invalid-dependency": "^3.0.6",
41
- "@smithy/middleware-content-length": "^3.0.8",
42
- "@smithy/middleware-endpoint": "^3.1.3",
43
- "@smithy/middleware-retry": "^3.0.21",
44
- "@smithy/middleware-serde": "^3.0.6",
45
- "@smithy/middleware-stack": "^3.0.6",
46
- "@smithy/node-config-provider": "^3.1.7",
47
- "@smithy/node-http-handler": "^3.2.3",
48
- "@smithy/protocol-http": "^4.1.3",
49
- "@smithy/smithy-client": "^3.3.5",
50
- "@smithy/types": "^3.4.2",
51
- "@smithy/url-parser": "^3.0.6",
23
+ "@aws-sdk/client-sso-oidc": "3.662.0",
24
+ "@aws-sdk/client-sts": "3.662.0",
25
+ "@aws-sdk/core": "3.662.0",
26
+ "@aws-sdk/credential-provider-node": "3.662.0",
27
+ "@aws-sdk/middleware-host-header": "3.662.0",
28
+ "@aws-sdk/middleware-logger": "3.662.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.662.0",
30
+ "@aws-sdk/middleware-user-agent": "3.662.0",
31
+ "@aws-sdk/region-config-resolver": "3.662.0",
32
+ "@aws-sdk/types": "3.662.0",
33
+ "@aws-sdk/util-endpoints": "3.662.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.662.0",
35
+ "@aws-sdk/util-user-agent-node": "3.662.0",
36
+ "@smithy/config-resolver": "^3.0.9",
37
+ "@smithy/core": "^2.4.7",
38
+ "@smithy/fetch-http-handler": "^3.2.9",
39
+ "@smithy/hash-node": "^3.0.7",
40
+ "@smithy/invalid-dependency": "^3.0.7",
41
+ "@smithy/middleware-content-length": "^3.0.9",
42
+ "@smithy/middleware-endpoint": "^3.1.4",
43
+ "@smithy/middleware-retry": "^3.0.22",
44
+ "@smithy/middleware-serde": "^3.0.7",
45
+ "@smithy/middleware-stack": "^3.0.7",
46
+ "@smithy/node-config-provider": "^3.1.8",
47
+ "@smithy/node-http-handler": "^3.2.4",
48
+ "@smithy/protocol-http": "^4.1.4",
49
+ "@smithy/smithy-client": "^3.3.6",
50
+ "@smithy/types": "^3.5.0",
51
+ "@smithy/url-parser": "^3.0.7",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.21",
56
- "@smithy/util-defaults-mode-node": "^3.0.21",
57
- "@smithy/util-endpoints": "^2.1.2",
58
- "@smithy/util-middleware": "^3.0.6",
59
- "@smithy/util-retry": "^3.0.6",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.22",
56
+ "@smithy/util-defaults-mode-node": "^3.0.22",
57
+ "@smithy/util-endpoints": "^2.1.3",
58
+ "@smithy/util-middleware": "^3.0.7",
59
+ "@smithy/util-retry": "^3.0.7",
60
60
  "@smithy/util-utf8": "^3.0.0",
61
61
  "tslib": "^2.6.2",
62
62
  "uuid": "^9.0.1"