Skip to content

StopServer

Source: src/AWS/Transfer/StopServer.ts

Runtime binding for transfer:StopServer.

Takes the bound Server from ONLINE to OFFLINE so it stops accepting file transfers — the ServerId is injected from the binding. Server and user configuration are unaffected. Note stopping does NOT pause billing; only deleting the server does. The call is asynchronous: the server passes through STOPPING; observe progress with DescribeServer. Stopping a server that is not ONLINE fails with the typed InvalidRequestException. Provide the implementation with Effect.provide(AWS.Transfer.StopServerHttp).

// init — bind the operation to the server
const stopServer = yield* AWS.Transfer.StopServer(server);
// runtime
yield* stopServer();