associateSourceViews
inline suspend fun BillingClient.associateSourceViews(crossinline block: AssociateSourceViewsRequest.Builder.() -> Unit): AssociateSourceViewsResponse
Associates one or more source billing views with an existing billing view. This allows creating aggregate billing views that combine data from multiple sources.
Samples
fun main() {
//sampleStart
// Invoke AssociateSourceViews
val resp = billingClient.associateSourceViews {
arn = "arn:aws:billing::123456789012:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
sourceViews = listOf<String>(
"arn:aws:billing::123456789012:billingview/primary",
"arn:aws:billing::123456789012:billingview/custom-d3f9c7e4-8b2f-4a6e-9d3b-2f7c8a1e5f6d"
)
}
//sampleEnd
}