describe_resource_associations
async
¶
describe_resource_associations(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 | |