deleteSpace method

Future<void> deleteSpace({
  1. required String domainId,
  2. required String spaceName,
})

Used to delete a space.

May throw ResourceInUse. May throw ResourceNotFound.

Parameter domainId : The ID of the associated domain.

Parameter spaceName : The name of the space.

Implementation

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