deleteWorkteam method
Deletes an existing work team. This operation can't be undone.
May throw ResourceLimitExceeded.
Parameter workteamName
:
The name of the work team to delete.
Implementation
Future<DeleteWorkteamResponse> deleteWorkteam({
required String workteamName,
}) async {
ArgumentError.checkNotNull(workteamName, 'workteamName');
_s.validateStringLength(
'workteamName',
workteamName,
1,
63,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.DeleteWorkteam'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'WorkteamName': workteamName,
},
);
return DeleteWorkteamResponse.fromJson(jsonResponse.body);
}