@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 41 lines 1.29 KB
Raw
1 import type * as DynamoDB from "@distilled.cloud/aws/dynamodb";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Table } from "./Table.ts";
5
6 export interface DescribeTimeToLiveRequest extends Omit<
7 DynamoDB.DescribeTimeToLiveInput,
8 "TableName"
9 > {}
10
11 /**
12 * Runtime binding for `dynamodb:DescribeTimeToLive`.
13 *
14 * Bind this operation to a `Table` inside a function runtime to get a callable
15 * that reads the table's TTL configuration. Provide the
16 * `DescribeTimeToLiveHttp` layer on the Function to satisfy the binding.
17 * ### Time to Live
18 * **Example:** Read the TTL Configuration
19 * ```typescript
20 * const describeTimeToLive = yield* AWS.DynamoDB.DescribeTimeToLive(table);
21 *
22 * const response = yield* describeTimeToLive();
23 * const ttlStatus = response.TimeToLiveDescription?.TimeToLiveStatus;
24 * ```
25 *
26 * @binding
27 */
28 export interface DescribeTimeToLive extends Binding.Service<
29 DescribeTimeToLive,
30 "AWS.DynamoDB.DescribeTimeToLive",
31 <T extends Table>(
32 table: T,
33 ) => Effect.Effect<
34 (
35 request?: DescribeTimeToLiveRequest,
36 ) => Effect.Effect<DynamoDB.DescribeTimeToLiveOutput, DynamoDB.DescribeTimeToLiveError>
37 >
38 > {}
39 export const DescribeTimeToLive = Binding.Service<DescribeTimeToLive>(
40 "AWS.DynamoDB.DescribeTimeToLive",
41 );