budgets

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrCode

func ErrCode(msg string, err error) error

Types

type Budgets

type Budgets struct {
	Service budgetsiface.BudgetsAPI
	// contains filtered or unexported fields
}

func New

func New(opts ...BudgetsOption) *Budgets

func (*Budgets) CreateBudget

func (b *Budgets) CreateBudget(ctx context.Context, input *budgets.CreateBudgetInput) error

func (*Budgets) DeleteBudget

func (b *Budgets) DeleteBudget(ctx context.Context, account, budget string) error

func (*Budgets) DescribeBudget

func (b *Budgets) DescribeBudget(ctx context.Context, account, budget string) (*budgets.Budget, error)

func (*Budgets) DescribeNotifications

func (b *Budgets) DescribeNotifications(ctx context.Context, account, budget string) ([]*budgets.Notification, error)

func (*Budgets) DescribeSubscribers

func (b *Budgets) DescribeSubscribers(ctx context.Context, account, budget string, notification *budgets.Notification) ([]*budgets.Subscriber, error)

func (*Budgets) ListBudgetsWithPrefix

func (b *Budgets) ListBudgetsWithPrefix(ctx context.Context, account, prefix string) ([]*budgets.Budget, error)

type BudgetsOption

type BudgetsOption func(*Budgets)

func WithCredentials

func WithCredentials(key, secret, token, region string) BudgetsOption

func WithSession

func WithSession(sess *session.Session) BudgetsOption

Jump to

Keyboard shortcuts

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