undeploySystemInstance method
Removes a system instance from its target (Cloud or Greengrass).
May throw InvalidRequestException. May throw ThrottlingException. May throw InternalFailureException. May throw ResourceNotFoundException. May throw ResourceInUseException.
Parameter id
:
The ID of the system instance to remove from its target.
Implementation
Future<UndeploySystemInstanceResponse> undeploySystemInstance({
String? id,
}) async {
_s.validateStringLength(
'id',
id,
0,
160,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'IotThingsGraphFrontEndService.UndeploySystemInstance'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (id != null) 'id': id,
},
);
return UndeploySystemInstanceResponse.fromJson(jsonResponse.body);
}