@aws-sdk/client-bedrock 3.845.0 → 3.847.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 (48) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/index.js +253 -23
  3. package/dist-es/Bedrock.js +8 -0
  4. package/dist-es/commands/CreateCustomModelDeploymentCommand.js +22 -0
  5. package/dist-es/commands/DeleteCustomModelDeploymentCommand.js +22 -0
  6. package/dist-es/commands/GetCustomModelDeploymentCommand.js +22 -0
  7. package/dist-es/commands/ListCustomModelDeploymentsCommand.js +22 -0
  8. package/dist-es/commands/index.js +4 -0
  9. package/dist-es/models/models_0.js +20 -19
  10. package/dist-es/models/models_1.js +4 -0
  11. package/dist-es/pagination/ListCustomModelDeploymentsPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +1 -0
  13. package/dist-es/protocols/Aws_restJson1.js +136 -1
  14. package/dist-types/Bedrock.d.ts +29 -0
  15. package/dist-types/BedrockClient.d.ts +6 -2
  16. package/dist-types/commands/CreateCustomModelDeploymentCommand.d.ts +102 -0
  17. package/dist-types/commands/CreateFoundationModelAgreementCommand.d.ts +1 -1
  18. package/dist-types/commands/DeleteCustomModelDeploymentCommand.d.ts +88 -0
  19. package/dist-types/commands/DeleteFoundationModelAgreementCommand.d.ts +1 -1
  20. package/dist-types/commands/GetCustomModelDeploymentCommand.d.ts +94 -0
  21. package/dist-types/commands/GetFoundationModelAvailabilityCommand.d.ts +1 -2
  22. package/dist-types/commands/ListCustomModelDeploymentsCommand.d.ts +103 -0
  23. package/dist-types/commands/ListProvisionedModelThroughputsCommand.d.ts +2 -1
  24. package/dist-types/commands/UpdateProvisionedModelThroughputCommand.d.ts +1 -1
  25. package/dist-types/commands/index.d.ts +4 -0
  26. package/dist-types/models/models_0.d.ts +269 -208
  27. package/dist-types/models/models_1.d.ts +169 -1
  28. package/dist-types/pagination/ListCustomModelDeploymentsPaginator.d.ts +7 -0
  29. package/dist-types/pagination/index.d.ts +1 -0
  30. package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
  31. package/dist-types/ts3.4/Bedrock.d.ts +69 -0
  32. package/dist-types/ts3.4/BedrockClient.d.ts +24 -0
  33. package/dist-types/ts3.4/commands/CreateCustomModelDeploymentCommand.d.ts +51 -0
  34. package/dist-types/ts3.4/commands/CreateFoundationModelAgreementCommand.d.ts +1 -1
  35. package/dist-types/ts3.4/commands/DeleteCustomModelDeploymentCommand.d.ts +51 -0
  36. package/dist-types/ts3.4/commands/DeleteFoundationModelAgreementCommand.d.ts +1 -1
  37. package/dist-types/ts3.4/commands/GetCustomModelDeploymentCommand.d.ts +51 -0
  38. package/dist-types/ts3.4/commands/GetFoundationModelAvailabilityCommand.d.ts +4 -2
  39. package/dist-types/ts3.4/commands/ListCustomModelDeploymentsCommand.d.ts +51 -0
  40. package/dist-types/ts3.4/commands/ListProvisionedModelThroughputsCommand.d.ts +2 -4
  41. package/dist-types/ts3.4/commands/UpdateProvisionedModelThroughputCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +75 -61
  44. package/dist-types/ts3.4/models/models_1.d.ts +46 -1
  45. package/dist-types/ts3.4/pagination/ListCustomModelDeploymentsPaginator.d.ts +11 -0
  46. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  47. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  48. package/package.json +6 -6
@@ -0,0 +1,102 @@
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 { CreateCustomModelDeploymentRequest, CreateCustomModelDeploymentResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateCustomModelDeploymentCommand}.
14
+ */
15
+ export interface CreateCustomModelDeploymentCommandInput extends CreateCustomModelDeploymentRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateCustomModelDeploymentCommand}.
21
+ */
22
+ export interface CreateCustomModelDeploymentCommandOutput extends CreateCustomModelDeploymentResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateCustomModelDeploymentCommand_base: {
25
+ new (input: CreateCustomModelDeploymentCommandInput): import("@smithy/smithy-client").CommandImpl<CreateCustomModelDeploymentCommandInput, CreateCustomModelDeploymentCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateCustomModelDeploymentCommandInput): import("@smithy/smithy-client").CommandImpl<CreateCustomModelDeploymentCommandInput, CreateCustomModelDeploymentCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deploys a custom model for on-demand inference in Amazon Bedrock. After you deploy your custom model, you use the deployment's Amazon Resource Name (ARN) as the <code>modelId</code> parameter when you submit prompts and generate responses with model inference.</p> <p> For more information about setting up on-demand inference for custom models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html">Set up inference for a custom model</a>. </p> <p>The following actions are related to the <code>CreateCustomModelDeployment</code> operation:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetCustomModelDeployment.html">GetCustomModelDeployment</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModelDeployments.html">ListCustomModelDeployments</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModelDeployment.html">DeleteCustomModelDeployment</a> </p> </li> </ul>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockClient, CreateCustomModelDeploymentCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
35
+ * // const { BedrockClient, CreateCustomModelDeploymentCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
36
+ * const client = new BedrockClient(config);
37
+ * const input = { // CreateCustomModelDeploymentRequest
38
+ * modelDeploymentName: "STRING_VALUE", // required
39
+ * modelArn: "STRING_VALUE", // required
40
+ * description: "STRING_VALUE",
41
+ * tags: [ // TagList
42
+ * { // Tag
43
+ * key: "STRING_VALUE", // required
44
+ * value: "STRING_VALUE", // required
45
+ * },
46
+ * ],
47
+ * clientRequestToken: "STRING_VALUE",
48
+ * };
49
+ * const command = new CreateCustomModelDeploymentCommand(input);
50
+ * const response = await client.send(command);
51
+ * // { // CreateCustomModelDeploymentResponse
52
+ * // customModelDeploymentArn: "STRING_VALUE", // required
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param CreateCustomModelDeploymentCommandInput - {@link CreateCustomModelDeploymentCommandInput}
58
+ * @returns {@link CreateCustomModelDeploymentCommandOutput}
59
+ * @see {@link CreateCustomModelDeploymentCommandInput} for command's `input` shape.
60
+ * @see {@link CreateCustomModelDeploymentCommandOutput} for command's `response` shape.
61
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
62
+ *
63
+ * @throws {@link AccessDeniedException} (client fault)
64
+ * <p>The request is denied because of missing access permissions.</p>
65
+ *
66
+ * @throws {@link InternalServerException} (server fault)
67
+ * <p>An internal server error occurred. Retry your request.</p>
68
+ *
69
+ * @throws {@link ResourceNotFoundException} (client fault)
70
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
71
+ *
72
+ * @throws {@link ServiceQuotaExceededException} (client fault)
73
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</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 TooManyTagsException} (client fault)
79
+ * <p>The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request. </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
+ *
88
+ * @public
89
+ */
90
+ export declare class CreateCustomModelDeploymentCommand extends CreateCustomModelDeploymentCommand_base {
91
+ /** @internal type navigation helper, not in runtime. */
92
+ protected static __types: {
93
+ api: {
94
+ input: CreateCustomModelDeploymentRequest;
95
+ output: CreateCustomModelDeploymentResponse;
96
+ };
97
+ sdk: {
98
+ input: CreateCustomModelDeploymentCommandInput;
99
+ output: CreateCustomModelDeploymentCommandOutput;
100
+ };
101
+ };
102
+ }
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
4
- import { CreateFoundationModelAgreementRequest, CreateFoundationModelAgreementResponse } from "../models/models_0";
4
+ import { CreateFoundationModelAgreementRequest, CreateFoundationModelAgreementResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -0,0 +1,88 @@
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 { DeleteCustomModelDeploymentRequest, DeleteCustomModelDeploymentResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteCustomModelDeploymentCommand}.
14
+ */
15
+ export interface DeleteCustomModelDeploymentCommandInput extends DeleteCustomModelDeploymentRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteCustomModelDeploymentCommand}.
21
+ */
22
+ export interface DeleteCustomModelDeploymentCommandOutput extends DeleteCustomModelDeploymentResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteCustomModelDeploymentCommand_base: {
25
+ new (input: DeleteCustomModelDeploymentCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteCustomModelDeploymentCommandInput, DeleteCustomModelDeploymentCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteCustomModelDeploymentCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteCustomModelDeploymentCommandInput, DeleteCustomModelDeploymentCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes a custom model deployment. This operation stops the deployment and removes it from your account. After deletion, the deployment ARN can no longer be used for inference requests.</p> <p>The following actions are related to the <code>DeleteCustomModelDeployment</code> operation:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateCustomModelDeployment.html">CreateCustomModelDeployment</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetCustomModelDeployment.html">GetCustomModelDeployment</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModelDeployments.html">ListCustomModelDeployments</a> </p> </li> </ul>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockClient, DeleteCustomModelDeploymentCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
35
+ * // const { BedrockClient, DeleteCustomModelDeploymentCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
36
+ * const client = new BedrockClient(config);
37
+ * const input = { // DeleteCustomModelDeploymentRequest
38
+ * customModelDeploymentIdentifier: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new DeleteCustomModelDeploymentCommand(input);
41
+ * const response = await client.send(command);
42
+ * // {};
43
+ *
44
+ * ```
45
+ *
46
+ * @param DeleteCustomModelDeploymentCommandInput - {@link DeleteCustomModelDeploymentCommandInput}
47
+ * @returns {@link DeleteCustomModelDeploymentCommandOutput}
48
+ * @see {@link DeleteCustomModelDeploymentCommandInput} for command's `input` shape.
49
+ * @see {@link DeleteCustomModelDeploymentCommandOutput} for command's `response` shape.
50
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
51
+ *
52
+ * @throws {@link AccessDeniedException} (client fault)
53
+ * <p>The request is denied because of missing access permissions.</p>
54
+ *
55
+ * @throws {@link ConflictException} (client fault)
56
+ * <p>Error occurred because of a conflict while performing an operation.</p>
57
+ *
58
+ * @throws {@link InternalServerException} (server fault)
59
+ * <p>An internal server error occurred. Retry your request.</p>
60
+ *
61
+ * @throws {@link ResourceNotFoundException} (client fault)
62
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
63
+ *
64
+ * @throws {@link ThrottlingException} (client fault)
65
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
66
+ *
67
+ * @throws {@link ValidationException} (client fault)
68
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
69
+ *
70
+ * @throws {@link BedrockServiceException}
71
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
72
+ *
73
+ *
74
+ * @public
75
+ */
76
+ export declare class DeleteCustomModelDeploymentCommand extends DeleteCustomModelDeploymentCommand_base {
77
+ /** @internal type navigation helper, not in runtime. */
78
+ protected static __types: {
79
+ api: {
80
+ input: DeleteCustomModelDeploymentRequest;
81
+ output: {};
82
+ };
83
+ sdk: {
84
+ input: DeleteCustomModelDeploymentCommandInput;
85
+ output: DeleteCustomModelDeploymentCommandOutput;
86
+ };
87
+ };
88
+ }
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
4
- import { DeleteFoundationModelAgreementRequest, DeleteFoundationModelAgreementResponse } from "../models/models_0";
4
+ import { DeleteFoundationModelAgreementRequest, DeleteFoundationModelAgreementResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -0,0 +1,94 @@
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 { GetCustomModelDeploymentRequest, GetCustomModelDeploymentResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetCustomModelDeploymentCommand}.
14
+ */
15
+ export interface GetCustomModelDeploymentCommandInput extends GetCustomModelDeploymentRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetCustomModelDeploymentCommand}.
21
+ */
22
+ export interface GetCustomModelDeploymentCommandOutput extends GetCustomModelDeploymentResponse, __MetadataBearer {
23
+ }
24
+ declare const GetCustomModelDeploymentCommand_base: {
25
+ new (input: GetCustomModelDeploymentCommandInput): import("@smithy/smithy-client").CommandImpl<GetCustomModelDeploymentCommandInput, GetCustomModelDeploymentCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetCustomModelDeploymentCommandInput): import("@smithy/smithy-client").CommandImpl<GetCustomModelDeploymentCommandInput, GetCustomModelDeploymentCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves information about a custom model deployment, including its status, configuration, and metadata. Use this operation to monitor the deployment status and retrieve details needed for inference requests.</p> <p>The following actions are related to the <code>GetCustomModelDeployment</code> operation:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateCustomModelDeployment.html">CreateCustomModelDeployment</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModelDeployments.html">ListCustomModelDeployments</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModelDeployment.html">DeleteCustomModelDeployment</a> </p> </li> </ul>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockClient, GetCustomModelDeploymentCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
35
+ * // const { BedrockClient, GetCustomModelDeploymentCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
36
+ * const client = new BedrockClient(config);
37
+ * const input = { // GetCustomModelDeploymentRequest
38
+ * customModelDeploymentIdentifier: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new GetCustomModelDeploymentCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetCustomModelDeploymentResponse
43
+ * // customModelDeploymentArn: "STRING_VALUE", // required
44
+ * // modelDeploymentName: "STRING_VALUE", // required
45
+ * // modelArn: "STRING_VALUE", // required
46
+ * // createdAt: new Date("TIMESTAMP"), // required
47
+ * // status: "Creating" || "Active" || "Failed", // required
48
+ * // description: "STRING_VALUE",
49
+ * // failureMessage: "STRING_VALUE",
50
+ * // lastUpdatedAt: new Date("TIMESTAMP"),
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param GetCustomModelDeploymentCommandInput - {@link GetCustomModelDeploymentCommandInput}
56
+ * @returns {@link GetCustomModelDeploymentCommandOutput}
57
+ * @see {@link GetCustomModelDeploymentCommandInput} for command's `input` shape.
58
+ * @see {@link GetCustomModelDeploymentCommandOutput} for command's `response` shape.
59
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
60
+ *
61
+ * @throws {@link AccessDeniedException} (client fault)
62
+ * <p>The request is denied because of missing access permissions.</p>
63
+ *
64
+ * @throws {@link InternalServerException} (server fault)
65
+ * <p>An internal server error occurred. Retry your request.</p>
66
+ *
67
+ * @throws {@link ResourceNotFoundException} (client fault)
68
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
69
+ *
70
+ * @throws {@link ThrottlingException} (client fault)
71
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
72
+ *
73
+ * @throws {@link ValidationException} (client fault)
74
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
75
+ *
76
+ * @throws {@link BedrockServiceException}
77
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
78
+ *
79
+ *
80
+ * @public
81
+ */
82
+ export declare class GetCustomModelDeploymentCommand extends GetCustomModelDeploymentCommand_base {
83
+ /** @internal type navigation helper, not in runtime. */
84
+ protected static __types: {
85
+ api: {
86
+ input: GetCustomModelDeploymentRequest;
87
+ output: GetCustomModelDeploymentResponse;
88
+ };
89
+ sdk: {
90
+ input: GetCustomModelDeploymentCommandInput;
91
+ output: GetCustomModelDeploymentCommandOutput;
92
+ };
93
+ };
94
+ }
@@ -1,8 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
4
- import { GetFoundationModelAvailabilityRequest } from "../models/models_0";
5
- import { GetFoundationModelAvailabilityResponse } from "../models/models_1";
4
+ import { GetFoundationModelAvailabilityRequest, GetFoundationModelAvailabilityResponse } from "../models/models_1";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -0,0 +1,103 @@
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 { ListCustomModelDeploymentsRequest, ListCustomModelDeploymentsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListCustomModelDeploymentsCommand}.
14
+ */
15
+ export interface ListCustomModelDeploymentsCommandInput extends ListCustomModelDeploymentsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListCustomModelDeploymentsCommand}.
21
+ */
22
+ export interface ListCustomModelDeploymentsCommandOutput extends ListCustomModelDeploymentsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListCustomModelDeploymentsCommand_base: {
25
+ new (input: ListCustomModelDeploymentsCommandInput): import("@smithy/smithy-client").CommandImpl<ListCustomModelDeploymentsCommandInput, ListCustomModelDeploymentsCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListCustomModelDeploymentsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListCustomModelDeploymentsCommandInput, ListCustomModelDeploymentsCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists custom model deployments in your account. You can filter the results by creation time, name, status, and associated model. Use this operation to manage and monitor your custom model deployments.</p> <p>We recommend using pagination to ensure that the operation returns quickly and successfully.</p> <p>The following actions are related to the <code>ListCustomModelDeployments</code> operation:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateCustomModelDeployment.html">CreateCustomModelDeployment</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetCustomModelDeployment.html">GetCustomModelDeployment</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModelDeployment.html">DeleteCustomModelDeployment</a> </p> </li> </ul>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockClient, ListCustomModelDeploymentsCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
35
+ * // const { BedrockClient, ListCustomModelDeploymentsCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
36
+ * const client = new BedrockClient(config);
37
+ * const input = { // ListCustomModelDeploymentsRequest
38
+ * createdBefore: new Date("TIMESTAMP"),
39
+ * createdAfter: new Date("TIMESTAMP"),
40
+ * nameContains: "STRING_VALUE",
41
+ * maxResults: Number("int"),
42
+ * nextToken: "STRING_VALUE",
43
+ * sortBy: "CreationTime",
44
+ * sortOrder: "Ascending" || "Descending",
45
+ * statusEquals: "Creating" || "Active" || "Failed",
46
+ * modelArnEquals: "STRING_VALUE",
47
+ * };
48
+ * const command = new ListCustomModelDeploymentsCommand(input);
49
+ * const response = await client.send(command);
50
+ * // { // ListCustomModelDeploymentsResponse
51
+ * // nextToken: "STRING_VALUE",
52
+ * // modelDeploymentSummaries: [ // CustomModelDeploymentSummaryList
53
+ * // { // CustomModelDeploymentSummary
54
+ * // customModelDeploymentArn: "STRING_VALUE", // required
55
+ * // customModelDeploymentName: "STRING_VALUE", // required
56
+ * // modelArn: "STRING_VALUE", // required
57
+ * // createdAt: new Date("TIMESTAMP"), // required
58
+ * // status: "Creating" || "Active" || "Failed", // required
59
+ * // lastUpdatedAt: new Date("TIMESTAMP"),
60
+ * // failureMessage: "STRING_VALUE",
61
+ * // },
62
+ * // ],
63
+ * // };
64
+ *
65
+ * ```
66
+ *
67
+ * @param ListCustomModelDeploymentsCommandInput - {@link ListCustomModelDeploymentsCommandInput}
68
+ * @returns {@link ListCustomModelDeploymentsCommandOutput}
69
+ * @see {@link ListCustomModelDeploymentsCommandInput} for command's `input` shape.
70
+ * @see {@link ListCustomModelDeploymentsCommandOutput} for command's `response` shape.
71
+ * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
72
+ *
73
+ * @throws {@link AccessDeniedException} (client fault)
74
+ * <p>The request is denied because of missing access permissions.</p>
75
+ *
76
+ * @throws {@link InternalServerException} (server fault)
77
+ * <p>An internal server error occurred. Retry your request.</p>
78
+ *
79
+ * @throws {@link ThrottlingException} (client fault)
80
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
81
+ *
82
+ * @throws {@link ValidationException} (client fault)
83
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
84
+ *
85
+ * @throws {@link BedrockServiceException}
86
+ * <p>Base exception class for all service exceptions from Bedrock service.</p>
87
+ *
88
+ *
89
+ * @public
90
+ */
91
+ export declare class ListCustomModelDeploymentsCommand extends ListCustomModelDeploymentsCommand_base {
92
+ /** @internal type navigation helper, not in runtime. */
93
+ protected static __types: {
94
+ api: {
95
+ input: ListCustomModelDeploymentsRequest;
96
+ output: ListCustomModelDeploymentsResponse;
97
+ };
98
+ sdk: {
99
+ input: ListCustomModelDeploymentsCommandInput;
100
+ output: ListCustomModelDeploymentsCommandOutput;
101
+ };
102
+ };
103
+ }
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
4
- import { ListProvisionedModelThroughputsRequest, ListProvisionedModelThroughputsResponse } from "../models/models_0";
4
+ import { ListProvisionedModelThroughputsRequest } from "../models/models_0";
5
+ import { ListProvisionedModelThroughputsResponse } from "../models/models_1";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
4
- import { UpdateProvisionedModelThroughputRequest, UpdateProvisionedModelThroughputResponse } from "../models/models_0";
4
+ import { UpdateProvisionedModelThroughputRequest, UpdateProvisionedModelThroughputResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,5 +1,6 @@
1
1
  export * from "./BatchDeleteEvaluationJobCommand";
2
2
  export * from "./CreateCustomModelCommand";
3
+ export * from "./CreateCustomModelDeploymentCommand";
3
4
  export * from "./CreateEvaluationJobCommand";
4
5
  export * from "./CreateFoundationModelAgreementCommand";
5
6
  export * from "./CreateGuardrailCommand";
@@ -13,6 +14,7 @@ export * from "./CreateModelInvocationJobCommand";
13
14
  export * from "./CreatePromptRouterCommand";
14
15
  export * from "./CreateProvisionedModelThroughputCommand";
15
16
  export * from "./DeleteCustomModelCommand";
17
+ export * from "./DeleteCustomModelDeploymentCommand";
16
18
  export * from "./DeleteFoundationModelAgreementCommand";
17
19
  export * from "./DeleteGuardrailCommand";
18
20
  export * from "./DeleteImportedModelCommand";
@@ -23,6 +25,7 @@ export * from "./DeletePromptRouterCommand";
23
25
  export * from "./DeleteProvisionedModelThroughputCommand";
24
26
  export * from "./DeregisterMarketplaceModelEndpointCommand";
25
27
  export * from "./GetCustomModelCommand";
28
+ export * from "./GetCustomModelDeploymentCommand";
26
29
  export * from "./GetEvaluationJobCommand";
27
30
  export * from "./GetFoundationModelAvailabilityCommand";
28
31
  export * from "./GetFoundationModelCommand";
@@ -38,6 +41,7 @@ export * from "./GetModelInvocationLoggingConfigurationCommand";
38
41
  export * from "./GetPromptRouterCommand";
39
42
  export * from "./GetProvisionedModelThroughputCommand";
40
43
  export * from "./GetUseCaseForModelAccessCommand";
44
+ export * from "./ListCustomModelDeploymentsCommand";
41
45
  export * from "./ListCustomModelsCommand";
42
46
  export * from "./ListEvaluationJobsCommand";
43
47
  export * from "./ListFoundationModelAgreementOffersCommand";