1import type * as oracle from "@distilled.cloud/gcp/oracledatabase_v1";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { RuntimeContext } from "../../RuntimeContext.ts";
5import type { GoldengateConnection } from "./GoldengateConnection.ts";
6
7export interface GetGoldengateConnectionRequest extends Omit<
8 oracle.GetProjectsLocationsGoldengateConnectionsRequest,
9 "name"
10> {}
11
12/**
13 * Runtime binding for Oracle Database `goldengateConnections.get`.
14 *
15 * ### Observing GoldenGate connections
16 * **Example:** Read the bound connection
17 * ```typescript
18 * const get = yield* GCP.OracleDatabase.GetGoldengateConnection(conn);
19 * const live = yield* get();
20 * ```
21 *
22 * @binding
23 * @category OracleDatabase
24 */
25export interface GetGoldengateConnection extends Binding.Service<
26 GetGoldengateConnection,
27 "GCP.OracleDatabase.GetGoldengateConnection",
28 (
29 connection: GoldengateConnection,
30 ) => Effect.Effect<
31 (
32 request?: GetGoldengateConnectionRequest,
33 ) => Effect.Effect<
34 oracle.GoldengateConnection,
35 oracle.GetProjectsLocationsGoldengateConnectionsError,
36 RuntimeContext
37 >
38 >
39> {}
40
41export const GetGoldengateConnection = Binding.Service<GetGoldengateConnection>(
42 "GCP.OracleDatabase.GetGoldengateConnection",
43);