Documentation
¶
Index ¶
- type Client
- func (c *Client) GetAccountBudgets(ctx context.Context, accountID string, accountName string) ([]*types.BudgetConfig, error)
- func (c *Client) GetAllAccountsBudgets(ctx context.Context, accounts []types.AccountInfo, concurrency int) (map[string][]*types.BudgetConfig, error)
- func (c *Client) GetAllAccountsBudgetsWithProgress(ctx context.Context, accounts []types.AccountInfo, concurrency int, ...) (map[string][]*types.BudgetConfig, error)
- type ProgressCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the AWS Budgets client
func NewClientWithAssumeRole ¶
NewClientWithAssumeRole creates a new Budgets client with cross-account role assumption
func (*Client) GetAccountBudgets ¶
func (c *Client) GetAccountBudgets( ctx context.Context, accountID string, accountName string, ) ([]*types.BudgetConfig, error)
GetAccountBudgets retrieves all budgets for a single account
func (*Client) GetAllAccountsBudgets ¶
func (c *Client) GetAllAccountsBudgets( ctx context.Context, accounts []types.AccountInfo, concurrency int, ) (map[string][]*types.BudgetConfig, error)
GetAllAccountsBudgets retrieves budgets for multiple accounts concurrently
func (*Client) GetAllAccountsBudgetsWithProgress ¶
func (c *Client) GetAllAccountsBudgetsWithProgress( ctx context.Context, accounts []types.AccountInfo, concurrency int, progressCallback ProgressCallback, ) (map[string][]*types.BudgetConfig, error)
GetAllAccountsBudgetsWithProgress retrieves budgets with progress callback
type ProgressCallback ¶
type ProgressCallback func()
ProgressCallback is called after each account is processed
Click to show internal directories.
Click to hide internal directories.