@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 35 lines 1.22 KB
Raw
1 import type * as ssm from "@distilled.cloud/aws/ssm-contacts";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { ContactChannel } from "./ContactChannel.ts";
5
6 /**
7 * Runtime binding for `ssm-contacts:DeactivateContactChannel`.
8 *
9 * Deactivate the bound contact channel so Incident Manager stops paging
10 * through it — e.g. while the owner is on leave. The channel's ARN is
11 * injected as `ContactChannelId`.
12 * Provide the implementation with
13 * `Effect.provide(AWS.SSMContacts.DeactivateContactChannelHttp)`.
14 * ### Activating Contact Channels
15 * **Example:** Deactivate a Channel
16 * ```typescript
17 * const deactivateContactChannel = yield* AWS.SSMContacts.DeactivateContactChannel(email);
18 *
19 * yield* deactivateContactChannel();
20 * ```
21 *
22 * @binding
23 */
24 export interface DeactivateContactChannel extends Binding.Service<
25 DeactivateContactChannel,
26 "AWS.SSMContacts.DeactivateContactChannel",
27 (
28 channel: ContactChannel,
29 ) => Effect.Effect<
30 () => Effect.Effect<ssm.DeactivateContactChannelResult, ssm.DeactivateContactChannelError>
31 >
32 > {}
33 export const DeactivateContactChannel = Binding.Service<DeactivateContactChannel>(
34 "AWS.SSMContacts.DeactivateContactChannel",
35 );