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

main
ts 19 lines 892 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 { RestoreFromRecoveryPoint } from "./RestoreFromRecoveryPoint.ts";
5
6 export const RestoreFromRecoveryPointHttp = Layer.effect(
7 RestoreFromRecoveryPoint,
8 makeServerlessNamespaceHttpBinding({
9 tag: "AWS.RedshiftServerless.RestoreFromRecoveryPoint",
10 operation: serverless.restoreFromRecoveryPoint,
11 actions: ["redshift-serverless:RestoreFromRecoveryPoint"],
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 );