Documentation
¶
Overview ¶
Package accounts provides AWS Organizations member account discovery.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OrgDiscoveryResult ¶
type OrgDiscoveryResult struct {
Accounts []config.CloudAccount
}
OrgDiscoveryResult holds the list of member accounts found during discovery. Discovery is all-or-nothing: a pagination error is returned as a function error, not accumulated here. There is no partial-success path.
func DiscoverOrgAccounts ¶
DiscoverOrgAccounts uses the AWS Organizations API on the management account to list all member accounts. It returns CloudAccount records suitable for saving — they are NOT automatically persisted.
The caller is responsible for using the appropriate credentials for the management account (e.g., resolved via the credentials package).