getInvoiceUnit

This retrieves the invoice unit definition.

Samples

import aws.smithy.kotlin.runtime.time.Instant

fun main() { 
   //sampleStart 
   // GetInvoiceUnit as of current time
val resp = invoicingClient.getInvoiceUnit {
    invoiceUnitArn = "arn:aws:invoicing::000000000000:invoice-unit/12345678"
} 
   //sampleEnd
}
import aws.smithy.kotlin.runtime.time.Instant

fun main() { 
   //sampleStart 
   // GetInvoiceUnit as of specified time
val resp = invoicingClient.getInvoiceUnit {
    invoiceUnitArn = "arn:aws:invoicing::000000000000:invoice-unit/87654321"
    asOf = Instant.fromEpochSeconds(1733097600, 0)
} 
   //sampleEnd
}