import type * as repostspace from "@distilled.cloud/aws/repostspace"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Space } from "./Space.ts"; export interface RegisterAdminRequest extends Omit { } /** * Runtime binding for the `RegisterAdmin` operation (IAM action * `repostspace:RegisterAdmin` on the space ARN). * * Promotes an IAM Identity Center user or group (by accessor id) to * administrator of the bound {@link Space}. * Provide the implementation with * `Effect.provide(AWS.RePostSpace.RegisterAdminHttp)`. * ### Managing Admins * **Example:** Register a space administrator * ```typescript * const registerAdmin = yield* AWS.RePostSpace.RegisterAdmin(space); * * yield* registerAdmin({ adminId: "94682c8d-1234-5678-9abc-e001c76e2c44" }); * ``` * * @binding */ export interface RegisterAdmin extends Binding.Service Effect.Effect<(request: RegisterAdminRequest) => Effect.Effect>> { } export declare const RegisterAdmin: RegisterAdmin; //# sourceMappingURL=RegisterAdmin.d.ts.map