@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, 04:45 UTC

main
ts 40 lines 1.3 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 SetEndpointAttributesRequest extends sns.SetEndpointAttributesInput {}
7
8 /**
9 * Runtime binding for `sns:SetEndpointAttributes`.
10 *
11 * Bind this operation to a {@link PlatformApplication} to update a device
12 * endpoint — e.g. re-enable it after a delivery failure or rotate its token.
13 * Provide the `SetEndpointAttributesHttp` layer on the Function to implement the binding.
14 * ### Mobile Push
15 * **Example:** Re-enable an Endpoint
16 * ```typescript
17 * const setEndpointAttributes = yield* SNS.SetEndpointAttributes(app);
18 * yield* setEndpointAttributes({
19 * EndpointArn: endpointArn,
20 * Attributes: { Enabled: "true" },
21 * });
22 * ```
23 *
24 * @binding
25 */
26 export interface SetEndpointAttributes extends Binding.Service<
27 SetEndpointAttributes,
28 "AWS.SNS.SetEndpointAttributes",
29 (
30 application: PlatformApplication,
31 ) => Effect.Effect<
32 (
33 request: SetEndpointAttributesRequest,
34 ) => Effect.Effect<sns.SetEndpointAttributesResponse, sns.SetEndpointAttributesError>
35 >
36 > {}
37
38 export const SetEndpointAttributes = Binding.Service<SetEndpointAttributes>(
39 "AWS.SNS.SetEndpointAttributes",
40 );