pricing

package
v0.55.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 7 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 Pricing API client

func NewClient

func NewClient(ctx context.Context, logger *logrus.Logger) (*Client, error)

NewClient creates a new AWS Pricing API client Returns error if AWS credentials are not available

func (*Client) DescribeServices

func (c *Client) DescribeServices(ctx context.Context) ([]types.Service, error)

DescribeServices lists all available AWS services with pricing

func (*Client) GetProducts

func (c *Client) GetProducts(ctx context.Context, serviceCode string, filters []types.Filter, maxResults int32) ([]string, error)

GetProducts fetches pricing products for a specific service with filters

func (*Client) GetServiceAttributes

func (c *Client) GetServiceAttributes(ctx context.Context, serviceCode string) ([]string, error)

GetServiceAttributes fetches available filter attributes for a service

Jump to

Keyboard shortcuts

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