| 1 | import * as oracle from "@distilled.cloud/gcp/oracledatabase_v1"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeOracleNameHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GetAutonomousDatabase } from "./GetAutonomousDatabase.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link GetAutonomousDatabase}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.OracleDatabase.GetAutonomousDatabase |
| 11 | */ |
| 12 | export const GetAutonomousDatabaseHttp = Layer.effect( |
| 13 | GetAutonomousDatabase, |
| 14 | makeOracleNameHttpBinding({ |
| 15 | tag: "GCP.OracleDatabase.GetAutonomousDatabase", |
| 16 | operation: oracle.getProjectsLocationsAutonomousDatabases, |
| 17 | iam: { role: "roles/oracledatabase.autonomousDatabaseViewer" }, |
| 18 | }), |
| 19 | ); |