get_capacity_reservation_usage
¶
get_capacity_reservation_usage(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
sm_capacity_reservation_arn: Optional[CapacityReservationArn] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> GetCapacityReservationUsageResponse
Returns the number of instances in use from a SageMaker Capacity Reservation, for each account that uses them.
SageMaker AI refreshes the usage counts periodically. The LastRefreshTime value shows when the counts were last refreshed.
Parameters:
-
sm_capacity_reservation_arn(Optional[CapacityReservationArn], default:None) –The Amazon Resource Name (ARN) of the SageMaker Capacity Reservation. The ARN has the format
arn:aws:sagemaker:region:account-id:sm-capacity-reservation/smcr-id. -
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in the response. If more results are available, the response includes a
NextTokenvalue. -
next_token(Optional[NextToken], default:None) –If the previous response was truncated, the response includes a
NextTokenvalue. To retrieve the next set of results, use that token in your next request.
Raises:
-
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 | |