Skip to content

StartServer

Source: src/AWS/Transfer/StartServer.ts

Runtime binding for transfer:StartServer.

Brings a stopped Server from OFFLINE back to ONLINE so it can accept file transfers again — the ServerId is injected from the binding. Paired with StopServer this enables runtime schedules that park the endpoint outside business hours. The call is asynchronous: the server passes through STARTING; observe progress with DescribeServer. Starting a server that is not OFFLINE fails with the typed InvalidRequestException. Provide the implementation with Effect.provide(AWS.Transfer.StartServerHttp).

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