Skip to content

PauseService

Source: src/AWS/AppRunner/PauseService.ts

Pause an App Runner Service from a Lambda (or other AWS runtime). App Runner releases the service’s compute capacity (the endpoint stops serving) while keeping its configuration — e.g. a nightly scheduler that pauses non-production services to stop compute billing. The call is asynchronous; pair with ListOperations or ResumeService.

Provide AppRunner.PauseServiceHttp on the hosting function’s Effect to implement the binding.

const pauseService = yield* AppRunner.PauseService(service);
const { Service: paused } = yield* pauseService();
// paused.Status -> "OPERATION_IN_PROGRESS" (settles to "PAUSED")