@aws-sdk/client-sagemaker 3.1006.0 → 3.1007.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 (38) hide show
  1. package/README.md +14 -0
  2. package/dist-cjs/index.js +32 -0
  3. package/dist-cjs/schemas/schemas_0.js +92 -33
  4. package/dist-es/SageMaker.js +6 -0
  5. package/dist-es/commands/DescribeTrainingPlanExtensionHistoryCommand.js +16 -0
  6. package/dist-es/commands/ExtendTrainingPlanCommand.js +16 -0
  7. package/dist-es/commands/index.js +2 -0
  8. package/dist-es/pagination/DescribeTrainingPlanExtensionHistoryPaginator.js +4 -0
  9. package/dist-es/pagination/index.js +1 -0
  10. package/dist-es/schemas/schemas_0.js +65 -6
  11. package/dist-types/SageMaker.d.ts +21 -0
  12. package/dist-types/SageMakerClient.d.ts +4 -2
  13. package/dist-types/commands/DescribeTrainingPlanExtensionHistoryCommand.d.ts +94 -0
  14. package/dist-types/commands/ExtendTrainingPlanCommand.d.ts +91 -0
  15. package/dist-types/commands/ListPipelineVersionsCommand.d.ts +1 -1
  16. package/dist-types/commands/ListPipelinesCommand.d.ts +2 -1
  17. package/dist-types/commands/ListProcessingJobsCommand.d.ts +1 -2
  18. package/dist-types/commands/SearchTrainingPlanOfferingsCommand.d.ts +14 -0
  19. package/dist-types/commands/index.d.ts +2 -0
  20. package/dist-types/models/models_3.d.ts +116 -156
  21. package/dist-types/models/models_4.d.ts +218 -1
  22. package/dist-types/pagination/DescribeTrainingPlanExtensionHistoryPaginator.d.ts +7 -0
  23. package/dist-types/pagination/index.d.ts +1 -0
  24. package/dist-types/schemas/schemas_0.d.ts +8 -0
  25. package/dist-types/ts3.4/SageMaker.d.ts +47 -0
  26. package/dist-types/ts3.4/SageMakerClient.d.ts +12 -0
  27. package/dist-types/ts3.4/commands/DescribeTrainingPlanExtensionHistoryCommand.d.ts +51 -0
  28. package/dist-types/ts3.4/commands/ExtendTrainingPlanCommand.d.ts +51 -0
  29. package/dist-types/ts3.4/commands/ListPipelineVersionsCommand.d.ts +1 -1
  30. package/dist-types/ts3.4/commands/ListPipelinesCommand.d.ts +2 -4
  31. package/dist-types/ts3.4/commands/ListProcessingJobsCommand.d.ts +4 -2
  32. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  33. package/dist-types/ts3.4/models/models_3.d.ts +28 -36
  34. package/dist-types/ts3.4/models/models_4.d.ts +50 -0
  35. package/dist-types/ts3.4/pagination/DescribeTrainingPlanExtensionHistoryPaginator.d.ts +11 -0
  36. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  37. package/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -0
  38. package/package.json +1 -1
@@ -0,0 +1,91 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ExtendTrainingPlanRequest, ExtendTrainingPlanResponse } from "../models/models_3";
4
+ import type { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ExtendTrainingPlanCommand}.
14
+ */
15
+ export interface ExtendTrainingPlanCommandInput extends ExtendTrainingPlanRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ExtendTrainingPlanCommand}.
21
+ */
22
+ export interface ExtendTrainingPlanCommandOutput extends ExtendTrainingPlanResponse, __MetadataBearer {
23
+ }
24
+ declare const ExtendTrainingPlanCommand_base: {
25
+ new (input: ExtendTrainingPlanCommandInput): import("@smithy/smithy-client").CommandImpl<ExtendTrainingPlanCommandInput, ExtendTrainingPlanCommandOutput, SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ExtendTrainingPlanCommandInput): import("@smithy/smithy-client").CommandImpl<ExtendTrainingPlanCommandInput, ExtendTrainingPlanCommandOutput, SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Extends an existing training plan by purchasing an extension offering. This allows you to add additional compute capacity time to your training plan without creating a new plan or reconfiguring your workloads.</p> <p>To find available extension offerings, use the <code> <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_SearchTrainingPlanOfferings.html">SearchTrainingPlanOfferings</a> </code> API with the <code>TrainingPlanArn</code> parameter.</p> <p>To view the history of extensions for a training plan, use the <code> <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DescribeTrainingPlanExtensionHistory.html">DescribeTrainingPlanExtensionHistory</a> </code> API.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SageMakerClient, ExtendTrainingPlanCommand } from "@aws-sdk/client-sagemaker"; // ES Modules import
35
+ * // const { SageMakerClient, ExtendTrainingPlanCommand } = require("@aws-sdk/client-sagemaker"); // CommonJS import
36
+ * // import type { SageMakerClientConfig } from "@aws-sdk/client-sagemaker";
37
+ * const config = {}; // type is SageMakerClientConfig
38
+ * const client = new SageMakerClient(config);
39
+ * const input = { // ExtendTrainingPlanRequest
40
+ * TrainingPlanExtensionOfferingId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new ExtendTrainingPlanCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ExtendTrainingPlanResponse
45
+ * // TrainingPlanExtensions: [ // TrainingPlanExtensions // required
46
+ * // { // TrainingPlanExtension
47
+ * // TrainingPlanExtensionOfferingId: "STRING_VALUE", // required
48
+ * // ExtendedAt: new Date("TIMESTAMP"),
49
+ * // StartDate: new Date("TIMESTAMP"),
50
+ * // EndDate: new Date("TIMESTAMP"),
51
+ * // Status: "STRING_VALUE",
52
+ * // PaymentStatus: "STRING_VALUE",
53
+ * // AvailabilityZone: "STRING_VALUE",
54
+ * // AvailabilityZoneId: "STRING_VALUE",
55
+ * // DurationHours: Number("int"),
56
+ * // UpfrontFee: "STRING_VALUE",
57
+ * // CurrencyCode: "STRING_VALUE",
58
+ * // },
59
+ * // ],
60
+ * // };
61
+ *
62
+ * ```
63
+ *
64
+ * @param ExtendTrainingPlanCommandInput - {@link ExtendTrainingPlanCommandInput}
65
+ * @returns {@link ExtendTrainingPlanCommandOutput}
66
+ * @see {@link ExtendTrainingPlanCommandInput} for command's `input` shape.
67
+ * @see {@link ExtendTrainingPlanCommandOutput} for command's `response` shape.
68
+ * @see {@link SageMakerClientResolvedConfig | config} for SageMakerClient's `config` shape.
69
+ *
70
+ * @throws {@link ResourceNotFound} (client fault)
71
+ * <p>Resource being access is not found.</p>
72
+ *
73
+ * @throws {@link SageMakerServiceException}
74
+ * <p>Base exception class for all service exceptions from SageMaker service.</p>
75
+ *
76
+ *
77
+ * @public
78
+ */
79
+ export declare class ExtendTrainingPlanCommand extends ExtendTrainingPlanCommand_base {
80
+ /** @internal type navigation helper, not in runtime. */
81
+ protected static __types: {
82
+ api: {
83
+ input: ExtendTrainingPlanRequest;
84
+ output: ExtendTrainingPlanResponse;
85
+ };
86
+ sdk: {
87
+ input: ExtendTrainingPlanCommandInput;
88
+ output: ExtendTrainingPlanCommandOutput;
89
+ };
90
+ };
91
+ }
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ListPipelineVersionsRequest, ListPipelineVersionsResponse } from "../models/models_3";
3
+ import type { ListPipelineVersionsRequest, ListPipelineVersionsResponse } from "../models/models_4";
4
4
  import type { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
5
5
  /**
6
6
  * @public
@@ -1,6 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ListPipelinesRequest, ListPipelinesResponse } from "../models/models_3";
3
+ import type { ListPipelinesRequest } from "../models/models_3";
4
+ import type { ListPipelinesResponse } from "../models/models_4";
4
5
  import type { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
5
6
  /**
6
7
  * @public
@@ -1,7 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ListProcessingJobsRequest } from "../models/models_3";
4
- import type { ListProcessingJobsResponse } from "../models/models_4";
3
+ import type { ListProcessingJobsRequest, ListProcessingJobsResponse } from "../models/models_4";
5
4
  import type { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
6
5
  /**
7
6
  * @public
@@ -47,6 +47,7 @@ declare const SearchTrainingPlanOfferingsCommand_base: {
47
47
  * TargetResources: [ // SageMakerResourceNames
48
48
  * "training-job" || "hyperpod-cluster" || "endpoint",
49
49
  * ],
50
+ * TrainingPlanArn: "STRING_VALUE",
50
51
  * };
51
52
  * const command = new SearchTrainingPlanOfferingsCommand(input);
52
53
  * const response = await client.send(command);
@@ -75,10 +76,23 @@ declare const SearchTrainingPlanOfferingsCommand_base: {
75
76
  * // DurationMinutes: Number("long"),
76
77
  * // StartTime: new Date("TIMESTAMP"),
77
78
  * // EndTime: new Date("TIMESTAMP"),
79
+ * // ExtensionStartTime: new Date("TIMESTAMP"),
80
+ * // ExtensionEndTime: new Date("TIMESTAMP"),
78
81
  * // },
79
82
  * // ],
80
83
  * // },
81
84
  * // ],
85
+ * // TrainingPlanExtensionOfferings: [ // TrainingPlanExtensionOfferings
86
+ * // { // TrainingPlanExtensionOffering
87
+ * // TrainingPlanExtensionOfferingId: "STRING_VALUE", // required
88
+ * // AvailabilityZone: "STRING_VALUE",
89
+ * // StartDate: new Date("TIMESTAMP"),
90
+ * // EndDate: new Date("TIMESTAMP"),
91
+ * // DurationHours: Number("int"),
92
+ * // UpfrontFee: "STRING_VALUE",
93
+ * // CurrencyCode: "STRING_VALUE",
94
+ * // },
95
+ * // ],
82
96
  * // };
83
97
  *
84
98
  * ```
@@ -198,6 +198,7 @@ export * from "./DescribeStudioLifecycleConfigCommand";
198
198
  export * from "./DescribeSubscribedWorkteamCommand";
199
199
  export * from "./DescribeTrainingJobCommand";
200
200
  export * from "./DescribeTrainingPlanCommand";
201
+ export * from "./DescribeTrainingPlanExtensionHistoryCommand";
201
202
  export * from "./DescribeTransformJobCommand";
202
203
  export * from "./DescribeTrialCommand";
203
204
  export * from "./DescribeTrialComponentCommand";
@@ -208,6 +209,7 @@ export * from "./DetachClusterNodeVolumeCommand";
208
209
  export * from "./DisableSagemakerServicecatalogPortfolioCommand";
209
210
  export * from "./DisassociateTrialComponentCommand";
210
211
  export * from "./EnableSagemakerServicecatalogPortfolioCommand";
212
+ export * from "./ExtendTrainingPlanCommand";
211
213
  export * from "./GetDeviceFleetReportCommand";
212
214
  export * from "./GetLineageGroupPolicyCommand";
213
215
  export * from "./GetModelPackageGroupPolicyCommand";
@@ -1189,6 +1189,102 @@ export interface DescribeTrainingPlanResponse {
1189
1189
  */
1190
1190
  ReservedCapacitySummaries?: ReservedCapacitySummary[] | undefined;
1191
1191
  }
1192
+ /**
1193
+ * @public
1194
+ */
1195
+ export interface DescribeTrainingPlanExtensionHistoryRequest {
1196
+ /**
1197
+ * <p>The Amazon Resource Name (ARN); of the training plan to retrieve extension history for.</p>
1198
+ * @public
1199
+ */
1200
+ TrainingPlanArn: string | undefined;
1201
+ /**
1202
+ * <p>A token to continue pagination if more results are available.</p>
1203
+ * @public
1204
+ */
1205
+ NextToken?: string | undefined;
1206
+ /**
1207
+ * <p>The maximum number of extensions to return in the response.</p>
1208
+ * @public
1209
+ */
1210
+ MaxResults?: number | undefined;
1211
+ }
1212
+ /**
1213
+ * <p>Details about an extension to a training plan, including the offering ID, dates, status, and cost information.</p>
1214
+ * @public
1215
+ */
1216
+ export interface TrainingPlanExtension {
1217
+ /**
1218
+ * <p>The unique identifier of the extension offering that was used to create this extension.</p>
1219
+ * @public
1220
+ */
1221
+ TrainingPlanExtensionOfferingId: string | undefined;
1222
+ /**
1223
+ * <p>The timestamp when the extension was created.</p>
1224
+ * @public
1225
+ */
1226
+ ExtendedAt?: Date | undefined;
1227
+ /**
1228
+ * <p>The start date of the extension period.</p>
1229
+ * @public
1230
+ */
1231
+ StartDate?: Date | undefined;
1232
+ /**
1233
+ * <p>The end date of the extension period.</p>
1234
+ * @public
1235
+ */
1236
+ EndDate?: Date | undefined;
1237
+ /**
1238
+ * <p>The current status of the extension (e.g., Pending, Active, Scheduled, Failed, Expired).</p>
1239
+ * @public
1240
+ */
1241
+ Status?: string | undefined;
1242
+ /**
1243
+ * <p>The payment processing status of the extension.</p>
1244
+ * @public
1245
+ */
1246
+ PaymentStatus?: string | undefined;
1247
+ /**
1248
+ * <p>The Availability Zone of the extension.</p>
1249
+ * @public
1250
+ */
1251
+ AvailabilityZone?: string | undefined;
1252
+ /**
1253
+ * <p>The Availability Zone ID of the extension.</p>
1254
+ * @public
1255
+ */
1256
+ AvailabilityZoneId?: string | undefined;
1257
+ /**
1258
+ * <p>The duration of the extension in hours.</p>
1259
+ * @public
1260
+ */
1261
+ DurationHours?: number | undefined;
1262
+ /**
1263
+ * <p>The upfront fee for the extension.</p>
1264
+ * @public
1265
+ */
1266
+ UpfrontFee?: string | undefined;
1267
+ /**
1268
+ * <p>The currency code for the upfront fee (e.g., USD).</p>
1269
+ * @public
1270
+ */
1271
+ CurrencyCode?: string | undefined;
1272
+ }
1273
+ /**
1274
+ * @public
1275
+ */
1276
+ export interface DescribeTrainingPlanExtensionHistoryResponse {
1277
+ /**
1278
+ * <p>A list of extensions for the specified training plan.</p>
1279
+ * @public
1280
+ */
1281
+ TrainingPlanExtensions: TrainingPlanExtension[] | undefined;
1282
+ /**
1283
+ * <p>A token to continue pagination if more results are available.</p>
1284
+ * @public
1285
+ */
1286
+ NextToken?: string | undefined;
1287
+ }
1192
1288
  /**
1193
1289
  * @public
1194
1290
  */
@@ -2936,6 +3032,26 @@ export interface ExperimentSummary {
2936
3032
  */
2937
3033
  LastModifiedTime?: Date | undefined;
2938
3034
  }
3035
+ /**
3036
+ * @public
3037
+ */
3038
+ export interface ExtendTrainingPlanRequest {
3039
+ /**
3040
+ * <p>The unique identifier of the extension offering to purchase. You can retrieve this ID from the <code>TrainingPlanExtensionOfferings</code> in the response of the <code>SearchTrainingPlanOfferings</code> API.</p>
3041
+ * @public
3042
+ */
3043
+ TrainingPlanExtensionOfferingId: string | undefined;
3044
+ }
3045
+ /**
3046
+ * @public
3047
+ */
3048
+ export interface ExtendTrainingPlanResponse {
3049
+ /**
3050
+ * <p>The list of extensions for the training plan, including the newly created extension.</p>
3051
+ * @public
3052
+ */
3053
+ TrainingPlanExtensions: TrainingPlanExtension[] | undefined;
3054
+ }
2939
3055
  /**
2940
3056
  * <p>The container for the metadata for Fail step.</p>
2941
3057
  * @public
@@ -9471,159 +9587,3 @@ export interface PipelineSummary {
9471
9587
  */
9472
9588
  LastExecutionTime?: Date | undefined;
9473
9589
  }
9474
- /**
9475
- * @public
9476
- */
9477
- export interface ListPipelinesResponse {
9478
- /**
9479
- * <p>Contains a sorted list of <code>PipelineSummary</code> objects matching the specified filters. Each <code>PipelineSummary</code> consists of PipelineArn, PipelineName, ExperimentName, PipelineDescription, CreationTime, LastModifiedTime, LastRunTime, and RoleArn. This list can be empty. </p>
9480
- * @public
9481
- */
9482
- PipelineSummaries?: PipelineSummary[] | undefined;
9483
- /**
9484
- * <p>If the result of the previous <code>ListPipelines</code> request was truncated, the response includes a <code>NextToken</code>. To retrieve the next set of pipelines, use the token in the next request.</p>
9485
- * @public
9486
- */
9487
- NextToken?: string | undefined;
9488
- }
9489
- /**
9490
- * @public
9491
- */
9492
- export interface ListPipelineVersionsRequest {
9493
- /**
9494
- * <p>The Amazon Resource Name (ARN) of the pipeline.</p>
9495
- * @public
9496
- */
9497
- PipelineName: string | undefined;
9498
- /**
9499
- * <p>A filter that returns the pipeline versions that were created after a specified time.</p>
9500
- * @public
9501
- */
9502
- CreatedAfter?: Date | undefined;
9503
- /**
9504
- * <p>A filter that returns the pipeline versions that were created before a specified time.</p>
9505
- * @public
9506
- */
9507
- CreatedBefore?: Date | undefined;
9508
- /**
9509
- * <p>The sort order for the results.</p>
9510
- * @public
9511
- */
9512
- SortOrder?: SortOrder | undefined;
9513
- /**
9514
- * <p>If the result of the previous <code>ListPipelineVersions</code> request was truncated, the response includes a <code>NextToken</code>. To retrieve the next set of pipeline versions, use this token in your next request.</p>
9515
- * @public
9516
- */
9517
- NextToken?: string | undefined;
9518
- /**
9519
- * <p>The maximum number of pipeline versions to return in the response.</p>
9520
- * @public
9521
- */
9522
- MaxResults?: number | undefined;
9523
- }
9524
- /**
9525
- * <p>The summary of the pipeline version.</p>
9526
- * @public
9527
- */
9528
- export interface PipelineVersionSummary {
9529
- /**
9530
- * <p>The Amazon Resource Name (ARN) of the pipeline.</p>
9531
- * @public
9532
- */
9533
- PipelineArn?: string | undefined;
9534
- /**
9535
- * <p>The ID of the pipeline version.</p>
9536
- * @public
9537
- */
9538
- PipelineVersionId?: number | undefined;
9539
- /**
9540
- * <p>The creation time of the pipeline version.</p>
9541
- * @public
9542
- */
9543
- CreationTime?: Date | undefined;
9544
- /**
9545
- * <p>The description of the pipeline version.</p>
9546
- * @public
9547
- */
9548
- PipelineVersionDescription?: string | undefined;
9549
- /**
9550
- * <p>The display name of the pipeline version.</p>
9551
- * @public
9552
- */
9553
- PipelineVersionDisplayName?: string | undefined;
9554
- /**
9555
- * <p>The Amazon Resource Name (ARN) of the most recent pipeline execution created from this pipeline version.</p>
9556
- * @public
9557
- */
9558
- LastExecutionPipelineExecutionArn?: string | undefined;
9559
- }
9560
- /**
9561
- * @public
9562
- */
9563
- export interface ListPipelineVersionsResponse {
9564
- /**
9565
- * <p>Contains a sorted list of pipeline version summary objects matching the specified filters. Each version summary includes the pipeline version ID, the creation date, and the last pipeline execution created from that version. This list can be empty.</p>
9566
- * @public
9567
- */
9568
- PipelineVersionSummaries?: PipelineVersionSummary[] | undefined;
9569
- /**
9570
- * <p>If the result of the previous <code>ListPipelineVersions</code> request was truncated, the response includes a <code>NextToken</code>. To retrieve the next set of pipeline versions, use this token in your next request.</p>
9571
- * @public
9572
- */
9573
- NextToken?: string | undefined;
9574
- }
9575
- /**
9576
- * @public
9577
- */
9578
- export interface ListProcessingJobsRequest {
9579
- /**
9580
- * <p>A filter that returns only processing jobs created after the specified time.</p>
9581
- * @public
9582
- */
9583
- CreationTimeAfter?: Date | undefined;
9584
- /**
9585
- * <p>A filter that returns only processing jobs created after the specified time.</p>
9586
- * @public
9587
- */
9588
- CreationTimeBefore?: Date | undefined;
9589
- /**
9590
- * <p>A filter that returns only processing jobs modified after the specified time.</p>
9591
- * @public
9592
- */
9593
- LastModifiedTimeAfter?: Date | undefined;
9594
- /**
9595
- * <p>A filter that returns only processing jobs modified before the specified time.</p>
9596
- * @public
9597
- */
9598
- LastModifiedTimeBefore?: Date | undefined;
9599
- /**
9600
- * <p>A string in the processing job name. This filter returns only processing jobs whose name contains the specified string.</p>
9601
- * @public
9602
- */
9603
- NameContains?: string | undefined;
9604
- /**
9605
- * <p>A filter that retrieves only processing jobs with a specific status.</p>
9606
- * @public
9607
- */
9608
- StatusEquals?: ProcessingJobStatus | undefined;
9609
- /**
9610
- * <p>The field to sort results by. The default is <code>CreationTime</code>.</p>
9611
- * @public
9612
- */
9613
- SortBy?: SortBy | undefined;
9614
- /**
9615
- * <p>The sort order for results. The default is <code>Ascending</code>.</p>
9616
- * @public
9617
- */
9618
- SortOrder?: SortOrder | undefined;
9619
- /**
9620
- * <p>If the result of the previous <code>ListProcessingJobs</code> request was truncated, the response includes a <code>NextToken</code>. To retrieve the next set of processing jobs, use the token in the next request.</p>
9621
- * @public
9622
- */
9623
- NextToken?: string | undefined;
9624
- /**
9625
- * <p>The maximum number of processing jobs to return in the response.</p>
9626
- * @public
9627
- */
9628
- MaxResults?: number | undefined;
9629
- }