updateSpace method
Updates the settings of a space.
May throw ResourceInUse.
May throw ResourceLimitExceeded.
May throw ResourceNotFound.
Parameter domainId :
The ID of the associated domain.
Parameter spaceName :
The name of the space.
Parameter spaceDisplayName :
The name of the space that appears in the Amazon SageMaker Studio UI.
Parameter spaceSettings :
A collection of space settings.
Implementation
Future<UpdateSpaceResponse> updateSpace({
required String domainId,
required String spaceName,
String? spaceDisplayName,
SpaceSettings? spaceSettings,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.UpdateSpace'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DomainId': domainId,
'SpaceName': spaceName,
if (spaceDisplayName != null) 'SpaceDisplayName': spaceDisplayName,
if (spaceSettings != null) 'SpaceSettings': spaceSettings,
},
);
return UpdateSpaceResponse.fromJson(jsonResponse.body);
}