SageMaker / Paginator / ListCapacityReservations
ListCapacityReservations¶
- class SageMaker.Paginator.ListCapacityReservations¶
paginator = client.get_paginator('list_capacity_reservations')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
SageMaker.Client.list_capacity_reservations().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( Filters=[ { 'Name': 'Status', 'Values': [ 'string', ] }, ], PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
Filters (list) –
A filter that returns only the reservations that match it. You can specify one filter. If you don’t specify a filter, the response includes all reservations in your account.
(dict) –
A filter for the
ListCapacityReservationsoperation. A reservation matches the filter when its value forNameequals any of the values inValues.Name (string) – [REQUIRED]
The name of the field to filter on. The only supported value is
Status.Values (list) – [REQUIRED]
The values to match. For the
Statusfilter, valid values areScheduled,Active, andExpired. Values are case sensitive. You can specify up to 10 values.(string) –
A value to match in a SageMaker Capacity Reservation filter.
PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextTokenwill be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextTokenfrom a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'CapacityReservationSummaries': [ { 'SMCapacityReservationArn': 'string', 'SMCapacityReservationId': 'string', 'Owner': 'string', 'Status': 'Scheduled'|'Active'|'Expired', 'InstanceType': 'string', 'AvailabilityZone': 'string', 'AvailabilityZoneId': 'string', 'TotalInstanceCount': 123, 'StartTime': datetime(2015, 1, 1), 'EndTime': datetime(2015, 1, 1), 'CreationTime': datetime(2015, 1, 1) }, ], }
Response Structure
(dict) –
CapacityReservationSummaries (list) –
Summaries of the SageMaker Capacity Reservations in your account.
(dict) –
Summary information about a SageMaker Capacity Reservation.
SMCapacityReservationArn (string) –
The Amazon Resource Name (ARN) of the SageMaker Capacity Reservation.
SMCapacityReservationId (string) –
The ID of the SageMaker Capacity Reservation. The ID is the last part of the ARN and starts with
smcr-.Owner (string) –
The ID of the Amazon Web Services account that owns the SageMaker Capacity Reservation.
Status (string) –
The status of the SageMaker Capacity Reservation. SageMaker AI sets the status from the start and end times of the reservation. Valid values:
Scheduled
The current time is before
StartTime.Active
The current time is between
StartTimeandEndTime. You can use the reserved instances.Expired
The current time is at or after
EndTime.InstanceType (string) –
The SageMaker AI instance type of the reserved instances, for example
ml.p5.48xlarge.AvailabilityZone (string) –
The name of the Availability Zone of the reserved instances, for example
us-east-1a. Availability Zone names can map to different physical zones in different accounts. To identify the same zone across accounts, useAvailabilityZoneId.AvailabilityZoneId (string) –
The ID of the Availability Zone of the reserved instances, for example
use1-az1. An Availability Zone ID identifies the same physical zone in every account.TotalInstanceCount (integer) –
The number of instances in the SageMaker Capacity Reservation.
StartTime (datetime) –
The time when the reserved instances become available.
EndTime (datetime) –
The time when the SageMaker Capacity Reservation ends. This value is not returned if the reservation has no end time.
CreationTime (datetime) –
The time when the SageMaker Capacity Reservation was created.