@aws-sdk/client-bedrock 3.422.0 → 3.423.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 (52) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/Bedrock.js +10 -0
  3. package/dist-cjs/commands/CreateProvisionedModelThroughputCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteProvisionedModelThroughputCommand.js +51 -0
  5. package/dist-cjs/commands/GetProvisionedModelThroughputCommand.js +51 -0
  6. package/dist-cjs/commands/ListProvisionedModelThroughputsCommand.js +51 -0
  7. package/dist-cjs/commands/UpdateProvisionedModelThroughputCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +25 -12
  10. package/dist-cjs/pagination/ListProvisionedModelThroughputsPaginator.js +29 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +386 -1
  13. package/dist-es/Bedrock.js +10 -0
  14. package/dist-es/commands/CreateProvisionedModelThroughputCommand.js +47 -0
  15. package/dist-es/commands/DeleteProvisionedModelThroughputCommand.js +47 -0
  16. package/dist-es/commands/GetProvisionedModelThroughputCommand.js +47 -0
  17. package/dist-es/commands/ListProvisionedModelThroughputsCommand.js +47 -0
  18. package/dist-es/commands/UpdateProvisionedModelThroughputCommand.js +47 -0
  19. package/dist-es/commands/index.js +5 -0
  20. package/dist-es/models/models_0.js +22 -9
  21. package/dist-es/pagination/ListProvisionedModelThroughputsPaginator.js +25 -0
  22. package/dist-es/pagination/index.js +1 -0
  23. package/dist-es/protocols/Aws_restJson1.js +376 -1
  24. package/dist-types/Bedrock.d.ts +35 -0
  25. package/dist-types/BedrockClient.d.ts +7 -2
  26. package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +8 -8
  27. package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +106 -0
  28. package/dist-types/commands/DeleteProvisionedModelThroughputCommand.d.ts +89 -0
  29. package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +1 -1
  30. package/dist-types/commands/GetProvisionedModelThroughputCommand.d.ts +100 -0
  31. package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +1 -1
  32. package/dist-types/commands/ListProvisionedModelThroughputsCommand.d.ts +109 -0
  33. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  34. package/dist-types/commands/UpdateProvisionedModelThroughputCommand.d.ts +88 -0
  35. package/dist-types/commands/index.d.ts +5 -0
  36. package/dist-types/models/models_0.d.ts +370 -36
  37. package/dist-types/pagination/ListProvisionedModelThroughputsPaginator.d.ts +7 -0
  38. package/dist-types/pagination/index.d.ts +1 -0
  39. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  40. package/dist-types/ts3.4/Bedrock.d.ts +85 -0
  41. package/dist-types/ts3.4/BedrockClient.d.ts +32 -2
  42. package/dist-types/ts3.4/commands/CreateProvisionedModelThroughputCommand.d.ts +42 -0
  43. package/dist-types/ts3.4/commands/DeleteProvisionedModelThroughputCommand.d.ts +42 -0
  44. package/dist-types/ts3.4/commands/GetProvisionedModelThroughputCommand.d.ts +42 -0
  45. package/dist-types/ts3.4/commands/ListProvisionedModelThroughputsCommand.d.ts +42 -0
  46. package/dist-types/ts3.4/commands/UpdateProvisionedModelThroughputCommand.d.ts +42 -0
  47. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +102 -15
  49. package/dist-types/ts3.4/pagination/ListProvisionedModelThroughputsPaginator.d.ts +11 -0
  50. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  51. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  52. package/package.json +3 -3
@@ -190,21 +190,34 @@ export interface FoundationModelSummary {
190
190
  export interface ListFoundationModelsResponse {
191
191
  modelSummaries?: FoundationModelSummary[];
192
192
  }
193
- export interface ListTagsForResourceRequest {
194
- resourceARN: string | undefined;
195
- }
193
+ export declare const CommitmentDuration: {
194
+ readonly ONE_MONTH: "OneMonth";
195
+ readonly SIX_MONTHS: "SixMonths";
196
+ };
197
+ export type CommitmentDuration =
198
+ (typeof CommitmentDuration)[keyof typeof CommitmentDuration];
196
199
  export interface Tag {
197
200
  key: string | undefined;
198
201
  value: string | undefined;
199
202
  }
200
- export interface ListTagsForResourceResponse {
203
+ export interface CreateProvisionedModelThroughputRequest {
204
+ clientRequestToken?: string;
205
+ modelUnits: number | undefined;
206
+ provisionedModelName: string | undefined;
207
+ modelId: string | undefined;
208
+ commitmentDuration?: CommitmentDuration | string;
201
209
  tags?: Tag[];
202
210
  }
203
- export interface TagResourceRequest {
204
- resourceARN: string | undefined;
205
- tags: Tag[] | undefined;
211
+ export interface CreateProvisionedModelThroughputResponse {
212
+ provisionedModelArn: string | undefined;
213
+ }
214
+ export declare class ServiceQuotaExceededException extends __BaseException {
215
+ readonly name: "ServiceQuotaExceededException";
216
+ readonly $fault: "client";
217
+ constructor(
218
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
219
+ );
206
220
  }
207
- export interface TagResourceResponse {}
208
221
  export declare class TooManyTagsException extends __BaseException {
209
222
  readonly name: "TooManyTagsException";
210
223
  readonly $fault: "client";
@@ -213,6 +226,87 @@ export declare class TooManyTagsException extends __BaseException {
213
226
  opts: __ExceptionOptionType<TooManyTagsException, __BaseException>
214
227
  );
215
228
  }
229
+ export interface DeleteProvisionedModelThroughputRequest {
230
+ provisionedModelId: string | undefined;
231
+ }
232
+ export interface DeleteProvisionedModelThroughputResponse {}
233
+ export interface GetProvisionedModelThroughputRequest {
234
+ provisionedModelId: string | undefined;
235
+ }
236
+ export declare const ProvisionedModelStatus: {
237
+ readonly CREATING: "Creating";
238
+ readonly FAILED: "Failed";
239
+ readonly IN_SERVICE: "InService";
240
+ readonly UPDATING: "Updating";
241
+ };
242
+ export type ProvisionedModelStatus =
243
+ (typeof ProvisionedModelStatus)[keyof typeof ProvisionedModelStatus];
244
+ export interface GetProvisionedModelThroughputResponse {
245
+ modelUnits: number | undefined;
246
+ desiredModelUnits: number | undefined;
247
+ provisionedModelName: string | undefined;
248
+ provisionedModelArn: string | undefined;
249
+ modelArn: string | undefined;
250
+ desiredModelArn: string | undefined;
251
+ foundationModelArn: string | undefined;
252
+ status: ProvisionedModelStatus | string | undefined;
253
+ creationTime: Date | undefined;
254
+ lastModifiedTime: Date | undefined;
255
+ failureMessage?: string;
256
+ commitmentDuration?: CommitmentDuration | string;
257
+ commitmentExpirationTime?: Date;
258
+ }
259
+ export declare const SortByProvisionedModels: {
260
+ readonly CREATION_TIME: "CreationTime";
261
+ };
262
+ export type SortByProvisionedModels =
263
+ (typeof SortByProvisionedModels)[keyof typeof SortByProvisionedModels];
264
+ export interface ListProvisionedModelThroughputsRequest {
265
+ creationTimeAfter?: Date;
266
+ creationTimeBefore?: Date;
267
+ statusEquals?: ProvisionedModelStatus | string;
268
+ modelArnEquals?: string;
269
+ nameContains?: string;
270
+ maxResults?: number;
271
+ nextToken?: string;
272
+ sortBy?: SortByProvisionedModels | string;
273
+ sortOrder?: SortOrder | string;
274
+ }
275
+ export interface ProvisionedModelSummary {
276
+ provisionedModelName: string | undefined;
277
+ provisionedModelArn: string | undefined;
278
+ modelArn: string | undefined;
279
+ desiredModelArn: string | undefined;
280
+ foundationModelArn: string | undefined;
281
+ modelUnits: number | undefined;
282
+ desiredModelUnits: number | undefined;
283
+ status: ProvisionedModelStatus | string | undefined;
284
+ commitmentDuration?: CommitmentDuration | string;
285
+ commitmentExpirationTime?: Date;
286
+ creationTime: Date | undefined;
287
+ lastModifiedTime: Date | undefined;
288
+ }
289
+ export interface ListProvisionedModelThroughputsResponse {
290
+ nextToken?: string;
291
+ provisionedModelSummaries?: ProvisionedModelSummary[];
292
+ }
293
+ export interface UpdateProvisionedModelThroughputRequest {
294
+ provisionedModelId: string | undefined;
295
+ desiredProvisionedModelName?: string;
296
+ desiredModelId?: string;
297
+ }
298
+ export interface UpdateProvisionedModelThroughputResponse {}
299
+ export interface ListTagsForResourceRequest {
300
+ resourceARN: string | undefined;
301
+ }
302
+ export interface ListTagsForResourceResponse {
303
+ tags?: Tag[];
304
+ }
305
+ export interface TagResourceRequest {
306
+ resourceARN: string | undefined;
307
+ tags: Tag[] | undefined;
308
+ }
309
+ export interface TagResourceResponse {}
216
310
  export interface UntagResourceRequest {
217
311
  resourceARN: string | undefined;
218
312
  tagKeys: string[] | undefined;
@@ -240,13 +334,6 @@ export interface CreateModelCustomizationJobRequest {
240
334
  export interface CreateModelCustomizationJobResponse {
241
335
  jobArn: string | undefined;
242
336
  }
243
- export declare class ServiceQuotaExceededException extends __BaseException {
244
- readonly name: "ServiceQuotaExceededException";
245
- readonly $fault: "client";
246
- constructor(
247
- opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
248
- );
249
- }
250
337
  export interface GetModelCustomizationJobRequest {
251
338
  jobIdentifier: string | undefined;
252
339
  }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListProvisionedModelThroughputsCommandInput,
4
+ ListProvisionedModelThroughputsCommandOutput,
5
+ } from "../commands/ListProvisionedModelThroughputsCommand";
6
+ import { BedrockPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateListProvisionedModelThroughputs(
8
+ config: BedrockPaginationConfiguration,
9
+ input: ListProvisionedModelThroughputsCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<ListProvisionedModelThroughputsCommandOutput>;
@@ -1,3 +1,4 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListCustomModelsPaginator";
3
3
  export * from "./ListModelCustomizationJobsPaginator";
4
+ export * from "./ListProvisionedModelThroughputsPaginator";
@@ -7,6 +7,10 @@ import {
7
7
  CreateModelCustomizationJobCommandInput,
8
8
  CreateModelCustomizationJobCommandOutput,
9
9
  } from "../commands/CreateModelCustomizationJobCommand";
10
+ import {
11
+ CreateProvisionedModelThroughputCommandInput,
12
+ CreateProvisionedModelThroughputCommandOutput,
13
+ } from "../commands/CreateProvisionedModelThroughputCommand";
10
14
  import {
11
15
  DeleteCustomModelCommandInput,
12
16
  DeleteCustomModelCommandOutput,
@@ -15,6 +19,10 @@ import {
15
19
  DeleteModelInvocationLoggingConfigurationCommandInput,
16
20
  DeleteModelInvocationLoggingConfigurationCommandOutput,
17
21
  } from "../commands/DeleteModelInvocationLoggingConfigurationCommand";
22
+ import {
23
+ DeleteProvisionedModelThroughputCommandInput,
24
+ DeleteProvisionedModelThroughputCommandOutput,
25
+ } from "../commands/DeleteProvisionedModelThroughputCommand";
18
26
  import {
19
27
  GetCustomModelCommandInput,
20
28
  GetCustomModelCommandOutput,
@@ -31,6 +39,10 @@ import {
31
39
  GetModelInvocationLoggingConfigurationCommandInput,
32
40
  GetModelInvocationLoggingConfigurationCommandOutput,
33
41
  } from "../commands/GetModelInvocationLoggingConfigurationCommand";
42
+ import {
43
+ GetProvisionedModelThroughputCommandInput,
44
+ GetProvisionedModelThroughputCommandOutput,
45
+ } from "../commands/GetProvisionedModelThroughputCommand";
34
46
  import {
35
47
  ListCustomModelsCommandInput,
36
48
  ListCustomModelsCommandOutput,
@@ -43,6 +55,10 @@ import {
43
55
  ListModelCustomizationJobsCommandInput,
44
56
  ListModelCustomizationJobsCommandOutput,
45
57
  } from "../commands/ListModelCustomizationJobsCommand";
58
+ import {
59
+ ListProvisionedModelThroughputsCommandInput,
60
+ ListProvisionedModelThroughputsCommandOutput,
61
+ } from "../commands/ListProvisionedModelThroughputsCommand";
46
62
  import {
47
63
  ListTagsForResourceCommandInput,
48
64
  ListTagsForResourceCommandOutput,
@@ -63,10 +79,18 @@ import {
63
79
  UntagResourceCommandInput,
64
80
  UntagResourceCommandOutput,
65
81
  } from "../commands/UntagResourceCommand";
82
+ import {
83
+ UpdateProvisionedModelThroughputCommandInput,
84
+ UpdateProvisionedModelThroughputCommandOutput,
85
+ } from "../commands/UpdateProvisionedModelThroughputCommand";
66
86
  export declare const se_CreateModelCustomizationJobCommand: (
67
87
  input: CreateModelCustomizationJobCommandInput,
68
88
  context: __SerdeContext
69
89
  ) => Promise<__HttpRequest>;
90
+ export declare const se_CreateProvisionedModelThroughputCommand: (
91
+ input: CreateProvisionedModelThroughputCommandInput,
92
+ context: __SerdeContext
93
+ ) => Promise<__HttpRequest>;
70
94
  export declare const se_DeleteCustomModelCommand: (
71
95
  input: DeleteCustomModelCommandInput,
72
96
  context: __SerdeContext
@@ -75,6 +99,10 @@ export declare const se_DeleteModelInvocationLoggingConfigurationCommand: (
75
99
  input: DeleteModelInvocationLoggingConfigurationCommandInput,
76
100
  context: __SerdeContext
77
101
  ) => Promise<__HttpRequest>;
102
+ export declare const se_DeleteProvisionedModelThroughputCommand: (
103
+ input: DeleteProvisionedModelThroughputCommandInput,
104
+ context: __SerdeContext
105
+ ) => Promise<__HttpRequest>;
78
106
  export declare const se_GetCustomModelCommand: (
79
107
  input: GetCustomModelCommandInput,
80
108
  context: __SerdeContext
@@ -91,6 +119,10 @@ export declare const se_GetModelInvocationLoggingConfigurationCommand: (
91
119
  input: GetModelInvocationLoggingConfigurationCommandInput,
92
120
  context: __SerdeContext
93
121
  ) => Promise<__HttpRequest>;
122
+ export declare const se_GetProvisionedModelThroughputCommand: (
123
+ input: GetProvisionedModelThroughputCommandInput,
124
+ context: __SerdeContext
125
+ ) => Promise<__HttpRequest>;
94
126
  export declare const se_ListCustomModelsCommand: (
95
127
  input: ListCustomModelsCommandInput,
96
128
  context: __SerdeContext
@@ -103,6 +135,10 @@ export declare const se_ListModelCustomizationJobsCommand: (
103
135
  input: ListModelCustomizationJobsCommandInput,
104
136
  context: __SerdeContext
105
137
  ) => Promise<__HttpRequest>;
138
+ export declare const se_ListProvisionedModelThroughputsCommand: (
139
+ input: ListProvisionedModelThroughputsCommandInput,
140
+ context: __SerdeContext
141
+ ) => Promise<__HttpRequest>;
106
142
  export declare const se_ListTagsForResourceCommand: (
107
143
  input: ListTagsForResourceCommandInput,
108
144
  context: __SerdeContext
@@ -123,10 +159,18 @@ export declare const se_UntagResourceCommand: (
123
159
  input: UntagResourceCommandInput,
124
160
  context: __SerdeContext
125
161
  ) => Promise<__HttpRequest>;
162
+ export declare const se_UpdateProvisionedModelThroughputCommand: (
163
+ input: UpdateProvisionedModelThroughputCommandInput,
164
+ context: __SerdeContext
165
+ ) => Promise<__HttpRequest>;
126
166
  export declare const de_CreateModelCustomizationJobCommand: (
127
167
  output: __HttpResponse,
128
168
  context: __SerdeContext
129
169
  ) => Promise<CreateModelCustomizationJobCommandOutput>;
170
+ export declare const de_CreateProvisionedModelThroughputCommand: (
171
+ output: __HttpResponse,
172
+ context: __SerdeContext
173
+ ) => Promise<CreateProvisionedModelThroughputCommandOutput>;
130
174
  export declare const de_DeleteCustomModelCommand: (
131
175
  output: __HttpResponse,
132
176
  context: __SerdeContext
@@ -135,6 +179,10 @@ export declare const de_DeleteModelInvocationLoggingConfigurationCommand: (
135
179
  output: __HttpResponse,
136
180
  context: __SerdeContext
137
181
  ) => Promise<DeleteModelInvocationLoggingConfigurationCommandOutput>;
182
+ export declare const de_DeleteProvisionedModelThroughputCommand: (
183
+ output: __HttpResponse,
184
+ context: __SerdeContext
185
+ ) => Promise<DeleteProvisionedModelThroughputCommandOutput>;
138
186
  export declare const de_GetCustomModelCommand: (
139
187
  output: __HttpResponse,
140
188
  context: __SerdeContext
@@ -151,6 +199,10 @@ export declare const de_GetModelInvocationLoggingConfigurationCommand: (
151
199
  output: __HttpResponse,
152
200
  context: __SerdeContext
153
201
  ) => Promise<GetModelInvocationLoggingConfigurationCommandOutput>;
202
+ export declare const de_GetProvisionedModelThroughputCommand: (
203
+ output: __HttpResponse,
204
+ context: __SerdeContext
205
+ ) => Promise<GetProvisionedModelThroughputCommandOutput>;
154
206
  export declare const de_ListCustomModelsCommand: (
155
207
  output: __HttpResponse,
156
208
  context: __SerdeContext
@@ -163,6 +215,10 @@ export declare const de_ListModelCustomizationJobsCommand: (
163
215
  output: __HttpResponse,
164
216
  context: __SerdeContext
165
217
  ) => Promise<ListModelCustomizationJobsCommandOutput>;
218
+ export declare const de_ListProvisionedModelThroughputsCommand: (
219
+ output: __HttpResponse,
220
+ context: __SerdeContext
221
+ ) => Promise<ListProvisionedModelThroughputsCommandOutput>;
166
222
  export declare const de_ListTagsForResourceCommand: (
167
223
  output: __HttpResponse,
168
224
  context: __SerdeContext
@@ -183,3 +239,7 @@ export declare const de_UntagResourceCommand: (
183
239
  output: __HttpResponse,
184
240
  context: __SerdeContext
185
241
  ) => Promise<UntagResourceCommandOutput>;
242
+ export declare const de_UpdateProvisionedModelThroughputCommand: (
243
+ output: __HttpResponse,
244
+ context: __SerdeContext
245
+ ) => Promise<UpdateProvisionedModelThroughputCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock",
3
3
  "description": "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
4
- "version": "3.422.0",
4
+ "version": "3.423.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,8 +21,8 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.421.0",
25
- "@aws-sdk/credential-provider-node": "3.421.0",
24
+ "@aws-sdk/client-sts": "3.423.0",
25
+ "@aws-sdk/credential-provider-node": "3.423.0",
26
26
  "@aws-sdk/middleware-host-header": "3.418.0",
27
27
  "@aws-sdk/middleware-logger": "3.418.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.418.0",