Documentation ¶
Index ¶
- func AssumeRole(roleArn string, region string, sessionName string) (*session.Session, error)
- func ClientFromEnv() (*costexplorer.CostExplorer, error)
- func ClientWithAssumedRole(roleArn string, region string) (*costexplorer.CostExplorer, error)
- func CostAndUsage(startDate time.Time, endDate time.Time, granularity string, dateFormat string) (*costexplorer.GetCostAndUsageOutput, error)
- func CostAndUsageInput(startDate time.Time, endDate time.Time, granularity string, dateFormat string) *costexplorer.GetCostAndUsageInput
- func NewSession(id string, secret string, token string, region string) (*session.Session, error)
- func NewSessionFromEnv() (*session.Session, error)
- func NewSessionFromEnvWithRegion(region string) (*session.Session, error)
- func RoleArn(account string, role string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssumeRole ¶
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 NewSessionFromEnv ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.