getResourcePolicy

Returns the resource-based policy document attached to the resource in JSON format.

Samples


fun main() { 
   //sampleStart 
   // Invoke GetResourcePolicy
val resp = billingClient.getResourcePolicy {
    resourceArn = "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
} 
   //sampleEnd
}