Skip to content

ListHosts

Source: src/AWS/CodeConnections/ListHosts.ts

Runtime binding for codeconnections:ListHosts.

An account-level operation (no host argument) that enumerates the account’s hosts — the self-managed provider endpoints (GitHub Enterprise Server, GitLab self-managed) that connections attach to. Useful for governance sweeps that audit which provider endpoints are registered. Provide the implementation with Effect.provide(AWS.CodeConnections.ListHostsHttp).

// init — account-level binding takes no resource
const listHosts = yield* AWS.CodeConnections.ListHosts();
// runtime
const result = yield* listHosts();
const urls = (result.Hosts ?? []).map((h) => h.ProviderEndpoint);