INNER CODE UNIT · Go

func

kubernetes/k8s.io · infra/aws/aws-costexplorer-export/main.go:201

func (c usageClient) GetInputForUsage(nextPageToken *string) *costexplorer.GetCostAndUsageInput {
	start := now.
		Add(-time.Duration(time.Hour * 24 * time.Duration(c.config.AmountOfDaysToReportFrom))).
		Format(usageDateFormat)
	end := now.Format(usageDateFormat)
	input := &costexplorer.GetCostAndUsageInput{
		Filter: &cetypes.Expression{
			And: []cetypes.Expression{
				{
					Dimensions: &cetypes.DimensionValues{
						Key:          cetypes.DimensionLinkedAccount,
						MatchOptions: []cetypes.MatchOption{cetypes.MatchOptionEquals},
						Values:       c.config.FilterByLinkedAccounts,
					},
				},
				{
					Not: &cetypes.Expression{
						Dimensions: &cetypes.DimensionValues{

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…