Documentation ¶
Index ¶
- func ErrCode(msg string, err error) error
- type Budgets
- func (b *Budgets) CreateBudget(ctx context.Context, input *budgets.CreateBudgetInput) error
- func (b *Budgets) DeleteBudget(ctx context.Context, account, budget string) error
- func (b *Budgets) DescribeBudget(ctx context.Context, account, budget string) (*budgets.Budget, error)
- func (b *Budgets) DescribeNotifications(ctx context.Context, account, budget string) ([]*budgets.Notification, error)
- func (b *Budgets) DescribeSubscribers(ctx context.Context, account, budget string, ...) ([]*budgets.Subscriber, error)
- func (b *Budgets) ListBudgetsWithPrefix(ctx context.Context, account, prefix string) ([]*budgets.Budget, error)
- type BudgetsOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (*Budgets) DeleteBudget ¶
func (*Budgets) DescribeBudget ¶
func (*Budgets) DescribeNotifications ¶
func (*Budgets) DescribeSubscribers ¶
func (b *Budgets) DescribeSubscribers(ctx context.Context, account, budget string, notification *budgets.Notification) ([]*budgets.Subscriber, 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
Click to show internal directories.
Click to hide internal directories.