describeSpace method

Future<DescribeSpaceResponse> describeSpace({
  1. required String domainId,
  2. required String spaceName,
})

Describes the space.

May throw ResourceNotFound.

Parameter domainId : The ID of the associated domain.

Parameter spaceName : The name of the space.

Implementation

Future<DescribeSpaceResponse> describeSpace({
  required String domainId,
  required String spaceName,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DescribeSpace'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'DomainId': domainId,
      'SpaceName': spaceName,
    },
  );

  return DescribeSpaceResponse.fromJson(jsonResponse.body);
}