aws

package
v1.2.0-awscostswork.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssumeRole

func AssumeRole(roleArn string, region string, sessionName string) (*session.Session, error)

func ClientFromEnv

func ClientFromEnv() (*costexplorer.CostExplorer, error)

func ClientWithAssumedRole

func ClientWithAssumedRole(roleArn string, region string) (*costexplorer.CostExplorer, error)

func CostAndUsage

func CostAndUsage(startDate time.Time, endDate time.Time, granularity string, dateFormat string) (*costexplorer.GetCostAndUsageOutput, error)

func CostAndUsageInput

func CostAndUsageInput(startDate time.Time, endDate time.Time, granularity string, dateFormat string) *costexplorer.GetCostAndUsageInput

func NewSession

func NewSession(id string, secret string, token string, region string) (*session.Session, error)

func NewSessionFromEnv

func NewSessionFromEnv() (*session.Session, error)

func NewSessionFromEnvWithRegion

func NewSessionFromEnvWithRegion(region string) (*session.Session, error)

func RoleArn

func RoleArn(account string, role string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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