budgets

package
v1.0.0-rc.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(cfg *aws.Config) *Client

NewClient creates a new Budgets client

func NewClientWithAssumeRole

func NewClientWithAssumeRole(cfg *aws.Config, assumeRoleName string) *Client

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL