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).
Inspecting a Host
Section titled “Inspecting a Host”// init — account-level binding takes no resourceconst listHosts = yield* AWS.CodeConnections.ListHosts();
// runtimeconst result = yield* listHosts();const urls = (result.Hosts ?? []).map((h) => h.ProviderEndpoint);