/** * An endpoint override: the base URL every operation is sent to, in place of * the one the endpoint rules resolve (`https://.r2.cloudflarestorage.com` * for Cloudflare R2, `http://localhost:9000` for MinIO). */ import * as Context from "effect/Context"; import type * as Effect from "effect/Effect"; import type { ProviderError } from "./credentials.ts"; // Annotated so the declaration keeps `ProviderError` unevaluated: an // inferred base type would be emitted as `never`, and a module augmentation // of `ProviderErrors` would no longer reach it. const EndpointService: Context.ServiceClass< Endpoint, "AWS::Endpoint", Effect.Effect > = /*@__PURE__*/ Context.Service>()( "AWS::Endpoint", ); export class Endpoint extends EndpointService {}