@aws-sdk/client-bedrock 3.635.0 → 3.640.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 +72 -0
- package/dist-cjs/index.js +646 -78
- package/dist-es/Bedrock.js +18 -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/GetInferenceProfileCommand.js +24 -0
- package/dist-es/commands/GetModelImportJobCommand.js +24 -0
- package/dist-es/commands/ListImportedModelsCommand.js +24 -0
- package/dist-es/commands/ListInferenceProfilesCommand.js +24 -0
- package/dist-es/commands/ListModelImportJobsCommand.js +24 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/models/models_0.js +97 -58
- package/dist-es/pagination/ListImportedModelsPaginator.js +4 -0
- package/dist-es/pagination/ListInferenceProfilesPaginator.js +4 -0
- package/dist-es/pagination/ListModelImportJobsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +329 -3
- package/dist-types/Bedrock.d.ts +66 -0
- package/dist-types/BedrockClient.d.ts +11 -2
- package/dist-types/commands/BatchDeleteEvaluationJobCommand.d.ts +92 -0
- package/dist-types/commands/CreateModelImportJobCommand.d.ts +116 -0
- package/dist-types/commands/CreateModelInvocationJobCommand.d.ts +2 -2
- 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/GetInferenceProfileCommand.d.ts +87 -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/ListInferenceProfilesCommand.d.ts +90 -0
- package/dist-types/commands/ListModelImportJobsCommand.d.ts +93 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/models/models_0.d.ts +952 -249
- package/dist-types/pagination/ListImportedModelsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListInferenceProfilesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListModelImportJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
- package/dist-types/ts3.4/Bedrock.d.ts +156 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +54 -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/GetInferenceProfileCommand.d.ts +40 -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/ListInferenceProfilesCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListModelImportJobsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/models/models_0.d.ts +239 -45
- package/dist-types/ts3.4/pagination/ListImportedModelsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListInferenceProfilesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListModelImportJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
- package/package.json +6 -6
|
@@ -0,0 +1,100 @@
|
|
|
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 { GetModelImportJobRequest, GetModelImportJobResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetModelImportJobCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetModelImportJobCommandInput extends GetModelImportJobRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetModelImportJobCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetModelImportJobCommandOutput extends GetModelImportJobResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetModelImportJobCommand_base: {
|
|
25
|
+
new (input: GetModelImportJobCommandInput): import("@smithy/smithy-client").CommandImpl<GetModelImportJobCommandInput, GetModelImportJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetModelImportJobCommandInput): import("@smithy/smithy-client").CommandImpl<GetModelImportJobCommandInput, GetModelImportJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves the properties associated with import model job, including the status of the
|
|
31
|
+
* job. 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, GetModelImportJobCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
37
|
+
* // const { BedrockClient, GetModelImportJobCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
38
|
+
* const client = new BedrockClient(config);
|
|
39
|
+
* const input = { // GetModelImportJobRequest
|
|
40
|
+
* jobIdentifier: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetModelImportJobCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetModelImportJobResponse
|
|
45
|
+
* // jobArn: "STRING_VALUE",
|
|
46
|
+
* // jobName: "STRING_VALUE",
|
|
47
|
+
* // importedModelName: "STRING_VALUE",
|
|
48
|
+
* // importedModelArn: "STRING_VALUE",
|
|
49
|
+
* // roleArn: "STRING_VALUE",
|
|
50
|
+
* // modelDataSource: { // ModelDataSource Union: only one key present
|
|
51
|
+
* // s3DataSource: { // S3DataSource
|
|
52
|
+
* // s3Uri: "STRING_VALUE", // required
|
|
53
|
+
* // },
|
|
54
|
+
* // },
|
|
55
|
+
* // status: "InProgress" || "Completed" || "Failed",
|
|
56
|
+
* // failureMessage: "STRING_VALUE",
|
|
57
|
+
* // creationTime: new Date("TIMESTAMP"),
|
|
58
|
+
* // lastModifiedTime: new Date("TIMESTAMP"),
|
|
59
|
+
* // endTime: new Date("TIMESTAMP"),
|
|
60
|
+
* // vpcConfig: { // VpcConfig
|
|
61
|
+
* // subnetIds: [ // SubnetIds // required
|
|
62
|
+
* // "STRING_VALUE",
|
|
63
|
+
* // ],
|
|
64
|
+
* // securityGroupIds: [ // SecurityGroupIds // required
|
|
65
|
+
* // "STRING_VALUE",
|
|
66
|
+
* // ],
|
|
67
|
+
* // },
|
|
68
|
+
* // importedModelKmsKeyArn: "STRING_VALUE",
|
|
69
|
+
* // };
|
|
70
|
+
*
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* @param GetModelImportJobCommandInput - {@link GetModelImportJobCommandInput}
|
|
74
|
+
* @returns {@link GetModelImportJobCommandOutput}
|
|
75
|
+
* @see {@link GetModelImportJobCommandInput} for command's `input` shape.
|
|
76
|
+
* @see {@link GetModelImportJobCommandOutput} for command's `response` shape.
|
|
77
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
80
|
+
* <p>The request is denied because of missing access permissions.</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 BedrockServiceException}
|
|
95
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
96
|
+
*
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
export declare class GetModelImportJobCommand extends GetModelImportJobCommand_base {
|
|
100
|
+
}
|
|
@@ -37,7 +37,7 @@ declare const ListEvaluationJobsCommand_base: {
|
|
|
37
37
|
* const input = { // ListEvaluationJobsRequest
|
|
38
38
|
* creationTimeAfter: new Date("TIMESTAMP"),
|
|
39
39
|
* creationTimeBefore: new Date("TIMESTAMP"),
|
|
40
|
-
* statusEquals: "InProgress" || "Completed" || "Failed" || "Stopping" || "Stopped",
|
|
40
|
+
* statusEquals: "InProgress" || "Completed" || "Failed" || "Stopping" || "Stopped" || "Deleting",
|
|
41
41
|
* nameContains: "STRING_VALUE",
|
|
42
42
|
* maxResults: Number("int"),
|
|
43
43
|
* nextToken: "STRING_VALUE",
|
|
@@ -52,7 +52,7 @@ declare const ListEvaluationJobsCommand_base: {
|
|
|
52
52
|
* // { // EvaluationSummary
|
|
53
53
|
* // jobArn: "STRING_VALUE", // required
|
|
54
54
|
* // jobName: "STRING_VALUE", // required
|
|
55
|
-
* // status: "InProgress" || "Completed" || "Failed" || "Stopping" || "Stopped", // required
|
|
55
|
+
* // status: "InProgress" || "Completed" || "Failed" || "Stopping" || "Stopped" || "Deleting", // required
|
|
56
56
|
* // creationTime: new Date("TIMESTAMP"), // required
|
|
57
57
|
* // jobType: "Human" || "Automated", // required
|
|
58
58
|
* // evaluationTaskTypes: [ // EvaluationTaskTypes // required
|
|
@@ -0,0 +1,87 @@
|
|
|
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 { ListImportedModelsRequest, ListImportedModelsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListImportedModelsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListImportedModelsCommandInput extends ListImportedModelsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListImportedModelsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListImportedModelsCommandOutput extends ListImportedModelsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListImportedModelsCommand_base: {
|
|
25
|
+
new (input: ListImportedModelsCommandInput): import("@smithy/smithy-client").CommandImpl<ListImportedModelsCommandInput, ListImportedModelsCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListImportedModelsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListImportedModelsCommandInput, ListImportedModelsCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns a list of models you've imported. 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, ListImportedModelsCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
37
|
+
* // const { BedrockClient, ListImportedModelsCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
38
|
+
* const client = new BedrockClient(config);
|
|
39
|
+
* const input = { // ListImportedModelsRequest
|
|
40
|
+
* creationTimeBefore: new Date("TIMESTAMP"),
|
|
41
|
+
* creationTimeAfter: new Date("TIMESTAMP"),
|
|
42
|
+
* nameContains: "STRING_VALUE",
|
|
43
|
+
* maxResults: Number("int"),
|
|
44
|
+
* nextToken: "STRING_VALUE",
|
|
45
|
+
* sortBy: "CreationTime",
|
|
46
|
+
* sortOrder: "Ascending" || "Descending",
|
|
47
|
+
* };
|
|
48
|
+
* const command = new ListImportedModelsCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* // { // ListImportedModelsResponse
|
|
51
|
+
* // nextToken: "STRING_VALUE",
|
|
52
|
+
* // modelSummaries: [ // ImportedModelSummaryList
|
|
53
|
+
* // { // ImportedModelSummary
|
|
54
|
+
* // modelArn: "STRING_VALUE", // required
|
|
55
|
+
* // modelName: "STRING_VALUE", // required
|
|
56
|
+
* // creationTime: new Date("TIMESTAMP"), // required
|
|
57
|
+
* // },
|
|
58
|
+
* // ],
|
|
59
|
+
* // };
|
|
60
|
+
*
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @param ListImportedModelsCommandInput - {@link ListImportedModelsCommandInput}
|
|
64
|
+
* @returns {@link ListImportedModelsCommandOutput}
|
|
65
|
+
* @see {@link ListImportedModelsCommandInput} for command's `input` shape.
|
|
66
|
+
* @see {@link ListImportedModelsCommandOutput} for command's `response` shape.
|
|
67
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
70
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link InternalServerException} (server fault)
|
|
73
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
76
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ValidationException} (client fault)
|
|
79
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link BedrockServiceException}
|
|
82
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
83
|
+
*
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
export declare class ListImportedModelsCommand extends ListImportedModelsCommand_base {
|
|
87
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { ListInferenceProfilesRequest, ListInferenceProfilesResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListInferenceProfilesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListInferenceProfilesCommandInput extends ListInferenceProfilesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListInferenceProfilesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListInferenceProfilesCommandOutput extends ListInferenceProfilesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListInferenceProfilesCommand_base: {
|
|
25
|
+
new (input: ListInferenceProfilesCommandInput): import("@smithy/smithy-client").CommandImpl<ListInferenceProfilesCommandInput, ListInferenceProfilesCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListInferenceProfilesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListInferenceProfilesCommandInput, ListInferenceProfilesCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns a list of inference profiles that you can use.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, ListInferenceProfilesCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, ListInferenceProfilesCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // ListInferenceProfilesRequest
|
|
38
|
+
* maxResults: Number("int"),
|
|
39
|
+
* nextToken: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListInferenceProfilesCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListInferenceProfilesResponse
|
|
44
|
+
* // inferenceProfileSummaries: [ // InferenceProfileSummaries
|
|
45
|
+
* // { // InferenceProfileSummary
|
|
46
|
+
* // inferenceProfileName: "STRING_VALUE", // required
|
|
47
|
+
* // models: [ // InferenceProfileModels // required
|
|
48
|
+
* // { // InferenceProfileModel
|
|
49
|
+
* // modelArn: "STRING_VALUE",
|
|
50
|
+
* // },
|
|
51
|
+
* // ],
|
|
52
|
+
* // description: "STRING_VALUE",
|
|
53
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
54
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
55
|
+
* // inferenceProfileArn: "STRING_VALUE", // required
|
|
56
|
+
* // inferenceProfileId: "STRING_VALUE", // required
|
|
57
|
+
* // status: "ACTIVE", // required
|
|
58
|
+
* // type: "SYSTEM_DEFINED", // required
|
|
59
|
+
* // },
|
|
60
|
+
* // ],
|
|
61
|
+
* // nextToken: "STRING_VALUE",
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param ListInferenceProfilesCommandInput - {@link ListInferenceProfilesCommandInput}
|
|
67
|
+
* @returns {@link ListInferenceProfilesCommandOutput}
|
|
68
|
+
* @see {@link ListInferenceProfilesCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link ListInferenceProfilesCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InternalServerException} (server fault)
|
|
76
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
79
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ValidationException} (client fault)
|
|
82
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link BedrockServiceException}
|
|
85
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export declare class ListInferenceProfilesCommand extends ListInferenceProfilesCommand_base {
|
|
90
|
+
}
|
|
@@ -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,26 @@
|
|
|
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";
|
|
20
|
+
export * from "./GetInferenceProfileCommand";
|
|
16
21
|
export * from "./GetModelCopyJobCommand";
|
|
17
22
|
export * from "./GetModelCustomizationJobCommand";
|
|
23
|
+
export * from "./GetModelImportJobCommand";
|
|
18
24
|
export * from "./GetModelInvocationJobCommand";
|
|
19
25
|
export * from "./GetModelInvocationLoggingConfigurationCommand";
|
|
20
26
|
export * from "./GetProvisionedModelThroughputCommand";
|
|
@@ -22,8 +28,11 @@ export * from "./ListCustomModelsCommand";
|
|
|
22
28
|
export * from "./ListEvaluationJobsCommand";
|
|
23
29
|
export * from "./ListFoundationModelsCommand";
|
|
24
30
|
export * from "./ListGuardrailsCommand";
|
|
31
|
+
export * from "./ListImportedModelsCommand";
|
|
32
|
+
export * from "./ListInferenceProfilesCommand";
|
|
25
33
|
export * from "./ListModelCopyJobsCommand";
|
|
26
34
|
export * from "./ListModelCustomizationJobsCommand";
|
|
35
|
+
export * from "./ListModelImportJobsCommand";
|
|
27
36
|
export * from "./ListModelInvocationJobsCommand";
|
|
28
37
|
export * from "./ListProvisionedModelThroughputsCommand";
|
|
29
38
|
export * from "./ListTagsForResourceCommand";
|