@aws-sdk/client-bedrock 3.621.0 → 3.623.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 (58) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +213 -20
  3. package/dist-es/Bedrock.js +6 -0
  4. package/dist-es/BedrockClient.js +12 -18
  5. package/dist-es/commands/CreateModelCopyJobCommand.js +24 -0
  6. package/dist-es/commands/GetModelCopyJobCommand.js +24 -0
  7. package/dist-es/commands/ListModelCopyJobsCommand.js +24 -0
  8. package/dist-es/commands/index.js +3 -0
  9. package/dist-es/models/models_0.js +5 -0
  10. package/dist-es/pagination/ListModelCopyJobsPaginator.js +4 -0
  11. package/dist-es/pagination/index.js +1 -0
  12. package/dist-es/protocols/Aws_restJson1.js +129 -0
  13. package/dist-types/Bedrock.d.ts +22 -0
  14. package/dist-types/BedrockClient.d.ts +7 -6
  15. package/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
  16. package/dist-types/commands/CreateEvaluationJobCommand.d.ts +1 -1
  17. package/dist-types/commands/CreateModelCopyJobCommand.d.ts +82 -0
  18. package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +3 -3
  19. package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +1 -1
  20. package/dist-types/commands/DeleteCustomModelCommand.d.ts +1 -1
  21. package/dist-types/commands/DeleteProvisionedModelThroughputCommand.d.ts +1 -1
  22. package/dist-types/commands/GetCustomModelCommand.d.ts +1 -1
  23. package/dist-types/commands/GetEvaluationJobCommand.d.ts +1 -1
  24. package/dist-types/commands/GetModelCopyJobCommand.d.ts +90 -0
  25. package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +1 -1
  26. package/dist-types/commands/GetProvisionedModelThroughputCommand.d.ts +1 -1
  27. package/dist-types/commands/ListCustomModelsCommand.d.ts +3 -1
  28. package/dist-types/commands/ListFoundationModelsCommand.d.ts +1 -1
  29. package/dist-types/commands/ListModelCopyJobsCommand.d.ts +105 -0
  30. package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +2 -2
  31. package/dist-types/commands/ListProvisionedModelThroughputsCommand.d.ts +1 -1
  32. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  33. package/dist-types/commands/StopModelCustomizationJobCommand.d.ts +1 -1
  34. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  35. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  36. package/dist-types/commands/UpdateProvisionedModelThroughputCommand.d.ts +1 -1
  37. package/dist-types/commands/index.d.ts +3 -0
  38. package/dist-types/models/models_0.d.ts +288 -14
  39. package/dist-types/pagination/ListModelCopyJobsPaginator.d.ts +7 -0
  40. package/dist-types/pagination/index.d.ts +1 -0
  41. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  42. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  43. package/dist-types/runtimeConfig.d.ts +2 -2
  44. package/dist-types/runtimeConfig.native.d.ts +2 -2
  45. package/dist-types/ts3.4/Bedrock.d.ts +52 -0
  46. package/dist-types/ts3.4/BedrockClient.d.ts +24 -8
  47. package/dist-types/ts3.4/commands/CreateModelCopyJobCommand.d.ts +40 -0
  48. package/dist-types/ts3.4/commands/GetModelCopyJobCommand.d.ts +39 -0
  49. package/dist-types/ts3.4/commands/ListModelCopyJobsCommand.d.ts +40 -0
  50. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  51. package/dist-types/ts3.4/models/models_0.d.ts +64 -0
  52. package/dist-types/ts3.4/pagination/ListModelCopyJobsPaginator.d.ts +11 -0
  53. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  54. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  55. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
  56. package/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
  57. package/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
  58. package/package.json +10 -10
@@ -1655,7 +1655,7 @@ export interface GuardrailContextualGroundingPolicy {
1655
1655
  */
1656
1656
  export interface GuardrailPiiEntity {
1657
1657
  /**
1658
- * <p>The type of PII entity. For example, Social Security Number.</p>
1658
+ * <p>The type of PII entity. For exampvle, Social Security Number.</p>
1659
1659
  * @public
1660
1660
  */
1661
1661
  type: GuardrailPiiEntityType | undefined;
@@ -2194,6 +2194,269 @@ export interface PutModelInvocationLoggingConfigurationRequest {
2194
2194
  */
2195
2195
  export interface PutModelInvocationLoggingConfigurationResponse {
2196
2196
  }
2197
+ /**
2198
+ * @public
2199
+ */
2200
+ export interface CreateModelCopyJobRequest {
2201
+ /**
2202
+ * <p>The Amazon Resource Name (ARN) of the model to be copied.</p>
2203
+ * @public
2204
+ */
2205
+ sourceModelArn: string | undefined;
2206
+ /**
2207
+ * <p>A name for the copied model.</p>
2208
+ * @public
2209
+ */
2210
+ targetModelName: string | undefined;
2211
+ /**
2212
+ * <p>The ARN of the KMS key that you use to encrypt the model copy.</p>
2213
+ * @public
2214
+ */
2215
+ modelKmsKeyId?: string;
2216
+ /**
2217
+ * <p>Tags to associate with the target model. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html">Tag resources</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
2218
+ * @public
2219
+ */
2220
+ targetModelTags?: Tag[];
2221
+ /**
2222
+ * <p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,
2223
+ * Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
2224
+ * @public
2225
+ */
2226
+ clientRequestToken?: string;
2227
+ }
2228
+ /**
2229
+ * @public
2230
+ */
2231
+ export interface CreateModelCopyJobResponse {
2232
+ /**
2233
+ * <p>The Amazon Resource Name (ARN) of the model copy job.</p>
2234
+ * @public
2235
+ */
2236
+ jobArn: string | undefined;
2237
+ }
2238
+ /**
2239
+ * @public
2240
+ */
2241
+ export interface GetModelCopyJobRequest {
2242
+ /**
2243
+ * <p>The Amazon Resource Name (ARN) of the model copy job.</p>
2244
+ * @public
2245
+ */
2246
+ jobArn: string | undefined;
2247
+ }
2248
+ /**
2249
+ * @public
2250
+ * @enum
2251
+ */
2252
+ export declare const ModelCopyJobStatus: {
2253
+ readonly COMPLETED: "Completed";
2254
+ readonly FAILED: "Failed";
2255
+ readonly IN_PROGRESS: "InProgress";
2256
+ };
2257
+ /**
2258
+ * @public
2259
+ */
2260
+ export type ModelCopyJobStatus = (typeof ModelCopyJobStatus)[keyof typeof ModelCopyJobStatus];
2261
+ /**
2262
+ * @public
2263
+ */
2264
+ export interface GetModelCopyJobResponse {
2265
+ /**
2266
+ * <p>The Amazon Resource Name (ARN) of the model copy job.</p>
2267
+ * @public
2268
+ */
2269
+ jobArn: string | undefined;
2270
+ /**
2271
+ * <p>The status of the model copy job.</p>
2272
+ * @public
2273
+ */
2274
+ status: ModelCopyJobStatus | undefined;
2275
+ /**
2276
+ * <p>The time at which the model copy job was created.</p>
2277
+ * @public
2278
+ */
2279
+ creationTime: Date | undefined;
2280
+ /**
2281
+ * <p>The Amazon Resource Name (ARN) of the copied model.</p>
2282
+ * @public
2283
+ */
2284
+ targetModelArn: string | undefined;
2285
+ /**
2286
+ * <p>The name of the copied model.</p>
2287
+ * @public
2288
+ */
2289
+ targetModelName?: string;
2290
+ /**
2291
+ * <p>The unique identifier of the account that the model being copied originated from.</p>
2292
+ * @public
2293
+ */
2294
+ sourceAccountId: string | undefined;
2295
+ /**
2296
+ * <p>The Amazon Resource Name (ARN) of the original model being copied.</p>
2297
+ * @public
2298
+ */
2299
+ sourceModelArn: string | undefined;
2300
+ /**
2301
+ * <p>The Amazon Resource Name (ARN) of the KMS key encrypting the copied model.</p>
2302
+ * @public
2303
+ */
2304
+ targetModelKmsKeyArn?: string;
2305
+ /**
2306
+ * <p>The tags associated with the copied model.</p>
2307
+ * @public
2308
+ */
2309
+ targetModelTags?: Tag[];
2310
+ /**
2311
+ * <p>An error message for why the model copy job failed.</p>
2312
+ * @public
2313
+ */
2314
+ failureMessage?: string;
2315
+ /**
2316
+ * <p>The name of the original model being copied.</p>
2317
+ * @public
2318
+ */
2319
+ sourceModelName?: string;
2320
+ }
2321
+ /**
2322
+ * @public
2323
+ */
2324
+ export interface ListModelCopyJobsRequest {
2325
+ /**
2326
+ * <p>Filters for model copy jobs created after the specified time.</p>
2327
+ * @public
2328
+ */
2329
+ creationTimeAfter?: Date;
2330
+ /**
2331
+ * <p>Filters for model copy jobs created before the specified time. </p>
2332
+ * @public
2333
+ */
2334
+ creationTimeBefore?: Date;
2335
+ /**
2336
+ * <p>Filters for model copy jobs whose status matches the value that you specify.</p>
2337
+ * @public
2338
+ */
2339
+ statusEquals?: ModelCopyJobStatus;
2340
+ /**
2341
+ * <p>Filters for model copy jobs in which the account that the source model belongs to is equal to the value that you specify.</p>
2342
+ * @public
2343
+ */
2344
+ sourceAccountEquals?: string;
2345
+ /**
2346
+ * <p>Filters for model copy jobs in which the Amazon Resource Name (ARN) of the source model to is equal to the value that you specify.</p>
2347
+ * @public
2348
+ */
2349
+ sourceModelArnEquals?: string;
2350
+ /**
2351
+ * <p>Filters for model copy jobs in which the name of the copied model contains the string that you specify.</p>
2352
+ * @public
2353
+ */
2354
+ targetModelNameContains?: string;
2355
+ /**
2356
+ * <p>The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the <code>nextToken</code> field when making another request to return the next batch of results.</p>
2357
+ * @public
2358
+ */
2359
+ maxResults?: number;
2360
+ /**
2361
+ * <p>If the total number of results is greater than the <code>maxResults</code> value provided in the request, enter the token returned in the <code>nextToken</code> field in the response in this field to return the next batch of results.</p>
2362
+ * @public
2363
+ */
2364
+ nextToken?: string;
2365
+ /**
2366
+ * <p>The field to sort by in the returned list of model copy jobs.</p>
2367
+ * @public
2368
+ */
2369
+ sortBy?: SortJobsBy;
2370
+ /**
2371
+ * <p>Specifies whether to sort the results in ascending or descending order.</p>
2372
+ * @public
2373
+ */
2374
+ sortOrder?: SortOrder;
2375
+ }
2376
+ /**
2377
+ * <p>Contains details about each model copy job.</p>
2378
+ * <p>This data type is used in the following API operations:</p>
2379
+ * <ul>
2380
+ * <li>
2381
+ * <p>
2382
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListModelCopyJobs.html#API_ListModelCopyJobs_ResponseSyntax">ListModelCopyJobs response</a>
2383
+ * </p>
2384
+ * </li>
2385
+ * </ul>
2386
+ * @public
2387
+ */
2388
+ export interface ModelCopyJobSummary {
2389
+ /**
2390
+ * <p>The Amazon Resoource Name (ARN) of the model copy job.</p>
2391
+ * @public
2392
+ */
2393
+ jobArn: string | undefined;
2394
+ /**
2395
+ * <p>The status of the model copy job.</p>
2396
+ * @public
2397
+ */
2398
+ status: ModelCopyJobStatus | undefined;
2399
+ /**
2400
+ * <p>The time that the model copy job was created.</p>
2401
+ * @public
2402
+ */
2403
+ creationTime: Date | undefined;
2404
+ /**
2405
+ * <p>The Amazon Resource Name (ARN) of the copied model.</p>
2406
+ * @public
2407
+ */
2408
+ targetModelArn: string | undefined;
2409
+ /**
2410
+ * <p>The name of the copied model.</p>
2411
+ * @public
2412
+ */
2413
+ targetModelName?: string;
2414
+ /**
2415
+ * <p>The unique identifier of the account that the model being copied originated from.</p>
2416
+ * @public
2417
+ */
2418
+ sourceAccountId: string | undefined;
2419
+ /**
2420
+ * <p>The Amazon Resource Name (ARN) of the original model being copied.</p>
2421
+ * @public
2422
+ */
2423
+ sourceModelArn: string | undefined;
2424
+ /**
2425
+ * <p>The Amazon Resource Name (ARN) of the KMS key used to encrypt the copied model.</p>
2426
+ * @public
2427
+ */
2428
+ targetModelKmsKeyArn?: string;
2429
+ /**
2430
+ * <p>Tags associated with the copied model.</p>
2431
+ * @public
2432
+ */
2433
+ targetModelTags?: Tag[];
2434
+ /**
2435
+ * <p>If a model fails to be copied, a message describing why the job failed is included here.</p>
2436
+ * @public
2437
+ */
2438
+ failureMessage?: string;
2439
+ /**
2440
+ * <p>The name of the original model being copied.</p>
2441
+ * @public
2442
+ */
2443
+ sourceModelName?: string;
2444
+ }
2445
+ /**
2446
+ * @public
2447
+ */
2448
+ export interface ListModelCopyJobsResponse {
2449
+ /**
2450
+ * <p>If the total number of results is greater than the <code>maxResults</code> value provided in the request, use this token when making another request in the <code>nextToken</code> field to return the next batch of results.</p>
2451
+ * @public
2452
+ */
2453
+ nextToken?: string;
2454
+ /**
2455
+ * <p>A list of information about each model copy job.</p>
2456
+ * @public
2457
+ */
2458
+ modelCopyJobSummaries?: ModelCopyJobSummary[];
2459
+ }
2197
2460
  /**
2198
2461
  * @public
2199
2462
  */
@@ -2549,12 +2812,12 @@ export interface ListCustomModelsRequest {
2549
2812
  */
2550
2813
  foundationModelArnEquals?: string;
2551
2814
  /**
2552
- * <p>Maximum number of results to return in the response.</p>
2815
+ * <p>The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the <code>nextToken</code> field when making another request to return the next batch of results.</p>
2553
2816
  * @public
2554
2817
  */
2555
2818
  maxResults?: number;
2556
2819
  /**
2557
- * <p>Continuation token from the previous response, for Amazon Bedrock to list the next set of results.</p>
2820
+ * <p>If the total number of results is greater than the <code>maxResults</code> value provided in the request, enter the token returned in the <code>nextToken</code> field in the response in this field to return the next batch of results.</p>
2558
2821
  * @public
2559
2822
  */
2560
2823
  nextToken?: string;
@@ -2568,6 +2831,11 @@ export interface ListCustomModelsRequest {
2568
2831
  * @public
2569
2832
  */
2570
2833
  sortOrder?: SortOrder;
2834
+ /**
2835
+ * <p>Return custom models depending on if the current account owns them (<code>true</code>) or if they were shared with the current account (<code>false</code>).</p>
2836
+ * @public
2837
+ */
2838
+ isOwned?: boolean;
2571
2839
  }
2572
2840
  /**
2573
2841
  * <p>Summary information for a custom model.</p>
@@ -2604,13 +2872,18 @@ export interface CustomModelSummary {
2604
2872
  * @public
2605
2873
  */
2606
2874
  customizationType?: CustomizationType;
2875
+ /**
2876
+ * <p>The unique identifier of the account that owns the model.</p>
2877
+ * @public
2878
+ */
2879
+ ownerAccountId?: string;
2607
2880
  }
2608
2881
  /**
2609
2882
  * @public
2610
2883
  */
2611
2884
  export interface ListCustomModelsResponse {
2612
2885
  /**
2613
- * <p>Continuation token for the next request to list the next set of results.</p>
2886
+ * <p>If the total number of results is greater than the <code>maxResults</code> value provided in the request, use this token when making another request in the <code>nextToken</code> field to return the next batch of results.</p>
2614
2887
  * @public
2615
2888
  */
2616
2889
  nextToken?: string;
@@ -2630,7 +2903,7 @@ export interface ListFoundationModelsRequest {
2630
2903
  */
2631
2904
  byProvider?: string;
2632
2905
  /**
2633
- * <p>Return models that support the customization type that you specify. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the Amazon Bedrock User Guide.</p>
2906
+ * <p>Return models that support the customization type that you specify. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html">Custom models</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
2634
2907
  * @public
2635
2908
  */
2636
2909
  byCustomizationType?: ModelCustomization;
@@ -2640,7 +2913,7 @@ export interface ListFoundationModelsRequest {
2640
2913
  */
2641
2914
  byOutputModality?: ModelModality;
2642
2915
  /**
2643
- * <p>Return models that support the inference type that you specify. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p>
2916
+ * <p>Return models that support the inference type that you specify. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html">Provisioned Throughput</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
2644
2917
  * @public
2645
2918
  */
2646
2919
  byInferenceType?: InferenceType;
@@ -2735,7 +3008,7 @@ export interface CreateProvisionedModelThroughputRequest {
2735
3008
  clientRequestToken?: string;
2736
3009
  /**
2737
3010
  * <p>Number of model units to allocate. A model unit delivers a specific throughput level for the specified model. The throughput level of a model unit specifies the total number of input and output tokens that it can process and generate within a span of one minute. By default, your account has no model units for purchasing Provisioned Throughputs with commitment. You must first visit the <a href="https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase">Amazon Web Services support center</a> to request MUs.</p>
2738
- * <p>For model unit quotas, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html#prov-thru-quotas">Provisioned Throughput quotas</a> in the Amazon Bedrock User Guide.</p>
3011
+ * <p>For model unit quotas, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/quotas.html#prov-thru-quotas">Provisioned Throughput quotas</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
2739
3012
  * <p>For more information about what an MU specifies, contact your Amazon Web Services account manager.</p>
2740
3013
  * @public
2741
3014
  */
@@ -2746,13 +3019,14 @@ export interface CreateProvisionedModelThroughputRequest {
2746
3019
  */
2747
3020
  provisionedModelName: string | undefined;
2748
3021
  /**
2749
- * <p>The Amazon Resource Name (ARN) or name of the model to associate with this Provisioned Throughput. For a list of models for which you can purchase Provisioned Throughput, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#prov-throughput-models">Amazon Bedrock model IDs for purchasing Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p>
3022
+ * <p>The Amazon Resource Name (ARN) or name of the model to associate with this Provisioned Throughput. For a list of models for which you can purchase Provisioned Throughput, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#prov-throughput-models">Amazon Bedrock model IDs for purchasing Provisioned Throughput</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
2750
3023
  * @public
2751
3024
  */
2752
3025
  modelId: string | undefined;
2753
3026
  /**
2754
3027
  * <p>The commitment duration requested for the Provisioned Throughput. Billing occurs hourly and is discounted for longer commitment terms. To request a no-commit Provisioned Throughput, omit this field.</p>
2755
- * <p>Custom models support all levels of commitment. To see which base models support no commitment, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/pt-supported.html">Supported regions and models for Provisioned Throughput</a> in the Amazon Bedrock User Guide</p>
3028
+ * <p>Custom models support all levels of commitment. To see which base models support no commitment, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/pt-supported.html">Supported regions and models for Provisioned Throughput</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>
3029
+ * </p>
2756
3030
  * @public
2757
3031
  */
2758
3032
  commitmentDuration?: CommitmentDuration;
@@ -3218,7 +3492,7 @@ export interface CreateModelCustomizationJobRequest {
3218
3492
  hyperParameters: Record<string, string> | undefined;
3219
3493
  /**
3220
3494
  * <p>VPC configuration (optional). Configuration parameters for the
3221
- * private Virtual Private Cloud (VPC) that contains the resources you are using for this job.</p>
3495
+ * private Virtual Private Cloud (VPC) that contains the resources you are using for this job.</p>
3222
3496
  * @public
3223
3497
  */
3224
3498
  vpcConfig?: VpcConfig;
@@ -3294,7 +3568,7 @@ export interface GetModelCustomizationJobResponse {
3294
3568
  roleArn: string | undefined;
3295
3569
  /**
3296
3570
  * <p>The status of the job. A successful job transitions from in-progress to completed when the output model is ready to use.
3297
- * If the job failed, the failure message contains information about why the job failed.</p>
3571
+ * If the job failed, the failure message contains information about why the job failed.</p>
3298
3572
  * @public
3299
3573
  */
3300
3574
  status?: ModelCustomizationJobStatus;
@@ -3409,12 +3683,12 @@ export interface ListModelCustomizationJobsRequest {
3409
3683
  */
3410
3684
  nameContains?: string;
3411
3685
  /**
3412
- * <p>Maximum number of results to return in the response.</p>
3686
+ * <p>The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the <code>nextToken</code> field when making another request to return the next batch of results.</p>
3413
3687
  * @public
3414
3688
  */
3415
3689
  maxResults?: number;
3416
3690
  /**
3417
- * <p>Continuation token from the previous response, for Amazon Bedrock to list the next set of results.</p>
3691
+ * <p>If the total number of results is greater than the <code>maxResults</code> value provided in the request, enter the token returned in the <code>nextToken</code> field in the response in this field to return the next batch of results.</p>
3418
3692
  * @public
3419
3693
  */
3420
3694
  nextToken?: string;
@@ -3490,7 +3764,7 @@ export interface ModelCustomizationJobSummary {
3490
3764
  */
3491
3765
  export interface ListModelCustomizationJobsResponse {
3492
3766
  /**
3493
- * <p>Page continuation token to use in the next request.</p>
3767
+ * <p>If the total number of results is greater than the <code>maxResults</code> value provided in the request, use this token when making another request in the <code>nextToken</code> field to return the next batch of results.</p>
3494
3768
  * @public
3495
3769
  */
3496
3770
  nextToken?: string;
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListModelCopyJobsCommandInput, ListModelCopyJobsCommandOutput } from "../commands/ListModelCopyJobsCommand";
3
+ import { BedrockPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListModelCopyJobs: (config: BedrockPaginationConfiguration, input: ListModelCopyJobsCommandInput, ...rest: any[]) => Paginator<ListModelCopyJobsCommandOutput>;
@@ -2,5 +2,6 @@ export * from "./Interfaces";
2
2
  export * from "./ListCustomModelsPaginator";
3
3
  export * from "./ListEvaluationJobsPaginator";
4
4
  export * from "./ListGuardrailsPaginator";
5
+ export * from "./ListModelCopyJobsPaginator";
5
6
  export * from "./ListModelCustomizationJobsPaginator";
6
7
  export * from "./ListProvisionedModelThroughputsPaginator";
@@ -3,6 +3,7 @@ import { SerdeContext as __SerdeContext } from "@smithy/types";
3
3
  import { CreateEvaluationJobCommandInput, CreateEvaluationJobCommandOutput } from "../commands/CreateEvaluationJobCommand";
4
4
  import { CreateGuardrailCommandInput, CreateGuardrailCommandOutput } from "../commands/CreateGuardrailCommand";
5
5
  import { CreateGuardrailVersionCommandInput, CreateGuardrailVersionCommandOutput } from "../commands/CreateGuardrailVersionCommand";
6
+ import { CreateModelCopyJobCommandInput, CreateModelCopyJobCommandOutput } from "../commands/CreateModelCopyJobCommand";
6
7
  import { CreateModelCustomizationJobCommandInput, CreateModelCustomizationJobCommandOutput } from "../commands/CreateModelCustomizationJobCommand";
7
8
  import { CreateProvisionedModelThroughputCommandInput, CreateProvisionedModelThroughputCommandOutput } from "../commands/CreateProvisionedModelThroughputCommand";
8
9
  import { DeleteCustomModelCommandInput, DeleteCustomModelCommandOutput } from "../commands/DeleteCustomModelCommand";
@@ -13,6 +14,7 @@ import { GetCustomModelCommandInput, GetCustomModelCommandOutput } from "../comm
13
14
  import { GetEvaluationJobCommandInput, GetEvaluationJobCommandOutput } from "../commands/GetEvaluationJobCommand";
14
15
  import { GetFoundationModelCommandInput, GetFoundationModelCommandOutput } from "../commands/GetFoundationModelCommand";
15
16
  import { GetGuardrailCommandInput, GetGuardrailCommandOutput } from "../commands/GetGuardrailCommand";
17
+ import { GetModelCopyJobCommandInput, GetModelCopyJobCommandOutput } from "../commands/GetModelCopyJobCommand";
16
18
  import { GetModelCustomizationJobCommandInput, GetModelCustomizationJobCommandOutput } from "../commands/GetModelCustomizationJobCommand";
17
19
  import { GetModelInvocationLoggingConfigurationCommandInput, GetModelInvocationLoggingConfigurationCommandOutput } from "../commands/GetModelInvocationLoggingConfigurationCommand";
18
20
  import { GetProvisionedModelThroughputCommandInput, GetProvisionedModelThroughputCommandOutput } from "../commands/GetProvisionedModelThroughputCommand";
@@ -20,6 +22,7 @@ import { ListCustomModelsCommandInput, ListCustomModelsCommandOutput } from "../
20
22
  import { ListEvaluationJobsCommandInput, ListEvaluationJobsCommandOutput } from "../commands/ListEvaluationJobsCommand";
21
23
  import { ListFoundationModelsCommandInput, ListFoundationModelsCommandOutput } from "../commands/ListFoundationModelsCommand";
22
24
  import { ListGuardrailsCommandInput, ListGuardrailsCommandOutput } from "../commands/ListGuardrailsCommand";
25
+ import { ListModelCopyJobsCommandInput, ListModelCopyJobsCommandOutput } from "../commands/ListModelCopyJobsCommand";
23
26
  import { ListModelCustomizationJobsCommandInput, ListModelCustomizationJobsCommandOutput } from "../commands/ListModelCustomizationJobsCommand";
24
27
  import { ListProvisionedModelThroughputsCommandInput, ListProvisionedModelThroughputsCommandOutput } from "../commands/ListProvisionedModelThroughputsCommand";
25
28
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
@@ -42,6 +45,10 @@ export declare const se_CreateGuardrailCommand: (input: CreateGuardrailCommandIn
42
45
  * serializeAws_restJson1CreateGuardrailVersionCommand
43
46
  */
44
47
  export declare const se_CreateGuardrailVersionCommand: (input: CreateGuardrailVersionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
48
+ /**
49
+ * serializeAws_restJson1CreateModelCopyJobCommand
50
+ */
51
+ export declare const se_CreateModelCopyJobCommand: (input: CreateModelCopyJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
45
52
  /**
46
53
  * serializeAws_restJson1CreateModelCustomizationJobCommand
47
54
  */
@@ -82,6 +89,10 @@ export declare const se_GetFoundationModelCommand: (input: GetFoundationModelCom
82
89
  * serializeAws_restJson1GetGuardrailCommand
83
90
  */
84
91
  export declare const se_GetGuardrailCommand: (input: GetGuardrailCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
92
+ /**
93
+ * serializeAws_restJson1GetModelCopyJobCommand
94
+ */
95
+ export declare const se_GetModelCopyJobCommand: (input: GetModelCopyJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
85
96
  /**
86
97
  * serializeAws_restJson1GetModelCustomizationJobCommand
87
98
  */
@@ -110,6 +121,10 @@ export declare const se_ListFoundationModelsCommand: (input: ListFoundationModel
110
121
  * serializeAws_restJson1ListGuardrailsCommand
111
122
  */
112
123
  export declare const se_ListGuardrailsCommand: (input: ListGuardrailsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
124
+ /**
125
+ * serializeAws_restJson1ListModelCopyJobsCommand
126
+ */
127
+ export declare const se_ListModelCopyJobsCommand: (input: ListModelCopyJobsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
113
128
  /**
114
129
  * serializeAws_restJson1ListModelCustomizationJobsCommand
115
130
  */
@@ -162,6 +177,10 @@ export declare const de_CreateGuardrailCommand: (output: __HttpResponse, context
162
177
  * deserializeAws_restJson1CreateGuardrailVersionCommand
163
178
  */
164
179
  export declare const de_CreateGuardrailVersionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateGuardrailVersionCommandOutput>;
180
+ /**
181
+ * deserializeAws_restJson1CreateModelCopyJobCommand
182
+ */
183
+ export declare const de_CreateModelCopyJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateModelCopyJobCommandOutput>;
165
184
  /**
166
185
  * deserializeAws_restJson1CreateModelCustomizationJobCommand
167
186
  */
@@ -202,6 +221,10 @@ export declare const de_GetFoundationModelCommand: (output: __HttpResponse, cont
202
221
  * deserializeAws_restJson1GetGuardrailCommand
203
222
  */
204
223
  export declare const de_GetGuardrailCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetGuardrailCommandOutput>;
224
+ /**
225
+ * deserializeAws_restJson1GetModelCopyJobCommand
226
+ */
227
+ export declare const de_GetModelCopyJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetModelCopyJobCommandOutput>;
205
228
  /**
206
229
  * deserializeAws_restJson1GetModelCustomizationJobCommand
207
230
  */
@@ -230,6 +253,10 @@ export declare const de_ListFoundationModelsCommand: (output: __HttpResponse, co
230
253
  * deserializeAws_restJson1ListGuardrailsCommand
231
254
  */
232
255
  export declare const de_ListGuardrailsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListGuardrailsCommandOutput>;
256
+ /**
257
+ * deserializeAws_restJson1ListModelCopyJobsCommand
258
+ */
259
+ export declare const de_ListModelCopyJobsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListModelCopyJobsCommandOutput>;
233
260
  /**
234
261
  * deserializeAws_restJson1ListModelCustomizationJobsCommand
235
262
  */
@@ -27,13 +27,13 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
27
27
  serviceId: string;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
31
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
30
32
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
31
33
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
32
34
  logger?: import("@smithy/types").Logger | undefined;
33
35
  }) => import("@smithy/types").EndpointV2;
34
36
  tls?: boolean | undefined;
35
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
36
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
37
37
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
38
38
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockHttpAuthSchemeProvider;
39
39
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -27,13 +27,13 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
27
27
  serviceId: string;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
31
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
30
32
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
31
33
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
32
34
  logger?: import("@smithy/types").Logger | undefined;
33
35
  }) => import("@smithy/types").EndpointV2;
34
36
  tls?: boolean | undefined;
35
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
36
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
37
37
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
38
38
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockHttpAuthSchemeProvider;
39
39
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -26,13 +26,13 @@ export declare const getRuntimeConfig: (config: BedrockClientConfig) => {
26
26
  logger: import("@smithy/types").Logger;
27
27
  extensions: import("./runtimeExtensions").RuntimeExtension[];
28
28
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
29
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
30
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
29
31
  endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
30
32
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
33
  logger?: import("@smithy/types").Logger | undefined;
32
34
  }) => import("@smithy/types").EndpointV2;
33
35
  tls?: boolean | undefined;
34
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
35
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
36
36
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
37
37
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockHttpAuthSchemeProvider;
38
38
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -12,6 +12,10 @@ import {
12
12
  CreateGuardrailVersionCommandInput,
13
13
  CreateGuardrailVersionCommandOutput,
14
14
  } from "./commands/CreateGuardrailVersionCommand";
15
+ import {
16
+ CreateModelCopyJobCommandInput,
17
+ CreateModelCopyJobCommandOutput,
18
+ } from "./commands/CreateModelCopyJobCommand";
15
19
  import {
16
20
  CreateModelCustomizationJobCommandInput,
17
21
  CreateModelCustomizationJobCommandOutput,
@@ -52,6 +56,10 @@ import {
52
56
  GetGuardrailCommandInput,
53
57
  GetGuardrailCommandOutput,
54
58
  } from "./commands/GetGuardrailCommand";
59
+ import {
60
+ GetModelCopyJobCommandInput,
61
+ GetModelCopyJobCommandOutput,
62
+ } from "./commands/GetModelCopyJobCommand";
55
63
  import {
56
64
  GetModelCustomizationJobCommandInput,
57
65
  GetModelCustomizationJobCommandOutput,
@@ -80,6 +88,10 @@ import {
80
88
  ListGuardrailsCommandInput,
81
89
  ListGuardrailsCommandOutput,
82
90
  } from "./commands/ListGuardrailsCommand";
91
+ import {
92
+ ListModelCopyJobsCommandInput,
93
+ ListModelCopyJobsCommandOutput,
94
+ } from "./commands/ListModelCopyJobsCommand";
83
95
  import {
84
96
  ListModelCustomizationJobsCommandInput,
85
97
  ListModelCustomizationJobsCommandOutput,
@@ -160,6 +172,19 @@ export interface Bedrock {
160
172
  options: __HttpHandlerOptions,
161
173
  cb: (err: any, data?: CreateGuardrailVersionCommandOutput) => void
162
174
  ): void;
175
+ createModelCopyJob(
176
+ args: CreateModelCopyJobCommandInput,
177
+ options?: __HttpHandlerOptions
178
+ ): Promise<CreateModelCopyJobCommandOutput>;
179
+ createModelCopyJob(
180
+ args: CreateModelCopyJobCommandInput,
181
+ cb: (err: any, data?: CreateModelCopyJobCommandOutput) => void
182
+ ): void;
183
+ createModelCopyJob(
184
+ args: CreateModelCopyJobCommandInput,
185
+ options: __HttpHandlerOptions,
186
+ cb: (err: any, data?: CreateModelCopyJobCommandOutput) => void
187
+ ): void;
163
188
  createModelCustomizationJob(
164
189
  args: CreateModelCustomizationJobCommandInput,
165
190
  options?: __HttpHandlerOptions
@@ -297,6 +322,19 @@ export interface Bedrock {
297
322
  options: __HttpHandlerOptions,
298
323
  cb: (err: any, data?: GetGuardrailCommandOutput) => void
299
324
  ): void;
325
+ getModelCopyJob(
326
+ args: GetModelCopyJobCommandInput,
327
+ options?: __HttpHandlerOptions
328
+ ): Promise<GetModelCopyJobCommandOutput>;
329
+ getModelCopyJob(
330
+ args: GetModelCopyJobCommandInput,
331
+ cb: (err: any, data?: GetModelCopyJobCommandOutput) => void
332
+ ): void;
333
+ getModelCopyJob(
334
+ args: GetModelCopyJobCommandInput,
335
+ options: __HttpHandlerOptions,
336
+ cb: (err: any, data?: GetModelCopyJobCommandOutput) => void
337
+ ): void;
300
338
  getModelCustomizationJob(
301
339
  args: GetModelCustomizationJobCommandInput,
302
340
  options?: __HttpHandlerOptions
@@ -399,6 +437,20 @@ export interface Bedrock {
399
437
  options: __HttpHandlerOptions,
400
438
  cb: (err: any, data?: ListGuardrailsCommandOutput) => void
401
439
  ): void;
440
+ listModelCopyJobs(): Promise<ListModelCopyJobsCommandOutput>;
441
+ listModelCopyJobs(
442
+ args: ListModelCopyJobsCommandInput,
443
+ options?: __HttpHandlerOptions
444
+ ): Promise<ListModelCopyJobsCommandOutput>;
445
+ listModelCopyJobs(
446
+ args: ListModelCopyJobsCommandInput,
447
+ cb: (err: any, data?: ListModelCopyJobsCommandOutput) => void
448
+ ): void;
449
+ listModelCopyJobs(
450
+ args: ListModelCopyJobsCommandInput,
451
+ options: __HttpHandlerOptions,
452
+ cb: (err: any, data?: ListModelCopyJobsCommandOutput) => void
453
+ ): void;
402
454
  listModelCustomizationJobs(): Promise<ListModelCustomizationJobsCommandOutput>;
403
455
  listModelCustomizationJobs(
404
456
  args: ListModelCustomizationJobsCommandInput,