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

main
ts 40 lines 1.29 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 GetEndpointAttributesRequest extends sns.GetEndpointAttributesInput {}
7
8 /**
9 * Runtime binding for `sns:GetEndpointAttributes`.
10 *
11 * Bind this operation to a {@link PlatformApplication} to read the
12 * attributes (`Token`, `Enabled`, `CustomUserData`) of one of its device
13 * endpoints.
14 * Provide the `GetEndpointAttributesHttp` layer on the Function to implement the binding.
15 * ### Mobile Push
16 * **Example:** Read Endpoint Attributes
17 * ```typescript
18 * const getEndpointAttributes = yield* SNS.GetEndpointAttributes(app);
19 * const { Attributes } = yield* getEndpointAttributes({
20 * EndpointArn: endpointArn,
21 * });
22 * ```
23 *
24 * @binding
25 */
26 export interface GetEndpointAttributes extends Binding.Service<
27 GetEndpointAttributes,
28 "AWS.SNS.GetEndpointAttributes",
29 (
30 application: PlatformApplication,
31 ) => Effect.Effect<
32 (
33 request: GetEndpointAttributesRequest,
34 ) => Effect.Effect<sns.GetEndpointAttributesResponse, sns.GetEndpointAttributesError>
35 >
36 > {}
37
38 export const GetEndpointAttributes = Binding.Service<GetEndpointAttributes>(
39 "AWS.SNS.GetEndpointAttributes",
40 );