describe_resource_associations
¶
describe_resource_associations(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
sm_capacity_reservation_arn: Optional[CapacityReservationArn] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> DescribeResourceAssociationsResponse
Returns the resources in your account that are associated with a SageMaker Capacity Reservation and the status of each association. Resources include SageMaker AI HyperPod clusters and SageMaker AI endpoints.
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
15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 | |