@aws-sdk/client-bedrock-agentcore-control 3.1051.0 → 3.1053.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 (85) hide show
  1. package/README.md +77 -0
  2. package/dist-cjs/index.js +188 -2
  3. package/dist-cjs/schemas/schemas_0.js +334 -92
  4. package/dist-es/BedrockAgentCoreControl.js +28 -0
  5. package/dist-es/commands/AddDatasetExamplesCommand.js +16 -0
  6. package/dist-es/commands/CreateDatasetCommand.js +16 -0
  7. package/dist-es/commands/CreateDatasetVersionCommand.js +16 -0
  8. package/dist-es/commands/DeleteDatasetCommand.js +16 -0
  9. package/dist-es/commands/DeleteDatasetExamplesCommand.js +16 -0
  10. package/dist-es/commands/GetDatasetCommand.js +16 -0
  11. package/dist-es/commands/ListDatasetExamplesCommand.js +16 -0
  12. package/dist-es/commands/ListDatasetVersionsCommand.js +16 -0
  13. package/dist-es/commands/ListDatasetsCommand.js +16 -0
  14. package/dist-es/commands/UpdateDatasetCommand.js +16 -0
  15. package/dist-es/commands/UpdateDatasetExamplesCommand.js +16 -0
  16. package/dist-es/commands/index.js +11 -0
  17. package/dist-es/index.js +1 -0
  18. package/dist-es/models/enums.js +19 -2
  19. package/dist-es/models/models_2.js +1 -0
  20. package/dist-es/pagination/ListDatasetExamplesPaginator.js +4 -0
  21. package/dist-es/pagination/ListDatasetVersionsPaginator.js +4 -0
  22. package/dist-es/pagination/ListDatasetsPaginator.js +4 -0
  23. package/dist-es/pagination/index.js +3 -0
  24. package/dist-es/schemas/schemas_0.js +318 -77
  25. package/dist-types/BedrockAgentCoreControl.d.ts +99 -0
  26. package/dist-types/BedrockAgentCoreControlClient.d.ts +13 -2
  27. package/dist-types/commands/AddDatasetExamplesCommand.d.ts +127 -0
  28. package/dist-types/commands/CreateDatasetCommand.d.ts +117 -0
  29. package/dist-types/commands/CreateDatasetVersionCommand.d.ts +113 -0
  30. package/dist-types/commands/CreateGatewayTargetCommand.d.ts +1 -1
  31. package/dist-types/commands/DeleteDatasetCommand.d.ts +123 -0
  32. package/dist-types/commands/DeleteDatasetExamplesCommand.d.ts +112 -0
  33. package/dist-types/commands/GetDatasetCommand.d.ts +130 -0
  34. package/dist-types/commands/GetGatewayTargetCommand.d.ts +1 -1
  35. package/dist-types/commands/ListDatasetExamplesCommand.d.ts +111 -0
  36. package/dist-types/commands/ListDatasetVersionsCommand.d.ts +103 -0
  37. package/dist-types/commands/ListDatasetsCommand.d.ts +103 -0
  38. package/dist-types/commands/ListWorkloadIdentitiesCommand.d.ts +2 -1
  39. package/dist-types/commands/SynchronizeGatewayTargetsCommand.d.ts +1 -1
  40. package/dist-types/commands/UpdateDatasetCommand.d.ts +104 -0
  41. package/dist-types/commands/UpdateDatasetExamplesCommand.d.ts +120 -0
  42. package/dist-types/commands/UpdateGatewayTargetCommand.d.ts +1 -1
  43. package/dist-types/commands/UpdateWorkloadIdentityCommand.d.ts +1 -1
  44. package/dist-types/commands/index.d.ts +11 -0
  45. package/dist-types/index.d.ts +1 -0
  46. package/dist-types/models/enums.d.ts +91 -3
  47. package/dist-types/models/models_0.d.ts +2382 -2324
  48. package/dist-types/models/models_1.d.ts +4111 -4197
  49. package/dist-types/models/models_2.d.ts +775 -0
  50. package/dist-types/pagination/ListDatasetExamplesPaginator.d.ts +7 -0
  51. package/dist-types/pagination/ListDatasetVersionsPaginator.d.ts +7 -0
  52. package/dist-types/pagination/ListDatasetsPaginator.d.ts +7 -0
  53. package/dist-types/pagination/index.d.ts +3 -0
  54. package/dist-types/schemas/schemas_0.d.ts +38 -0
  55. package/dist-types/ts3.4/BedrockAgentCoreControl.d.ts +209 -0
  56. package/dist-types/ts3.4/BedrockAgentCoreControlClient.d.ts +66 -0
  57. package/dist-types/ts3.4/commands/AddDatasetExamplesCommand.d.ts +53 -0
  58. package/dist-types/ts3.4/commands/CreateDatasetCommand.d.ts +52 -0
  59. package/dist-types/ts3.4/commands/CreateDatasetVersionCommand.d.ts +53 -0
  60. package/dist-types/ts3.4/commands/CreateGatewayTargetCommand.d.ts +1 -1
  61. package/dist-types/ts3.4/commands/DeleteDatasetCommand.d.ts +52 -0
  62. package/dist-types/ts3.4/commands/DeleteDatasetExamplesCommand.d.ts +53 -0
  63. package/dist-types/ts3.4/commands/GetDatasetCommand.d.ts +49 -0
  64. package/dist-types/ts3.4/commands/GetGatewayTargetCommand.d.ts +1 -1
  65. package/dist-types/ts3.4/commands/ListDatasetExamplesCommand.d.ts +53 -0
  66. package/dist-types/ts3.4/commands/ListDatasetVersionsCommand.d.ts +53 -0
  67. package/dist-types/ts3.4/commands/ListDatasetsCommand.d.ts +49 -0
  68. package/dist-types/ts3.4/commands/ListWorkloadIdentitiesCommand.d.ts +2 -4
  69. package/dist-types/ts3.4/commands/SynchronizeGatewayTargetsCommand.d.ts +1 -1
  70. package/dist-types/ts3.4/commands/UpdateDatasetCommand.d.ts +52 -0
  71. package/dist-types/ts3.4/commands/UpdateDatasetExamplesCommand.d.ts +53 -0
  72. package/dist-types/ts3.4/commands/UpdateGatewayTargetCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/UpdateWorkloadIdentityCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/index.d.ts +11 -0
  75. package/dist-types/ts3.4/index.d.ts +1 -0
  76. package/dist-types/ts3.4/models/enums.d.ts +25 -4
  77. package/dist-types/ts3.4/models/models_0.d.ts +192 -269
  78. package/dist-types/ts3.4/models/models_1.d.ts +268 -284
  79. package/dist-types/ts3.4/models/models_2.d.ts +273 -0
  80. package/dist-types/ts3.4/pagination/ListDatasetExamplesPaginator.d.ts +11 -0
  81. package/dist-types/ts3.4/pagination/ListDatasetVersionsPaginator.d.ts +11 -0
  82. package/dist-types/ts3.4/pagination/ListDatasetsPaginator.d.ts +11 -0
  83. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  84. package/dist-types/ts3.4/schemas/schemas_0.d.ts +38 -0
  85. package/package.json +8 -8
@@ -0,0 +1,103 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreControlClient";
4
+ import type { ListDatasetVersionsRequest, ListDatasetVersionsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListDatasetVersionsCommand}.
14
+ */
15
+ export interface ListDatasetVersionsCommandInput extends ListDatasetVersionsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListDatasetVersionsCommand}.
21
+ */
22
+ export interface ListDatasetVersionsCommandOutput extends ListDatasetVersionsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListDatasetVersionsCommand_base: {
25
+ new (input: ListDatasetVersionsCommandInput): import("@smithy/core/client").CommandImpl<ListDatasetVersionsCommandInput, ListDatasetVersionsCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListDatasetVersionsCommandInput): import("@smithy/core/client").CommandImpl<ListDatasetVersionsCommandInput, ListDatasetVersionsCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * Lists all published versions of a dataset, sorted by version number descending
33
+ * (newest first). Does not include the DRAFT working copy.
34
+ *
35
+ * **State guard:** Allowed for all statuses including DELETING.
36
+ * @example
37
+ * Use a bare-bones client and the command you need to make an API call.
38
+ * ```javascript
39
+ * import { BedrockAgentCoreControlClient, ListDatasetVersionsCommand } from "@aws-sdk/client-bedrock-agentcore-control"; // ES Modules import
40
+ * // const { BedrockAgentCoreControlClient, ListDatasetVersionsCommand } = require("@aws-sdk/client-bedrock-agentcore-control"); // CommonJS import
41
+ * // import type { BedrockAgentCoreControlClientConfig } from "@aws-sdk/client-bedrock-agentcore-control";
42
+ * const config = {}; // type is BedrockAgentCoreControlClientConfig
43
+ * const client = new BedrockAgentCoreControlClient(config);
44
+ * const input = { // ListDatasetVersionsRequest
45
+ * datasetId: "STRING_VALUE", // required
46
+ * nextToken: "STRING_VALUE",
47
+ * maxResults: Number("int"),
48
+ * };
49
+ * const command = new ListDatasetVersionsCommand(input);
50
+ * const response = await client.send(command);
51
+ * // { // ListDatasetVersionsResponse
52
+ * // versions: [ // DatasetVersionSummaryList // required
53
+ * // { // DatasetVersionSummary
54
+ * // datasetVersion: "STRING_VALUE", // required
55
+ * // exampleCount: Number("long"), // required
56
+ * // createdAt: new Date("TIMESTAMP"), // required
57
+ * // },
58
+ * // ],
59
+ * // nextToken: "STRING_VALUE",
60
+ * // };
61
+ *
62
+ * ```
63
+ *
64
+ * @param ListDatasetVersionsCommandInput - {@link ListDatasetVersionsCommandInput}
65
+ * @returns {@link ListDatasetVersionsCommandOutput}
66
+ * @see {@link ListDatasetVersionsCommandInput} for command's `input` shape.
67
+ * @see {@link ListDatasetVersionsCommandOutput} for command's `response` shape.
68
+ * @see {@link BedrockAgentCoreControlClientResolvedConfig | config} for BedrockAgentCoreControlClient's `config` shape.
69
+ *
70
+ * @throws {@link AccessDeniedException} (client fault)
71
+ * <p>This exception is thrown when a request is denied per access permissions</p>
72
+ *
73
+ * @throws {@link InternalServerException} (server fault)
74
+ * <p>This exception is thrown if there was an unexpected error during processing of request</p>
75
+ *
76
+ * @throws {@link ResourceNotFoundException} (client fault)
77
+ * <p>This exception is thrown when a resource referenced by the operation does not exist</p>
78
+ *
79
+ * @throws {@link ThrottlingException} (client fault)
80
+ * <p>This exception is thrown when the number of requests exceeds the limit</p>
81
+ *
82
+ * @throws {@link ValidationException} (client fault)
83
+ * <p>The input fails to satisfy the constraints specified by the service.</p>
84
+ *
85
+ * @throws {@link BedrockAgentCoreControlServiceException}
86
+ * <p>Base exception class for all service exceptions from BedrockAgentCoreControl service.</p>
87
+ *
88
+ *
89
+ * @public
90
+ */
91
+ export declare class ListDatasetVersionsCommand extends ListDatasetVersionsCommand_base {
92
+ /** @internal type navigation helper, not in runtime. */
93
+ protected static __types: {
94
+ api: {
95
+ input: ListDatasetVersionsRequest;
96
+ output: ListDatasetVersionsResponse;
97
+ };
98
+ sdk: {
99
+ input: ListDatasetVersionsCommandInput;
100
+ output: ListDatasetVersionsCommandOutput;
101
+ };
102
+ };
103
+ }
@@ -0,0 +1,103 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreControlClient";
4
+ import type { ListDatasetsRequest, ListDatasetsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListDatasetsCommand}.
14
+ */
15
+ export interface ListDatasetsCommandInput extends ListDatasetsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListDatasetsCommand}.
21
+ */
22
+ export interface ListDatasetsCommandOutput extends ListDatasetsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListDatasetsCommand_base: {
25
+ new (input: ListDatasetsCommandInput): import("@smithy/core/client").CommandImpl<ListDatasetsCommandInput, ListDatasetsCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListDatasetsCommandInput]): import("@smithy/core/client").CommandImpl<ListDatasetsCommandInput, ListDatasetsCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * Lists all datasets in the caller's account, paginated. No presigned URLs in list results.
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { BedrockAgentCoreControlClient, ListDatasetsCommand } from "@aws-sdk/client-bedrock-agentcore-control"; // ES Modules import
37
+ * // const { BedrockAgentCoreControlClient, ListDatasetsCommand } = require("@aws-sdk/client-bedrock-agentcore-control"); // CommonJS import
38
+ * // import type { BedrockAgentCoreControlClientConfig } from "@aws-sdk/client-bedrock-agentcore-control";
39
+ * const config = {}; // type is BedrockAgentCoreControlClientConfig
40
+ * const client = new BedrockAgentCoreControlClient(config);
41
+ * const input = { // ListDatasetsRequest
42
+ * nextToken: "STRING_VALUE",
43
+ * maxResults: Number("int"),
44
+ * };
45
+ * const command = new ListDatasetsCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // ListDatasetsResponse
48
+ * // datasets: [ // DatasetSummaryList // required
49
+ * // { // DatasetSummary
50
+ * // datasetArn: "STRING_VALUE", // required
51
+ * // datasetId: "STRING_VALUE", // required
52
+ * // datasetName: "STRING_VALUE", // required
53
+ * // description: "STRING_VALUE",
54
+ * // status: "CREATING" || "UPDATING" || "DELETING" || "ACTIVE" || "CREATE_FAILED" || "UPDATE_FAILED" || "DELETE_FAILED", // required
55
+ * // draftStatus: "MODIFIED" || "UNMODIFIED",
56
+ * // schemaType: "AGENTCORE_EVALUATION_PREDEFINED_V1" || "AGENTCORE_EVALUATION_SIMULATED_V1", // required
57
+ * // exampleCount: Number("long"), // required
58
+ * // createdAt: new Date("TIMESTAMP"), // required
59
+ * // updatedAt: new Date("TIMESTAMP"), // required
60
+ * // },
61
+ * // ],
62
+ * // nextToken: "STRING_VALUE",
63
+ * // };
64
+ *
65
+ * ```
66
+ *
67
+ * @param ListDatasetsCommandInput - {@link ListDatasetsCommandInput}
68
+ * @returns {@link ListDatasetsCommandOutput}
69
+ * @see {@link ListDatasetsCommandInput} for command's `input` shape.
70
+ * @see {@link ListDatasetsCommandOutput} for command's `response` shape.
71
+ * @see {@link BedrockAgentCoreControlClientResolvedConfig | config} for BedrockAgentCoreControlClient's `config` shape.
72
+ *
73
+ * @throws {@link AccessDeniedException} (client fault)
74
+ * <p>This exception is thrown when a request is denied per access permissions</p>
75
+ *
76
+ * @throws {@link InternalServerException} (server fault)
77
+ * <p>This exception is thrown if there was an unexpected error during processing of request</p>
78
+ *
79
+ * @throws {@link ThrottlingException} (client fault)
80
+ * <p>This exception is thrown when the number of requests exceeds the limit</p>
81
+ *
82
+ * @throws {@link ValidationException} (client fault)
83
+ * <p>The input fails to satisfy the constraints specified by the service.</p>
84
+ *
85
+ * @throws {@link BedrockAgentCoreControlServiceException}
86
+ * <p>Base exception class for all service exceptions from BedrockAgentCoreControl service.</p>
87
+ *
88
+ *
89
+ * @public
90
+ */
91
+ export declare class ListDatasetsCommand extends ListDatasetsCommand_base {
92
+ /** @internal type navigation helper, not in runtime. */
93
+ protected static __types: {
94
+ api: {
95
+ input: ListDatasetsRequest;
96
+ output: ListDatasetsResponse;
97
+ };
98
+ sdk: {
99
+ input: ListDatasetsCommandInput;
100
+ output: ListDatasetsCommandOutput;
101
+ };
102
+ };
103
+ }
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreControlClient";
4
- import type { ListWorkloadIdentitiesRequest, ListWorkloadIdentitiesResponse } from "../models/models_1";
4
+ import type { ListWorkloadIdentitiesRequest } from "../models/models_1";
5
+ import type { ListWorkloadIdentitiesResponse } from "../models/models_2";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -2,7 +2,7 @@ import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreControlClient";
4
4
  import type { SynchronizeGatewayTargetsRequest } from "../models/models_0";
5
- import type { SynchronizeGatewayTargetsResponse } from "../models/models_1";
5
+ import type { SynchronizeGatewayTargetsResponse } from "../models/models_2";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -0,0 +1,104 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreControlClient";
4
+ import type { UpdateDatasetRequest, UpdateDatasetResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateDatasetCommand}.
14
+ */
15
+ export interface UpdateDatasetCommandInput extends UpdateDatasetRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateDatasetCommand}.
21
+ */
22
+ export interface UpdateDatasetCommandOutput extends UpdateDatasetResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateDatasetCommand_base: {
25
+ new (input: UpdateDatasetCommandInput): import("@smithy/core/client").CommandImpl<UpdateDatasetCommandInput, UpdateDatasetCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateDatasetCommandInput): import("@smithy/core/client").CommandImpl<UpdateDatasetCommandInput, UpdateDatasetCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * Updates a dataset's metadata. Synchronous operation.
33
+ * Only provided fields are updated; omitted fields remain unchanged.
34
+ *
35
+ * To modify dataset content, use AddDatasetExamples, UpdateDatasetExamples,
36
+ * or DeleteDatasetExamples.
37
+ *
38
+ * Cannot update: name, schemaType, kmsKeyArn (immutable after creation).
39
+ * @example
40
+ * Use a bare-bones client and the command you need to make an API call.
41
+ * ```javascript
42
+ * import { BedrockAgentCoreControlClient, UpdateDatasetCommand } from "@aws-sdk/client-bedrock-agentcore-control"; // ES Modules import
43
+ * // const { BedrockAgentCoreControlClient, UpdateDatasetCommand } = require("@aws-sdk/client-bedrock-agentcore-control"); // CommonJS import
44
+ * // import type { BedrockAgentCoreControlClientConfig } from "@aws-sdk/client-bedrock-agentcore-control";
45
+ * const config = {}; // type is BedrockAgentCoreControlClientConfig
46
+ * const client = new BedrockAgentCoreControlClient(config);
47
+ * const input = { // UpdateDatasetRequest
48
+ * datasetId: "STRING_VALUE", // required
49
+ * clientToken: "STRING_VALUE",
50
+ * description: "STRING_VALUE",
51
+ * };
52
+ * const command = new UpdateDatasetCommand(input);
53
+ * const response = await client.send(command);
54
+ * // { // UpdateDatasetResponse
55
+ * // datasetArn: "STRING_VALUE", // required
56
+ * // datasetId: "STRING_VALUE", // required
57
+ * // updatedAt: new Date("TIMESTAMP"), // required
58
+ * // };
59
+ *
60
+ * ```
61
+ *
62
+ * @param UpdateDatasetCommandInput - {@link UpdateDatasetCommandInput}
63
+ * @returns {@link UpdateDatasetCommandOutput}
64
+ * @see {@link UpdateDatasetCommandInput} for command's `input` shape.
65
+ * @see {@link UpdateDatasetCommandOutput} for command's `response` shape.
66
+ * @see {@link BedrockAgentCoreControlClientResolvedConfig | config} for BedrockAgentCoreControlClient's `config` shape.
67
+ *
68
+ * @throws {@link AccessDeniedException} (client fault)
69
+ * <p>This exception is thrown when a request is denied per access permissions</p>
70
+ *
71
+ * @throws {@link ConflictException} (client fault)
72
+ * <p>This exception is thrown when there is a conflict performing an operation</p>
73
+ *
74
+ * @throws {@link InternalServerException} (server fault)
75
+ * <p>This exception is thrown if there was an unexpected error during processing of request</p>
76
+ *
77
+ * @throws {@link ResourceNotFoundException} (client fault)
78
+ * <p>This exception is thrown when a resource referenced by the operation does not exist</p>
79
+ *
80
+ * @throws {@link ThrottlingException} (client fault)
81
+ * <p>This exception is thrown when the number of requests exceeds the limit</p>
82
+ *
83
+ * @throws {@link ValidationException} (client fault)
84
+ * <p>The input fails to satisfy the constraints specified by the service.</p>
85
+ *
86
+ * @throws {@link BedrockAgentCoreControlServiceException}
87
+ * <p>Base exception class for all service exceptions from BedrockAgentCoreControl service.</p>
88
+ *
89
+ *
90
+ * @public
91
+ */
92
+ export declare class UpdateDatasetCommand extends UpdateDatasetCommand_base {
93
+ /** @internal type navigation helper, not in runtime. */
94
+ protected static __types: {
95
+ api: {
96
+ input: UpdateDatasetRequest;
97
+ output: UpdateDatasetResponse;
98
+ };
99
+ sdk: {
100
+ input: UpdateDatasetCommandInput;
101
+ output: UpdateDatasetCommandOutput;
102
+ };
103
+ };
104
+ }
@@ -0,0 +1,120 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreControlClient";
4
+ import type { UpdateDatasetExamplesRequest, UpdateDatasetExamplesResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateDatasetExamplesCommand}.
14
+ */
15
+ export interface UpdateDatasetExamplesCommandInput extends UpdateDatasetExamplesRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateDatasetExamplesCommand}.
21
+ */
22
+ export interface UpdateDatasetExamplesCommandOutput extends UpdateDatasetExamplesResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateDatasetExamplesCommand_base: {
25
+ new (input: UpdateDatasetExamplesCommandInput): import("@smithy/core/client").CommandImpl<UpdateDatasetExamplesCommandInput, UpdateDatasetExamplesCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateDatasetExamplesCommandInput): import("@smithy/core/client").CommandImpl<UpdateDatasetExamplesCommandInput, UpdateDatasetExamplesCommandOutput, BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * Updates multiple existing examples in-place on DRAFT.
33
+ *
34
+ * **Validation:** All examples are validated against the dataset's schemaType before any
35
+ * writes occur. If any example fails validation, the entire batch is rejected with
36
+ * ValidationException — no examples are updated (all-or-nothing semantics).
37
+ *
38
+ * **Asynchronous:** Operates in-place on DRAFT. No version bump occurs.
39
+ * Use CreateDatasetVersion to publish DRAFT as a new numbered version.
40
+ *
41
+ * Fails with ResourceNotFoundException if any exampleId does not exist in DRAFT.
42
+ * To add new examples, use AddDatasetExamples instead.
43
+ *
44
+ * **State guard:** Returns ConflictException (DATASET_NOT_READY) if the dataset
45
+ * status is not in \{DRAFT, ACTIVE\}.
46
+ *
47
+ * **Request size limit:** Max 5 MB total request body. Max 1000 examples per call.
48
+ * @example
49
+ * Use a bare-bones client and the command you need to make an API call.
50
+ * ```javascript
51
+ * import { BedrockAgentCoreControlClient, UpdateDatasetExamplesCommand } from "@aws-sdk/client-bedrock-agentcore-control"; // ES Modules import
52
+ * // const { BedrockAgentCoreControlClient, UpdateDatasetExamplesCommand } = require("@aws-sdk/client-bedrock-agentcore-control"); // CommonJS import
53
+ * // import type { BedrockAgentCoreControlClientConfig } from "@aws-sdk/client-bedrock-agentcore-control";
54
+ * const config = {}; // type is BedrockAgentCoreControlClientConfig
55
+ * const client = new BedrockAgentCoreControlClient(config);
56
+ * const input = { // UpdateDatasetExamplesRequest
57
+ * datasetId: "STRING_VALUE", // required
58
+ * clientToken: "STRING_VALUE",
59
+ * examples: [ // DatasetExampleList // required
60
+ * "DOCUMENT_VALUE",
61
+ * ],
62
+ * };
63
+ * const command = new UpdateDatasetExamplesCommand(input);
64
+ * const response = await client.send(command);
65
+ * // { // UpdateDatasetExamplesResponse
66
+ * // datasetArn: "STRING_VALUE", // required
67
+ * // datasetId: "STRING_VALUE", // required
68
+ * // status: "CREATING" || "UPDATING" || "DELETING" || "ACTIVE" || "CREATE_FAILED" || "UPDATE_FAILED" || "DELETE_FAILED", // required
69
+ * // updatedCount: Number("long"), // required
70
+ * // updatedAt: new Date("TIMESTAMP"), // required
71
+ * // };
72
+ *
73
+ * ```
74
+ *
75
+ * @param UpdateDatasetExamplesCommandInput - {@link UpdateDatasetExamplesCommandInput}
76
+ * @returns {@link UpdateDatasetExamplesCommandOutput}
77
+ * @see {@link UpdateDatasetExamplesCommandInput} for command's `input` shape.
78
+ * @see {@link UpdateDatasetExamplesCommandOutput} for command's `response` shape.
79
+ * @see {@link BedrockAgentCoreControlClientResolvedConfig | config} for BedrockAgentCoreControlClient's `config` shape.
80
+ *
81
+ * @throws {@link AccessDeniedException} (client fault)
82
+ * <p>This exception is thrown when a request is denied per access permissions</p>
83
+ *
84
+ * @throws {@link ConflictException} (client fault)
85
+ * <p>This exception is thrown when there is a conflict performing an operation</p>
86
+ *
87
+ * @throws {@link InternalServerException} (server fault)
88
+ * <p>This exception is thrown if there was an unexpected error during processing of request</p>
89
+ *
90
+ * @throws {@link ResourceNotFoundException} (client fault)
91
+ * <p>This exception is thrown when a resource referenced by the operation does not exist</p>
92
+ *
93
+ * @throws {@link ServiceQuotaExceededException} (client fault)
94
+ * <p>This exception is thrown when a request is made beyond the service quota</p>
95
+ *
96
+ * @throws {@link ThrottlingException} (client fault)
97
+ * <p>This exception is thrown when the number of requests exceeds the limit</p>
98
+ *
99
+ * @throws {@link ValidationException} (client fault)
100
+ * <p>The input fails to satisfy the constraints specified by the service.</p>
101
+ *
102
+ * @throws {@link BedrockAgentCoreControlServiceException}
103
+ * <p>Base exception class for all service exceptions from BedrockAgentCoreControl service.</p>
104
+ *
105
+ *
106
+ * @public
107
+ */
108
+ export declare class UpdateDatasetExamplesCommand extends UpdateDatasetExamplesCommand_base {
109
+ /** @internal type navigation helper, not in runtime. */
110
+ protected static __types: {
111
+ api: {
112
+ input: UpdateDatasetExamplesRequest;
113
+ output: UpdateDatasetExamplesResponse;
114
+ };
115
+ sdk: {
116
+ input: UpdateDatasetExamplesCommandInput;
117
+ output: UpdateDatasetExamplesCommandOutput;
118
+ };
119
+ };
120
+ }
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreControlClient";
4
- import type { UpdateGatewayTargetRequest, UpdateGatewayTargetResponse } from "../models/models_1";
4
+ import type { UpdateGatewayTargetRequest, UpdateGatewayTargetResponse } from "../models/models_2";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { BedrockAgentCoreControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreControlClient";
4
- import type { UpdateWorkloadIdentityRequest, UpdateWorkloadIdentityResponse } from "../models/models_1";
4
+ import type { UpdateWorkloadIdentityRequest, UpdateWorkloadIdentityResponse } from "../models/models_2";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,3 +1,4 @@
1
+ export * from "./AddDatasetExamplesCommand";
1
2
  export * from "./CreateAgentRuntimeCommand";
2
3
  export * from "./CreateAgentRuntimeEndpointCommand";
3
4
  export * from "./CreateApiKeyCredentialProviderCommand";
@@ -5,6 +6,8 @@ export * from "./CreateBrowserCommand";
5
6
  export * from "./CreateBrowserProfileCommand";
6
7
  export * from "./CreateCodeInterpreterCommand";
7
8
  export * from "./CreateConfigurationBundleCommand";
9
+ export * from "./CreateDatasetCommand";
10
+ export * from "./CreateDatasetVersionCommand";
8
11
  export * from "./CreateEvaluatorCommand";
9
12
  export * from "./CreateGatewayCommand";
10
13
  export * from "./CreateGatewayRuleCommand";
@@ -28,6 +31,8 @@ export * from "./DeleteBrowserCommand";
28
31
  export * from "./DeleteBrowserProfileCommand";
29
32
  export * from "./DeleteCodeInterpreterCommand";
30
33
  export * from "./DeleteConfigurationBundleCommand";
34
+ export * from "./DeleteDatasetCommand";
35
+ export * from "./DeleteDatasetExamplesCommand";
31
36
  export * from "./DeleteEvaluatorCommand";
32
37
  export * from "./DeleteGatewayCommand";
33
38
  export * from "./DeleteGatewayRuleCommand";
@@ -53,6 +58,7 @@ export * from "./GetBrowserProfileCommand";
53
58
  export * from "./GetCodeInterpreterCommand";
54
59
  export * from "./GetConfigurationBundleCommand";
55
60
  export * from "./GetConfigurationBundleVersionCommand";
61
+ export * from "./GetDatasetCommand";
56
62
  export * from "./GetEvaluatorCommand";
57
63
  export * from "./GetGatewayCommand";
58
64
  export * from "./GetGatewayRuleCommand";
@@ -84,6 +90,9 @@ export * from "./ListBrowsersCommand";
84
90
  export * from "./ListCodeInterpretersCommand";
85
91
  export * from "./ListConfigurationBundleVersionsCommand";
86
92
  export * from "./ListConfigurationBundlesCommand";
93
+ export * from "./ListDatasetExamplesCommand";
94
+ export * from "./ListDatasetVersionsCommand";
95
+ export * from "./ListDatasetsCommand";
87
96
  export * from "./ListEvaluatorsCommand";
88
97
  export * from "./ListGatewayRulesCommand";
89
98
  export * from "./ListGatewayTargetsCommand";
@@ -117,6 +126,8 @@ export * from "./UpdateAgentRuntimeCommand";
117
126
  export * from "./UpdateAgentRuntimeEndpointCommand";
118
127
  export * from "./UpdateApiKeyCredentialProviderCommand";
119
128
  export * from "./UpdateConfigurationBundleCommand";
129
+ export * from "./UpdateDatasetCommand";
130
+ export * from "./UpdateDatasetExamplesCommand";
120
131
  export * from "./UpdateEvaluatorCommand";
121
132
  export * from "./UpdateGatewayCommand";
122
133
  export * from "./UpdateGatewayRuleCommand";
@@ -16,4 +16,5 @@ export * from "./models/enums";
16
16
  export * from "./models/errors";
17
17
  export * from "./models/models_0";
18
18
  export * from "./models/models_1";
19
+ export * from "./models/models_2";
19
20
  export { BedrockAgentCoreControlServiceException } from "./models/BedrockAgentCoreControlServiceException";
@@ -15,18 +15,49 @@ export type ActorTokenContentType = (typeof ActorTokenContentType)[keyof typeof
15
15
  * @public
16
16
  * @enum
17
17
  */
18
- export declare const AgentRuntimeEndpointStatus: {
18
+ export declare const DatasetStatus: {
19
+ /**
20
+ * Dataset is stable. All operations are allowed per per-operation guards.
21
+ * failureReason is cleared.
22
+ */
23
+ readonly ACTIVE: "ACTIVE";
24
+ /**
25
+ * Initial ingestion failed. DRAFT record exists but contains no examples.
26
+ * failureReason is populated. AddDatasetExamples and DeleteDatasetExamples allowed.
27
+ * UpdateDatasetExamples and CreateDatasetVersion blocked (no examples exist).
28
+ */
19
29
  readonly CREATE_FAILED: "CREATE_FAILED";
30
+ /**
31
+ * CreateDataset async ingestion in progress.
32
+ * All writes are blocked. Poll GetDataset until status resolves to ACTIVE or CREATE_FAILED.
33
+ */
20
34
  readonly CREATING: "CREATING";
35
+ /**
36
+ * Delete failed after retries. Dataset record/S3 may be in inconsistent state.
37
+ * failureReason is populated. Only DeleteDataset (retry) is allowed.
38
+ */
39
+ readonly DELETE_FAILED: "DELETE_FAILED";
40
+ /**
41
+ * Full or version-specific delete is in progress.
42
+ * Read operations (GetDataset, ListDatasetExamples) are still allowed.
43
+ */
21
44
  readonly DELETING: "DELETING";
22
- readonly READY: "READY";
45
+ /**
46
+ * Last example mutation or CreateDatasetVersion failed.
47
+ * DRAFT may be partially modified. failureReason is populated.
48
+ * All example mutations and CreateDatasetVersion allowed for retry.
49
+ */
23
50
  readonly UPDATE_FAILED: "UPDATE_FAILED";
51
+ /**
52
+ * An async example mutation or CreateDatasetVersion is in progress.
53
+ * All writes are blocked. Poll GetDataset until status resolves.
54
+ */
24
55
  readonly UPDATING: "UPDATING";
25
56
  };
26
57
  /**
27
58
  * @public
28
59
  */
29
- export type AgentRuntimeEndpointStatus = (typeof AgentRuntimeEndpointStatus)[keyof typeof AgentRuntimeEndpointStatus];
60
+ export type DatasetStatus = (typeof DatasetStatus)[keyof typeof DatasetStatus];
30
61
  /**
31
62
  * @public
32
63
  * @enum
@@ -42,6 +73,22 @@ export declare const ValidationExceptionReason: {
42
73
  * @public
43
74
  */
44
75
  export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
76
+ /**
77
+ * @public
78
+ * @enum
79
+ */
80
+ export declare const AgentRuntimeEndpointStatus: {
81
+ readonly CREATE_FAILED: "CREATE_FAILED";
82
+ readonly CREATING: "CREATING";
83
+ readonly DELETING: "DELETING";
84
+ readonly READY: "READY";
85
+ readonly UPDATE_FAILED: "UPDATE_FAILED";
86
+ readonly UPDATING: "UPDATING";
87
+ };
88
+ /**
89
+ * @public
90
+ */
91
+ export type AgentRuntimeEndpointStatus = (typeof AgentRuntimeEndpointStatus)[keyof typeof AgentRuntimeEndpointStatus];
45
92
  /**
46
93
  * @public
47
94
  * @enum
@@ -249,6 +296,47 @@ export declare const ConfigurationBundleStatus: {
249
296
  * @public
250
297
  */
251
298
  export type ConfigurationBundleStatus = (typeof ConfigurationBundleStatus)[keyof typeof ConfigurationBundleStatus];
299
+ /**
300
+ * @public
301
+ * @enum
302
+ */
303
+ export declare const DatasetSchemaType: {
304
+ /**
305
+ * AgentCore predefined evaluation schema, version 1. Dataset with pre-written inputs per conversation turn.
306
+ * Required: input. Optional: expectedResponse, assertions, expectedTrajectory.
307
+ */
308
+ readonly AGENTCORE_EVALUATION_PREDEFINED_V1: "AGENTCORE_EVALUATION_PREDEFINED_V1";
309
+ /**
310
+ * AgentCore simulated evaluation schema, version 1. Dataset for synthetic data generation.
311
+ * Each example is a Scenario that a simulator uses to generate full conversations.
312
+ * Required: input. Optional: name (→exampleId), actor_profile, max_turns, assertions.
313
+ */
314
+ readonly AGENTCORE_EVALUATION_SIMULATED_V1: "AGENTCORE_EVALUATION_SIMULATED_V1";
315
+ };
316
+ /**
317
+ * @public
318
+ */
319
+ export type DatasetSchemaType = (typeof DatasetSchemaType)[keyof typeof DatasetSchemaType];
320
+ /**
321
+ * @public
322
+ * @enum
323
+ */
324
+ export declare const DraftStatus: {
325
+ /**
326
+ * DRAFT has changes not yet reflected in any published version, or no versions
327
+ * have been published yet.
328
+ */
329
+ readonly MODIFIED: "MODIFIED";
330
+ /**
331
+ * DRAFT content matches the latest published version exactly.
332
+ * Any example mutation transitions draftStatus back to MODIFIED.
333
+ */
334
+ readonly UNMODIFIED: "UNMODIFIED";
335
+ };
336
+ /**
337
+ * @public
338
+ */
339
+ export type DraftStatus = (typeof DraftStatus)[keyof typeof DraftStatus];
252
340
  /**
253
341
  * @public
254
342
  * @enum