@aws-sdk/client-bedrock 3.846.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 +1 -1
@@ -181,6 +181,81 @@ export interface UpdateMarketplaceModelEndpointRequest {
181
181
  export interface UpdateMarketplaceModelEndpointResponse {
182
182
  marketplaceModelEndpoint: MarketplaceModelEndpoint | undefined;
183
183
  }
184
+ export interface CreateCustomModelDeploymentRequest {
185
+ modelDeploymentName: string | undefined;
186
+ modelArn: string | undefined;
187
+ description?: string | undefined;
188
+ tags?: Tag[] | undefined;
189
+ clientRequestToken?: string | undefined;
190
+ }
191
+ export interface CreateCustomModelDeploymentResponse {
192
+ customModelDeploymentArn: string | undefined;
193
+ }
194
+ export declare class TooManyTagsException extends __BaseException {
195
+ readonly name: "TooManyTagsException";
196
+ readonly $fault: "client";
197
+ resourceName?: string | undefined;
198
+ constructor(
199
+ opts: __ExceptionOptionType<TooManyTagsException, __BaseException>
200
+ );
201
+ }
202
+ export interface DeleteCustomModelDeploymentRequest {
203
+ customModelDeploymentIdentifier: string | undefined;
204
+ }
205
+ export interface DeleteCustomModelDeploymentResponse {}
206
+ export interface GetCustomModelDeploymentRequest {
207
+ customModelDeploymentIdentifier: string | undefined;
208
+ }
209
+ export declare const CustomModelDeploymentStatus: {
210
+ readonly ACTIVE: "Active";
211
+ readonly CREATING: "Creating";
212
+ readonly FAILED: "Failed";
213
+ };
214
+ export type CustomModelDeploymentStatus =
215
+ (typeof CustomModelDeploymentStatus)[keyof typeof CustomModelDeploymentStatus];
216
+ export interface GetCustomModelDeploymentResponse {
217
+ customModelDeploymentArn: string | undefined;
218
+ modelDeploymentName: string | undefined;
219
+ modelArn: string | undefined;
220
+ createdAt: Date | undefined;
221
+ status: CustomModelDeploymentStatus | undefined;
222
+ description?: string | undefined;
223
+ failureMessage?: string | undefined;
224
+ lastUpdatedAt?: Date | undefined;
225
+ }
226
+ export declare const SortModelsBy: {
227
+ readonly CREATION_TIME: "CreationTime";
228
+ };
229
+ export type SortModelsBy = (typeof SortModelsBy)[keyof typeof SortModelsBy];
230
+ export declare const SortOrder: {
231
+ readonly ASCENDING: "Ascending";
232
+ readonly DESCENDING: "Descending";
233
+ };
234
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
235
+ export interface ListCustomModelDeploymentsRequest {
236
+ createdBefore?: Date | undefined;
237
+ createdAfter?: Date | undefined;
238
+ nameContains?: string | undefined;
239
+ maxResults?: number | undefined;
240
+ nextToken?: string | undefined;
241
+ sortBy?: SortModelsBy | undefined;
242
+ sortOrder?: SortOrder | undefined;
243
+ statusEquals?: CustomModelDeploymentStatus | undefined;
244
+ modelArnEquals?: string | undefined;
245
+ }
246
+ export interface CustomModelDeploymentSummary {
247
+ customModelDeploymentArn: string | undefined;
248
+ customModelDeploymentName: string | undefined;
249
+ modelArn: string | undefined;
250
+ createdAt: Date | undefined;
251
+ status: CustomModelDeploymentStatus | undefined;
252
+ lastUpdatedAt?: Date | undefined;
253
+ failureMessage?: string | undefined;
254
+ }
255
+ export interface ListCustomModelDeploymentsResponse {
256
+ nextToken?: string | undefined;
257
+ modelDeploymentSummaries?: CustomModelDeploymentSummary[] | undefined;
258
+ }
184
259
  export interface S3DataSource {
185
260
  s3Uri: string | undefined;
186
261
  }
@@ -213,14 +288,6 @@ export interface CreateCustomModelRequest {
213
288
  export interface CreateCustomModelResponse {
214
289
  modelArn: string | undefined;
215
290
  }
216
- export declare class TooManyTagsException extends __BaseException {
217
- readonly name: "TooManyTagsException";
218
- readonly $fault: "client";
219
- resourceName?: string | undefined;
220
- constructor(
221
- opts: __ExceptionOptionType<TooManyTagsException, __BaseException>
222
- );
223
- }
224
291
  export interface DeleteCustomModelRequest {
225
292
  modelIdentifier: string | undefined;
226
293
  }
@@ -383,15 +450,6 @@ export interface GetCustomModelResponse {
383
450
  modelStatus?: ModelStatus | undefined;
384
451
  failureMessage?: string | undefined;
385
452
  }
386
- export declare const SortModelsBy: {
387
- readonly CREATION_TIME: "CreationTime";
388
- };
389
- export type SortModelsBy = (typeof SortModelsBy)[keyof typeof SortModelsBy];
390
- export declare const SortOrder: {
391
- readonly ASCENDING: "Ascending";
392
- readonly DESCENDING: "Descending";
393
- };
394
- export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
395
453
  export interface ListCustomModelsRequest {
396
454
  creationTimeBefore?: Date | undefined;
397
455
  creationTimeAfter?: Date | undefined;
@@ -1961,50 +2019,6 @@ export interface ListProvisionedModelThroughputsRequest {
1961
2019
  sortBy?: SortByProvisionedModels | undefined;
1962
2020
  sortOrder?: SortOrder | undefined;
1963
2021
  }
1964
- export interface ProvisionedModelSummary {
1965
- provisionedModelName: string | undefined;
1966
- provisionedModelArn: string | undefined;
1967
- modelArn: string | undefined;
1968
- desiredModelArn: string | undefined;
1969
- foundationModelArn: string | undefined;
1970
- modelUnits: number | undefined;
1971
- desiredModelUnits: number | undefined;
1972
- status: ProvisionedModelStatus | undefined;
1973
- commitmentDuration?: CommitmentDuration | undefined;
1974
- commitmentExpirationTime?: Date | undefined;
1975
- creationTime: Date | undefined;
1976
- lastModifiedTime: Date | undefined;
1977
- }
1978
- export interface ListProvisionedModelThroughputsResponse {
1979
- nextToken?: string | undefined;
1980
- provisionedModelSummaries?: ProvisionedModelSummary[] | undefined;
1981
- }
1982
- export interface UpdateProvisionedModelThroughputRequest {
1983
- provisionedModelId: string | undefined;
1984
- desiredProvisionedModelName?: string | undefined;
1985
- desiredModelId?: string | undefined;
1986
- }
1987
- export interface UpdateProvisionedModelThroughputResponse {}
1988
- export interface CreateFoundationModelAgreementRequest {
1989
- offerToken: string | undefined;
1990
- modelId: string | undefined;
1991
- }
1992
- export interface CreateFoundationModelAgreementResponse {
1993
- modelId: string | undefined;
1994
- }
1995
- export interface DeleteFoundationModelAgreementRequest {
1996
- modelId: string | undefined;
1997
- }
1998
- export interface DeleteFoundationModelAgreementResponse {}
1999
- export interface GetFoundationModelAvailabilityRequest {
2000
- modelId: string | undefined;
2001
- }
2002
- export declare const AuthorizationStatus: {
2003
- readonly AUTHORIZED: "AUTHORIZED";
2004
- readonly NOT_AUTHORIZED: "NOT_AUTHORIZED";
2005
- };
2006
- export type AuthorizationStatus =
2007
- (typeof AuthorizationStatus)[keyof typeof AuthorizationStatus];
2008
2022
  export declare const RequestMetadataBaseFiltersFilterSensitiveLog: (
2009
2023
  obj: RequestMetadataBaseFilters
2010
2024
  ) => any;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AgreementAvailability,
3
3
  ApplicationType,
4
- AuthorizationStatus,
4
+ CommitmentDuration,
5
5
  CustomizationConfig,
6
6
  CustomizationType,
7
7
  EvaluationConfig,
@@ -16,6 +16,7 @@ import {
16
16
  ImplicitFilterConfiguration,
17
17
  OrchestrationConfiguration,
18
18
  OutputDataConfig,
19
+ ProvisionedModelStatus,
19
20
  RetrieveAndGenerateType,
20
21
  SearchType,
21
22
  SortJobsBy,
@@ -28,6 +29,50 @@ import {
28
29
  VectorSearchRerankingConfiguration,
29
30
  VpcConfig,
30
31
  } from "./models_0";
32
+ export interface ProvisionedModelSummary {
33
+ provisionedModelName: string | undefined;
34
+ provisionedModelArn: string | undefined;
35
+ modelArn: string | undefined;
36
+ desiredModelArn: string | undefined;
37
+ foundationModelArn: string | undefined;
38
+ modelUnits: number | undefined;
39
+ desiredModelUnits: number | undefined;
40
+ status: ProvisionedModelStatus | undefined;
41
+ commitmentDuration?: CommitmentDuration | undefined;
42
+ commitmentExpirationTime?: Date | undefined;
43
+ creationTime: Date | undefined;
44
+ lastModifiedTime: Date | undefined;
45
+ }
46
+ export interface ListProvisionedModelThroughputsResponse {
47
+ nextToken?: string | undefined;
48
+ provisionedModelSummaries?: ProvisionedModelSummary[] | undefined;
49
+ }
50
+ export interface UpdateProvisionedModelThroughputRequest {
51
+ provisionedModelId: string | undefined;
52
+ desiredProvisionedModelName?: string | undefined;
53
+ desiredModelId?: string | undefined;
54
+ }
55
+ export interface UpdateProvisionedModelThroughputResponse {}
56
+ export interface CreateFoundationModelAgreementRequest {
57
+ offerToken: string | undefined;
58
+ modelId: string | undefined;
59
+ }
60
+ export interface CreateFoundationModelAgreementResponse {
61
+ modelId: string | undefined;
62
+ }
63
+ export interface DeleteFoundationModelAgreementRequest {
64
+ modelId: string | undefined;
65
+ }
66
+ export interface DeleteFoundationModelAgreementResponse {}
67
+ export interface GetFoundationModelAvailabilityRequest {
68
+ modelId: string | undefined;
69
+ }
70
+ export declare const AuthorizationStatus: {
71
+ readonly AUTHORIZED: "AUTHORIZED";
72
+ readonly NOT_AUTHORIZED: "NOT_AUTHORIZED";
73
+ };
74
+ export type AuthorizationStatus =
75
+ (typeof AuthorizationStatus)[keyof typeof AuthorizationStatus];
31
76
  export declare const EntitlementAvailability: {
32
77
  readonly AVAILABLE: "AVAILABLE";
33
78
  readonly NOT_AVAILABLE: "NOT_AVAILABLE";
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListCustomModelDeploymentsCommandInput,
4
+ ListCustomModelDeploymentsCommandOutput,
5
+ } from "../commands/ListCustomModelDeploymentsCommand";
6
+ import { BedrockPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListCustomModelDeployments: (
8
+ config: BedrockPaginationConfiguration,
9
+ input: ListCustomModelDeploymentsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListCustomModelDeploymentsCommandOutput>;
@@ -1,4 +1,5 @@
1
1
  export * from "./Interfaces";
2
+ export * from "./ListCustomModelDeploymentsPaginator";
2
3
  export * from "./ListCustomModelsPaginator";
3
4
  export * from "./ListEvaluationJobsPaginator";
4
5
  export * from "./ListGuardrailsPaginator";
@@ -11,6 +11,10 @@ import {
11
11
  CreateCustomModelCommandInput,
12
12
  CreateCustomModelCommandOutput,
13
13
  } from "../commands/CreateCustomModelCommand";
14
+ import {
15
+ CreateCustomModelDeploymentCommandInput,
16
+ CreateCustomModelDeploymentCommandOutput,
17
+ } from "../commands/CreateCustomModelDeploymentCommand";
14
18
  import {
15
19
  CreateEvaluationJobCommandInput,
16
20
  CreateEvaluationJobCommandOutput,
@@ -63,6 +67,10 @@ import {
63
67
  DeleteCustomModelCommandInput,
64
68
  DeleteCustomModelCommandOutput,
65
69
  } from "../commands/DeleteCustomModelCommand";
70
+ import {
71
+ DeleteCustomModelDeploymentCommandInput,
72
+ DeleteCustomModelDeploymentCommandOutput,
73
+ } from "../commands/DeleteCustomModelDeploymentCommand";
66
74
  import {
67
75
  DeleteFoundationModelAgreementCommandInput,
68
76
  DeleteFoundationModelAgreementCommandOutput,
@@ -103,6 +111,10 @@ import {
103
111
  GetCustomModelCommandInput,
104
112
  GetCustomModelCommandOutput,
105
113
  } from "../commands/GetCustomModelCommand";
114
+ import {
115
+ GetCustomModelDeploymentCommandInput,
116
+ GetCustomModelDeploymentCommandOutput,
117
+ } from "../commands/GetCustomModelDeploymentCommand";
106
118
  import {
107
119
  GetEvaluationJobCommandInput,
108
120
  GetEvaluationJobCommandOutput,
@@ -163,6 +175,10 @@ import {
163
175
  GetUseCaseForModelAccessCommandInput,
164
176
  GetUseCaseForModelAccessCommandOutput,
165
177
  } from "../commands/GetUseCaseForModelAccessCommand";
178
+ import {
179
+ ListCustomModelDeploymentsCommandInput,
180
+ ListCustomModelDeploymentsCommandOutput,
181
+ } from "../commands/ListCustomModelDeploymentsCommand";
166
182
  import {
167
183
  ListCustomModelsCommandInput,
168
184
  ListCustomModelsCommandOutput,
@@ -275,6 +291,10 @@ export declare const se_CreateCustomModelCommand: (
275
291
  input: CreateCustomModelCommandInput,
276
292
  context: __SerdeContext
277
293
  ) => Promise<__HttpRequest>;
294
+ export declare const se_CreateCustomModelDeploymentCommand: (
295
+ input: CreateCustomModelDeploymentCommandInput,
296
+ context: __SerdeContext
297
+ ) => Promise<__HttpRequest>;
278
298
  export declare const se_CreateEvaluationJobCommand: (
279
299
  input: CreateEvaluationJobCommandInput,
280
300
  context: __SerdeContext
@@ -327,6 +347,10 @@ export declare const se_DeleteCustomModelCommand: (
327
347
  input: DeleteCustomModelCommandInput,
328
348
  context: __SerdeContext
329
349
  ) => Promise<__HttpRequest>;
350
+ export declare const se_DeleteCustomModelDeploymentCommand: (
351
+ input: DeleteCustomModelDeploymentCommandInput,
352
+ context: __SerdeContext
353
+ ) => Promise<__HttpRequest>;
330
354
  export declare const se_DeleteFoundationModelAgreementCommand: (
331
355
  input: DeleteFoundationModelAgreementCommandInput,
332
356
  context: __SerdeContext
@@ -367,6 +391,10 @@ export declare const se_GetCustomModelCommand: (
367
391
  input: GetCustomModelCommandInput,
368
392
  context: __SerdeContext
369
393
  ) => Promise<__HttpRequest>;
394
+ export declare const se_GetCustomModelDeploymentCommand: (
395
+ input: GetCustomModelDeploymentCommandInput,
396
+ context: __SerdeContext
397
+ ) => Promise<__HttpRequest>;
370
398
  export declare const se_GetEvaluationJobCommand: (
371
399
  input: GetEvaluationJobCommandInput,
372
400
  context: __SerdeContext
@@ -427,6 +455,10 @@ export declare const se_GetUseCaseForModelAccessCommand: (
427
455
  input: GetUseCaseForModelAccessCommandInput,
428
456
  context: __SerdeContext
429
457
  ) => Promise<__HttpRequest>;
458
+ export declare const se_ListCustomModelDeploymentsCommand: (
459
+ input: ListCustomModelDeploymentsCommandInput,
460
+ context: __SerdeContext
461
+ ) => Promise<__HttpRequest>;
430
462
  export declare const se_ListCustomModelsCommand: (
431
463
  input: ListCustomModelsCommandInput,
432
464
  context: __SerdeContext
@@ -539,6 +571,10 @@ export declare const de_CreateCustomModelCommand: (
539
571
  output: __HttpResponse,
540
572
  context: __SerdeContext
541
573
  ) => Promise<CreateCustomModelCommandOutput>;
574
+ export declare const de_CreateCustomModelDeploymentCommand: (
575
+ output: __HttpResponse,
576
+ context: __SerdeContext
577
+ ) => Promise<CreateCustomModelDeploymentCommandOutput>;
542
578
  export declare const de_CreateEvaluationJobCommand: (
543
579
  output: __HttpResponse,
544
580
  context: __SerdeContext
@@ -591,6 +627,10 @@ export declare const de_DeleteCustomModelCommand: (
591
627
  output: __HttpResponse,
592
628
  context: __SerdeContext
593
629
  ) => Promise<DeleteCustomModelCommandOutput>;
630
+ export declare const de_DeleteCustomModelDeploymentCommand: (
631
+ output: __HttpResponse,
632
+ context: __SerdeContext
633
+ ) => Promise<DeleteCustomModelDeploymentCommandOutput>;
594
634
  export declare const de_DeleteFoundationModelAgreementCommand: (
595
635
  output: __HttpResponse,
596
636
  context: __SerdeContext
@@ -631,6 +671,10 @@ export declare const de_GetCustomModelCommand: (
631
671
  output: __HttpResponse,
632
672
  context: __SerdeContext
633
673
  ) => Promise<GetCustomModelCommandOutput>;
674
+ export declare const de_GetCustomModelDeploymentCommand: (
675
+ output: __HttpResponse,
676
+ context: __SerdeContext
677
+ ) => Promise<GetCustomModelDeploymentCommandOutput>;
634
678
  export declare const de_GetEvaluationJobCommand: (
635
679
  output: __HttpResponse,
636
680
  context: __SerdeContext
@@ -691,6 +735,10 @@ export declare const de_GetUseCaseForModelAccessCommand: (
691
735
  output: __HttpResponse,
692
736
  context: __SerdeContext
693
737
  ) => Promise<GetUseCaseForModelAccessCommandOutput>;
738
+ export declare const de_ListCustomModelDeploymentsCommand: (
739
+ output: __HttpResponse,
740
+ context: __SerdeContext
741
+ ) => Promise<ListCustomModelDeploymentsCommandOutput>;
694
742
  export declare const de_ListCustomModelsCommand: (
695
743
  output: __HttpResponse,
696
744
  context: __SerdeContext
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.846.0",
4
+ "version": "3.847.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock",