@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.1 KB
Raw
1 import * as sns from "@distilled.cloud/aws/sns";
2 import * as Binding from "alchemy/Binding";
3 import * as Effect from "effect/Effect";
4 import type { PlatformApplication } from "./PlatformApplication.ts";
5
6 export interface DeleteEndpointRequest extends sns.DeleteEndpointInput {}
7
8 /**
9 * Runtime binding for `sns:DeleteEndpoint`.
10 *
11 * Bind this operation to a {@link PlatformApplication} to deregister one
12 * of its device endpoints (idempotent).
13 * Provide the `DeleteEndpointHttp` layer on the Function to implement the binding.
14 * ### Mobile Push
15 * **Example:** Delete an Endpoint
16 * ```typescript
17 * const deleteEndpoint = yield* SNS.DeleteEndpoint(app);
18 * yield* deleteEndpoint({ EndpointArn: endpointArn });
19 * ```
20 *
21 * @binding
22 */
23 export interface DeleteEndpoint extends Binding.Service<
24 DeleteEndpoint,
25 "AWS.SNS.DeleteEndpoint",
26 (
27 application: PlatformApplication,
28 ) => Effect.Effect<
29 (
30 request: DeleteEndpointRequest,
31 ) => Effect.Effect<sns.DeleteEndpointResponse, sns.DeleteEndpointError>
32 >
33 > {}
34
35 export const DeleteEndpoint = Binding.Service<DeleteEndpoint>("AWS.SNS.DeleteEndpoint");