SageMaker / Client / list_training_plans

list_training_plans#

SageMaker.Client.list_training_plans(**kwargs)#

Retrieves a list of training plans for the current account.

See also: AWS API Documentation

Request Syntax

response = client.list_training_plans(
    NextToken='string',
    MaxResults=123,
    StartTimeAfter=datetime(2015, 1, 1),
    StartTimeBefore=datetime(2015, 1, 1),
    SortBy='TrainingPlanName'|'StartTime'|'Status',
    SortOrder='Ascending'|'Descending',
    Filters=[
        {
            'Name': 'Status',
            'Value': 'string'
        },
    ]
)
Parameters:
  • NextToken (string) – A token to continue pagination if more results are available.

  • MaxResults (integer) – The maximum number of results to return in the response.

  • StartTimeAfter (datetime) – Filter to list only training plans with an actual start time after this date.

  • StartTimeBefore (datetime) – Filter to list only training plans with an actual start time before this date.

  • SortBy (string) – The training plan field to sort the results by (e.g., StartTime, Status).

  • SortOrder (string) – The order to sort the results (Ascending or Descending).

  • Filters (list) –

    Additional filters to apply to the list of training plans.

    • (dict) –

      A filter to apply when listing or searching for training plans.

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

      • Name (string) – [REQUIRED]

        The name of the filter field (e.g., Status, InstanceType).

      • Value (string) – [REQUIRED]

        The value to filter by for the specified field.

Return type:

dict

Returns:

Response Syntax

{
    'NextToken': 'string',
    'TrainingPlanSummaries': [
        {
            'TrainingPlanArn': 'string',
            'TrainingPlanName': 'string',
            'Status': 'Pending'|'Active'|'Scheduled'|'Expired'|'Failed',
            'StatusMessage': 'string',
            'DurationHours': 123,
            'DurationMinutes': 123,
            'StartTime': datetime(2015, 1, 1),
            'EndTime': datetime(2015, 1, 1),
            'UpfrontFee': 'string',
            'CurrencyCode': 'string',
            'TotalInstanceCount': 123,
            'AvailableInstanceCount': 123,
            'InUseInstanceCount': 123,
            'TargetResources': [
                'training-job'|'hyperpod-cluster',
            ],
            'ReservedCapacitySummaries': [
                {
                    'ReservedCapacityArn': 'string',
                    'InstanceType': 'ml.p4d.24xlarge'|'ml.p5.48xlarge'|'ml.p5e.48xlarge'|'ml.p5en.48xlarge'|'ml.trn2.48xlarge',
                    'TotalInstanceCount': 123,
                    'Status': 'Pending'|'Active'|'Scheduled'|'Expired'|'Failed',
                    'AvailabilityZone': 'string',
                    'DurationHours': 123,
                    'DurationMinutes': 123,
                    'StartTime': datetime(2015, 1, 1),
                    'EndTime': datetime(2015, 1, 1)
                },
            ]
        },
    ]
}

Response Structure

  • (dict) –

    • NextToken (string) –

      A token to continue pagination if more results are available.

    • TrainingPlanSummaries (list) –

      A list of summary information for the training plans.

      • (dict) –

        Details of the training plan.

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

        • TrainingPlanArn (string) –

          The Amazon Resource Name (ARN); of the training plan.

        • TrainingPlanName (string) –

          The name of the training plan.

        • Status (string) –

          The current status of the training plan (e.g., Pending, Active, Expired). To see the complete list of status values available for a training plan, refer to the Status attribute within the TrainingPlanSummary object.

        • StatusMessage (string) –

          A message providing additional information about the current status of the training plan.

        • DurationHours (integer) –

          The number of whole hours in the total duration for this training plan.

        • DurationMinutes (integer) –

          The additional minutes beyond whole hours in the total duration for this training plan.

        • StartTime (datetime) –

          The start time of the training plan.

        • EndTime (datetime) –

          The end time of the training plan.

        • UpfrontFee (string) –

          The upfront fee for the training plan.

        • CurrencyCode (string) –

          The currency code for the upfront fee (e.g., USD).

        • TotalInstanceCount (integer) –

          The total number of instances reserved in this training plan.

        • AvailableInstanceCount (integer) –

          The number of instances currently available for use in this training plan.

        • InUseInstanceCount (integer) –

          The number of instances currently in use from this training plan.

        • TargetResources (list) –

          The target resources (e.g., training jobs, HyperPod clusters) that can use this training plan.

          Training plans are specific to their target resource.

          • A training plan designed for SageMaker training jobs can only be used to schedule and run training jobs.

          • A training plan for HyperPod clusters can be used exclusively to provide compute resources to a cluster’s instance group.

          • (string) –

        • ReservedCapacitySummaries (list) –

          A list of reserved capacities associated with this training plan, including details such as instance types, counts, and availability zones.

          • (dict) –

            Details of a reserved capacity for the training plan.

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

            • ReservedCapacityArn (string) –

              The Amazon Resource Name (ARN); of the reserved capacity.

            • InstanceType (string) –

              The instance type for the reserved capacity.

            • TotalInstanceCount (integer) –

              The total number of instances in the reserved capacity.

            • Status (string) –

              The current status of the reserved capacity.

            • AvailabilityZone (string) –

              The availability zone for the reserved capacity.

            • DurationHours (integer) –

              The number of whole hours in the total duration for this reserved capacity.

            • DurationMinutes (integer) –

              The additional minutes beyond whole hours in the total duration for this reserved capacity.

            • StartTime (datetime) –

              The start time of the reserved capacity.

            • EndTime (datetime) –

              The end time of the reserved capacity.