@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 19 lines 927 Bytes
Raw
1 import * as serverless from "@distilled.cloud/aws/redshift-serverless";
2 import * as Layer from "effect/Layer";
3 import { makeServerlessNamespaceHttpBinding, serverlessArnPrefix } from "./BindingHttp.ts";
4 import { RestoreTableFromRecoveryPoint } from "./RestoreTableFromRecoveryPoint.ts";
5
6 export const RestoreTableFromRecoveryPointHttp = Layer.effect(
7 RestoreTableFromRecoveryPoint,
8 makeServerlessNamespaceHttpBinding({
9 tag: "AWS.RedshiftServerless.RestoreTableFromRecoveryPoint",
10 operation: serverless.restoreTableFromRecoveryPoint,
11 actions: ["redshift-serverless:RestoreTableFromRecoveryPoint"],
12 // The operation authorizes against sibling resource ARNs (snapshots,
13 // recovery points, the serving workgroup) in addition to the namespace.
14 extraResources: (arn) => {
15 const prefix = serverlessArnPrefix(arn);
16 return [`${prefix}:recoverypoint/*`, `${prefix}:workgroup/*`];
17 },
18 }),
19 );