listBillingViews

Lists the billing views available for a given time period.

Every Amazon Web Services account has a unique PRIMARY billing view that represents the billing data available by default. Accounts that use Billing Conductor also have BILLING_GROUP billing views representing pro forma costs associated with each created billing group.

Samples

import aws.sdk.kotlin.services.billing.model.ActiveTimeRange
import aws.smithy.kotlin.runtime.time.Instant
import aws.smithy.kotlin.runtime.time.fromEpochMilliseconds

fun main() { 
   //sampleStart 
   // Invoke ListBillingViews
val resp = billingClient.listBillingViews {
    activeTimeRange = ActiveTimeRange {
        activeAfterInclusive = Instant.fromEpochSeconds(1719792000, 0)
        activeBeforeInclusive = Instant.fromEpochMilliseconds(1722470399999)
    }
} 
   //sampleEnd
}