deleteStateTemplate method

Future<DeleteStateTemplateResponse> deleteStateTemplate({
  1. required String identifier,
})

Deletes a state template.

May throw AccessDeniedException. May throw InternalServerException. May throw ThrottlingException. May throw ValidationException.

Parameter identifier : The unique ID of the state template.

Implementation

Future<DeleteStateTemplateResponse> deleteStateTemplate({
  required String identifier,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'IoTAutobahnControlPlane.DeleteStateTemplate'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'identifier': identifier,
    },
  );

  return DeleteStateTemplateResponse.fromJson(jsonResponse.body);
}