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