deleteSystemInstance method

Future<void> deleteSystemInstance({
  1. String? id,
})

Deletes a system instance. Only system instances that have never been deployed, or that have been undeployed can be deleted.

Users can create a new system instance that has the same ID as a deleted system instance.

May throw InvalidRequestException. May throw ThrottlingException. May throw InternalFailureException. May throw ResourceInUseException.

Parameter id : The ID of the system instance to be deleted.

Implementation

Future<void> deleteSystemInstance({
  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.DeleteSystemInstance'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (id != null) 'id': id,
    },
  );
}