describeHubContent method
Describe the content of a hub.
May throw ResourceNotFound.
Parameter hubContentName :
The name of the content to describe.
Parameter hubContentType :
The type of content in the hub.
Parameter hubName :
The name of the hub that contains the content to describe.
Parameter hubContentVersion :
The version of the content to describe.
Implementation
Future<DescribeHubContentResponse> describeHubContent({
required String hubContentName,
required HubContentType hubContentType,
required String hubName,
String? hubContentVersion,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.DescribeHubContent'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'HubContentName': hubContentName,
'HubContentType': hubContentType.value,
'HubName': hubName,
if (hubContentVersion != null) 'HubContentVersion': hubContentVersion,
},
);
return DescribeHubContentResponse.fromJson(jsonResponse.body);
}