@aws-sdk/client-bedrock 3.635.0 → 3.637.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 +56 -0
- package/dist-cjs/index.js +515 -78
- package/dist-es/Bedrock.js +14 -0
- package/dist-es/commands/BatchDeleteEvaluationJobCommand.js +25 -0
- package/dist-es/commands/CreateModelImportJobCommand.js +24 -0
- package/dist-es/commands/DeleteImportedModelCommand.js +24 -0
- package/dist-es/commands/GetImportedModelCommand.js +24 -0
- package/dist-es/commands/GetModelImportJobCommand.js +24 -0
- package/dist-es/commands/ListImportedModelsCommand.js +24 -0
- package/dist-es/commands/ListModelImportJobsCommand.js +24 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/models_0.js +91 -58
- package/dist-es/pagination/ListImportedModelsPaginator.js +4 -0
- package/dist-es/pagination/ListModelImportJobsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +250 -3
- package/dist-types/Bedrock.d.ts +51 -0
- package/dist-types/BedrockClient.d.ts +9 -2
- package/dist-types/commands/BatchDeleteEvaluationJobCommand.d.ts +92 -0
- package/dist-types/commands/CreateModelImportJobCommand.d.ts +116 -0
- package/dist-types/commands/DeleteImportedModelCommand.d.ts +78 -0
- package/dist-types/commands/GetEvaluationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetImportedModelCommand.d.ts +86 -0
- package/dist-types/commands/GetModelImportJobCommand.d.ts +100 -0
- package/dist-types/commands/ListEvaluationJobsCommand.d.ts +2 -2
- package/dist-types/commands/ListImportedModelsCommand.d.ts +87 -0
- package/dist-types/commands/ListModelImportJobsCommand.d.ts +93 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/models_0.d.ts +696 -167
- package/dist-types/pagination/ListImportedModelsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListModelImportJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
- package/dist-types/ts3.4/Bedrock.d.ts +121 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +42 -0
- package/dist-types/ts3.4/commands/BatchDeleteEvaluationJobCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/CreateModelImportJobCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/DeleteImportedModelCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetImportedModelCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetModelImportJobCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListImportedModelsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListModelImportJobsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +193 -45
- package/dist-types/ts3.4/pagination/ListImportedModelsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListModelImportJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
- package/package.json +6 -6
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
+
import { ListModelImportJobsRequest, ListModelImportJobsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListModelImportJobsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListModelImportJobsCommandInput extends ListModelImportJobsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListModelImportJobsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListModelImportJobsCommandOutput extends ListModelImportJobsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListModelImportJobsCommand_base: {
|
|
25
|
+
new (input: ListModelImportJobsCommandInput): import("@smithy/smithy-client").CommandImpl<ListModelImportJobsCommandInput, ListModelImportJobsCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListModelImportJobsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListModelImportJobsCommandInput, ListModelImportJobsCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns a list of import jobs you've submitted. You can filter the results to return based on one or more criteria.
|
|
31
|
+
* For more information,
|
|
32
|
+
* see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html">Import a customized model</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { BedrockClient, ListModelImportJobsCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
37
|
+
* // const { BedrockClient, ListModelImportJobsCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
38
|
+
* const client = new BedrockClient(config);
|
|
39
|
+
* const input = { // ListModelImportJobsRequest
|
|
40
|
+
* creationTimeAfter: new Date("TIMESTAMP"),
|
|
41
|
+
* creationTimeBefore: new Date("TIMESTAMP"),
|
|
42
|
+
* statusEquals: "InProgress" || "Completed" || "Failed",
|
|
43
|
+
* nameContains: "STRING_VALUE",
|
|
44
|
+
* maxResults: Number("int"),
|
|
45
|
+
* nextToken: "STRING_VALUE",
|
|
46
|
+
* sortBy: "CreationTime",
|
|
47
|
+
* sortOrder: "Ascending" || "Descending",
|
|
48
|
+
* };
|
|
49
|
+
* const command = new ListModelImportJobsCommand(input);
|
|
50
|
+
* const response = await client.send(command);
|
|
51
|
+
* // { // ListModelImportJobsResponse
|
|
52
|
+
* // nextToken: "STRING_VALUE",
|
|
53
|
+
* // modelImportJobSummaries: [ // ModelImportJobSummaries
|
|
54
|
+
* // { // ModelImportJobSummary
|
|
55
|
+
* // jobArn: "STRING_VALUE", // required
|
|
56
|
+
* // jobName: "STRING_VALUE", // required
|
|
57
|
+
* // status: "InProgress" || "Completed" || "Failed", // required
|
|
58
|
+
* // lastModifiedTime: new Date("TIMESTAMP"),
|
|
59
|
+
* // creationTime: new Date("TIMESTAMP"), // required
|
|
60
|
+
* // endTime: new Date("TIMESTAMP"),
|
|
61
|
+
* // importedModelArn: "STRING_VALUE",
|
|
62
|
+
* // importedModelName: "STRING_VALUE",
|
|
63
|
+
* // },
|
|
64
|
+
* // ],
|
|
65
|
+
* // };
|
|
66
|
+
*
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* @param ListModelImportJobsCommandInput - {@link ListModelImportJobsCommandInput}
|
|
70
|
+
* @returns {@link ListModelImportJobsCommandOutput}
|
|
71
|
+
* @see {@link ListModelImportJobsCommandInput} for command's `input` shape.
|
|
72
|
+
* @see {@link ListModelImportJobsCommandOutput} for command's `response` shape.
|
|
73
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
76
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InternalServerException} (server fault)
|
|
79
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
82
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ValidationException} (client fault)
|
|
85
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link BedrockServiceException}
|
|
88
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
89
|
+
*
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
export declare class ListModelImportJobsCommand extends ListModelImportJobsCommand_base {
|
|
93
|
+
}
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
+
export * from "./BatchDeleteEvaluationJobCommand";
|
|
1
2
|
export * from "./CreateEvaluationJobCommand";
|
|
2
3
|
export * from "./CreateGuardrailCommand";
|
|
3
4
|
export * from "./CreateGuardrailVersionCommand";
|
|
4
5
|
export * from "./CreateModelCopyJobCommand";
|
|
5
6
|
export * from "./CreateModelCustomizationJobCommand";
|
|
7
|
+
export * from "./CreateModelImportJobCommand";
|
|
6
8
|
export * from "./CreateModelInvocationJobCommand";
|
|
7
9
|
export * from "./CreateProvisionedModelThroughputCommand";
|
|
8
10
|
export * from "./DeleteCustomModelCommand";
|
|
9
11
|
export * from "./DeleteGuardrailCommand";
|
|
12
|
+
export * from "./DeleteImportedModelCommand";
|
|
10
13
|
export * from "./DeleteModelInvocationLoggingConfigurationCommand";
|
|
11
14
|
export * from "./DeleteProvisionedModelThroughputCommand";
|
|
12
15
|
export * from "./GetCustomModelCommand";
|
|
13
16
|
export * from "./GetEvaluationJobCommand";
|
|
14
17
|
export * from "./GetFoundationModelCommand";
|
|
15
18
|
export * from "./GetGuardrailCommand";
|
|
19
|
+
export * from "./GetImportedModelCommand";
|
|
16
20
|
export * from "./GetModelCopyJobCommand";
|
|
17
21
|
export * from "./GetModelCustomizationJobCommand";
|
|
22
|
+
export * from "./GetModelImportJobCommand";
|
|
18
23
|
export * from "./GetModelInvocationJobCommand";
|
|
19
24
|
export * from "./GetModelInvocationLoggingConfigurationCommand";
|
|
20
25
|
export * from "./GetProvisionedModelThroughputCommand";
|
|
@@ -22,8 +27,10 @@ export * from "./ListCustomModelsCommand";
|
|
|
22
27
|
export * from "./ListEvaluationJobsCommand";
|
|
23
28
|
export * from "./ListFoundationModelsCommand";
|
|
24
29
|
export * from "./ListGuardrailsCommand";
|
|
30
|
+
export * from "./ListImportedModelsCommand";
|
|
25
31
|
export * from "./ListModelCopyJobsCommand";
|
|
26
32
|
export * from "./ListModelCustomizationJobsCommand";
|
|
33
|
+
export * from "./ListModelImportJobsCommand";
|
|
27
34
|
export * from "./ListModelInvocationJobsCommand";
|
|
28
35
|
export * from "./ListProvisionedModelThroughputsCommand";
|
|
29
36
|
export * from "./ListTagsForResourceCommand";
|