deletePromptRouter method

Future<void> deletePromptRouter({
  1. required String promptRouterArn,
})

Deletes a specified prompt router. This action cannot be undone.

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

Parameter promptRouterArn : The Amazon Resource Name (ARN) of the prompt router to delete.

Implementation

Future<void> deletePromptRouter({
  required String promptRouterArn,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/prompt-routers/${Uri.encodeComponent(promptRouterArn)}',
    exceptionFnMap: _exceptionFns,
  );
}