mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-29 16:14:42 +00:00
22 lines
536 B
TypeScript
22 lines
536 B
TypeScript
|
|
import { generateConnectionUrl } from 'api/integrations/aws';
|
||
|
|
import { AxiosError } from 'axios';
|
||
|
|
import { useMutation, UseMutationResult } from 'react-query';
|
||
|
|
import {
|
||
|
|
ConnectionUrlResponse,
|
||
|
|
GenerateConnectionUrlPayload,
|
||
|
|
} from 'types/api/integrations/aws';
|
||
|
|
|
||
|
|
export function useGenerateConnectionUrl(): UseMutationResult<
|
||
|
|
ConnectionUrlResponse,
|
||
|
|
AxiosError,
|
||
|
|
GenerateConnectionUrlPayload
|
||
|
|
> {
|
||
|
|
return useMutation<
|
||
|
|
ConnectionUrlResponse,
|
||
|
|
AxiosError,
|
||
|
|
GenerateConnectionUrlPayload
|
||
|
|
>({
|
||
|
|
mutationFn: generateConnectionUrl,
|
||
|
|
});
|
||
|
|
}
|