deleteNamespace method

Future<DeleteNamespaceResponse> deleteNamespace()

Deletes the specified namespace. This action deletes all of the entities in the namespace. Delete the systems and flows that use entities in the namespace before performing this action.

May throw InternalFailureException. May throw ThrottlingException.

Implementation

Future<DeleteNamespaceResponse> deleteNamespace() async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'IotThingsGraphFrontEndService.DeleteNamespace'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
  );

  return DeleteNamespaceResponse.fromJson(jsonResponse.body);
}