The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import type * as SVC from "@distilled.cloud/aws/databrew"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import type * as Effect from "effect/Effect"; |
| 4 | import type { Project } from "./Project.ts"; |
| 5 | |
| 6 | export interface StartProjectSessionRequest extends Omit<SVC.StartProjectSessionRequest, "Name"> {} |
| 7 | |
| 8 | /** |
| 9 | * Runtime binding for `databrew:StartProjectSession` — opens an interactive |
| 10 | * session on the bound DataBrew project. The response's `ClientSessionId` |
| 11 | * (a `Redacted` session token) authenticates subsequent |
| 12 | * {@link SendProjectSessionAction} calls. |
| 13 | * |
| 14 | * Interactive sessions are billed per 30-minute session. |
| 15 | * ### Interactive Sessions |
| 16 | * **Example:** Open a Session |
| 17 | * ```typescript |
| 18 | * const startProjectSession = yield* AWS.DataBrew.StartProjectSession(project); |
| 19 | * |
| 20 | * const { ClientSessionId } = yield* startProjectSession({ |
| 21 | * AssumeControl: true, |
| 22 | * }); |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | */ |
| 27 | export interface StartProjectSession extends Binding.Service< |
| 28 | StartProjectSession, |
| 29 | "AWS.DataBrew.StartProjectSession", |
| 30 | <P extends Project>( |
| 31 | project: P, |
| 32 | ) => Effect.Effect< |
| 33 | ( |
| 34 | request?: StartProjectSessionRequest, |
| 35 | ) => Effect.Effect<SVC.StartProjectSessionResponse, SVC.StartProjectSessionError> |
| 36 | > |
| 37 | > {} |
| 38 | export const StartProjectSession = Binding.Service<StartProjectSession>( |
| 39 | "AWS.DataBrew.StartProjectSession", |
| 40 | ); |