// Retrieves cost and usage metrics for your account. You can specify which cost
// and usage-related metric, such as BlendedCosts or UsageQuantity, that you want
// the request to return. You can also filter and group your data by various
// dimensions, such as SERVICE or AZ, in a specific time range. For a complete list
// of valid dimensions, see the GetDimensionValues
// (https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_GetDimensionValues.html)
// operation. Master account in an organization in AWS Organizations have access to
// all member accounts.
Retrieves cost and usage metrics for your account. You can specify which cost
and usage-related metric, such as BlendedCosts or UsageQuantity, that you want
the request to return. You can also filter and group your data by various
dimensions, such as SERVICE or AZ, in a specific time range. For a complete list
of valid dimensions, see the GetDimensionValues

operation. Master account in an organization in AWS Organizations have access to
all member accounts.
// Retrieves cost and usage metrics for your account . You can specify which cost // and usage - related metric such as BlendedCosts or UsageQuantity that you want // the request to return . You can also filter and group your data by various // dimensions such as SERVICE or AZ in a specific time range . For a complete list // of valid dimensions see the GetDimensionValues // ( https : // docs . aws . amazon . com / aws - cost - management / latest / APIReference / API_GetDimensionValues . html ) // operation . Master account in an organization in AWS Organizations have access to // all member accounts .
func (c *Client) GetCostAndUsage(ctx context.Context, params *GetCostAndUsageInput, optFns ...func(*Options)) (*GetCostAndUsageOutput, error) {
	if params == nil {
		params = &GetCostAndUsageInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "GetCostAndUsage", params, optFns, addOperationGetCostAndUsageMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*GetCostAndUsageOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) GetCostAndUsage ( ctx context . Context , params * GetCostAndUsageInput , optFns ... func ( * Options ) ) ( * GetCostAndUsageOutput , error ) { if params == nil { params = & GetCostAndUsageInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationGetCostAndUsageMiddlewares ) if err != nil { return nil , err } out := result . ( * GetCostAndUsageOutput ) out . ResultMetadata = metadata return out , nil }
Retrieves cost and usage metrics for your account.
Retrieves cost and usage metrics for your account .