createBillingView

Creates a billing view with the specified billing view attributes.

Samples

import aws.sdk.kotlin.services.billing.model.Dimension
import aws.sdk.kotlin.services.billing.model.DimensionValues
import aws.sdk.kotlin.services.billing.model.Expression

fun main() { 
   //sampleStart 
   // Invoke CreateBillingView
val resp = billingClient.createBillingView {
    name = "Example Custom Billing View"
    sourceViews = listOf<String>(
        "arn:aws:billing::123456789101:billingview/primary"
    )
    description = "Custom Billing View Example"
    dataFilterExpression = Expression {
        dimensions = DimensionValues {
            key = Dimension.fromValue("LINKED_ACCOUNT")
            values = listOf<String>(
                "000000000000"
            )
        }
    }
} 
   //sampleEnd
}