@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,92 @@
|
|
|
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 { BatchDeleteEvaluationJobRequest, BatchDeleteEvaluationJobResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link BatchDeleteEvaluationJobCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchDeleteEvaluationJobCommandInput extends BatchDeleteEvaluationJobRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchDeleteEvaluationJobCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchDeleteEvaluationJobCommandOutput extends BatchDeleteEvaluationJobResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const BatchDeleteEvaluationJobCommand_base: {
|
|
25
|
+
new (input: BatchDeleteEvaluationJobCommandInput): import("@smithy/smithy-client").CommandImpl<BatchDeleteEvaluationJobCommandInput, BatchDeleteEvaluationJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: BatchDeleteEvaluationJobCommandInput): import("@smithy/smithy-client").CommandImpl<BatchDeleteEvaluationJobCommandInput, BatchDeleteEvaluationJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a batch deletion job. A model evaluation job can only be deleted if it has following status <code>FAILED</code>, <code>COMPLETED</code>, and <code>STOPPED</code>. You can request up to 25 model evaluation jobs be deleted in a single request.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, BatchDeleteEvaluationJobCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, BatchDeleteEvaluationJobCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // BatchDeleteEvaluationJobRequest
|
|
38
|
+
* jobIdentifiers: [ // EvaluationJobIdentifiers // required
|
|
39
|
+
* "STRING_VALUE",
|
|
40
|
+
* ],
|
|
41
|
+
* };
|
|
42
|
+
* const command = new BatchDeleteEvaluationJobCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // BatchDeleteEvaluationJobResponse
|
|
45
|
+
* // errors: [ // BatchDeleteEvaluationJobErrors // required
|
|
46
|
+
* // { // BatchDeleteEvaluationJobError
|
|
47
|
+
* // jobIdentifier: "STRING_VALUE", // required
|
|
48
|
+
* // code: "STRING_VALUE", // required
|
|
49
|
+
* // message: "STRING_VALUE",
|
|
50
|
+
* // },
|
|
51
|
+
* // ],
|
|
52
|
+
* // evaluationJobs: [ // BatchDeleteEvaluationJobItems // required
|
|
53
|
+
* // { // BatchDeleteEvaluationJobItem
|
|
54
|
+
* // jobIdentifier: "STRING_VALUE", // required
|
|
55
|
+
* // jobStatus: "InProgress" || "Completed" || "Failed" || "Stopping" || "Stopped" || "Deleting", // required
|
|
56
|
+
* // },
|
|
57
|
+
* // ],
|
|
58
|
+
* // };
|
|
59
|
+
*
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* @param BatchDeleteEvaluationJobCommandInput - {@link BatchDeleteEvaluationJobCommandInput}
|
|
63
|
+
* @returns {@link BatchDeleteEvaluationJobCommandOutput}
|
|
64
|
+
* @see {@link BatchDeleteEvaluationJobCommandInput} for command's `input` shape.
|
|
65
|
+
* @see {@link BatchDeleteEvaluationJobCommandOutput} for command's `response` shape.
|
|
66
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
69
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ConflictException} (client fault)
|
|
72
|
+
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link InternalServerException} (server fault)
|
|
75
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
78
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
81
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ValidationException} (client fault)
|
|
84
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link BedrockServiceException}
|
|
87
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
88
|
+
*
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
export declare class BatchDeleteEvaluationJobCommand extends BatchDeleteEvaluationJobCommand_base {
|
|
92
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
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 { CreateModelImportJobRequest, CreateModelImportJobResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateModelImportJobCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateModelImportJobCommandInput extends CreateModelImportJobRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateModelImportJobCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateModelImportJobCommandOutput extends CreateModelImportJobResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateModelImportJobCommand_base: {
|
|
25
|
+
new (input: CreateModelImportJobCommandInput): import("@smithy/smithy-client").CommandImpl<CreateModelImportJobCommandInput, CreateModelImportJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateModelImportJobCommandInput): import("@smithy/smithy-client").CommandImpl<CreateModelImportJobCommandInput, CreateModelImportJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker. For more information,
|
|
31
|
+
* see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html">Import a customized model</a>
|
|
32
|
+
* </p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { BedrockClient, CreateModelImportJobCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
37
|
+
* // const { BedrockClient, CreateModelImportJobCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
38
|
+
* const client = new BedrockClient(config);
|
|
39
|
+
* const input = { // CreateModelImportJobRequest
|
|
40
|
+
* jobName: "STRING_VALUE", // required
|
|
41
|
+
* importedModelName: "STRING_VALUE", // required
|
|
42
|
+
* roleArn: "STRING_VALUE", // required
|
|
43
|
+
* modelDataSource: { // ModelDataSource Union: only one key present
|
|
44
|
+
* s3DataSource: { // S3DataSource
|
|
45
|
+
* s3Uri: "STRING_VALUE", // required
|
|
46
|
+
* },
|
|
47
|
+
* },
|
|
48
|
+
* jobTags: [ // TagList
|
|
49
|
+
* { // Tag
|
|
50
|
+
* key: "STRING_VALUE", // required
|
|
51
|
+
* value: "STRING_VALUE", // required
|
|
52
|
+
* },
|
|
53
|
+
* ],
|
|
54
|
+
* importedModelTags: [
|
|
55
|
+
* {
|
|
56
|
+
* key: "STRING_VALUE", // required
|
|
57
|
+
* value: "STRING_VALUE", // required
|
|
58
|
+
* },
|
|
59
|
+
* ],
|
|
60
|
+
* clientRequestToken: "STRING_VALUE",
|
|
61
|
+
* vpcConfig: { // VpcConfig
|
|
62
|
+
* subnetIds: [ // SubnetIds // required
|
|
63
|
+
* "STRING_VALUE",
|
|
64
|
+
* ],
|
|
65
|
+
* securityGroupIds: [ // SecurityGroupIds // required
|
|
66
|
+
* "STRING_VALUE",
|
|
67
|
+
* ],
|
|
68
|
+
* },
|
|
69
|
+
* importedModelKmsKeyId: "STRING_VALUE",
|
|
70
|
+
* };
|
|
71
|
+
* const command = new CreateModelImportJobCommand(input);
|
|
72
|
+
* const response = await client.send(command);
|
|
73
|
+
* // { // CreateModelImportJobResponse
|
|
74
|
+
* // jobArn: "STRING_VALUE", // required
|
|
75
|
+
* // };
|
|
76
|
+
*
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* @param CreateModelImportJobCommandInput - {@link CreateModelImportJobCommandInput}
|
|
80
|
+
* @returns {@link CreateModelImportJobCommandOutput}
|
|
81
|
+
* @see {@link CreateModelImportJobCommandInput} for command's `input` shape.
|
|
82
|
+
* @see {@link CreateModelImportJobCommandOutput} for command's `response` shape.
|
|
83
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
86
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ConflictException} (client fault)
|
|
89
|
+
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link InternalServerException} (server fault)
|
|
92
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
95
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
98
|
+
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
101
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link TooManyTagsException} (client fault)
|
|
104
|
+
* <p>The request contains more tags than can be associated with a resource (50 tags per resource).
|
|
105
|
+
* The maximum number of tags includes both existing tags and those included in your current request. </p>
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link ValidationException} (client fault)
|
|
108
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link BedrockServiceException}
|
|
111
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
112
|
+
*
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
export declare class CreateModelImportJobCommand extends CreateModelImportJobCommand_base {
|
|
116
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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 { DeleteImportedModelRequest, DeleteImportedModelResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteImportedModelCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteImportedModelCommandInput extends DeleteImportedModelRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteImportedModelCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteImportedModelCommandOutput extends DeleteImportedModelResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteImportedModelCommand_base: {
|
|
25
|
+
new (input: DeleteImportedModelCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteImportedModelCommandInput, DeleteImportedModelCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeleteImportedModelCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteImportedModelCommandInput, DeleteImportedModelCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Deletes a custom model that you imported earlier. For more information,
|
|
31
|
+
* 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>.
|
|
32
|
+
* </p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { BedrockClient, DeleteImportedModelCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
37
|
+
* // const { BedrockClient, DeleteImportedModelCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
38
|
+
* const client = new BedrockClient(config);
|
|
39
|
+
* const input = { // DeleteImportedModelRequest
|
|
40
|
+
* modelIdentifier: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new DeleteImportedModelCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // {};
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param DeleteImportedModelCommandInput - {@link DeleteImportedModelCommandInput}
|
|
49
|
+
* @returns {@link DeleteImportedModelCommandOutput}
|
|
50
|
+
* @see {@link DeleteImportedModelCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link DeleteImportedModelCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
55
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ConflictException} (client fault)
|
|
58
|
+
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link InternalServerException} (server fault)
|
|
61
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
64
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
67
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ValidationException} (client fault)
|
|
70
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link BedrockServiceException}
|
|
73
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
74
|
+
*
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
export declare class DeleteImportedModelCommand extends DeleteImportedModelCommand_base {
|
|
78
|
+
}
|
|
@@ -42,7 +42,7 @@ declare const GetEvaluationJobCommand_base: {
|
|
|
42
42
|
* const response = await client.send(command);
|
|
43
43
|
* // { // GetEvaluationJobResponse
|
|
44
44
|
* // jobName: "STRING_VALUE", // required
|
|
45
|
-
* // status: "InProgress" || "Completed" || "Failed" || "Stopping" || "Stopped", // required
|
|
45
|
+
* // status: "InProgress" || "Completed" || "Failed" || "Stopping" || "Stopped" || "Deleting", // required
|
|
46
46
|
* // jobArn: "STRING_VALUE", // required
|
|
47
47
|
* // jobDescription: "STRING_VALUE",
|
|
48
48
|
* // roleArn: "STRING_VALUE", // required
|
|
@@ -0,0 +1,86 @@
|
|
|
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 { GetImportedModelRequest, GetImportedModelResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetImportedModelCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetImportedModelCommandInput extends GetImportedModelRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetImportedModelCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetImportedModelCommandOutput extends GetImportedModelResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetImportedModelCommand_base: {
|
|
25
|
+
new (input: GetImportedModelCommandInput): import("@smithy/smithy-client").CommandImpl<GetImportedModelCommandInput, GetImportedModelCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetImportedModelCommandInput): import("@smithy/smithy-client").CommandImpl<GetImportedModelCommandInput, GetImportedModelCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Gets properties associated with a customized model you imported. </p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, GetImportedModelCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, GetImportedModelCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* const client = new BedrockClient(config);
|
|
37
|
+
* const input = { // GetImportedModelRequest
|
|
38
|
+
* modelIdentifier: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetImportedModelCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetImportedModelResponse
|
|
43
|
+
* // modelArn: "STRING_VALUE",
|
|
44
|
+
* // modelName: "STRING_VALUE",
|
|
45
|
+
* // jobName: "STRING_VALUE",
|
|
46
|
+
* // jobArn: "STRING_VALUE",
|
|
47
|
+
* // modelDataSource: { // ModelDataSource Union: only one key present
|
|
48
|
+
* // s3DataSource: { // S3DataSource
|
|
49
|
+
* // s3Uri: "STRING_VALUE", // required
|
|
50
|
+
* // },
|
|
51
|
+
* // },
|
|
52
|
+
* // creationTime: new Date("TIMESTAMP"),
|
|
53
|
+
* // modelArchitecture: "STRING_VALUE",
|
|
54
|
+
* // modelKmsKeyArn: "STRING_VALUE",
|
|
55
|
+
* // };
|
|
56
|
+
*
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @param GetImportedModelCommandInput - {@link GetImportedModelCommandInput}
|
|
60
|
+
* @returns {@link GetImportedModelCommandOutput}
|
|
61
|
+
* @see {@link GetImportedModelCommandInput} for command's `input` shape.
|
|
62
|
+
* @see {@link GetImportedModelCommandOutput} for command's `response` shape.
|
|
63
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
66
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link InternalServerException} (server fault)
|
|
69
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
72
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
75
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ValidationException} (client fault)
|
|
78
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link BedrockServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
82
|
+
*
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export declare class GetImportedModelCommand extends GetImportedModelCommand_base {
|
|
86
|
+
}
|
|
@@ -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
|
+
}
|