import * as Config from "effect/Config";
import * as Context from "effect/Context";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
export class Region extends Context.Service()("AWS::Region") {
}
export const fromEnv = () => Layer.succeed(Region, Config.string("AWS_REGION")
    .pipe(Config.orElse(() => Config.string("AWS_DEFAULT_REGION")))
    .pipe(Effect.orDie));
//# sourceMappingURL=region.js.map