import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { SearchTrainingPlanOfferingsRequest, SearchTrainingPlanOfferingsResponse } from "../models/models_5"; import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link SearchTrainingPlanOfferingsCommand}. */ export interface SearchTrainingPlanOfferingsCommandInput extends SearchTrainingPlanOfferingsRequest { } /** * @public * * The output of {@link SearchTrainingPlanOfferingsCommand}. */ export interface SearchTrainingPlanOfferingsCommandOutput extends SearchTrainingPlanOfferingsResponse, __MetadataBearer { } declare const SearchTrainingPlanOfferingsCommand_base: { new (input: SearchTrainingPlanOfferingsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: SearchTrainingPlanOfferingsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Searches for available training plan offerings based on specified criteria.

For more information about how to reserve GPU capacity for your SageMaker training jobs or SageMaker HyperPod clusters using Amazon SageMaker Training Plan , see CreateTrainingPlan .

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SageMakerClient, SearchTrainingPlanOfferingsCommand } from "@aws-sdk/client-sagemaker"; // ES Modules import * // const { SageMakerClient, SearchTrainingPlanOfferingsCommand } = require("@aws-sdk/client-sagemaker"); // CommonJS import * const client = new SageMakerClient(config); * const input = { // SearchTrainingPlanOfferingsRequest * InstanceType: "ml.p4d.24xlarge" || "ml.p5.48xlarge" || "ml.p5e.48xlarge" || "ml.p5en.48xlarge" || "ml.trn1.32xlarge" || "ml.trn2.48xlarge" || "ml.p6-b200.48xlarge" || "ml.p4de.24xlarge" || "ml.p6e-gb200.36xlarge", * InstanceCount: Number("int"), * UltraServerType: "STRING_VALUE", * UltraServerCount: Number("int"), * StartTimeAfter: new Date("TIMESTAMP"), * EndTimeBefore: new Date("TIMESTAMP"), * DurationHours: Number("long"), // required * TargetResources: [ // SageMakerResourceNames // required * "training-job" || "hyperpod-cluster", * ], * }; * const command = new SearchTrainingPlanOfferingsCommand(input); * const response = await client.send(command); * // { // SearchTrainingPlanOfferingsResponse * // TrainingPlanOfferings: [ // TrainingPlanOfferings // required * // { // TrainingPlanOffering * // TrainingPlanOfferingId: "STRING_VALUE", // required * // TargetResources: [ // SageMakerResourceNames // required * // "training-job" || "hyperpod-cluster", * // ], * // RequestedStartTimeAfter: new Date("TIMESTAMP"), * // RequestedEndTimeBefore: new Date("TIMESTAMP"), * // DurationHours: Number("long"), * // DurationMinutes: Number("long"), * // UpfrontFee: "STRING_VALUE", * // CurrencyCode: "STRING_VALUE", * // ReservedCapacityOfferings: [ // ReservedCapacityOfferings * // { // ReservedCapacityOffering * // ReservedCapacityType: "UltraServer" || "Instance", * // UltraServerType: "STRING_VALUE", * // UltraServerCount: Number("int"), * // InstanceType: "ml.p4d.24xlarge" || "ml.p5.48xlarge" || "ml.p5e.48xlarge" || "ml.p5en.48xlarge" || "ml.trn1.32xlarge" || "ml.trn2.48xlarge" || "ml.p6-b200.48xlarge" || "ml.p4de.24xlarge" || "ml.p6e-gb200.36xlarge", // required * // InstanceCount: Number("int"), // required * // AvailabilityZone: "STRING_VALUE", * // DurationHours: Number("long"), * // DurationMinutes: Number("long"), * // StartTime: new Date("TIMESTAMP"), * // EndTime: new Date("TIMESTAMP"), * // }, * // ], * // }, * // ], * // }; * * ``` * * @param SearchTrainingPlanOfferingsCommandInput - {@link SearchTrainingPlanOfferingsCommandInput} * @returns {@link SearchTrainingPlanOfferingsCommandOutput} * @see {@link SearchTrainingPlanOfferingsCommandInput} for command's `input` shape. * @see {@link SearchTrainingPlanOfferingsCommandOutput} for command's `response` shape. * @see {@link SageMakerClientResolvedConfig | config} for SageMakerClient's `config` shape. * * @throws {@link ResourceLimitExceeded} (client fault) *

You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.

* * @throws {@link SageMakerServiceException} *

Base exception class for all service exceptions from SageMaker service.

* * * @public */ export declare class SearchTrainingPlanOfferingsCommand extends SearchTrainingPlanOfferingsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: SearchTrainingPlanOfferingsRequest; output: SearchTrainingPlanOfferingsResponse; }; sdk: { input: SearchTrainingPlanOfferingsCommandInput; output: SearchTrainingPlanOfferingsCommandOutput; }; }; }