| 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 { StopAutonomousDatabase } from "./StopAutonomousDatabase.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link StopAutonomousDatabase}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.OracleDatabase.StopAutonomousDatabase |
| 11 | */ |
| 12 | export const StopAutonomousDatabaseHttp = Layer.effect( |
| 13 | StopAutonomousDatabase, |
| 14 | makeOracleNameHttpBinding({ |
| 15 | tag: "GCP.OracleDatabase.StopAutonomousDatabase", |
| 16 | operation: oracle.stopProjectsLocationsAutonomousDatabases, |
| 17 | // Narrowest predefined role with this autonomousDatabases permission. |
| 18 | iam: { role: "roles/oracledatabase.autonomousDatabaseAdmin" }, |
| 19 | }), |
| 20 | ); |