Skip to content

ListConnections

Source: src/AWS/CodeConnections/ListConnections.ts

Runtime binding for codeconnections:ListConnections.

An account-level operation (no connection argument) that enumerates the account’s connections, optionally filtered by provider type or host. Useful for governance sweeps that audit which source providers are wired up. Provide the implementation with Effect.provide(AWS.CodeConnections.ListConnectionsHttp).

// init — account-level binding takes no resource
const listConnections = yield* AWS.CodeConnections.ListConnections();
// runtime
const result = yield* listConnections({ ProviderTypeFilter: "GitHub" });
const names = (result.Connections ?? []).map((c) => c.ConnectionName);