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

main
ts 20 lines 790 Bytes
Raw
1 import * as apprunner from "@distilled.cloud/aws/apprunner";
2 import { makeAppRunnerHttpBinding } from "./BindingHttp.ts";
3 import { DisassociateCustomDomain } from "./DisassociateCustomDomain.ts";
4 import type { Service } from "./Service.ts";
5
6 /**
7 * HTTP implementation of the {@link DisassociateCustomDomain} binding.
8 * Calls `apprunner:DisassociateCustomDomain` with the Lambda's IAM role,
9 * scoped to the bound service.
10 */
11 export const DisassociateCustomDomainHttp = makeAppRunnerHttpBinding(DisassociateCustomDomain, {
12 operation: apprunner.disassociateCustomDomain,
13 spec: (service: Service) => ({
14 identifiers: { ServiceArn: service.serviceArn },
15 iam: () => ({
16 actions: ["apprunner:DisassociateCustomDomain"],
17 resources: [service.serviceArn],
18 }),
19 }),
20 });